@carbon/charts-vue 0.41.31 → 0.41.32

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.
@@ -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("7326")(t))},"083f":function(t,e,n){var r=n("7526");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")}},"0c47":function(t,e,n){var r=n("c91c"),i=n("b17e");t.exports=Object.keys||function(t){return r(t,i)}},"0e39":function(t,e,n){var r=n("f1a7"),i=n("37d1"),o=n("332c"),a=n("802e"),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"0e93":function(t,e){t.exports=!1},"130d":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"157c":function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"185a":function(t,e,n){var r=n("d4cb"),i=n("e129"),o=n("9618"),a=n("378c"),s=n("083f"),u=n("f1a7"),c=n("7c3f"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"1c25":function(t,e,n){"use strict";n.r(e);var r,i={};(n.r(i),n.d(i,"Chart",(function(){return a})),n.d(i,"Model",(function(){return s})),n.d(i,"Toolbar",(function(){return u})),n.d(i,"ZoomBar",(function(){return c})),n.d(i,"ZoomDomain",(function(){return l})),n.d(i,"Axis",(function(){return h})),n.d(i,"Area",(function(){return f})),n.d(i,"Pie",(function(){return p})),n.d(i,"Gauge",(function(){return d})),n.d(i,"Bar",(function(){return v})),n.d(i,"Scatter",(function(){return g})),n.d(i,"Line",(function(){return m})),n.d(i,"Radar",(function(){return y})),n.d(i,"Treemap",(function(){return _})),n.d(i,"Tooltip",(function(){return b})),n.d(i,"Threshold",(function(){return w})),n.d(i,"Legend",(function(){return O})),"undefined"!==typeof window)&&(n("4141"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var o,a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,w,O,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},E=[];(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group",t["DOCUMENT"]="document",t["CHECKBOX"]="checkbox",t["BUTTON"]="button",t["MENU"]="menu",t["MENU_ITEM"]="menuitem",t["IMG"]="img"})(o||(o={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(a||(a={})),function(t){t["UPDATE"]="model-update"}(s||(s={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu"}(u||(u={})),function(t){t["UPDATE"]="zoom-bar-update",t["SELECTION_START"]="zoom-bar-selection-start",t["SELECTION_IN_PROGRESS"]="zoom-bar-selection-in-progress",t["SELECTION_END"]="zoom-bar-selection-end"}(c||(c={})),function(t){t["CHANGE"]="zoom-domain-change"}(l||(l={})),function(t){t["LABEL_MOUSEOVER"]="axis-label-mouseover",t["LABEL_MOUSEMOVE"]="axis-label-mousemove",t["LABEL_CLICK"]="axis-label-click",t["LABEL_MOUSEOUT"]="axis-label-mouseout"}(h||(h={})),function(t){t["AREA_MOUSEOVER"]="area-mouseover",t["AREA_MOUSEMOVE"]="area-mousemove",t["AREA_CLICK"]="area-click",t["AREA_MOUSEOUT"]="area-mouseout"}(f||(f={})),function(t){t["SLICE_MOUSEOVER"]="pie-slice-mouseover",t["SLICE_MOUSEMOVE"]="pie-slice-mousemove",t["SLICE_CLICK"]="pie-slice-click",t["SLICE_MOUSEOUT"]="pie-slice-mouseout"}(p||(p={})),function(t){t["ARC_MOUSEOVER"]="gauge-arc-mouseover",t["ARC_MOUSEMOVE"]="gauge-arc-mousemove",t["ARC_CLICK"]="gauge-arc-click",t["ARC_MOUSEOUT"]="gauge-arc-mouseout"}(d||(d={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(v||(v={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(g||(g={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(m||(m={})),function(t){t["X_AXIS_MOUSEOVER"]="radar-x-axis-mouseover",t["X_AXIS_MOUSEMOVE"]="radar-x-axis-mousemove",t["X_AXIS_CLICK"]="radar-x-axis-click",t["X_AXIS_MOUSEOUT"]="radar-x-axis-mouseout"}(y||(y={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(_||(_={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(b||(b={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(w||(w={})),function(t){t["ITEM_HOVER"]="legend-item-onhover",t["ITEM_CLICK"]="legend-item-onclick",t["ITEM_MOUSEOUT"]="legend-item-onmouseout",t["ITEMS_UPDATE"]="legend-items-update"}(O||(O={}));var S,T,M,A,C,P,D,k,L,R,I,j,N,B,G,V,U,H,z,F,W,Y,X=i;function q(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"})(S||(S={})),function(t){t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(T||(T={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(M||(M={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(A||(A={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(C||(C={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(P||(P={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels"}(D||(D={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(k||(k={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(L||(L={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(R||(R={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(I||(I={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(j||(j={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(N||(N={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(B||(B={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(G||(G={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(V||(V={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(U||(U={})),function(t){t["UP"]="up",t["DOWN"]="down"}(H||(H={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(z||(z={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(F||(F={})),function(t){t["SCATTER"]="scatter",t["LINE"]="line",t["SIMPLE_BAR"]="simple-bar",t["STACKED_BAR"]="stacked-bar",t["GROUPED_BAR"]="grouped-bar",t["AREA"]="area",t["STACKED_AREA"]="stacked-area"}(W||(W={})),function(t){t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom"}(Y||(Y={}));var Z=q,K=n("7f0d"),$=function(){return K["a"].Date.now()},Q=$,J=K["a"].Symbol,tt=J,et=Object.prototype,nt=et.hasOwnProperty,rt=et.toString,it=tt?tt.toStringTag:void 0;function ot(t){var e=nt.call(t,it),n=t[it];try{t[it]=void 0;var r=!0}catch(o){}var i=rt.call(t);return r&&(e?t[it]=n:delete t[it]),i}var at=ot,st=Object.prototype,ut=st.toString;function ct(t){return ut.call(t)}var lt=ct,ht="[object Null]",ft="[object Undefined]",pt=tt?tt.toStringTag:void 0;function dt(t){return null==t?void 0===t?ft:ht:pt&&pt in Object(t)?at(t):lt(t)}var vt=dt;function gt(t){return null!=t&&"object"==typeof t}var mt=gt,yt="[object Symbol]";function _t(t){return"symbol"==typeof t||mt(t)&&vt(t)==yt}var bt=_t,wt=NaN,Ot=/^\s+|\s+$/g,xt=/^[-+]0x[0-9a-f]+$/i,Et=/^0b[01]+$/i,St=/^0o[0-7]+$/i,Tt=parseInt;function Mt(t){if("number"==typeof t)return t;if(bt(t))return wt;if(Z(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Z(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ot,"");var n=Et.test(t);return n||St.test(t)?Tt(t.slice(2),n?2:8):xt.test(t)?wt:+t}var At=Mt,Ct="Expected a function",Pt=Math.max,Dt=Math.min;function kt(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(Ct);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(m,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?Dt(i,o-r):i}function g(t){var n=t-u,r=t-c;return void 0===u||n>=e||n<0||h&&r>=o}function m(){var t=Q();if(g(t))return y(t);s=setTimeout(m,v(t))}function y(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function _(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0}function b(){return void 0===s?a:y(Q())}function w(){var t=Q(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return d(u);if(h)return clearTimeout(s),s=setTimeout(m,e),p(u)}return void 0===s&&(s=setTimeout(m,e)),a}return e=At(e)||0,Z(n)&&(l=!!n.leading,h="maxWait"in n,o=h?Pt(At(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),w.cancel=_,w.flush=b,w}var Lt=kt;function Rt(){this.__data__=[],this.size=0}var It=Rt;function jt(t,e){return t===e||t!==t&&e!==e}var Nt=jt;function Bt(t,e){var n=t.length;while(n--)if(Nt(t[n][0],e))return n;return-1}var Gt=Bt,Vt=Array.prototype,Ut=Vt.splice;function Ht(t){var e=this.__data__,n=Gt(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ut.call(e,n,1),--this.size,!0}var zt=Ht;function Ft(t){var e=this.__data__,n=Gt(e,t);return n<0?void 0:e[n][1]}var Wt=Ft;function Yt(t){return Gt(this.__data__,t)>-1}var Xt=Yt;function qt(t,e){var n=this.__data__,r=Gt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Zt=qt;function Kt(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])}}Kt.prototype.clear=It,Kt.prototype["delete"]=zt,Kt.prototype.get=Wt,Kt.prototype.has=Xt,Kt.prototype.set=Zt;var $t=Kt;function Qt(){this.__data__=new $t,this.size=0}var Jt=Qt;function te(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var ee=te;function ne(t){return this.__data__.get(t)}var re=ne;function ie(t){return this.__data__.has(t)}var oe=ie,ae="[object AsyncFunction]",se="[object Function]",ue="[object GeneratorFunction]",ce="[object Proxy]";function le(t){if(!Z(t))return!1;var e=vt(t);return e==se||e==ue||e==ae||e==ce}var he=le,fe=K["a"]["__core-js_shared__"],pe=fe,de=function(){var t=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ve(t){return!!de&&de in t}var ge=ve,me=Function.prototype,ye=me.toString;function _e(t){if(null!=t){try{return ye.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var be=_e,we=/[\\^$.*+?()[\]{}|]/g,Oe=/^\[object .+?Constructor\]$/,xe=Function.prototype,Ee=Object.prototype,Se=xe.toString,Te=Ee.hasOwnProperty,Me=RegExp("^"+Se.call(Te).replace(we,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ae(t){if(!Z(t)||ge(t))return!1;var e=he(t)?Me:Oe;return e.test(be(t))}var Ce=Ae;function Pe(t,e){return null==t?void 0:t[e]}var De=Pe;function ke(t,e){var n=De(t,e);return Ce(n)?n:void 0}var Le=ke,Re=Le(K["a"],"Map"),Ie=Re,je=Le(Object,"create"),Ne=je;function Be(){this.__data__=Ne?Ne(null):{},this.size=0}var Ge=Be;function Ve(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ue=Ve,He="__lodash_hash_undefined__",ze=Object.prototype,Fe=ze.hasOwnProperty;function We(t){var e=this.__data__;if(Ne){var n=e[t];return n===He?void 0:n}return Fe.call(e,t)?e[t]:void 0}var Ye=We,Xe=Object.prototype,qe=Xe.hasOwnProperty;function Ze(t){var e=this.__data__;return Ne?void 0!==e[t]:qe.call(e,t)}var Ke=Ze,$e="__lodash_hash_undefined__";function Qe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ne&&void 0===e?$e:e,this}var Je=Qe;function tn(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])}}tn.prototype.clear=Ge,tn.prototype["delete"]=Ue,tn.prototype.get=Ye,tn.prototype.has=Ke,tn.prototype.set=Je;var en=tn;function nn(){this.size=0,this.__data__={hash:new en,map:new(Ie||$t),string:new en}}var rn=nn;function on(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var an=on;function sn(t,e){var n=t.__data__;return an(e)?n["string"==typeof e?"string":"hash"]:n.map}var un=sn;function cn(t){var e=un(this,t)["delete"](t);return this.size-=e?1:0,e}var ln=cn;function hn(t){return un(this,t).get(t)}var fn=hn;function pn(t){return un(this,t).has(t)}var dn=pn;function vn(t,e){var n=un(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var gn=vn;function mn(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])}}mn.prototype.clear=rn,mn.prototype["delete"]=ln,mn.prototype.get=fn,mn.prototype.has=dn,mn.prototype.set=gn;var yn=mn,_n=200;function bn(t,e){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!Ie||r.length<_n-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new yn(r)}return n.set(t,e),this.size=n.size,this}var wn=bn;function On(t){var e=this.__data__=new $t(t);this.size=e.size}On.prototype.clear=Jt,On.prototype["delete"]=ee,On.prototype.get=re,On.prototype.has=oe,On.prototype.set=wn;var xn=On;function En(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 Sn=En,Tn=function(){try{var t=Le(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Mn=Tn;function An(t,e,n){"__proto__"==e&&Mn?Mn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Cn=An,Pn=Object.prototype,Dn=Pn.hasOwnProperty;function kn(t,e,n){var r=t[e];Dn.call(t,e)&&Nt(r,n)&&(void 0!==n||e in t)||Cn(t,e,n)}var Ln=kn;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?Cn(n,s,u):Ln(n,s,u)}return n}var In=Rn;function jn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var Nn=jn,Bn="[object Arguments]";function Gn(t){return mt(t)&&vt(t)==Bn}var Vn=Gn,Un=Object.prototype,Hn=Un.hasOwnProperty,zn=Un.propertyIsEnumerable,Fn=Vn(function(){return arguments}())?Vn:function(t){return mt(t)&&Hn.call(t,"callee")&&!zn.call(t,"callee")},Wn=Fn,Yn=Array.isArray,Xn=Yn,qn=n("4cf0"),Zn=9007199254740991,Kn=/^(?:0|[1-9]\d*)$/;function $n(t,e){var n=typeof t;return e=null==e?Zn:e,!!e&&("number"==n||"symbol"!=n&&Kn.test(t))&&t>-1&&t%1==0&&t<e}var Qn=$n,Jn=9007199254740991;function tr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Jn}var er=tr,nr="[object Arguments]",rr="[object Array]",ir="[object Boolean]",or="[object Date]",ar="[object Error]",sr="[object Function]",ur="[object Map]",cr="[object Number]",lr="[object Object]",hr="[object RegExp]",fr="[object Set]",pr="[object String]",dr="[object WeakMap]",vr="[object ArrayBuffer]",gr="[object DataView]",mr="[object Float32Array]",yr="[object Float64Array]",_r="[object Int8Array]",br="[object Int16Array]",wr="[object Int32Array]",Or="[object Uint8Array]",xr="[object Uint8ClampedArray]",Er="[object Uint16Array]",Sr="[object Uint32Array]",Tr={};function Mr(t){return mt(t)&&er(t.length)&&!!Tr[vt(t)]}Tr[mr]=Tr[yr]=Tr[_r]=Tr[br]=Tr[wr]=Tr[Or]=Tr[xr]=Tr[Er]=Tr[Sr]=!0,Tr[nr]=Tr[rr]=Tr[vr]=Tr[ir]=Tr[gr]=Tr[or]=Tr[ar]=Tr[sr]=Tr[ur]=Tr[cr]=Tr[lr]=Tr[hr]=Tr[fr]=Tr[pr]=Tr[dr]=!1;var Ar=Mr;function Cr(t){return function(e){return t(e)}}var Pr=Cr,Dr=n("01ff"),kr=Dr["a"]&&Dr["a"].isTypedArray,Lr=kr?Pr(kr):Ar,Rr=Lr,Ir=Object.prototype,jr=Ir.hasOwnProperty;function Nr(t,e){var n=Xn(t),r=!n&&Wn(t),i=!n&&!r&&Object(qn["a"])(t),o=!n&&!r&&!i&&Rr(t),a=n||r||i||o,s=a?Nn(t.length,String):[],u=s.length;for(var c in t)!e&&!jr.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Qn(c,u))||s.push(c);return s}var Br=Nr,Gr=Object.prototype;function Vr(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Gr;return t===n}var Ur=Vr;function Hr(t,e){return function(n){return t(e(n))}}var zr=Hr,Fr=zr(Object.keys,Object),Wr=Fr,Yr=Object.prototype,Xr=Yr.hasOwnProperty;function qr(t){if(!Ur(t))return Wr(t);var e=[];for(var n in Object(t))Xr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Zr=qr;function Kr(t){return null!=t&&er(t.length)&&!he(t)}var $r=Kr;function Qr(t){return $r(t)?Br(t):Zr(t)}var Jr=Qr;function ti(t,e){return t&&In(e,Jr(e),t)}var ei=ti;function ni(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var ri=ni,ii=Object.prototype,oi=ii.hasOwnProperty;function ai(t){if(!Z(t))return ri(t);var e=Ur(t),n=[];for(var r in t)("constructor"!=r||!e&&oi.call(t,r))&&n.push(r);return n}var si=ai;function ui(t){return $r(t)?Br(t,!0):si(t)}var ci=ui;function li(t,e){return t&&In(e,ci(e),t)}var hi=li,fi=n("d6f0");function pi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var di=pi;function vi(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 gi=vi;function mi(){return[]}var yi=mi,_i=Object.prototype,bi=_i.propertyIsEnumerable,wi=Object.getOwnPropertySymbols,Oi=wi?function(t){return null==t?[]:(t=Object(t),gi(wi(t),(function(e){return bi.call(t,e)})))}:yi,xi=Oi;function Ei(t,e){return In(t,xi(t),e)}var Si=Ei;function Ti(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var Mi=Ti,Ai=zr(Object.getPrototypeOf,Object),Ci=Ai,Pi=Object.getOwnPropertySymbols,Di=Pi?function(t){var e=[];while(t)Mi(e,xi(t)),t=Ci(t);return e}:yi,ki=Di;function Li(t,e){return In(t,ki(t),e)}var Ri=Li;function Ii(t,e,n){var r=e(t);return Xn(t)?r:Mi(r,n(t))}var ji=Ii;function Ni(t){return ji(t,Jr,xi)}var Bi=Ni;function Gi(t){return ji(t,ci,ki)}var Vi=Gi,Ui=Le(K["a"],"DataView"),Hi=Ui,zi=Le(K["a"],"Promise"),Fi=zi,Wi=Le(K["a"],"Set"),Yi=Wi,Xi=Le(K["a"],"WeakMap"),qi=Xi,Zi="[object Map]",Ki="[object Object]",$i="[object Promise]",Qi="[object Set]",Ji="[object WeakMap]",to="[object DataView]",eo=be(Hi),no=be(Ie),ro=be(Fi),io=be(Yi),oo=be(qi),ao=vt;(Hi&&ao(new Hi(new ArrayBuffer(1)))!=to||Ie&&ao(new Ie)!=Zi||Fi&&ao(Fi.resolve())!=$i||Yi&&ao(new Yi)!=Qi||qi&&ao(new qi)!=Ji)&&(ao=function(t){var e=vt(t),n=e==Ki?t.constructor:void 0,r=n?be(n):"";if(r)switch(r){case eo:return to;case no:return Zi;case ro:return $i;case io:return Qi;case oo:return Ji}return e});var so=ao,uo=Object.prototype,co=uo.hasOwnProperty;function lo(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&co.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var ho=lo,fo=K["a"].Uint8Array,po=fo;function vo(t){var e=new t.constructor(t.byteLength);return new po(e).set(new po(t)),e}var go=vo;function mo(t,e){var n=e?go(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var yo=mo,_o=/\w*$/;function bo(t){var e=new t.constructor(t.source,_o.exec(t));return e.lastIndex=t.lastIndex,e}var wo=bo,Oo=tt?tt.prototype:void 0,xo=Oo?Oo.valueOf:void 0;function Eo(t){return xo?Object(xo.call(t)):{}}var So=Eo;function To(t,e){var n=e?go(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Mo=To,Ao="[object Boolean]",Co="[object Date]",Po="[object Map]",Do="[object Number]",ko="[object RegExp]",Lo="[object Set]",Ro="[object String]",Io="[object Symbol]",jo="[object ArrayBuffer]",No="[object DataView]",Bo="[object Float32Array]",Go="[object Float64Array]",Vo="[object Int8Array]",Uo="[object Int16Array]",Ho="[object Int32Array]",zo="[object Uint8Array]",Fo="[object Uint8ClampedArray]",Wo="[object Uint16Array]",Yo="[object Uint32Array]";function Xo(t,e,n){var r=t.constructor;switch(e){case jo:return go(t);case Ao:case Co:return new r(+t);case No:return yo(t,n);case Bo:case Go:case Vo:case Uo:case Ho:case zo:case Fo:case Wo:case Yo:return Mo(t,n);case Po:return new r;case Do:case Ro:return new r(t);case ko:return wo(t);case Lo:return new r;case Io:return So(t)}}var qo=Xo,Zo=Object.create,Ko=function(){function t(){}return function(e){if(!Z(e))return{};if(Zo)return Zo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),$o=Ko;function Qo(t){return"function"!=typeof t.constructor||Ur(t)?{}:$o(Ci(t))}var Jo=Qo,ta="[object Map]";function ea(t){return mt(t)&&so(t)==ta}var na=ea,ra=Dr["a"]&&Dr["a"].isMap,ia=ra?Pr(ra):na,oa=ia,aa="[object Set]";function sa(t){return mt(t)&&so(t)==aa}var ua=sa,ca=Dr["a"]&&Dr["a"].isSet,la=ca?Pr(ca):ua,ha=la,fa=1,pa=2,da=4,va="[object Arguments]",ga="[object Array]",ma="[object Boolean]",ya="[object Date]",_a="[object Error]",ba="[object Function]",wa="[object GeneratorFunction]",Oa="[object Map]",xa="[object Number]",Ea="[object Object]",Sa="[object RegExp]",Ta="[object Set]",Ma="[object String]",Aa="[object Symbol]",Ca="[object WeakMap]",Pa="[object ArrayBuffer]",Da="[object DataView]",ka="[object Float32Array]",La="[object Float64Array]",Ra="[object Int8Array]",Ia="[object Int16Array]",ja="[object Int32Array]",Na="[object Uint8Array]",Ba="[object Uint8ClampedArray]",Ga="[object Uint16Array]",Va="[object Uint32Array]",Ua={};function Ha(t,e,n,r,i,o){var a,s=e&fa,u=e&pa,c=e&da;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Z(t))return t;var l=Xn(t);if(l){if(a=ho(t),!s)return di(t,a)}else{var h=so(t),f=h==ba||h==wa;if(Object(qn["a"])(t))return Object(fi["a"])(t,s);if(h==Ea||h==va||f&&!i){if(a=u||f?{}:Jo(t),!s)return u?Ri(t,hi(a,t)):Si(t,ei(a,t))}else{if(!Ua[h])return i?t:{};a=qo(t,h,s)}}o||(o=new xn);var p=o.get(t);if(p)return p;o.set(t,a),ha(t)?t.forEach((function(r){a.add(Ha(r,e,n,r,t,o))})):oa(t)&&t.forEach((function(r,i){a.set(i,Ha(r,e,n,i,t,o))}));var d=c?u?Vi:Bi:u?keysIn:Jr,v=l?void 0:d(t);return Sn(v||t,(function(r,i){v&&(i=r,r=t[i]),Ln(a,i,Ha(r,e,n,i,t,o))})),a}Ua[va]=Ua[ga]=Ua[Pa]=Ua[Da]=Ua[ma]=Ua[ya]=Ua[ka]=Ua[La]=Ua[Ra]=Ua[Ia]=Ua[ja]=Ua[Oa]=Ua[xa]=Ua[Ea]=Ua[Sa]=Ua[Ta]=Ua[Ma]=Ua[Aa]=Ua[Na]=Ua[Ba]=Ua[Ga]=Ua[Va]=!0,Ua[_a]=Ua[ba]=Ua[Ca]=!1;var za=Ha,Fa=1,Wa=4;function Ya(t){return za(t,Fa|Wa)}var Xa=Ya;function qa(t,e,n){(void 0===n||Nt(t[e],n))&&(void 0!==n||e in t)||Cn(t,e,n)}var Za=qa;function Ka(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 $a=Ka,Qa=$a(),Ja=Qa;function ts(t){return mt(t)&&$r(t)}var es=ts,ns="[object Object]",rs=Function.prototype,is=Object.prototype,os=rs.toString,as=is.hasOwnProperty,ss=os.call(Object);function us(t){if(!mt(t)||vt(t)!=ns)return!1;var e=Ci(t);if(null===e)return!0;var n=as.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&os.call(n)==ss}var cs=us;function ls(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var hs=ls;function fs(t){return In(t,ci(t))}var ps=fs;function ds(t,e,n,r,i,o,a){var s=hs(t,n),u=hs(e,n),c=a.get(u);if(c)Za(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Xn(u),p=!f&&Object(qn["a"])(u),d=!f&&!p&&Rr(u);l=u,f||p||d?Xn(s)?l=s:es(s)?l=di(s):p?(h=!1,l=Object(fi["a"])(u,!0)):d?(h=!1,l=Mo(u,!0)):l=[]:cs(u)||Wn(u)?(l=s,Wn(s)?l=ps(s):Z(s)&&!he(s)||(l=Jo(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Za(t,n,l)}}var vs=ds;function gs(t,e,n,r,i){t!==e&&Ja(e,(function(o,a){if(i||(i=new xn),Z(o))vs(t,e,a,n,gs,r,i);else{var s=r?r(hs(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Za(t,a,s)}}),ci)}var ms=gs;function ys(t){return t}var _s=ys;function bs(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 ws=bs,Os=Math.max;function xs(t,e,n){return e=Os(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=Os(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),ws(t,this,s)}}var Es=xs;function Ss(t){return function(){return t}}var Ts=Ss,Ms=Mn?function(t,e){return Mn(t,"toString",{configurable:!0,enumerable:!1,value:Ts(e),writable:!0})}:_s,As=Ms,Cs=800,Ps=16,Ds=Date.now;function ks(t){var e=0,n=0;return function(){var r=Ds(),i=Ps-(r-n);if(n=r,i>0){if(++e>=Cs)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Ls=ks,Rs=Ls(As),Is=Rs;function js(t,e){return Is(Es(t,e,_s),t+"")}var Ns=js;function Bs(t,e,n){if(!Z(n))return!1;var r=typeof e;return!!("number"==r?$r(n)&&Qn(e,n.length):"string"==r&&e in n)&&Nt(n[e],t)}var Gs=Bs;function Vs(t){return Ns((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&&Gs(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 Us=Vs,Hs=Us((function(t,e,n){ms(t,e,n)})),zs=Hs,Fs="__lodash_hash_undefined__";function Ws(t){return this.__data__.set(t,Fs),this}var Ys=Ws;function Xs(t){return this.__data__.has(t)}var qs=Xs;function Zs(t){var e=-1,n=null==t?0:t.length;this.__data__=new yn;while(++e<n)this.add(t[e])}Zs.prototype.add=Zs.prototype.push=Ys,Zs.prototype.has=qs;var Ks=Zs;function $s(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 Qs=$s;function Js(t){return t!==t}var tu=Js;function eu(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var nu=eu;function ru(t,e,n){return e===e?nu(t,e,n):Qs(t,tu,n)}var iu=ru;function ou(t,e){var n=null==t?0:t.length;return!!n&&iu(t,e,0)>-1}var au=ou;function su(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 uu=su;function cu(t,e){return t.has(e)}var lu=cu;function hu(){}var fu=hu;function pu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var du=pu,vu=1/0,gu=Yi&&1/du(new Yi([,-0]))[1]==vu?function(t){return new Yi(t)}:fu,mu=gu,yu=200;function _u(t,e,n){var r=-1,i=au,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=uu;else if(o>=yu){var c=e?null:mu(t);if(c)return du(c);a=!1,i=lu,u=new Ks}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 bu=_u;function wu(t){return t&&t.length?bu(t):[]}var Ou=wu;function xu(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var Eu=xu;function Su(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=At(n),n=n===n?n:0),void 0!==e&&(e=At(e),e=e===e?e:0),Eu(At(t),e,n)}var Tu=Su,Mu=tt?tt.isConcatSpreadable:void 0;function Au(t){return Xn(t)||Wn(t)||!!(Mu&&t&&t[Mu])}var Cu=Au;function Pu(t,e,n,r,i){var o=-1,a=t.length;n||(n=Cu),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Pu(s,e-1,n,r,i):Mi(i,s):r||(i[i.length]=s)}return i}var Du=Pu;function ku(t){var e=null==t?0:t.length;return e?Du(t,1):[]}var Lu=ku;function Ru(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}var Iu=Ru,ju=1/0,Nu=tt?tt.prototype:void 0,Bu=Nu?Nu.toString:void 0;function Gu(t){if("string"==typeof t)return t;if(Xn(t))return Iu(t,Gu)+"";if(bt(t))return Bu?Bu.call(t):"";var e=t+"";return"0"==e&&1/t==-ju?"-0":e}var Vu=Gu;function Uu(t){return null==t?"":Vu(t)}var Hu=Uu;function zu(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}var Fu=zu;function Wu(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Fu(t,e,n)}var Yu=Wu,Xu="\\ud800-\\udfff",qu="\\u0300-\\u036f",Zu="\\ufe20-\\ufe2f",Ku="\\u20d0-\\u20ff",$u=qu+Zu+Ku,Qu="\\ufe0e\\ufe0f",Ju="\\u200d",tc=RegExp("["+Ju+Xu+$u+Qu+"]");function ec(t){return tc.test(t)}var nc=ec;function rc(t){return t.split("")}var ic=rc,oc="\\ud800-\\udfff",ac="\\u0300-\\u036f",sc="\\ufe20-\\ufe2f",uc="\\u20d0-\\u20ff",cc=ac+sc+uc,lc="\\ufe0e\\ufe0f",hc="["+oc+"]",fc="["+cc+"]",pc="\\ud83c[\\udffb-\\udfff]",dc="(?:"+fc+"|"+pc+")",vc="[^"+oc+"]",gc="(?:\\ud83c[\\udde6-\\uddff]){2}",mc="[\\ud800-\\udbff][\\udc00-\\udfff]",yc="\\u200d",_c=dc+"?",bc="["+lc+"]?",wc="(?:"+yc+"(?:"+[vc,gc,mc].join("|")+")"+bc+_c+")*",Oc=bc+_c+wc,xc="(?:"+[vc+fc+"?",fc,gc,mc,hc].join("|")+")",Ec=RegExp(pc+"(?="+pc+")|"+xc+Oc,"g");function Sc(t){return t.match(Ec)||[]}var Tc=Sc;function Mc(t){return nc(t)?Tc(t):ic(t)}var Ac=Mc;function Cc(t){return function(e){e=Hu(e);var n=nc(e)?Ac(e):void 0,r=n?n[0]:e.charAt(0),i=n?Yu(n,1).join(""):e.slice(1);return r[t]()+i}}var Pc=Cc,Dc=Pc("toUpperCase"),kc=Dc;function Lc(t){return kc(Hu(t).toLowerCase())}var Rc=Lc;function Ic(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}var jc=Ic;function Nc(t){return function(e){return null==t?void 0:t[e]}}var Bc=Nc,Gc={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Vc=Bc(Gc),Uc=Vc,Hc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zc="\\u0300-\\u036f",Fc="\\ufe20-\\ufe2f",Wc="\\u20d0-\\u20ff",Yc=zc+Fc+Wc,Xc="["+Yc+"]",qc=RegExp(Xc,"g");function Zc(t){return t=Hu(t),t&&t.replace(Hc,Uc).replace(qc,"")}var Kc=Zc,$c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Qc(t){return t.match($c)||[]}var Jc=Qc,tl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function el(t){return tl.test(t)}var nl=el,rl="\\ud800-\\udfff",il="\\u0300-\\u036f",ol="\\ufe20-\\ufe2f",al="\\u20d0-\\u20ff",sl=il+ol+al,ul="\\u2700-\\u27bf",cl="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",hl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fl="\\u2000-\\u206f",pl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dl="A-Z\\xc0-\\xd6\\xd8-\\xde",vl="\\ufe0e\\ufe0f",gl=ll+hl+fl+pl,ml="['’]",yl="["+gl+"]",_l="["+sl+"]",bl="\\d+",wl="["+ul+"]",Ol="["+cl+"]",xl="[^"+rl+gl+bl+ul+cl+dl+"]",El="\\ud83c[\\udffb-\\udfff]",Sl="(?:"+_l+"|"+El+")",Tl="[^"+rl+"]",Ml="(?:\\ud83c[\\udde6-\\uddff]){2}",Al="[\\ud800-\\udbff][\\udc00-\\udfff]",Cl="["+dl+"]",Pl="\\u200d",Dl="(?:"+Ol+"|"+xl+")",kl="(?:"+Cl+"|"+xl+")",Ll="(?:"+ml+"(?:d|ll|m|re|s|t|ve))?",Rl="(?:"+ml+"(?:D|LL|M|RE|S|T|VE))?",Il=Sl+"?",jl="["+vl+"]?",Nl="(?:"+Pl+"(?:"+[Tl,Ml,Al].join("|")+")"+jl+Il+")*",Bl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vl=jl+Il+Nl,Ul="(?:"+[wl,Ml,Al].join("|")+")"+Vl,Hl=RegExp([Cl+"?"+Ol+"+"+Ll+"(?="+[yl,Cl,"$"].join("|")+")",kl+"+"+Rl+"(?="+[yl,Cl+Dl,"$"].join("|")+")",Cl+"?"+Dl+"+"+Ll,Cl+"+"+Rl,Gl,Bl,bl,Ul].join("|"),"g");function zl(t){return t.match(Hl)||[]}var Fl=zl;function Wl(t,e,n){return t=Hu(t),e=n?void 0:e,void 0===e?nl(t)?Fl(t):Jc(t):t.match(e)||[]}var Yl=Wl,Xl="['’]",ql=RegExp(Xl,"g");function Zl(t){return function(e){return jc(Yl(Kc(e).replace(ql,"")),t,"")}}var Kl=Zl,$l=Kl((function(t,e,n){return e=e.toLowerCase(),t+(n?Rc(e):e)})),Ql=$l,Jl="[object Map]",th="[object Set]",eh=Object.prototype,nh=eh.hasOwnProperty;function rh(t){if(null==t)return!0;if($r(t)&&(Xn(t)||"string"==typeof t||"function"==typeof t.splice||Object(qn["a"])(t)||Rr(t)||Wn(t)))return!t.length;var e=so(t);if(e==Jl||e==th)return!t.size;if(Ur(t))return!Zr(t).length;for(var n in t)if(nh.call(t,n))return!1;return!0}var ih=rh;function oh(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var ah=oh,sh=1,uh=2;function ch(t,e,n,r,i,o){var a=n&sh,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,h=!0,f=n&uh?new Ks:void 0;o.set(t,e),o.set(e,t);while(++l<s){var p=t[l],d=e[l];if(r)var v=a?r(d,p,l,e,t,o):r(p,d,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!ah(e,(function(t,e){if(!lu(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)}))){h=!1;break}}else if(p!==d&&!i(p,d,n,r,o)){h=!1;break}}return o["delete"](t),o["delete"](e),h}var lh=ch;function hh(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var fh=hh,ph=1,dh=2,vh="[object Boolean]",gh="[object Date]",mh="[object Error]",yh="[object Map]",_h="[object Number]",bh="[object RegExp]",wh="[object Set]",Oh="[object String]",xh="[object Symbol]",Eh="[object ArrayBuffer]",Sh="[object DataView]",Th=tt?tt.prototype:void 0,Mh=Th?Th.valueOf:void 0;function Ah(t,e,n,r,i,o,a){switch(n){case Sh:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Eh:return!(t.byteLength!=e.byteLength||!o(new po(t),new po(e)));case vh:case gh:case _h:return Nt(+t,+e);case mh:return t.name==e.name&&t.message==e.message;case bh:case Oh:return t==e+"";case yh:var s=fh;case wh:var u=r&ph;if(s||(s=du),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=dh,a.set(t,e);var l=lh(s(t),s(e),r,i,o,a);return a["delete"](t),l;case xh:if(Mh)return Mh.call(t)==Mh.call(e)}return!1}var Ch=Ah,Ph=1,Dh=Object.prototype,kh=Dh.hasOwnProperty;function Lh(t,e,n,r,i,o){var a=n&Ph,s=Bi(t),u=s.length,c=Bi(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:kh.call(e,f)))return!1}var p=o.get(t);if(p&&o.get(e))return p==e;var d=!0;o.set(t,e),o.set(e,t);var v=a;while(++h<u){f=s[h];var g=t[f],m=e[f];if(r)var y=a?r(m,g,f,e,t,o):r(g,m,f,t,e,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){d=!1;break}v||(v="constructor"==f)}if(d&&!v){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),o["delete"](e),d}var Rh=Lh,Ih=1,jh="[object Arguments]",Nh="[object Array]",Bh="[object Object]",Gh=Object.prototype,Vh=Gh.hasOwnProperty;function Uh(t,e,n,r,i,o){var a=Xn(t),s=Xn(e),u=a?Nh:so(t),c=s?Nh:so(e);u=u==jh?Bh:u,c=c==jh?Bh:c;var l=u==Bh,h=c==Bh,f=u==c;if(f&&Object(qn["a"])(t)){if(!Object(qn["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new xn),a||Rr(t)?lh(t,e,n,r,i,o):Ch(t,e,u,n,r,i,o);if(!(n&Ih)){var p=l&&Vh.call(t,"__wrapped__"),d=h&&Vh.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new xn),i(v,g,n,r,o)}}return!!f&&(o||(o=new xn),Rh(t,e,n,r,i,o))}var Hh=Uh;function zh(t,e,n,r,i){return t===e||(null==t||null==e||!mt(t)&&!mt(e)?t!==t&&e!==e:Hh(t,e,n,r,zh,i))}var Fh=zh;function Wh(t,e){return Fh(t,e)}var Yh=Wh,Xh=1,qh=2;function Zh(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;t=Object(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<o){s=n[i];var u=s[0],c=t[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in t))return!1}else{var h=new xn;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?Fh(l,c,Xh|qh,r,h):f))return!1}}return!0}var Kh=Zh;function $h(t){return t===t&&!Z(t)}var Qh=$h;function Jh(t){var e=Jr(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,Qh(i)]}return e}var tf=Jh;function ef(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var nf=ef;function rf(t){var e=tf(t);return 1==e.length&&e[0][2]?nf(e[0][0],e[0][1]):function(n){return n===t||Kh(n,t,e)}}var of=rf,af=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sf=/^\w*$/;function uf(t,e){if(Xn(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!bt(t))||(sf.test(t)||!af.test(t)||null!=e&&t in Object(e))}var cf=uf,lf="Expected a function";function hf(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(lf);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(hf.Cache||yn),n}hf.Cache=yn;var ff=hf,pf=500;function df(t){var e=ff(t,(function(t){return n.size===pf&&n.clear(),t})),n=e.cache;return e}var vf=df,gf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mf=/\\(\\)?/g,yf=vf((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(gf,(function(t,n,r,i){e.push(r?i.replace(mf,"$1"):n||t)})),e})),_f=yf;function bf(t,e){return Xn(t)?t:cf(t,e)?[t]:_f(Hu(t))}var wf=bf,Of=1/0;function xf(t){if("string"==typeof t||bt(t))return t;var e=t+"";return"0"==e&&1/t==-Of?"-0":e}var Ef=xf;function Sf(t,e){e=wf(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Ef(e[n++])];return n&&n==r?t:void 0}var Tf=Sf;function Mf(t,e,n){var r=null==t?void 0:Tf(t,e);return void 0===r?n:r}var Af=Mf;function Cf(t,e){return null!=t&&e in Object(t)}var Pf=Cf;function Df(t,e,n){e=wf(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=Ef(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&er(i)&&Qn(a,i)&&(Xn(t)||Wn(t)))}var kf=Df;function Lf(t,e){return null!=t&&kf(t,e,Pf)}var Rf=Lf,If=1,jf=2;function Nf(t,e){return cf(t)&&Qh(e)?nf(Ef(t),e):function(n){var r=Af(n,t);return void 0===r&&r===e?Rf(n,t):Fh(e,r,If|jf)}}var Bf=Nf;function Gf(t){return function(e){return null==e?void 0:e[t]}}var Vf=Gf;function Uf(t){return function(e){return Tf(e,t)}}var Hf=Uf;function zf(t){return cf(t)?Vf(Ef(t)):Hf(t)}var Ff=zf;function Wf(t){return"function"==typeof t?t:null==t?_s:"object"==typeof t?Xn(t)?Bf(t[0],t[1]):of(t):Ff(t)}var Yf=Wf;function Xf(t,e){return t&&Ja(t,e,Jr)}var qf=Xf;function Zf(t,e){return function(n,r){if(null==n)return n;if(!$r(n))return t(n,r);var i=n.length,o=e?i:-1,a=Object(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var Kf=Zf,$f=Kf(qf),Qf=$f;function Jf(t,e){var n=-1,r=$r(t)?Array(t.length):[];return Qf(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var tp=Jf;function ep(t,e){var n=Xn(t)?Iu:tp;return n(t,Yf(e,3))}var np=ep,rp=1/0;function ip(t,e){return Du(np(t,e),rp)}var op=ip,ap=Kl((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),sp=ap;function up(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}var cp=up;function lp(t,e){var n;return Qf(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var hp=lp;function fp(t,e,n){var r=Xn(t)?ah:hp;return n&&Gs(t,e,n)&&(e=void 0),r(t,Yf(e,3))}var pp=fp,dp={},vp=null;if("undefined"!==typeof document){var gp=document.documentElement;"onmouseenter"in gp||(dp={mouseenter:"mouseover",mouseleave:"mouseout"})}function mp(t,e,n){return t=yp(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function yp(t,e,n){return function(r){var i=vp;vp=r;try{t.call(this,this.__data__,e,n)}finally{vp=i}}}function _p(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 bp(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 wp(t,e,n){var r=dp.hasOwnProperty(t.type)?mp:yp;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 Op=function(t,e,n){var r,i,o=_p(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?wp:bp,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 xp(t,e,n,r){var i=vp;t.sourceEvent=vp,vp=t;try{return e.apply(n,r)}finally{vp=i}}var Ep,Sp=function(){var t,e=vp;while(t=e.sourceEvent)e=t;return e},Tp=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]},Mp=function(t){var e=Sp();return e.changedTouches&&(e=e.changedTouches[0]),Tp(t,e)};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=Mp(n),clearTimeout(r),r=setTimeout((function(){t.apply(i,o)}),e)}}function n(e,n){e=t.clone(e);var r=Object.keys(n.axes||{});for(var i in 0===r.length&&delete e.axes,e.axes)if(r.includes(i)){var o=n.axes[i];(o["primary"]||o["secondary"])&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var a=o["mapsTo"];if(void 0===a||null===a){var s=o["scaleType"];void 0===s||null===s?o["mapsTo"]="value":s===D.TIME?o["mapsTo"]="date":s===D.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return t.merge(e,n)}function r(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function i(t){if(t){var e=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=t.getAttribute("transform").match(e);if(!n)return null;if(n[0]){var r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}}function o(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function a(t){var e=t.toString();return e.match(/[a-z]/i)?e:e+"px"}function s(t){return t[0].toUpperCase()+t.slice(1)}function u(t,e){var n=t/e.reduce((function(t,e){return t+e.value}),0)*100;return n%1!==0?parseFloat(n.toFixed(1)):n}function c(t,e,n){return n>t.length?t:e===C.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===C.FRONT_LINE?"..."+t.substr(-n):e===C.END_LINE?t.substr(0,n)+"...":void 0}function l(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 h(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 f(t){return t.each((function(){this.parentNode.appendChild(this)}))}function p(t,e,n){return n===P.VERTICAL?[t,e]:[e,t]}t.debounce=Lt,t.clone=Xa,t.merge=zs,t.removeArrayDuplicates=Ou,t.clamp=Tu,t.flatten=Lu,t.camelCase=Ql,t.isEmpty=ih,t.isEqual=Yh,t.flatMapDeep=op,t.kebabCase=sp,t.fromPairs=cp,t.some=pp,t.debounceWithD3MousePosition=e,t.mergeDefaultChartOptions=n,t.getDimensions=r,t.getTranslationValues=i,t.getTranformOffsets=o,t.formatWidthHeightValues=a,t.capitalizeFirstLetter=s,t.convertValueToPercentage=u,t.truncateLabel=c,t.arrayDifferences=l,t.getDuplicateValues=h,t.moveToFront=f,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(null===r[a]||void 0===r[a])return null;r=r[a]}return r}return null},t.flipSVGCoordinatesBasedOnOrientation=function(t,e){return e===P.HORIZONTAL?{y0:t.x0,y1:t.x1,x0:t.y0,x1:t.y1}:t},t.generateSVGPathString=function(e,n){var r=t.flipSVGCoordinatesBasedOnOrientation(e,n),i=r.x0,o=r.x1,a=r.y0,s=r.y1;return"M"+i+","+a+"L"+i+","+s+"L"+o+","+s+"L"+o+","+a+"L"+i+","+a},t.flipDomainAndRangeBasedOnOrientation=p,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(Ep||(Ep={}));var Ap,Cp=n("39ba"),Pp=n.n(Cp),Dp={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},kp={opacity:{unselected:0,selected:.4}},Lp={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},paddingRatio:.1},Rp={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8},checkbox:{radius:6.5,spaceAfter:4}},Ip={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},jp={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15}},Np={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}},Bp={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},Gp={default:{size:24}},Vp={horizontalOffset:10},Up={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}},Hp={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},zp={height:(Ap={},Ap[A.GRAPH_VIEW]=32,Ap[A.SLIDER_VIEW]=10,Ap),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},Fp={type:C.END_LINE,threshold:16,numCharacter:14},Wp={enabled:!0,position:k.BOTTOM,clickable:!0,truncation:Fp,alignment:L.LEFT,order:null},Yp={x:{enabled:!0,numberOfTicks:15},y:{enabled:!0,numberOfTicks:5}},Xp={enabled:!0},qp={enabled:!0,showTotal:!0,valueFormatter:function(t){return t.toLocaleString()},truncation:Fp},Zp={top:{visible:!0,includeZero:!0,truncation:Fp},bottom:{visible:!0,includeZero:!0,truncation:Fp},left:{visible:!0,includeZero:!0,truncation:Fp},right:{visible:!0,includeZero:!0,truncation:Fp}},Kp={addSpaceOnEdges:1,showDayName:!1,localeObject:Pp.a,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},$p={width:null,height:null,resizable:!0,tooltip:qp,legend:Wp,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}}},Qp=Ep.merge({},$p,{axes:Zp,timeScale:Kp,grid:Yp,ruler:Xp,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:A.GRAPH_VIEW}},toolbar:{enabled:!1,numberOfIcons:3,controls:[]}}),Jp=Ep.merge({},Qp,{bars:{maxWidth:16},timeScale:Ep.merge(Kp,{addSpaceOnEdges:1})}),td=Ep.merge({},Jp,{}),ed=Ep.merge({},Jp,{}),nd=Ep.merge({},Jp,{bars:Ep.merge({},Jp.bars,{dividerSize:1.5})}),rd=Ep.merge({},Qp,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),id=rd,od=Ep.merge({},rd,{points:{radius:3,filled:!1,enabled:!0}}),ad=Ep.merge({},od,{timeScale:Ep.merge(Kp,{addSpaceOnEdges:0})}),sd=ad,ud=Ep.merge({},Qp,{bubble:{radiusMapsTo:"radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2,enabled:!0},points:{filled:!0}}),cd=Ep.merge({},$p,{pie:{labels:{formatter:null},alignment:L.LEFT}}),ld=Ep.merge({},$p,{legend:{enabled:!1},gauge:{type:U.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},status:null,numberSpacing:10,deltaFontSize:function(t){return t/8},valueFontSize:function(t){return t/2.5},numberFormatter:function(t){return t.toFixed(2)%1!==0?t.toFixed(2).toLocaleString():t.toFixed().toLocaleString()},alignment:L.LEFT}}),hd=Ep.merge({},cd,{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()}},alignment:L.LEFT}}),fd=Ep.merge({},$p,{legend:{enabled:!1},meter:{height:8,statusBar:{percentageIndicator:{enabled:!0}}}}),pd=Ep.merge({},$p,{radar:{axes:{angle:"key",value:"value"},alignment:L.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),dd=Ep.merge({},Jp,{comboChartTypes:[]}),vd=Ep.merge({},$p,{data:Ep.merge($p.data,{groupMapsTo:"name"})}),gd={chart:$p,axisChart:Qp,simpleBarChart:td,groupedBarChart:ed,stackedBarChart:nd,bubbleChart:ud,lineChart:od,areaChart:ad,stackedAreaChart:sd,scatterChart:rd,lollipopChart:id,pieChart:cd,donutChart:hd,meterChart:fd,radarChart:pd,gaugeChart:ld,comboChart:dd,treemapChart:vd},md="$";function yd(){}function _d(t,e){var n=new yd;if(t instanceof yd)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}yd.prototype=_d.prototype={constructor:yd,has:function(t){return md+t in this},get:function(t){return this[md+t]},set:function(t,e){return this[md+t]=e,this},remove:function(t){var e=md+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===md&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===md&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===md&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===md&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===md&&++t;return t},empty:function(){for(var t in this)if(t[0]===md)return!1;return!0},each:function(t){for(var e in this)e[0]===md&&t(this[e],e.slice(1),this)}};var bd=_d;function wd(){}var Od=bd.prototype;function xd(t,e){var n=new wd;if(t instanceof wd)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}wd.prototype=xd.prototype={constructor:wd,has:Od.has,add:function(t){return t+="",this[md+t]=t,this},remove:Od.remove,clear:Od.clear,values:Od.keys,size:Od.size,empty:Od.empty,each:Od.each};var Ed=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Sd=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Td=function(t){return 1===t.length&&(t=Md(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 Md(t){return function(e,n){return Sd(t(e),n)}}var Ad=Td(Sd),Cd=Ad.right,Pd=(Ad.left,Cd);var Dd=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]},kd=Array.prototype,Ld=(kd.slice,kd.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}),Rd=Math.sqrt(50),Id=Math.sqrt(10),jd=Math.sqrt(2),Nd=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=Bd(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 Bd(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>=Rd?10:o>=Id?5:o>=jd?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Rd?10:o>=Id?5:o>=jd?2:1)}function Gd(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>=Rd?i*=10:o>=Id?i*=5:o>=jd&&(i*=2),e<t?-i:i}var Vd=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])&&n>r&&(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))&&n>r&&(r=n)}return r},Ud=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},Hd=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)while(++i<r)(n=+t[i])&&(o+=n);else while(++i<r)(n=+e(t[i],i,t))&&(o+=n);return o};function zd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Fd=Array.prototype,Wd=Fd.map,Yd=Fd.slice,Xd={name:"implicit"};function qd(){var t=bd(),e=[],n=[],r=Xd;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==Xd)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=bd();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=Yd.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return qd(e,n).unknown(r)},zd.apply(i,arguments),i}function Zd(){var t,e,n=qd().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=Ld(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 Zd(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},zd.apply(l(),arguments)}var Kd=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function $d(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Qd(){}var Jd=.7,tv=1/Jd,ev="\\s*([+-]?\\d+)\\s*",nv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",iv=/^#([0-9a-f]{3,8})$/,ov=new RegExp("^rgb\\("+[ev,ev,ev]+"\\)$"),av=new RegExp("^rgb\\("+[rv,rv,rv]+"\\)$"),sv=new RegExp("^rgba\\("+[ev,ev,ev,nv]+"\\)$"),uv=new RegExp("^rgba\\("+[rv,rv,rv,nv]+"\\)$"),cv=new RegExp("^hsl\\("+[nv,rv,rv]+"\\)$"),lv=new RegExp("^hsla\\("+[nv,rv,rv,nv]+"\\)$"),hv={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 fv(){return this.rgb().formatHex()}function pv(){return Sv(this).formatHsl()}function dv(){return this.rgb().formatRgb()}function vv(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=iv.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?gv(e):3===n?new bv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new bv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new bv(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=ov.exec(t))?new bv(e[1],e[2],e[3],1):(e=av.exec(t))?new bv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=sv.exec(t))?mv(e[1],e[2],e[3],e[4]):(e=uv.exec(t))?mv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cv.exec(t))?Ev(e[1],e[2]/100,e[3]/100,1):(e=lv.exec(t))?Ev(e[1],e[2]/100,e[3]/100,e[4]):hv.hasOwnProperty(t)?gv(hv[t]):"transparent"===t?new bv(NaN,NaN,NaN,0):null}function gv(t){return new bv(t>>16&255,t>>8&255,255&t,1)}function mv(t,e,n,r){return r<=0&&(t=e=n=NaN),new bv(t,e,n,r)}function yv(t){return t instanceof Qd||(t=vv(t)),t?(t=t.rgb(),new bv(t.r,t.g,t.b,t.opacity)):new bv}function _v(t,e,n,r){return 1===arguments.length?yv(t):new bv(t,e,n,null==r?1:r)}function bv(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function wv(){return"#"+xv(this.r)+xv(this.g)+xv(this.b)}function Ov(){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 xv(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ev(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Mv(t,e,n,r)}function Sv(t){if(t instanceof Mv)return new Mv(t.h,t.s,t.l,t.opacity);if(t instanceof Qd||(t=vv(t)),!t)return new Mv;if(t instanceof Mv)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 Mv(a,s,u,t.opacity)}function Tv(t,e,n,r){return 1===arguments.length?Sv(t):new Mv(t,e,n,null==r?1:r)}function Mv(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Av(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 Cv(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}Kd(Qd,vv,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:fv,formatHex:fv,formatHsl:pv,formatRgb:dv,toString:dv}),Kd(bv,_v,$d(Qd,{brighter:function(t){return t=null==t?tv:Math.pow(tv,t),new bv(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Jd:Math.pow(Jd,t),new bv(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:wv,formatHex:wv,formatRgb:Ov,toString:Ov})),Kd(Mv,Tv,$d(Qd,{brighter:function(t){return t=null==t?tv:Math.pow(tv,t),new Mv(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Jd:Math.pow(Jd,t),new Mv(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 bv(Av(t>=240?t-240:t+120,i,r),Av(t,i,r),Av(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 Pv=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 Cv((n-r/e)*e,a,i,o,s)}},Dv=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 Cv((n-r/e)*e,i,o,a,s)}},kv=function(t){return function(){return t}};function Lv(t,e){return function(n){return t+n*e}}function Rv(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 Iv(t){return 1===(t=+t)?jv:function(e,n){return n-e?Rv(e,n,t):kv(isNaN(e)?n:e)}}function jv(t,e){var n=e-t;return n?Lv(t,n):kv(isNaN(t)?e:t)}var Nv=function t(e){var n=Iv(e);function r(t,e){var r=n((t=_v(t)).r,(e=_v(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=jv(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 Bv(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=_v(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+""}}}Bv(Pv),Bv(Dv);var Gv=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function Vv(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Uv(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]=Kv(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}}var Hv=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},zv=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Fv=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]=Kv(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Wv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yv=new RegExp(Wv.source,"g");function Xv(t){return function(){return t}}function qv(t){return function(e){return t(e)+""}}var Zv=function(t,e){var n,r,i,o=Wv.lastIndex=Yv.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=Wv.exec(t))&&(r=Yv.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:zv(n,r)})),o=Yv.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?qv(u[0].x):Xv(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("")})},Kv=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?kv(e):("number"===r?zv:"string"===r?(n=vv(e))?(e=n,Nv):Zv:e instanceof vv?Nv:e instanceof Date?Hv:Vv(e)?Gv:Array.isArray(e)?Uv:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Fv:zv)(t,e)},$v=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},Qv=function(t){return function(){return t}},Jv=function(t){return+t},tg=[0,1];function eg(t){return t}function ng(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Qv(isNaN(e)?NaN:.5)}function rg(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 ig(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=ng(i,r),o=n(a,o)):(r=ng(r,i),o=n(o,a)),function(t){return o(r(t))}}function og(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]=ng(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Pd(t,e,1,r)-1;return o[n](i[n](e))}}function ag(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function sg(){var t,e,n,r,i,o,a=tg,s=tg,u=Kv,c=eg;function l(){return r=Math.min(a.length,s.length)>2?og:ig,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),zv)))(n)))},h.domain=function(t){return arguments.length?(a=Wd.call(t,Jv),c===eg||(c=rg(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=Yd.call(t),l()):s.slice()},h.rangeRound=function(t){return s=Yd.call(t),u=$v,l()},h.clamp=function(t){return arguments.length?(c=t?rg(a):eg,h):c!==eg},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 ug(t,e){return sg()(t,e)}var cg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function lg(t){if(!(e=cg.exec(t)))throw new Error("invalid format: "+t);var e;return new hg({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 hg(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+""}lg.prototype=hg.prototype,hg.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 fg,pg,dg,vg,gg=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)]},mg=function(t){return t=gg(Math.abs(t)),t?t[1]:NaN},yg=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mg(e)/3)))-mg(Math.abs(t)))},_g=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)}},bg=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},wg=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(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(e+1):t},Og=function(t,e){var n=gg(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(fg=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")+gg(t,Math.max(0,e+o-1))[0]},xg=function(t,e){var n=gg(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")},Eg={"%":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 xg(100*t,e)},r:xg,s:Og,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Sg=function(t){return t},Tg=Array.prototype.map,Mg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Ag=function(t){var e=void 0===t.grouping||void 0===t.thousands?Sg:_g(Tg.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?Sg:bg(Tg.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=lg(t);var c=t.fill,l=t.align,h=t.sign,f=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):Eg[y]||(void 0===g&&(g=12),m=!0,y="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var _="$"===f?n:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===f?r:/[%p]/.test(y)?a:"",w=Eg[y],O=/[defgprs%]/.test(y);function x(t){var n,r,a,f=_,x=b;if("c"===y)x=w(t)+x,t="";else{t=+t;var E=t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),m&&(t=wg(t)),E&&0===+t&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,x=("s"===y?Mg[8+fg/3]:"")+x+(E&&"("===h?")":""),O){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){x=(46===a?i+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var S=f.length+t.length+x.length,T=S<d?new Array(d-S+1).join(c):"";switch(v&&p&&(t=e(T+t,T.length?d-x.length:1/0),T=""),l){case"<":t=f+t+x+T;break;case"=":t=f+T+t+x;break;case"^":t=T.slice(0,S=T.length>>1)+f+t+x+T.slice(S);break;default:t=T+f+t+x;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return t+""},x}function l(t,e){var n=c((t=lg(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(mg(e)/3))),i=Math.pow(10,-r),o=Mg[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function Cg(t){return pg=Ag(t),dg=pg.format,vg=pg.formatPrefix,pg}Cg({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Pg=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,mg(e)-mg(t))+1},Dg=function(t){return Math.max(0,-mg(Math.abs(t)))},kg=function(t,e,n,r){var i,o=Gd(t,e,n);switch(r=lg(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=yg(o,a))||(r.precision=i),vg(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Pg(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Dg(o))||(r.precision=i-2*("%"===r.type));break}return dg(r)};function Lg(t){var e=t.domain;return t.ticks=function(t){var n=e();return Nd(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return kg(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=Bd(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=Bd(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=Bd(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 Rg(){var t=ug(eg,eg);return t.copy=function(){return ag(t,Rg())},zd.apply(t,arguments),Lg(t)}var Ig=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 jg(t){return Math.log(t)}function Ng(t){return Math.exp(t)}function Bg(t){return-Math.log(-t)}function Gg(t){return-Math.exp(-t)}function Vg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ug(t){return 10===t?Vg:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function Hg(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 zg(t){return function(e){return-t(-e)}}function Fg(t){var e,n,r=t(jg,Ng),i=r.domain,o=10;function a(){return e=Hg(o),n=Ug(o),i()[0]<0?(e=zg(e),n=zg(n),t(Bg,Gg)):t(jg,Ng),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=Nd(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=dg(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(Ig(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Wg(){var t=Fg(sg()).domain([1,10]);return t.copy=function(){return ag(t,Wg()).base(t.base())},zd.apply(t,arguments),t}var Yg=new Date,Xg=new Date;function qg(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 qg((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 Yg.setTime(+e),Xg.setTime(+r),t(Yg),t(Xg),Math.floor(n(Yg,Xg))},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 Zg=qg((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()}));Zg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qg((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 Kg=Zg,$g=(Zg.range,qg((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()}))),Qg=$g,Jg=($g.range,1e3),tm=6e4,em=36e5,nm=864e5,rm=6048e5;function im(t){return qg((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())*tm)/rm}))}var om=im(0),am=im(1),sm=im(2),um=im(3),cm=im(4),lm=im(5),hm=im(6),fm=(om.range,am.range,sm.range,um.range,cm.range,lm.range,hm.range,qg((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())*tm)/nm}),(function(t){return t.getDate()-1}))),pm=fm,dm=(fm.range,qg((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jg-t.getMinutes()*tm)}),(function(t,e){t.setTime(+t+e*em)}),(function(t,e){return(e-t)/em}),(function(t){return t.getHours()}))),vm=dm,gm=(dm.range,qg((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jg)}),(function(t,e){t.setTime(+t+e*tm)}),(function(t,e){return(e-t)/tm}),(function(t){return t.getMinutes()}))),mm=gm,ym=(gm.range,qg((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Jg)}),(function(t,e){return(e-t)/Jg}),(function(t){return t.getUTCSeconds()}))),_m=ym,bm=(ym.range,qg((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));bm.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?qg((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):bm:null};var wm=bm;bm.range;function Om(t){return qg((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)/rm}))}var xm=Om(0),Em=Om(1),Sm=Om(2),Tm=Om(3),Mm=Om(4),Am=Om(5),Cm=Om(6),Pm=(xm.range,Em.range,Sm.range,Tm.range,Mm.range,Am.range,Cm.range,qg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/nm}),(function(t){return t.getUTCDate()-1}))),Dm=Pm,km=(Pm.range,qg((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()})));km.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qg((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 Lm=km;km.range;function Rm(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 Im(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 jm(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Nm(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=Ym(i),l=Xm(i),h=Ym(o),f=Xm(o),p=Ym(a),d=Xm(a),v=Ym(s),g=Xm(s),m=Ym(u),y=Xm(u),_={a:L,A:R,b:I,B:j,c:null,d:dy,e:dy,f:_y,H:vy,I:gy,j:my,L:yy,m:by,M:wy,p:N,q:B,Q:Zy,s:Ky,S:Oy,u:xy,U:Ey,V:Sy,w:Ty,W:My,x:null,X:null,y:Ay,Y:Cy,Z:Py,"%":qy},b={a:G,A:V,b:U,B:H,c:null,d:Dy,e:Dy,f:jy,H:ky,I:Ly,j:Ry,L:Iy,m:Ny,M:By,p:z,q:F,Q:Zy,s:Ky,S:Gy,u:Vy,U:Uy,V:Hy,w:zy,W:Fy,x:null,X:null,y:Wy,Y:Yy,Z:Xy,"%":qy},w={a:T,A:M,b:A,B:C,c:P,d:iy,e:iy,f:ly,H:ay,I:ay,j:oy,L:cy,m:ry,M:sy,p:S,q:ny,Q:fy,s:py,S:uy,u:Zm,U:Km,V:$m,w:qm,W:Qm,x:D,X:k,y:ty,Y:Jm,Z:ey,"%":hy};function O(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=Vm[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 x(t,e){return function(n){var r,i,o=jm(1900,void 0,1),a=E(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=Im(jm(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?Em.ceil(r):Em(r),r=Dm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=Rm(jm(o.y,0,1)),i=r.getDay(),r=i>4||0===i?am.ceil(r):am(r),r=pm.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?Im(jm(o.y,0,1)).getUTCDay():Rm(jm(o.y,0,1)).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,Im(o)):Rm(o)}}function E(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=w[i in Vm?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function S(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function T(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1}function M(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=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1}function C(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1}function P(t,n,r){return E(t,e,n,r)}function D(t,e,r){return E(t,n,e,r)}function k(t,e,n){return E(t,r,e,n)}function L(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function j(t){return s[t.getMonth()]}function N(t){return i[+(t.getHours()>=12)]}function B(t){return 1+~~(t.getMonth()/3)}function G(t){return a[t.getUTCDay()]}function V(t){return o[t.getUTCDay()]}function U(t){return u[t.getUTCMonth()]}function H(t){return s[t.getUTCMonth()]}function z(t){return i[+(t.getUTCHours()>=12)]}function F(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=O(n,_),_.X=O(r,_),_.c=O(e,_),b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),{format:function(t){var e=O(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=x(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=x(t+="",!0);return e.toString=function(){return t},e}})}var Bm,Gm,Vm={"-":"",_:" ",0:"0"},Um=/^\s*\d+/,Hm=/^%/,zm=/[\\^$*+?|[\]().{}]/g;function Fm(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 Wm(t){return t.replace(zm,"\\$&")}function Ym(t){return new RegExp("^(?:"+t.map(Wm).join("|")+")","i")}function Xm(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function qm(t,e,n){var r=Um.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Zm(t,e,n){var r=Um.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Km(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function $m(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Qm(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Jm(t,e,n){var r=Um.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ty(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ey(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 ny(t,e,n){var r=Um.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ry(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function iy(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function oy(t,e,n){var r=Um.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ay(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function sy(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function uy(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function cy(t,e,n){var r=Um.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ly(t,e,n){var r=Um.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hy(t,e,n){var r=Hm.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function fy(t,e,n){var r=Um.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function py(t,e,n){var r=Um.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function dy(t,e){return Fm(t.getDate(),e,2)}function vy(t,e){return Fm(t.getHours(),e,2)}function gy(t,e){return Fm(t.getHours()%12||12,e,2)}function my(t,e){return Fm(1+pm.count(Kg(t),t),e,3)}function yy(t,e){return Fm(t.getMilliseconds(),e,3)}function _y(t,e){return yy(t,e)+"000"}function by(t,e){return Fm(t.getMonth()+1,e,2)}function wy(t,e){return Fm(t.getMinutes(),e,2)}function Oy(t,e){return Fm(t.getSeconds(),e,2)}function xy(t){var e=t.getDay();return 0===e?7:e}function Ey(t,e){return Fm(om.count(Kg(t)-1,t),e,2)}function Sy(t,e){var n=t.getDay();return t=n>=4||0===n?cm(t):cm.ceil(t),Fm(cm.count(Kg(t),t)+(4===Kg(t).getDay()),e,2)}function Ty(t){return t.getDay()}function My(t,e){return Fm(am.count(Kg(t)-1,t),e,2)}function Ay(t,e){return Fm(t.getFullYear()%100,e,2)}function Cy(t,e){return Fm(t.getFullYear()%1e4,e,4)}function Py(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Fm(e/60|0,"0",2)+Fm(e%60,"0",2)}function Dy(t,e){return Fm(t.getUTCDate(),e,2)}function ky(t,e){return Fm(t.getUTCHours(),e,2)}function Ly(t,e){return Fm(t.getUTCHours()%12||12,e,2)}function Ry(t,e){return Fm(1+Dm.count(Lm(t),t),e,3)}function Iy(t,e){return Fm(t.getUTCMilliseconds(),e,3)}function jy(t,e){return Iy(t,e)+"000"}function Ny(t,e){return Fm(t.getUTCMonth()+1,e,2)}function By(t,e){return Fm(t.getUTCMinutes(),e,2)}function Gy(t,e){return Fm(t.getUTCSeconds(),e,2)}function Vy(t){var e=t.getUTCDay();return 0===e?7:e}function Uy(t,e){return Fm(xm.count(Lm(t)-1,t),e,2)}function Hy(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Mm(t):Mm.ceil(t),Fm(Mm.count(Lm(t),t)+(4===Lm(t).getUTCDay()),e,2)}function zy(t){return t.getUTCDay()}function Fy(t,e){return Fm(Em.count(Lm(t)-1,t),e,2)}function Wy(t,e){return Fm(t.getUTCFullYear()%100,e,2)}function Yy(t,e){return Fm(t.getUTCFullYear()%1e4,e,4)}function Xy(){return"+0000"}function qy(){return"%"}function Zy(t){return+t}function Ky(t){return Math.floor(+t/1e3)}function $y(t){return Bm=Nm(t),Gm=Bm.format,Bm.parse,Bm.utcFormat,Bm.utcParse,Bm}$y({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 Qy=1e3,Jy=60*Qy,t_=60*Jy,e_=24*t_,n_=7*e_,r_=30*e_,i_=365*e_;function o_(t){return new Date(t)}function a_(t){return t instanceof Date?+t:+new Date(+t)}function s_(t,e,n,r,i,o,a,s,u){var c=ug(eg,eg),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),m=u("%b %d"),y=u("%B"),_=u("%Y"),b=[[a,1,Qy],[a,5,5*Qy],[a,15,15*Qy],[a,30,30*Qy],[o,1,Jy],[o,5,5*Jy],[o,15,15*Jy],[o,30,30*Jy],[i,1,t_],[i,3,3*t_],[i,6,6*t_],[i,12,12*t_],[r,1,e_],[r,2,2*e_],[n,1,n_],[e,1,r_],[e,3,3*r_],[t,1,i_]];function w(s){return(a(s)<s?f:o(s)<s?p:i(s)<s?d:r(s)<s?v:e(s)<s?n(s)<s?g:m:t(s)<s?y:_)(s)}function O(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=Td((function(t){return t[2]})).right(b,o);a===b.length?(i=Gd(n/i_,r/i_,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(Gd(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(Wd.call(t,a_)):h().map(o_)},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=O(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?w:u(e)},c.nice=function(t,e){var n=h();return(t=O(t,n[0],n[n.length-1],e))?h(Ig(n,t)):c},c.copy=function(){return ag(c,s_(t,e,n,r,i,o,a,s,u))},c}var u_=function(){return zd.apply(s_(Kg,Qg,om,pm,vm,mm,_m,wm,Gm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},c_=qg((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()})),l_=(c_.range,qg((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*em)}),(function(t,e){return(e-t)/em}),(function(t){return t.getUTCHours()}))),h_=(l_.range,qg((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*tm)}),(function(t,e){return(e-t)/tm}),(function(t){return t.getUTCMinutes()})));h_.range;var f_=Array.prototype.slice,p_=function(t){return function(){return t}},d_=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]},v_=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function g_(t,e){return t[e]}var m_=function(){var t=p_([]),e=v_,n=d_,r=g_;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:p_(f_.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:p_(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?v_:"function"===typeof t?t:p_(f_.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?d_:t,i):n},i},y_=function(){return y_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},y_.apply(this,arguments)},__=function(){function t(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}return t.prototype.getAllDataFromDomain=function(t){if(!this.getData())return null;var e=this.getOptions(),n=this.getData(),r=this.getDataGroups(),i=Ep.getProperty(e,"data").groupMapsTo,o=Ep.getProperty(e,"axes");return t&&(n=n.filter((function(e){return t.includes(e.group)}))),o&&Object.keys(o).forEach((function(t){var e=o[t].mapsTo,r=o[t].scaleType;if(r!==D.LINEAR&&r!==D.LOG||(n=n.map((function(t){var n;return y_(y_({},t),(n={},n[e]=Number(t[e]),n))}))),e&&o[t].domain)if(r===D.LABELS)n=n.filter((function(n){return o[t].domain.includes(n[e])}));else{var i=o[t].domain,a=i[0],s=i[1];n=n.filter((function(t){return t[e]>=a&&t[e]<=s}))}})),n.filter((function(t){return r.find((function(e){return e.name===t[i]}))}))},t.prototype.getDisplayData=function(t){if(!this.get("data"))return null;var e=Rp.items.status.ACTIVE,n=this.getDataGroups(t),r=this.getOptions().data.groupMapsTo,i=this.getAllDataFromDomain(t);return i.filter((function(t){return n.find((function(n){return n.name===t[r]&&n.status===e}))}))},t.prototype.getData=function(){return this.get("data")},t.prototype.isDataEmpty=function(){return!this.getData().length},t.prototype.setData=function(t){var e=this.sanitize(Ep.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=Ep.getProperty(this.getOptions(),"data","loading");return e?[]:t?this.get("dataGroups").filter((function(e){return t.includes(e.name)})):this.get("dataGroups")},t.prototype.getActiveDataGroups=function(t){var e=Rp.items.status.ACTIVE;return this.getDataGroups(t).filter((function(t){return t.status===e}))},t.prototype.getDataGroupNames=function(t){var e=this.getDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(t){var e=this.getActiveDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getGroupedData=function(t){var e=this.getDisplayData(t),n={},r=this.getOptions().data.groupMapsTo;return e.map((function(t){var e=t[r];null!==n[e]&&void 0!==n[e]?n[e].push(t):n[e]=[t]})),Object.keys(n).map((function(t){return{name:t,data:n[t]}}))},t.prototype.getDataValuesGroupedByKeys=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getDisplayData(t),o=bd(i,(function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]})).keys(),a=this.services.cartesianScales.domainAxisPosition,s=n.axes[a].scaleType;s===D.TIME?o.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):s!==D.LOG&&s!==D.LINEAR||o.sort((function(t,e){return t-e}));var u=this.getDataGroupNames();return o.map((function(t){var n={sharedStackKey:t};return u.forEach((function(o){var a=i.find((function(n){var i=e.services.cartesianScales.getDomainIdentifier(n);return n[r]===o&&n[i].toString()===t})),s=e.services.cartesianScales.getRangeIdentifier(n);n[o]=a?a[s]:null})),n}))},t.prototype.getStackedData=function(t){var e=t.percentage,n=void 0!==e&&e,r=t.groups,i=void 0===r?null:r,o=this.getOptions(),a=o.data.groupMapsTo,s=this.getDataGroupNames(i),u=this.getDataValuesGroupedByKeys(i);if(n){var c=Ep.fromPairs(u.map((function(t){return[t.sharedStackKey,0]})));u.forEach((function(t){s.forEach((function(e){c[t.sharedStackKey]+=t[e]}))})),u.forEach((function(t){s.forEach((function(e){c[t.sharedStackKey]?t[e]=t[e]/c[t.sharedStackKey]*100:t[e]=0}))}))}return m_().keys(s)(u).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var r=t[n];return r[a]=s[e],r}))}))},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){this.state=Object.assign({},this.state,t);var n=Object.assign({skipUpdate:!1,animate:!0},e);n.skipUpdate||this.update(n.animate)},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){this.set({options:Ep.merge(this.getOptions(),t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(X.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=Rp.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.getDataGroups(),o=i.some((function(t){return t.status===r})),a=i.filter((function(t){return t.status===n}));if(o)if(1===a.length&&a[0].name===t)i.forEach((function(t,e){i[e].status=n}));else{var s=i.findIndex((function(e){return e.name===t}));i[s].status=i[s].status===r?n:r}else i.forEach((function(e,o){i[o].status=e.name===t?n:r}));var u=i.filter((function(t){return t.status===n})),c=this.getOptions(),l=i.some((function(t){return t.status===r}));c.data.selectedGroups=l?u.map((function(t){return t.name})):[],this.services.events.dispatchEvent(X.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})},t.prototype.getIsFilled=function(t,e,n,r){var i=this.getOptions();return i.getIsFilled?i.getIsFilled(t,e,n,r):r},t.prototype.getFillColor=function(t,e,n){var r=this.getOptions(),i=Ep.getProperty(this.colorScale,t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions(),i=Ep.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=Ep.getProperty(this.getOptions(),"color","scale"),e=this.getDataGroups();return null!=t&&0!=Object.keys(t).length&&e.some((function(e){return Object.keys(t).includes(e.name)}))},t.prototype.getColorClassName=function(t){var e=this.colorClassNames(t.dataGroupName),n=t.originalClassName;return t.classNameTypes.forEach((function(r){return n=t.originalClassName?n+" "+r+"-"+e:r+"-"+e})),n},t.prototype.getStatus=function(){return null},t.prototype.getAllDataGroupsNames=function(){return this.allDataGroups},t.prototype.transformToTabularData=function(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var e=[],n=t.datasets,r=t.labels;return n.forEach((function(t){t.data.forEach((function(n,i){var o,a=Ep.getProperty(t,"label");if(null===a){var s=Ep.getProperty(r,i);o=s||"Ungrouped"}else o=a;var u={group:o,key:r[i]};isNaN(n)?(u["value"]=n.value,u["date"]=n.date):u["value"]=n,e.push(u)}))})),e},t.prototype.getTabularData=function(t){return Array.isArray(t)?t:this.transformToTabularData(t)},t.prototype.sanitize=function(t){return t=this.getTabularData(t),t},t.prototype.updateAllDataGroups=function(){var t=this;this.allDataGroups?this.getDataGroupNames().forEach((function(e){-1===t.allDataGroups.indexOf(e)&&t.allDataGroups.push(e)})):this.allDataGroups=this.getDataGroupNames()},t.prototype.generateDataGroups=function(t){var e=this.getOptions().data.groupMapsTo,n=Rp.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=bd(t,(function(t){return t[e]})).keys();if(o.data.selectedGroups.length){var s=o.data.selectedGroups.every((function(t){return a.includes(t)}));s||(o.data.selectedGroups=[])}var u=function(t){return!o.data.selectedGroups.length||o.data.selectedGroups.includes(t)?r:i};return a.map((function(t){return{name:t,status:u(t)}}))},t.prototype.setCustomColorScale=function(){var t=this;if(this.isUserProvidedColorScaleValid()){var e=this.getOptions(),n=Ep.getProperty(e,"color","scale");Object.keys(n).forEach((function(e){t.allDataGroups.includes(e)||console.warn('"'+e+'" does not exist in data groups.')}));var r=this.allDataGroups.filter((function(t){return n[t]}));r.forEach((function(e){return t.colorScale[e]=n[e]}))}},t.prototype.setColorClassNames=function(){var t=Ep.getProperty(this.getOptions(),"color","pairing"),e=Ep.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=Ep.getProperty(t,"option"),r=Dp.pairingOptions,i=e>5?14:e;n=n<=r[i+"-color"]?n:1;var o=this.allDataGroups.map((function(t,e){return i+"-"+n+"-"+(e%14+1)}));this.colorClassNames=qd().range(o).domain(this.allDataGroups)},t}(),b_=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}();function w_(){}var O_=function(t){return null==t?w_:function(){return this.querySelector(t)}},x_=function(t){"function"!==typeof t&&(t=O_(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 Jb(r,this._parents)};function E_(){return[]}var S_=function(t){return null==t?E_:function(){return this.querySelectorAll(t)}},T_=function(t){"function"!==typeof t&&(t=S_(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 Jb(r,i)},M_=function(t){return function(){return this.matches(t)}},A_=function(t){"function"!==typeof t&&(t=M_(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 Jb(r,this._parents)},C_=function(t){return new Array(t.length)},P_=function(){return new Jb(this._enter||this._groups.map(C_),this._parents)};function D_(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}D_.prototype={constructor:D_,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 k_=function(t){return function(){return t}},L_="$";function R_(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 D_(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function I_(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=L_+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=L_+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new D_(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var j_=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?I_:R_,r=this._parents,i=this._groups;"function"!==typeof t&&(t=k_(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),g=a[c]=new Array(d),m=u[c]=new Array(f);n(l,h,v,g,m,p,e);for(var y,_,b=0,w=0;b<d;++b)if(y=v[b]){b>=w&&(w=b+1);while(!(_=g[w])&&++w<d);y._next=_||null}}return a=new Jb(a,r),a._enter=s,a._exit=u,a},N_=function(){return new Jb(this._exit||this._groups.map(C_),this._parents)},B_=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},G_=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 Jb(a,this._parents)},V_=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},U_=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=H_);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 Jb(i,this._parents).order()};function H_(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var z_=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},F_=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},W_=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},Y_=function(){var t=0;return this.each((function(){++t})),t},X_=function(){return!this.node()},q_=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},Z_="http://www.w3.org/1999/xhtml",K_={svg:"http://www.w3.org/2000/svg",xhtml:Z_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},$_=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),K_.hasOwnProperty(e)?{space:K_[e],local:t}:t};function Q_(t){return function(){this.removeAttribute(t)}}function J_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tb(t,e){return function(){this.setAttribute(t,e)}}function eb(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function nb(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function rb(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 ib=function(t,e){var n=$_(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?J_:Q_:"function"===typeof e?n.local?rb:nb:n.local?eb:tb)(n,e))},ob=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function ab(t){return function(){this.style.removeProperty(t)}}function sb(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ub(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var cb=function(t,e,n){return arguments.length>1?this.each((null==e?ab:"function"===typeof e?ub:sb)(t,e,null==n?"":n)):lb(this.node(),t)};function lb(t,e){return t.style.getPropertyValue(e)||ob(t).getComputedStyle(t,null).getPropertyValue(e)}function hb(t){return function(){delete this[t]}}function fb(t,e){return function(){this[t]=e}}function pb(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var db=function(t,e){return arguments.length>1?this.each((null==e?hb:"function"===typeof e?pb:fb)(t,e)):this.node()[t]};function vb(t){return t.trim().split(/^|\s+/)}function gb(t){return t.classList||new mb(t)}function mb(t){this._node=t,this._names=vb(t.getAttribute("class")||"")}function yb(t,e){var n=gb(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function _b(t,e){var n=gb(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function bb(t){return function(){yb(this,t)}}function wb(t){return function(){_b(this,t)}}function Ob(t,e){return function(){(e.apply(this,arguments)?yb:_b)(this,t)}}mb.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 xb=function(t,e){var n=vb(t+"");if(arguments.length<2){var r=gb(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?Ob:e?bb:wb)(n,e))};function Eb(){this.textContent=""}function Sb(t){return function(){this.textContent=t}}function Tb(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var Mb=function(t){return arguments.length?this.each(null==t?Eb:("function"===typeof t?Tb:Sb)(t)):this.node().textContent};function Ab(){this.innerHTML=""}function Cb(t){return function(){this.innerHTML=t}}function Pb(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var Db=function(t){return arguments.length?this.each(null==t?Ab:("function"===typeof t?Pb:Cb)(t)):this.node().innerHTML};function kb(){this.nextSibling&&this.parentNode.appendChild(this)}var Lb=function(){return this.each(kb)};function Rb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var Ib=function(){return this.each(Rb)};function jb(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Z_&&e.documentElement.namespaceURI===Z_?e.createElement(t):e.createElementNS(n,t)}}function Nb(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Bb=function(t){var e=$_(t);return(e.local?Nb:jb)(e)},Gb=function(t){var e="function"===typeof t?t:Bb(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function Vb(){return null}var Ub=function(t,e){var n="function"===typeof t?t:Bb(t),r=null==e?Vb:"function"===typeof e?e:O_(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function Hb(){var t=this.parentNode;t&&t.removeChild(this)}var zb=function(){return this.each(Hb)};function Fb(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wb(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Yb=function(t){return this.select(t?Wb:Fb)},Xb=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function qb(t,e,n){var r=ob(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 Zb(t,e){return function(){return qb(this,t,e)}}function Kb(t,e){return function(){return qb(this,t,e.apply(this,arguments))}}var $b=function(t,e){return this.each(("function"===typeof e?Kb:Zb)(t,e))},Qb=[null];function Jb(t,e){this._groups=t,this._parents=e}function tw(){return new Jb([[document.documentElement]],Qb)}Jb.prototype=tw.prototype={constructor:Jb,select:x_,selectAll:T_,filter:A_,data:j_,enter:P_,exit:N_,join:B_,merge:G_,order:V_,sort:U_,call:z_,nodes:F_,node:W_,size:Y_,empty:X_,each:q_,attr:ib,style:cb,property:db,classed:xb,text:Mb,html:Db,raise:Lb,lower:Ib,append:Gb,insert:Ub,remove:zb,clone:Yb,datum:Xb,on:Op,dispatch:$b};var ew=tw,nw=function(t){return"string"===typeof t?new Jb([[document.querySelector(t)]],[document.documentElement]):new Jb([[t]],Qb)},rw={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 "},iw=rw,ow=iw,aw=n("2da1"),sw=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)}}(),uw="DONT_STYLE_ME_css_styles_verifier",cw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sw(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=nw(t));var n,r,i,o,a={width:0,height:0},s=function(t){t&&Object.keys(a).forEach((function(e){if(t[e]){var n=t[e],r=parseFloat(n);n&&r>a[e]&&-1===(""+n).indexOf("%")&&(a[e]=r)}}))},u={width:t.attr("width"),height:t.attr("height")};try{n=t.node().getBBox(),r={width:n.width,height:n.height}}catch(h){}try{i=t.node().getBoundingClientRect(),o={width:i.width,height:i.height}}catch(h){}var c={width:t.node().clientWidth,height:t.node().clientHeight};if(e){if(e.useAttrs&&(s(u),a.width>0&&a.height>0))return a;if(e.useClientDimensions&&(s(c),a.width>0&&a.height>0))return c;if(e.useBBox&&(s(r),a.width>0&&a.height>0))return r;if(e.useBoundingRect&&(s(o),a.width>0&&a.height>0))return o}try{var l={width:Ep.getProperty(t.node(),"width","baseVal","value"),height:Ep.getProperty(t.node(),"height","baseVal","value")};s(l)}catch(h){s(c),s(r),s(u)}return a},e.appendOrSelect=function(t,e){var n=t.select(""+e);if(n.empty()){var r=e.split("#"),i=void 0,o=void 0;return 2===r.length?(i=r[0],r=r[1].split("."),o=r[0]):(r=e.split("."),i=r[0]),t.append(i).attr("id",o).attr("class",r.slice(1).join(" "))}return n},e.getAlignmentOffset=function(t,n,r){var i=e.getSVGElementSize(n,{useBBox:!0}),o=e.getSVGElementSize(r,{useAttr:!0}).width,a=0;return t===L.CENTER?a=Math.floor((o-i.width)/2):t===L.RIGHT&&(a=o-i.width),a},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();nw(this.getHolder()).classed(ow.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=this.model.getOptions(),e=Ep.getProperty(t,"style","prefix"),n=nw(this.getHolder()).append("svg").classed(ow.prefix+"--"+e+"--chart-svg",!0).attr("height","100%").attr("width","100%");n.append("g").attr("class",uw),this.svg=n.node()},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=nw(t.svg).select("g."+uw).node(),n=getComputedStyle(e);"hidden"===n.getPropertyValue("overflow")&&"0"===n.getPropertyValue("opacity")||console.error("Missing CSS styles for Carbon Charts. Please read the Carbon Charts getting started guide.")}))},e.prototype.setSVGMaxHeight=function(){if(!this.model.getOptions().height){var t=e.getSVGElementSize(nw(this.svg),{useBBox:!0}).height,n=nw(this.svg).attr("class"),r=nw(this.svg).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(nw(t),{useBBox:!0}).height)})),i<=t?nw(this.svg).attr("height",i):nw(this.svg).attr("height","100%")}},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&nw(e).on("mouseover",(function(){t.services.events.dispatchEvent(X.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(X.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=Ep.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(X.Chart.RESIZE))}),12.5),o=new aw["a"](i);o.observe(e)}},e}(b_),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)}}(),hw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lw(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}(b_),fw={value:function(){}};function pw(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new dw(r)}function dw(t){this._=t}function vw(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 gw(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function mw(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=fw,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}dw.prototype=pw.prototype={constructor:dw,on:function(t,e){var n,r=this._,i=vw(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]=mw(r[n],t.name,e);else if(null==e)for(n in r)r[n]=mw(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=gw(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new dw(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 yw,_w,bw=pw,ww=0,Ow=0,xw=0,Ew=1e3,Sw=0,Tw=0,Mw=0,Aw="object"===typeof performance&&performance.now?performance:Date,Cw="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Pw(){return Tw||(Cw(Dw),Tw=Aw.now()+Mw)}function Dw(){Tw=0}function kw(){this._call=this._time=this._next=null}function Lw(t,e,n){var r=new kw;return r.restart(t,e,n),r}function Rw(){Pw(),++ww;var t,e=yw;while(e)(t=Tw-e._time)>=0&&e._call.call(null,t),e=e._next;--ww}function Iw(){Tw=(Sw=Aw.now())+Mw,ww=Ow=0;try{Rw()}finally{ww=0,Nw(),Tw=0}}function jw(){var t=Aw.now(),e=t-Sw;e>Ew&&(Mw-=e,Sw=t)}function Nw(){var t,e,n=yw,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:yw=e);_w=t,Bw(r)}function Bw(t){if(!ww){Ow&&(Ow=clearTimeout(Ow));var e=t-Tw;e>24?(t<1/0&&(Ow=setTimeout(Iw,t-Aw.now()-Mw)),xw&&(xw=clearInterval(xw))):(xw||(Sw=Aw.now(),xw=setInterval(jw,Ew)),ww=1,Cw(Iw))}}kw.prototype=Lw.prototype={constructor:kw,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?Pw():+n)+(null==e?0:+e),this._next||_w===this||(_w?_w._next=this:yw=this,_w=this),this._call=t,this._time=n,Bw()},stop:function(){this._call&&(this._call=null,this._time=1/0,Bw())}};var Gw=function(t,e,n){var r=new kw;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Vw=bw("start","end","cancel","interrupt"),Uw=[],Hw=0,zw=1,Fw=2,Ww=3,Yw=4,Xw=5,qw=6,Zw=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};Jw(t,n,{name:e,index:r,group:i,on:Vw,tween:Uw,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Hw})};function Kw(t,e){var n=Qw(t,e);if(n.state>Hw)throw new Error("too late; already scheduled");return n}function $w(t,e){var n=Qw(t,e);if(n.state>Ww)throw new Error("too late; already running");return n}function Qw(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Jw(t,e,n){var r,i=t.__transition;function o(t){n.state=zw,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!==zw)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===Ww)return Gw(a);f.state===Yw?(f.state=qw,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=qw,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Gw((function(){n.state===Ww&&(n.state=Yw,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=Fw,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Fw){for(n.state=Ww,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=Xw,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===Xw&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=qw,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Lw(o,0,n.time)}var tO,eO,nO,rO,iO=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>Fw&&n.state<Xw,n.state=qw,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}},oO=function(t){return this.each((function(){iO(this,t)}))},aO=180/Math.PI,sO={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},uO=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)*aO,skewX:Math.atan(u)*aO,scaleX:a,scaleY:s}};function cO(t){return"none"===t?sO:(tO||(tO=document.createElement("DIV"),eO=document.documentElement,nO=document.defaultView),tO.style.transform=t,t=nO.getComputedStyle(eO.appendChild(tO),null).getPropertyValue("transform"),eO.removeChild(tO),t=t.slice(7,-1).split(","),uO(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function lO(t){return null==t?sO:(rO||(rO=document.createElementNS("http://www.w3.org/2000/svg","g")),rO.setAttribute("transform",t),(t=rO.transform.baseVal.consolidate())?(t=t.matrix,uO(t.a,t.b,t.c,t.d,t.e,t.f)):sO)}function hO(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:zv(t,i)},{i:u-2,x:zv(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:zv(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:zv(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:zv(t,n)},{i:s-2,x:zv(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 fO=hO(cO,"px, ","px)","deg)"),pO=hO(lO,", ",")",")");function dO(t,e){var n,r;return function(){var i=$w(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 vO(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=$w(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 gO=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Qw(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?dO:vO)(n,t,e))};function mO(t,e,n){var r=t._id;return t.each((function(){var t=$w(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Qw(t,r).value[e]}}var yO=function(t,e){var n;return("number"===typeof e?zv:e instanceof vv?Nv:(n=vv(e))?(e=n,Nv):Zv)(t,e)};function _O(t){return function(){this.removeAttribute(t)}}function bO(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wO(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 OO(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 xO(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 EO(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 SO=function(t,e){var n=$_(t),r="transform"===n?pO:yO;return this.attrTween(t,"function"===typeof e?(n.local?EO:xO)(n,r,mO(this,"attr."+t,e)):null==e?(n.local?bO:_O)(n):(n.local?OO:wO)(n,r,e))};function TO(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function MO(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function AO(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&MO(t,i)),n}return i._value=e,i}function CO(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&TO(t,i)),n}return i._value=e,i}var PO=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=$_(t);return this.tween(n,(r.local?AO:CO)(r,e))};function DO(t,e){return function(){Kw(this,t).delay=+e.apply(this,arguments)}}function kO(t,e){return e=+e,function(){Kw(this,t).delay=e}}var LO=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?DO:kO)(e,t)):Qw(this.node(),e).delay};function RO(t,e){return function(){$w(this,t).duration=+e.apply(this,arguments)}}function IO(t,e){return e=+e,function(){$w(this,t).duration=e}}var jO=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?RO:IO)(e,t)):Qw(this.node(),e).duration};function NO(t,e){if("function"!==typeof e)throw new Error;return function(){$w(this,t).ease=e}}var BO=function(t){var e=this._id;return arguments.length?this.each(NO(e,t)):Qw(this.node(),e).ease},GO=function(t){"function"!==typeof t&&(t=M_(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 dx(r,this._parents,this._name,this._id)},VO=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 dx(a,this._parents,this._name,this._id)};function UO(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 HO(t,e,n){var r,i,o=UO(e)?Kw:$w;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var zO=function(t,e){var n=this._id;return arguments.length<2?Qw(this.node(),n).on.on(t):this.each(HO(n,t,e))};function FO(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var WO=function(){return this.on("end.remove",FO(this._id))},YO=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=O_(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,Zw(h[f],e,n,f,h,Qw(s,n)));return new dx(o,this._parents,e,n)},XO=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=S_(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=Qw(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&Zw(f,e,n,v,p,d);o.push(p),a.push(u)}return new dx(o,a,e,n)},qO=ew.prototype.constructor,ZO=function(){return new qO(this._groups,this._parents)};function KO(t,e){var n,r,i;return function(){var o=lb(this,t),a=(this.style.removeProperty(t),lb(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function $O(t){return function(){this.style.removeProperty(t)}}function QO(t,e,n){var r,i,o=n+"";return function(){var a=lb(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function JO(t,e,n){var r,i,o;return function(){var a=lb(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=lb(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function tx(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=$w(this,t),c=u.on,l=null==u.value[a]?o||(o=$O(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var ex=function(t,e,n){var r="transform"===(t+="")?fO:yO;return null==e?this.styleTween(t,KO(t,r)).on("end.style."+t,$O(t)):"function"===typeof e?this.styleTween(t,JO(t,r,mO(this,"style."+t,e))).each(tx(this._id,t)):this.styleTween(t,QO(t,r,e),n).on("end.style."+t,null)};function nx(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function rx(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&nx(t,o,n)),r}return o._value=e,o}var ix=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,rx(t,e,null==n?"":n))};function ox(t){return function(){this.textContent=t}}function ax(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var sx=function(t){return this.tween("text","function"===typeof t?ax(mO(this,"text",t)):ox(null==t?"":t+""))};function ux(t){return function(e){this.textContent=t.call(this,e)}}function cx(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&ux(r)),e}return r._value=t,r}var lx=function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,cx(t))},hx=function(){for(var t=this._name,e=this._id,n=gx(),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=Qw(a,e);Zw(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new dx(r,this._parents,t,n)},fx=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=$w(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}))}))},px=0;function dx(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function vx(t){return ew().transition(t)}function gx(){return++px}var mx=ew.prototype;function yx(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}dx.prototype=vx.prototype={constructor:dx,select:YO,selectAll:XO,filter:GO,merge:VO,selection:ZO,transition:hx,call:mx.call,nodes:mx.nodes,node:mx.node,size:mx.size,empty:mx.empty,each:mx.each,on:zO,attr:SO,attrTween:PO,style:ex,styleTween:ix,text:sx,textTween:lx,remove:WO,tween:gO,delay:LO,duration:jO,ease:BO,end:fx};var _x={time:null,delay:0,duration:250,ease:yx};function bx(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return _x.time=Pw(),_x;return n}var wx=function(t){var e,n;t instanceof dx?(e=t._id,t=t._name):(e=gx(),(n=_x).time=Pw(),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])&&Zw(a,t,e,c,s,n||bx(a,e));return new dx(r,this._parents,t,e)};ew.prototype.interrupt=oO,ew.prototype.transition=wx;var 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)}}(),xx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Ox(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(X.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=vx(t).duration(Ep.getProperty(Up,t,"duration")||Up.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=vx(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}(b_),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(){return null!==t&&t.apply(this,arguments)||this}return Ex(e,t),e.appendOrUpdateLinearGradient=function(t){var e=t.svg.select("defs linearGradient#"+t.id);e.empty()&&(e=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),e.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",(function(t){return t.offset})).style("stop-color",(function(t){return t.color})).style("stop-opacity",(function(t){return t.opacity}))},e.getOffsetRatio=function(t){var e=(100*Math.abs(t[1])/Math.abs(t[0]-t[1])).toFixed(2)+"%";return e},e.getStops=function(t,n){var r=t[0]<0&&t[1]>0,i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:e.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i},e}(b_);function Tx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Mx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e);return n.getFullYear()-r.getFullYear()}function Ax(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Cx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=Ax(n,r),o=Math.abs(Mx(n,r));n.setFullYear(n.getFullYear()-i*o);var a=Ax(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Px(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Dx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function kx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Px(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=Dx(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function Lx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return kx(t,12*n)}function Rx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Lx(t,-n)}function Ix(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function jx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=Ax(n,r),o=Math.abs(Ix(n,r));n.setMonth(n.getMonth()-i*o);var a=Ax(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Nx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return kx(t,-n)}var Bx=6e4;function Gx(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%Bx;return n*Bx+r}function Vx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t);return e.setHours(0,0,0,0),e}var Ux=864e5;function Hx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Vx(t),r=Vx(e),i=n.getTime()-Gx(n),o=r.getTime()-Gx(r);return Math.round((i-o)/Ux)}function zx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=Ax(n,r),o=Math.abs(Hx(n,r));n.setDate(n.getDate()-i*o);var a=Ax(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Fx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Px(e);return n.setDate(n.getDate()+r),n}function Wx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Fx(t,-n)}function Yx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e);return n.getTime()-r.getTime()}var Xx=36e5;function qx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Yx(t,e)/Xx;return n>0?Math.floor(n):Math.ceil(n)}function Zx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t).getTime(),r=Px(e);return new Date(n+r)}var Kx=36e5;function $x(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Zx(t,n*Kx)}function Qx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return $x(t,-n)}var Jx=6e4;function tE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Yx(t,e)/Jx;return n>0?Math.floor(n):Math.ceil(n)}var eE=6e4;function nE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Zx(t,n*eE)}function rE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return nE(t,-n)}function iE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Yx(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function oE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Zx(t,1e3*n)}function aE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return oE(t,-n)}var sE=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)}}(),uE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},cE=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},lE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scaleTypes={top:null,right:null,bottom:null,left:null},e.scales={top:null,right:null,bottom:null,left:null},e}return sE(e,t),e.prototype.getDomainAxisPosition=function(t){var e,n=(void 0===t?{}:t).datum,r=void 0===n?null:n;if(this.dualAxes&&r){var i=this.model.getOptions(),o=i.data.groupMapsTo,a=Ep.getProperty(i,"axes",this.secondaryDomainAxisPosition),s=r[o];if((null===(e=a)||void 0===e?void 0:e.correspondingDatasets)&&a.correspondingDatasets.includes(s))return this.secondaryDomainAxisPosition}return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(t){var e,n=void 0===t?{}:t,r=n.datum,i=void 0===r?null:r,o=n.groups,a=void 0===o?null:o;if(this.dualAxes){var s=this.model.getOptions(),u=s.data.groupMapsTo,c=Ep.getProperty(s,"axes",this.secondaryRangeAxisPosition),l=void 0;if(null!==i?l=i[u]:a&&a.length>0&&(l=a[0]),(null===(e=c)||void 0===e?void 0:e.correspondingDatasets)&&c.correspondingDatasets.includes(l))return this.secondaryRangeAxisPosition}return this.rangeAxisPosition},e.prototype.getAxisOptions=function(t){return Ep.getProperty(this.model.getOptions(),"axes",t)},e.prototype.getDomainAxisOptions=function(){var t=this.getDomainAxisPosition();return this.getAxisOptions(t)},e.prototype.getRangeAxisOptions=function(){var t=this.getRangeAxisPosition();return this.getAxisOptions(t)},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(M).map((function(t){return M[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findVerticalAxesPositions(),e=this.findHorizontalAxesPositions(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.primaryDomainAxisPosition,this.rangeAxisPosition=n.primaryRangeAxisPosition,this.isDualAxes()&&(this.secondaryDomainAxisPosition=n.secondaryDomainAxisPosition,this.secondaryRangeAxisPosition=n.secondaryRangeAxisPosition)},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==M.LEFT&&this.rangeAxisPosition!==M.RIGHT||this.domainAxisPosition!==M.BOTTOM&&this.domainAxisPosition!==M.TOP?this.orientation=P.HORIZONTAL:this.orientation=P.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=Ep.getProperty(i,"axes");((null===(t=o[M.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[M.RIGHT]||(null===(e=o[M.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[M.LEFT]||(null===(n=o[M.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[M.BOTTOM]||(null===(r=o[M.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[M.TOP])&&(this.dualAxes=!0)},e.prototype.getOrientation=function(){return this.orientation},e.prototype.getScaleByPosition=function(t){return this.scales[t]},e.prototype.getScaleTypeByPosition=function(t){return this.scaleTypes[t]},e.prototype.getDomainAxisScaleType=function(){var t=this.getDomainAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getRangeAxisScaleType=function(){var t=this.getRangeAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getDomainScale=function(){return this.scales[this.domainAxisPosition]},e.prototype.getRangeScale=function(){return this.scales[this.rangeAxisPosition]},e.prototype.getMainXAxisPosition=function(){var t=[M.BOTTOM,M.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[M.LEFT,M.RIGHT];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainXScale=function(){return this.scales[this.getMainXAxisPosition()]},e.prototype.getMainYScale=function(){return this.scales[this.getMainYAxisPosition()]},e.prototype.getValueFromScale=function(t,e,n,r,i){var o,a=this.model.getOptions(),s=Ep.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=void 0!==r[c]?r[c]:r;switch(e){case D.LABELS:o=t(l)+t.step()/2;break;case D.TIME:o=t(new Date(l));break;default:o=t(l)}return o},e.prototype.getBoundedScaledValues=function(t,e){var n=this.model.getOptions().bounds,r=this.scales[this.rangeAxisPosition],i=this.model.getOptions(),o=Ep.getProperty(i,"axes"),a=o[this.rangeAxisPosition],s=a.mapsTo,u=void 0!==t[s]?t[s]:t,c=[r(t[n.upperBoundMapsTo]?t[n.upperBoundMapsTo]:u),r(t[n.lowerBoundMapsTo]?t[n.lowerBoundMapsTo]:u)];return c},e.prototype.getValueThroughAxisPosition=function(t,e,n){var r=this.scaleTypes[t],i=this.scales[t];return this.getValueFromScale(i,r,t,e,n)},e.prototype.getDomainValue=function(t,e){var n=this.getDomainAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getRangeValue=function(t,e){var n=this.getRangeAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getMainXScaleType=function(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())},e.prototype.getMainYScaleType=function(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())},e.prototype.getDomainIdentifier=function(t){var e=this.model.getOptions();return Ep.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return Ep.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=Ep.getProperty(n,"axes",t);if(r.scaleType===D.TIME){var i=Ep.getProperty(n,"timeScale","addSpaceOnEdges");return hE(e,i)}return fE(e,Lp.paddingRatio)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=Ep.getProperty(t,"axes"),n=this.isDualAxes();return null===Ep.getProperty(e,M.LEFT)&&null!==Ep.getProperty(e,M.RIGHT)||!0===Ep.getProperty(e,M.RIGHT,"main")||n&&Ep.getProperty(e,M.LEFT,"correspondingDatasets")?{primary:M.RIGHT,secondary:M.LEFT}:{primary:M.LEFT,secondary:M.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=Ep.getProperty(t,"axes"),n=this.isDualAxes();return null===Ep.getProperty(e,M.BOTTOM)&&null!==Ep.getProperty(e,M.TOP)||!0===Ep.getProperty(e,M.TOP,"main")||n&&Ep.getProperty(e,M.BOTTOM,"correspondingDatasets")?{primary:M.TOP,secondary:M.BOTTOM}:{primary:M.BOTTOM,secondary:M.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=Ep.getProperty(n,"axes",t.primary),i=Ep.getProperty(n,"axes",e.primary),o=r.scaleType||D.LINEAR,a=i.scaleType||D.LINEAR,s={primaryDomainAxisPosition:null,secondaryDomainAxisPosition:null,primaryRangeAxisPosition:null,secondaryRangeAxisPosition:null};return s.primaryDomainAxisPosition=e.primary,s.primaryRangeAxisPosition=t.primary,s.secondaryDomainAxisPosition=e.secondary,s.secondaryRangeAxisPosition=t.secondary,(a!==D.LABELS&&a!==D.TIME&&o===D.LABELS||o===D.TIME)&&(s.primaryDomainAxisPosition=t.primary,s.primaryRangeAxisPosition=e.primary,s.secondaryDomainAxisPosition=t.secondary,s.secondaryRangeAxisPosition=e.secondary),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=Ep.getProperty(e,"axes",t),r=Ep.getProperty(e,"bounds"),i=n.includeZero,o=Ep.getProperty(n,"scaleType")||D.LINEAR;if(this.model.isDataEmpty())return[];var a,s,u=this.model.getDisplayData(),c=n.mapsTo,l=n.percentage;if(n.domain)return o===D.LABELS?n.domain:(o===D.TIME&&(n.domain=n.domain.map((function(t){return void 0===t.getTime?new Date(t):t}))),this.extendsDomain(t,n.domain));if(l)return[0,100];if(n&&o===D.LABELS)return bd(u,(function(t){return t[c]})).keys();var h=this.model.getDataGroupNames();if(o===D.TIME)s=u.map((function(t){return+new Date(t[c])}));else if(r&&e.axes)s=[],u.forEach((function(t){s.push(t[c]),t[r.upperBoundMapsTo]&&s.push(t[r.upperBoundMapsTo]),t[r.lowerBoundMapsTo]&&s.push(t[r.lowerBoundMapsTo])}));else if(!0===n.stacked&&h&&t===this.getRangeAxisPosition()){var f=e.data.groupMapsTo,p=this.model.getDataValuesGroupedByKeys(h),d=u.filter((function(t){return!h.includes(t[f])})),v=p.map((function(t){t.sharedStackKey;var e=uE(t,["sharedStackKey"]);return Hd(Ed(e))}));s=cE(v,d.map((function(t){return t[c]})))}else s=u.map((function(t){return t[c]}));return o!==D.TIME&&i&&s.push(0),a=Dd(s),a=this.extendsDomain(t,a),a},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=Ep.getProperty(e,"axes",t);if(!n)return null;var r,i=Ep.getProperty(n,"scaleType")||D.LINEAR;return this.scaleTypes[t]=i,r=i===D.TIME?u_():i===D.LOG?Wg().base(n.base||10):i===D.LABELS?Zd():Rg(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=Ep.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==D.TIME||"string"!==typeof i.value&&void 0!==i.value.getTime||(i.value=new Date(i.value)),{threshold:i,scaleValue:r(i.value)}},e.prototype.getHighestRangeThreshold=function(){var t=Ep.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getRangeScale(),i=n.sort((function(t,e){return e.value-t.value}))[0];return{threshold:i,scaleValue:r(i.value)}},e}(b_);function hE(t,e){var n=new Date(t[0]),r=new Date(t[1]);return Cx(r,n)>1?[Rx(n,e),Lx(r,e)]:jx(r,n)>1?[Nx(n,e),kx(r,e)]:zx(r,n)>1?[Wx(n,e),Fx(r,e)]:qx(r,n)>1?[Qx(n,e),$x(r,e)]:tE(r,n)>30?[rE(n,30*e),nE(r,30*e)]:tE(r,n)>1?[rE(n,e),nE(r,e)]:iE(r,n)>15?[aE(n,15*e),oE(r,15*e)]:iE(r,n)>1?[aE(n,e),oE(r,e)]:[n,r]}function fE(t,e){var n=t[0],r=t[1],i=r-n,o=i*e,a=r<=0&&r+o>0?0:r+o,s=n>=0&&n-o<0?0:n-o;return[s,a]}function pE(t){this._context=t}pE.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 dE=function(t){return new pE(t)},vE=function(){};function gE(t){this._context=t}gE.prototype={areaStart:vE,areaEnd:vE,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 mE=function(t){return new gE(t)};function yE(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 _E(t){this._context=t}_E.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:yE(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:yE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var bE=function(t){return new _E(t)};function wE(t){this._context=t}wE.prototype={areaStart:vE,areaEnd:vE,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:yE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var OE=function(t){return new wE(t)};function xE(t){this._context=t}xE.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:yE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var EE=function(t){return new xE(t)};function SE(t,e){this._basis=new _E(t),this._beta=e}SE.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 TE=function t(e){function n(t){return 1===e?new _E(t):new SE(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function ME(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 AE(t,e){this._context=t,this._k=(1-e)/6}AE.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:ME(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:ME(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 CE=function t(e){function n(t){return new AE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function PE(t,e){this._context=t,this._k=(1-e)/6}PE.prototype={areaStart:vE,areaEnd:vE,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:ME(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 DE=function t(e){function n(t){return new PE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function kE(t,e){this._context=t,this._k=(1-e)/6}kE.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:ME(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 LE=function t(e){function n(t){return new kE(t,e)}return n.tension=function(e){return t(+e)},n}(0),RE=Math.abs,IE=Math.atan2,jE=Math.cos,NE=Math.max,BE=Math.min,GE=Math.sin,VE=Math.sqrt,UE=1e-12,HE=Math.PI,zE=HE/2,FE=2*HE;function WE(t){return t>1?0:t<-1?HE:Math.acos(t)}function YE(t){return t>=1?zE:t<=-1?-zE:Math.asin(t)}function XE(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>UE){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>UE){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 qE(t,e){this._context=t,this._alpha=e}qE.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:XE(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 ZE=function t(e){function n(t){return e?new qE(t,e):new AE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function KE(t,e){this._context=t,this._alpha=e}KE.prototype={areaStart:vE,areaEnd:vE,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:XE(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 $E=function t(e){function n(t){return e?new KE(t,e):new PE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function QE(t,e){this._context=t,this._alpha=e}QE.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:XE(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 JE=function t(e){function n(t){return e?new QE(t,e):new kE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tS(t){return t<0?-1:1}function eS(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(tS(o)+tS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function nS(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function rS(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 iS(t){this._context=t}function oS(t){this._context=new aS(t)}function aS(t){this._context=t}function sS(t){return new iS(t)}function uS(t){return new oS(t)}function cS(t){this._context=t}function lS(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]}iS.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:rS(this,this._t0,nS(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,rS(this,nS(this,n=eS(this,t,e)),n);break;default:rS(this,this._t0,n=eS(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(oS.prototype=Object.create(iS.prototype)).point=function(t,e){iS.prototype.point.call(this,e,t)},aS.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)}},cS.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=lS(t),i=lS(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 hS=function(t){return new cS(t)};function fS(t,e){this._context=t,this._t=e}fS.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 pS=function(t){return new fS(t,.5)};function dS(t){return new fS(t,0)}function vS(t){return new fS(t,1)}var gS,mS,yS=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)}}(),_S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:dE,curveLinearClosed:mE,curveBasis:bE,curveBasisClosed:OE,curveBasisOpen:EE,curveBundle:TE,curveCardinal:CE,curveCardinalClosed:DE,curveCardinalOpen:LE,curveCatmullRom:ZE,curveCatmullRomClosed:$E,curveCatmullRomOpen:JE,curveMonotoneX:sS,curveMonotoneY:uS,curveNatural:hS,curveStep:pS,curveStepAfter:vS,curveStepBefore:dS},e}return yS(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}(b_),bS=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)}}(),wS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bS(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!Ep.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=Ep.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===M.BOTTOM&&e===D.TIME},e.prototype.getZoomBarData=function(){var t=this.model.getZoomBarData();return t&&t.length>1?t:this.model.getDisplayData()},e.prototype.getDefaultZoomBarDomain=function(t){var e=t||this.services.zoom.getZoomBarData(),n=this.services.cartesianScales,r=n.getMainXAxisPosition(),i=n.getDomainIdentifier();return n.extendsDomain(r,Dd(e,(function(t){return t[i]})))},e.prototype.handleDomainChange=function(t,e){void 0===e&&(e={dispatchEvent:!0}),this.model.set({zoomDomain:t},{animate:!1}),e.dispatchEvent&&this.services.events.dispatchEvent(X.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return Ep.getProperty(this.model.getOptions(),"zoomBar","zoomRatio")},e.prototype.filterDataForRangeAxis=function(t,e){var n=this.model.get("zoomDomain"),r=Object.assign({stacked:!1},e),i=Ep.getProperty(this.model.getOptions(),"zoomBar","updateRangeAxis");if(this.isZoomBarEnabled()&&i&&n){var o=r.stacked?"sharedStackKey":this.services.cartesianScales.getDomainIdentifier(),a=t.filter((function(t){return new Date(t[o])>=n[0]&&new Date(t[o])<=n[1]}));if(a.length>0)return a}return t},e.prototype.zoomIn=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=zp.handleWidth,r=this.services.cartesianScales.getMainXScale().copy();r.domain(this.getDefaultZoomBarDomain());var i=r(e[0]),o=r(e[1]);if(!(o-i<n+1)){var a=r.range(),s=o-i,u=Math.min((a[1]-a[0])/2*(t/2),s/2),c=i+u,l=o-u;c>=l&&(c=i+s/2-n/2,l=o-s/2+n/2);var h=[r.invert(c),r.invert(l)];e[0].valueOf()===h[0].valueOf()&&e[1].valueOf()===h[1].valueOf()||this.handleDomainChange(h)}},e.prototype.zoomOut=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=this.services.cartesianScales.getMainXScale().copy();n.domain(this.getDefaultZoomBarDomain());var r=n(e[0]),i=n(e[1]),o=n.range(),a=(o[1]-o[0])/2*(t/2),s=Math.max(r-a,o[0]),u=Math.min(i+a,o[1]),c=[n.invert(s),n.invert(u)];e[0].valueOf()===c[0].valueOf()&&e[1].valueOf()===c[1].valueOf()||this.handleDomainChange(c)},e.prototype.resetZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();t[0].valueOf()===e[0].valueOf()&&t[1].valueOf()===e[1].valueOf()||this.handleDomainChange(e)},e.prototype.isMinZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();if(!t||!e)return!1;var n=t[1].valueOf()-t[0].valueOf(),r=e[1].valueOf()-e[0].valueOf(),i=Ep.getProperty(this.model.getOptions(),"zoomBar","minZoomRatio");return n/r<i},e.prototype.isMaxZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();return!(!t||!e||t[0].valueOf()!==e[0].valueOf()||t[1].valueOf()!==e[1].valueOf())},e.prototype.isEmptyState=function(){return 0===this.getZoomBarData().length},e.prototype.isZoomBarLoading=function(t){return Ep.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return Ep.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(b_),OS=function(){function t(t,e,n){if(this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=Ep.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(nw(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=Ep.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(ow.prefix+"--"+n+"--"+this.type,!0).attr("id",this.id),e&&e.classed(ow.prefix+"--"+n+"--"+this.type,!1).attr("id",this.id)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=Ep.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=cw.appendOrSelect(this.parent,"g"+n+"."+ow.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");i&&r.attr("clip-path","url(#"+i+")")}return r}return this.parent},t.prototype.getOptions=function(){if(this.configs.options){var t=Ep.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),xS=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)}}(),ES=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return xS(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",o.GROUP).attr("data-name","legend-items"),n=this.getOptions(),r=Ep.getProperty(n,"legend"),i=this.model.getDataGroups(),a=Ep.getProperty(r,"order");a&&(i=this.sortDataGroups(i,a));var s=e.selectAll("g.legend-item").data(i,(function(t){return t.name})),u=s.enter().append("g").classed("legend-item",!0).classed("active",(function(t,e){return t.status===Rp.items.status.ACTIVE})),c=Rp.checkbox.radius,l=Ep.getProperty(r,"truncation","type"),h=Ep.getProperty(r,"truncation","threshold"),f=Ep.getProperty(r,"truncation","numCharacter"),p=(Ep.getProperty(n,"color","pairing","option"),Ep.getProperty(this.getOptions(),"legend","clickable"));e.classed("clickable",p),u.append("rect").classed("checkbox",!0).merge(s.select("rect.checkbox")).attr("role",o.CHECKBOX).attr("tabindex",p?0:-1).attr("aria-label",(function(t){return t.name})).attr("aria-checked",(function(t){var e=t.status;return e===Rp.items.status.ACTIVE})).attr("width",2*c).attr("height",2*c).attr("rx",1).attr("ry",1).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:e.name,originalClassName:"checkbox"})})).style("fill",(function(e){return e.status===Rp.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===Rp.items.status.ACTIVE}));var d=u.append("text").merge(s.select("text"));l!==C.NONE?d.html((function(t){return t.name.length>h?Ep.truncateLabel(t.name,l,f):t.name})):d.html((function(t){return t.name})),this.breakItemsIntoLines(u),s.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),p&&u.size()>0&&this.addEventListeners();var v=Ep.getProperty(r,"alignment"),g=cw.getAlignmentOffset(v,e,this.getParent());e.attr("transform","translate("+g+", 0)")},e.prototype.sortDataGroups=function(t,e){if(t.sort((function(t,n){return e.indexOf(t.name)-e.indexOf(n.name)})),e.length<t.length){var n=t.length-e.length,r=t.slice(n);return r.concat(t.slice(0,n))}return t},e.prototype.breakItemsIntoLines=function(t){var e=this,n=this.getContainerSVG(),r=this.getOptions(),i=Rp.checkbox.radius,o=Rp.items.horizontalSpace,a=Rp.items.verticalSpace,s=Rp.items.textYOffset,u=2*i+Rp.checkbox.spaceAfter,c=Rp.items.status.DISABLED,l=this.model.getDataGroups(),h=l.some((function(t){return t.status===c})),f=Ep.getProperty(r,"legend","orientation"),p=0,d=0,v=0;t.merge(n.selectAll("g.legend-item")).each((function(t,r){var c=nw(this),l=nw(n.selectAll("g.legend-item").nodes()[r-1]);if(0===v||l.empty()||f===R.VERTICAL)f===R.VERTICAL&&0!==r&&d++;else{var g=cw.getSVGElementSize(e.parent,{useAttr:!0}),m=cw.getSVGElementSize(nw(this).select("text"),{useBBox:!0}),y=cw.getSVGElementSize(l.select("text"),{useBBox:!0});p=p+y.width+u+o,p+u+m.width>g.width&&(d++,p=0,v=0)}var _=0;c.select("rect.checkbox").attr("x",p).attr("y",_+d*a);var b=s+d*a;c.select("text").attr("x",p+u).attr("y",_+b+3),b;var w=(!f||f===R.HORIZONTAL)&&"0"===c.select("rect.checkbox").attr("y"),O=f===R.VERTICAL&&"0"===c.select("rect.checkbox").attr("x"),x=w||O;h&&c.select("g.check").empty()&&x?(c.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'),c.select("g.check svg").attr("width",2*i-1).attr("height",2*i-1).attr("x",parseFloat(c.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(c.select("rect.checkbox").attr("y"))+.5)):h||c.select("g.check").empty()||c.select("g.check").remove(),v++}))},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.getOptions(),r=Ep.getProperty(n,"legend"),i=Ep.getProperty(r,"truncation","threshold");e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent(X.Legend.ITEM_HOVER,{hoveredElement:nw(this)});var e=Rp.checkbox.radius,n=nw(this);n.select("rect.checkbox").classed("hovered",!0),n.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(n.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(n.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower();var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,content:r.name})})).on("mousemove",(function(){t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(){t.services.events.dispatchEvent(X.Legend.ITEM_CLICK,{clickedElement:nw(this)});var e=nw(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=nw(this);e.select("rect.hover-stroke").remove(),e.select("rect.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(X.Tooltip.HIDE),t.services.events.dispatchEvent(X.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("g.legend-item rect.checkbox").on("keyup",(function(e){!vp.key||"Enter"!==vp.key&&" "!==vp.key||(vp.preventDefault(),t.model.toggleDataLabel(e.name))}))},e}(OS);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(mS||(mS={}));var SS=(gS={},gS[mS.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)}},gS[mS.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)}},gS[mS.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)}},gS[mS.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)}},gS),TS="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},MS=function(){function t(t){void 0===t&&(t={}),this.positions=SS,this.positions=Object.assign({},SS,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:TS.innerHeight-TS.scrollY,height:TS.innerWidth-TS.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}(),AS=(new MS,MS);function CS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t);return!isNaN(e)}var PS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function DS(t,e,n){var r;return n=n||{},r="string"===typeof PS[t]?PS[t]:1===e?PS[t].one:PS[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function kS(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}var LS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},RS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jS={date:kS({formats:LS,defaultWidth:"full"}),time:kS({formats:RS,defaultWidth:"full"}),dateTime:kS({formats:IS,defaultWidth:"full"})},NS=jS,BS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function GS(t,e,n,r){return BS[t]}function VS(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}var US={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},HS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},FS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},WS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},YS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function XS(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var qS={ordinalNumber:XS,era:VS({values:US,defaultWidth:"wide"}),quarter:VS({values:HS,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:VS({values:zS,defaultWidth:"wide"}),day:VS({values:FS,defaultWidth:"wide"}),dayPeriod:VS({values:WS,defaultWidth:"wide",formattingValues:YS,defaultFormattingWidth:"wide"})},ZS=qS;function KS(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}function $S(t){return function(e,n){var r=String(e),i=n||{},o=i.width,a=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=r.match(a);if(!s)return null;var u,c=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?JS(l,(function(t){return t.test(r)})):QS(l,(function(t){return t.test(r)})),u=t.valueCallback?t.valueCallback(u):u,u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(c.length)}}}function QS(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function JS(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var tT=/^(\d+)(th|st|nd|rd)?/i,eT=/\d+/i,nT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rT={any:[/^b/i,/^(a|c)/i]},iT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oT={any:[/1/i,/2/i,/3/i,/4/i]},aT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fT={ordinalNumber:KS({matchPattern:tT,parsePattern:eT,valueCallback:function(t){return parseInt(t,10)}}),era:$S({matchPatterns:nT,defaultMatchWidth:"wide",parsePatterns:rT,defaultParseWidth:"any"}),quarter:$S({matchPatterns:iT,defaultMatchWidth:"wide",parsePatterns:oT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:$S({matchPatterns:aT,defaultMatchWidth:"wide",parsePatterns:sT,defaultParseWidth:"any"}),day:$S({matchPatterns:uT,defaultMatchWidth:"wide",parsePatterns:cT,defaultParseWidth:"any"}),dayPeriod:$S({matchPatterns:lT,defaultMatchWidth:"any",parsePatterns:hT,defaultParseWidth:"any"})},pT=fT,dT={code:"en-US",formatDistance:DS,formatLong:NS,formatRelative:GS,localize:ZS,match:pT,options:{weekStartsOn:0,firstWeekContainsDate:1}},vT=dT;function gT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Zx(t,-n)}function mT(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var yT={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return mT("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):mT(n+1,2)},d:function(t,e){return mT(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return mT(t.getUTCHours()%12||12,e.length)},H:function(t,e){return mT(t.getUTCHours(),e.length)},m:function(t,e){return mT(t.getUTCMinutes(),e.length)},s:function(t,e){return mT(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return mT(i,e.length)}},_T=yT,bT=864e5;function wT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/bT)+1}function OT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=Tx(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function xT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=OT(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=OT(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function ET(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=xT(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=OT(n);return r}var ST=6048e5;function TT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t),n=OT(e).getTime()-ET(e).getTime();return Math.round(n/ST)+1}function MT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:Px(i),a=null==n.weekStartsOn?o:Px(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Tx(t),u=s.getUTCDay(),c=(u<a?7:0)+u-a;return s.setUTCDate(s.getUTCDate()-c),s.setUTCHours(0,0,0,0),s}function AT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Tx(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:Px(a),u=null==i.firstWeekContainsDate?s:Px(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=MT(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=MT(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function CT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:Px(i),a=null==n.firstWeekContainsDate?o:Px(n.firstWeekContainsDate),s=AT(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=MT(u,e);return c}var PT=6048e5;function DT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Tx(t),r=MT(n,e).getTime()-CT(n,e).getTime();return Math.round(r/PT)+1}var kT={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},LT={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return _T.y(t,e)},Y:function(t,e,n,r){var i=AT(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return mT(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):mT(o,e.length)},R:function(t,e){var n=xT(t);return mT(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return mT(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return mT(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return mT(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return _T.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return mT(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=DT(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):mT(i,e.length)},I:function(t,e,n){var r=TT(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):mT(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):_T.d(t,e)},D:function(t,e,n){var r=wT(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):mT(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return mT(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return mT(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return mT(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?kT.noon:0===i?kT.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?kT.evening:i>=12?kT.afternoon:i>=4?kT.morning:kT.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _T.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_T.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):mT(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):mT(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_T.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_T.s(t,e)},S:function(t,e){return _T.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return IT(o);case"XXXX":case"XX":return jT(o);case"XXXXX":case"XXX":default:return jT(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return IT(o);case"xxxx":case"xx":return jT(o);case"xxxxx":case"xxx":default:return jT(o,":")}},O:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+RT(o,":");case"OOOO":default:return"GMT"+jT(o,":")}},z:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+RT(o,":");case"zzzz":default:return"GMT"+jT(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return mT(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return mT(o,e.length)}};function RT(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+mT(o,2)}function IT(t,e){if(t%60===0){var n=t>0?"-":"+";return n+mT(Math.abs(t)/60,2)}return jT(t,e)}function jT(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=mT(Math.floor(i/60),2),a=mT(i%60,2);return r+o+n+a}var NT=LT;function BT(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function GT(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function VT(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return BT(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"});break}return n.replace("{{date}}",BT(i,e)).replace("{{time}}",GT(o,e))}var UT={p:GT,P:VT},HT=UT,zT=["D","DD"],FT=["YY","YYYY"];function WT(t){return-1!==zT.indexOf(t)}function YT(t){return-1!==FT.indexOf(t)}function XT(t){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===t)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===t)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===t)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var qT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KT=/^'([^]*?)'?$/,$T=/''/g,QT=/[a-zA-Z]/;function JT(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(e),i=n||{},o=i.locale||vT,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:Px(a),u=null==i.firstWeekContainsDate?s:Px(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:Px(c),h=null==i.weekStartsOn?l:Px(i.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=Tx(t);if(!CS(f))throw new RangeError("Invalid time value");var p=Gx(f),d=gT(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(ZT).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=HT[e];return n(t,o.formatLong,v)}return t})).join("").match(qT).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return tM(t);var n=NT[e];if(n)return!i.useAdditionalWeekYearTokens&&YT(t)&&XT(t),!i.useAdditionalDayOfYearTokens&&WT(t)&&XT(t),n(d,t,o.localize,v);if(e.match(QT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function tM(t){return t.match(KT)[1].replace($T,"'")}var eM=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function nM(t,e,n,r){var i=0===e,o=2===Number(JT(new Date(t),"c")),a=1===Number(JT(new Date(t),"q"));switch(n){case"15seconds":return i||uM(t)||cM(t)||lM(t);case"minute":return i||uM(t)||cM(t)||lM(t);case"30minutes":return i||uM(t)||cM(t)||lM(t);case"hourly":return i||uM(t)||cM(t)||lM(t);case"daily":return r?i||o||lM(t):i||cM(t)||lM(t);case"monthly":return i||lM(t);case"quarterly":return i||a;case"yearly":return!1;default:throw new Error(n+" is not a valid time interval.")}}function rM(t,e,n,r){var i=r.showDayName,o="daily"===n&&i?"weekly":n,a=new Date(t),s=Ep.getProperty(r,"timeIntervalFormats")[o],u=Ep.getProperty(s,"primary"),c=Ep.getProperty(s,"secondary"),l=nM(t,e,n,i)?u:c,h=r.localeObject;return JT(a,l,{locale:h})}function iM(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function oM(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function aM(t){var e=eM.reduce((function(e,n,r){n[0];var i=n[1],o=eM[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return eM[e][0]}function sM(t){if(1===t.length)return"15seconds";var e=oM(t),n=Ud(e);return aM(n)}function uM(t){var e=iM(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function cM(t){var e=iM(t),n=e.d,r=e.s,i=e.m,o=e.H;return 1===n&&0===o&&0===i&&0===r}function lM(t){var e=iM(t),n=e.M,r=e.d,i=e.s,o=e.m,a=e.H;return 1===n&&1===r&&0===a&&0===o&&0===i}var 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)}}(),fM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="threshold",i.positionService=new AS,i}return hM(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=this.configs,r=n.value,i=n.fillColor,o=n.axisPosition,a=n.index,s=Ep.getProperty(this.getOptions(),"style","prefix");this.thresholdClass=ow.prefix+"--"+s+"--threshold",this.thresholdIdentifierClass=o+"-"+a,this.threshold=cw.appendOrSelect(this.parent,"g."+this.thresholdClass+"."+this.thresholdIdentifierClass).raise();var u=cw.appendOrSelect(this.threshold,"rect.threshold-hoverable-area"),c=cw.appendOrSelect(this.threshold,"line.threshold-line");c.style("stroke",i);var l=this.services.cartesianScales.getScaleByPosition(o),h=this.services.cartesianScales.getScaleTypeByPosition(o),f=this.services.cartesianScales.getMainXScale(),p=this.services.cartesianScales.getMainYScale(),d=h===D.LABELS,v=f.range(),g=v[0],m=v[1],y=p.range(),_=y[0],b=y[1],w=this.services.cartesianScales,O=w.getOrientation(),x=function(t){return w.getDomainValue(t)},E=function(t){return w.getRangeValue(t)},S=Ep.flipDomainAndRangeBasedOnOrientation(x,E,O),T=S[0],A=S[1];if(o===M.TOP||o===M.BOTTOM){var C=T(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+C+", "+b+")"),c.attr("y2",_-b),u.attr("width",Math.abs(_-b)).classed("rotate",!0)}else{C=A(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+g+", "+C+")"),c.attr("x2",m-g),u.attr("width",Math.abs(m-g))}var P=this;this.services.events.addEventListener(X.Threshold.SHOW,(function(t){var n=t.detail.hoveredElement.node();n===P.threshold&&(e.setThresholdLabelPosition(),e.label.classed("hidden",!1))})),this.services.events.addEventListener(X.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(){var t=this.configs,e=t.value,n=t.axisPosition,r=this.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===D.TIME){var o=[M.LEFT,M.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=Ep.getProperty(r,"timeScale"),l=sM(u.ticks());return rM(e,0,l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=this.configs,e=t.value,n=t.valueFormatter,r=t.fillColor,i=t.label,o=void 0===i?"Threshold":i,a=nw(this.services.domUtils.getHolder()),s=n?n(e):this.getFormattedValue();this.label=cw.appendOrSelect(a,"div."+this.thresholdClass+"--label."+this.thresholdIdentifierClass),this.label.html(o+": "+s).classed("hidden",!0).style("background-color",r)},e.prototype.setThresholdLabelPosition=function(){var t=this.services.domUtils.getHolder(),e=this.label.node(),n=Mp(t),r=this.positionService.findBestPlacementAt({left:n[0],top:n[1]},e,[mS.RIGHT,mS.LEFT,mS.TOP,mS.BOTTOM],(function(){return{width:t.offsetWidth,height:t.offsetHeight}})),i=this.positionService.findPositionAt({left:n[0],top:n[1]},e,r);this.positionService.setElement(e,i)},e.prototype.addEventListeners=function(){var t=this;cw.appendOrSelect(this.threshold,"rect").on("mouseover mousemove",(function(){t.threshold.classed("active",!0),t.services.events.dispatchEvent(X.Threshold.SHOW,{hoveredElement:nw(t.threshold)})})).on("mouseout",(function(){t.threshold.classed("active",!1),t.services.events.dispatchEvent(X.Threshold.HIDE,{hoveredElement:nw(t.threshold)})}))},e}(OS),pM=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)}}(),dM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return pM(e,t),e.prototype.render=function(){var t=this.getContainerSVG(),e=t.selectAll("text.title").data([this.getOptions().title]);e.enter().append("text").classed("title",!0).merge(e).attr("x",0).attr("y","1em").html((function(t){return t}));var n=this.getMaxTitleWidth(),r=cw.appendOrSelect(t,"text.title");r.node().getComputedTextLength()>n&&n>0&&this.truncateTitle(r,n),e.exit().remove()},e.prototype.truncateTitle=function(t,e){if(!(e<=0)){var n=t.text();if(t.node().getComputedTextLength()>e){t.append("tspan").text("...");var r=cw.appendOrSelect(t,"tspan").node().getComputedTextLength(),i=t.text(),o=this.getSubstringIndex(t.node(),0,i.length-1,e-r);t.html(i.substring(0,o-1)).append("tspan").text("...");var a=this;t.on("mouseover",(function(){a.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:t,content:n})})).on("mousemove",(function(){a.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("mouseout",(function(){a.services.events.dispatchEvent(X.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return cw.getSVGElementSize(this.parent.node(),{useAttr:!0}).width},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}(OS),vM=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)}}(),gM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e}return vM(e,t),e.prototype.render=function(){var t=this.model.getDisplayData(),e=this.getOptions(),n=this.getContainerSVG(),r=e.data.groupMapsTo,i=n.selectAll("text.meter-title").data([t[r]]);i.enter().append("text").classed("meter-title",!0).merge(i).attr("x",0).attr("y","1em").text((function(t){return t})),i.exit().remove(),this.appendPercentage(),this.displayStatus();var o=this.getMaxTitleWidth(),a=cw.appendOrSelect(n,"text.meter-title");o>0&&a.node().getComputedTextLength()>o&&this.truncateTitle(a,o)},e.prototype.displayStatus=function(){var t=this,e=this.getContainerSVG(),n=(this.getOptions(),cw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0})),r=n.width?n.width:this.parent.node().getAttribute("width"),i=this.model.getStatus(),o=jp.status.indicatorSize/2,a=cw.appendOrSelect(e,"g.status-indicator").attr("class",null!==i?"status-indicator status--"+i:"").attr("transform","translate("+(r-o)+", 0)"),s=i?[i]:[],u=a.selectAll("circle.status").data(s);u.enter().append("circle").merge(u).attr("class","status").attr("r",o).attr("cx",0).attr("cy","calc(1em / 2)");var c=a.selectAll("path.innerFill").data(s);c.enter().append("path").merge(c).attr("d",t.getStatusIconPathString(i)).attr("transform","translate(-"+o+", 0)").attr("class","innerFill"),c.exit().remove(),u.exit().remove()},e.prototype.appendPercentage=function(){var t=this.model.getDisplayData().value,e=this.getContainerSVG(),n=cw.appendOrSelect(e,"text.meter-title"),r=!0===Ep.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=jp.statusBar.paddingRight;i.enter().append("text").classed("percent-value",!0).merge(i).text((function(t){return t+"%"})).attr("x",+n.attr("x")+n.node().getComputedTextLength()+o).attr("y",n.attr("y")),i.exit().remove()},e.prototype.truncateTitle=function(e,n){t.prototype.truncateTitle.call(this,e,n);var r=cw.appendOrSelect(this.parent,"tspan"),i=jp.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=cw.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=cw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),e=t.width?t.width:this.parent.node().getAttribute("width"),n=cw.appendOrSelect(this.parent,"text.percent-value"),r=jp.statusBar.paddingRight,i=n.node().getComputedTextLength(),o=cw.appendOrSelect(this.parent,"g.status-indicator").node(),a=cw.getSVGElementSize(o,{useBBox:!0}).width+jp.status.paddingLeft;return e-i-r-a},e.prototype.getStatusIconPathString=function(t){switch(t){case z.SUCCESS:return"M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";case z.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case z.WARNING:return"M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z"}},e}(dM),mM=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)}}(),yM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.isEventListenerAdded=!1,i.positionService=new AS,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=cw.appendOrSelect(i.tooltip,"div.content-box");if(Ep.getProperty(i.getOptions(),"tooltip","customHTML"))if(t.detail.content){var o='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";r.html(o)}else r.html(i.model.getOptions().tooltip.customHTML(e,n));else r.html(n);i.positionTooltip(t),i.tooltip.classed("hidden",!1).attr("aria-hidden",!1)},i.handleHideTooltip=function(){i.tooltip.classed("hidden",!0).attr("aria-hidden",!0)},i.init(),i}return mM(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(X.Tooltip.MOVE,(function(e){t.positionTooltip(e)})),this.services.events.addEventListener(X.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(X.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(X.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(X.Tooltip.MOVE,null),this.services.events.removeEventListener(X.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(X.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(X.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.getItems=function(t){return t.detail.items?t.detail.items:[]},e.prototype.formatItems=function(t){var e=this,n=this.getOptions(),r=Ep.getProperty(n,"tooltip","truncation","type"),i=Ep.getProperty(n,"tooltip","truncation","threshold"),o=Ep.getProperty(n,"tooltip","truncation","numCharacter");return r!==C.NONE?t.map((function(t){return t.value=t.value?e.valueFormatter(t.value):t.value,t.label&&t.label.length>i&&(t.label=Ep.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=Ep.truncateLabel(t.value,r,o)),t})):t},e.prototype.getTooltipHTML=function(t){var e;if(t.detail.content)e='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";else{var n=this.getItems(t),r=this.formatItems(n);e="<ul class='multi-tooltip'>"+r.map((function(t){return'<li>\n\t\t\t\t\t\t\t<div class="datapoint-tooltip '+(t.bold?"bold":"")+'">\n\t\t\t\t\t\t\t\t'+(t.class?'<a class="tooltip-color '+t.class+'"></a>':"")+"\n\t\t\t\t\t\t\t\t"+(t.color?'<a style="background-color: '+t.color+'" class="tooltip-color"></a>':"")+'\n\t\t\t\t\t\t\t\t<p class="label">'+(t.label||"")+'</p>\n\t\t\t\t\t\t\t\t<p class="value">'+(t.value||"")+"</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>"})).join("")+"</ul>"}return e},e.prototype.valueFormatter=function(t){var e=this.getOptions(),n=Ep.getProperty(e,"tooltip","valueFormatter");return n?n(t):t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=Ep.getProperty(t,"tooltip","enabled");if(e){var n=nw(this.services.domUtils.getHolder()),r=Ep.getProperty(t,"style","prefix");this.tooltip=cw.appendOrSelect(n,"div."+ow.prefix+"--"+r+"--tooltip"),this.tooltip.style("max-width",null),this.isEventListenerAdded||(this.addTooltipEventListener(),this.isEventListenerAdded=!0),this.tooltip.classed("hidden",!0)}else!e&&this.isEventListenerAdded&&(this.removeTooltipEventListener(),this.isEventListenerAdded=!1)},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=this.getOptions(),o=Ep.getProperty(i,"zoomBar","top","enabled"),a=Ep.getProperty(t,"detail","mousePosition");if(a){var s=Ep.getProperty(i,"zoomBar","top","type"),u=zp.height[s];o&&(a[1]+=u+zp.spacerHeight)}else a=Mp(n);var c=this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[mS.RIGHT,mS.LEFT,mS.TOP,mS.BOTTOM],(function(){return{width:n.offsetWidth,height:n.offsetHeight}})),l=Vp.horizontalOffset;c===mS.LEFT&&(l*=-1),e=this.positionService.findPositionAt({left:a[0]+l,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(OS),_M=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 _M(e,t),e.prototype.getItems=function(t){var e=this;if(t.detail.items)return t.detail.items;var n=t.detail.data;if(!n.length||!n[0])return[];var r=this.getOptions(),i=this.services.cartesianScales,o=i.getDomainAxisOptions(),a=i.getDomainIdentifier(),s=i.getDomainAxisScaleType(),u=r.data.groupMapsTo,c=o.title;if(!c){var l=i.getDomainAxisPosition();c=l===M.BOTTOM||l===M.TOP?"x-value":"y-value"}var h,f=n[0][a];if(s===D.TIME?f=JT(new Date(n[0][a]),"MMM d, yyyy"):s===D.LINEAR&&(f=f.toLocaleString()),1===n.length){var p=n[0],d=i.getRangeAxisPosition({datum:p}),v=i.getRangeIdentifier(p),g=i.getAxisOptions(d),m=g.title;m||(m=d===M.LEFT||d===M.RIGHT?"y-value":"x-value"),h=[{label:c,value:f},{label:m,value:p[v]},{label:r.tooltip.groupLabel||"Group",value:p[u],color:this.model.getFillColor(p[u]),class:this.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:p[u]})}]}else if(n.length>1){h=[{label:c,value:this.valueFormatter(f)}],h=h.concat(n.map((function(t){return{label:t[u],value:e.valueFormatter(t[i.getRangeIdentifier(t)]),color:e.model.getFillColor(t[u]),class:e.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:t[u]})}})).sort((function(t,e){return e.value-t.value})));var y=i.isDualAxes();if(!y&&!0===Ep.getProperty(r,"tooltip","showTotal")){var _=i.getRangeIdentifier();h.push({label:r.tooltip.totalLabel||"Total",value:this.valueFormatter(n.reduce((function(t,e){return t+e[_]}),0)),bold:!0})}}return h},e}(yM),wM=Math.PI,OM=2*wM,xM=1e-6,EM=OM-xM;function SM(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function TM(){return new SM}SM.prototype=TM.prototype={constructor:SM,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>xM)if(Math.abs(l*s-u*c)>xM&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,g=Math.sqrt(d),m=Math.sqrt(h),y=i*Math.tan((wM-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>xM&&(this._+="L"+(t+_*c)+","+(e+_*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)>xM||Math.abs(this._y1-c)>xM)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%OM+OM),h>EM?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>xM&&(this._+="A"+n+","+n+",0,"+ +(h>=wM)+","+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 MM=TM;function AM(t){return t[0]}function CM(t){return t[1]}var PM=function(){var t=AM,e=CM,n=p_(!0),r=null,i=dE,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=MM())),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:p_(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:p_(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:p_(!!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},DM=function(){var t=AM,e=null,n=p_(0),r=CM,i=p_(!0),o=null,a=dE,s=null;function u(u){var c,l,h,f,p,d=u.length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=MM())),c=0;c<=d;++c){if(!(c<d&&i(f=u[c],c,u))===v)if(v=!v)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=l;--h)s.point(g[h],m[h]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+t(f,c,u),m[c]=+n(f,c,u),s.point(e?+e(f,c,u):g[c],r?+r(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return PM().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:p_(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:p_(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:p_(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:p_(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:p_(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:p_(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:p_(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u},kM=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)}}(),LM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?kp.opacity.unselected:kp.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",kp.opacity.selected)},e}return kM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=DM().curve(this.services.curves.getD3Curve()),s=this.model.getGroupedData(this.configs.groups),u=Ep.getProperty(this.getOptions(),"bounds"),c=u&&s&&1===s.length;!c&&u&&console.warn("Bounds can only be shown when having 1 single datagroup, you've supplied "+s.length);var l=function(t,e){return c?i.getBoundedScaledValues(t,e)[0]:i.getRangeValue(0)},h=function(t,e){return c?i.getBoundedScaledValues(t,e)[1]:i.getRangeValue(t,e)};o===P.VERTICAL?(r=this.services.cartesianScales.getMainYScale().domain(),a.x((function(t,e){return i.getDomainValue(t,e)})).y0((function(t,e){return l(t,e)})).y1((function(t,e){return h(t,e)}))):(r=this.services.cartesianScales.getMainXScale().domain(),a.x0((function(t,e){return l(t,e)})).x1((function(t,e){return h(t,e)})).y((function(t,e){return i.getDomainValue(t,e)})));var f=Ep.getProperty(this.getOptions(),"color","gradient","enabled"),p=s&&1===s.length&&f;s.length>1&&f&&console.error("Gradients can only be enabled when having 1 single dataset");var d=n.selectAll("path.area").data(s),v=Ep.getProperty(this.getOptions(),"style","prefix"),g=cw.appendOrSelect(nw(this.services.domUtils.getHolder()),"svg."+ow.prefix+"--"+v+"--chart-svg");if(d.exit().attr("opacity",0).remove(),s.length){var m=g.select("path."+this.model.getColorClassName({classNameTypes:[T.STROKE],dataGroupName:s[0].name})).node(),y=m?getComputedStyle(m,null).getPropertyValue("stroke"):null;p&&y?Sx.appendOrUpdateLinearGradient({svg:this.parent,id:s[0].name.replace(" ","")+"_"+this.gradient_id,x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:Sx.getStops(r,y)}):this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var _=this,b=d.enter().append("path");p?b.merge(d).style("fill",(function(t){return"url(#"+t.name.replace(" ","")+"_"+e.gradient_id+")"})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):(b.attr("opacity",0).merge(d).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return _.model.getFillColor(t.name)})).transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",c?1:kp.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)})),c&&b.attr("fill-opacity",kp.opacity.selected).style("stroke",(function(t){return _.model.getStrokeColor(t.name)})).style("stroke-dasharray","2, 2").attr("stroke-width","0.7px"))}},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(OS),RM=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)}}(),IM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t[0][i]!==n.datum().name?kp.opacity.unselected:kp.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",kp.opacity.selected)},e}return RM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this,i=this.getOptions(),a=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({percentage:s,groups:this.configs.groups}),c=this.services.cartesianScales.getDomainAxisPosition({datum:u[0][0]}),l=this.services.cartesianScales.getRangeAxisPosition({datum:u[0][0]}),h=this.services.cartesianScales.getScaleByPosition(l),f=n.selectAll("path.area").data(u,(function(t){return t[0][a]}));this.areaGenerator=DM().x((function(t,n){return e.services.cartesianScales.getValueThroughAxisPosition(c,t.data.sharedStackKey,n)})).y0((function(t){return h(t[0])})).y1((function(t){return h(t[1])})).curve(this.services.curves.getD3Curve()),f.exit().attr("opacity",0).remove();var p=f.enter().append("path").attr("opacity",0);p.merge(f).data(u,(function(t){return t[0][a]})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[0][a],originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(t[0][a])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",kp.opacity.selected).attr("d",this.areaGenerator)},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(OS),jM=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)}}(),NM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jM(e,t),e.prototype.getBarWidth=function(t){var e=this.getOptions();if(e.bars.width)return e.bars.width;var n=this.model.getDisplayData().length,r=this.services.cartesianScales.getMainXScale(),i=cw.getSVGElementSize(this.parent,{useAttrs:!0}).width;return r.step?Math.min(e.bars.maxWidth,r.step()/2):Math.min(e.bars.maxWidth,.25*i/n)},e.prototype.isOutsideZoomedDomain=function(t,e){var n=this.model.getDisplayData().length;if(n<=1)return!1;var r=this.model.get("zoomDomain");if(void 0!==r){var i=this.services.cartesianScales.getDomainScale();return t<i(r[0])||e>i(r[1])}return!1},e}(OS),BM=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)}}(),GM=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,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return BM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG({withinChartClip:!0}),a=this.model.getDisplayData(this.configs.groups),s=i.selectAll("path.bar").data(a,(function(t){return t[r]}));s.exit().attr("opacity",0).remove();var u=s.enter().append("path").attr("opacity",0);u.merge(s).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=e.getBarWidth(),i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0),s=e.services.cartesianScales.getRangeValue(t,n);if(!e.isOutsideZoomedDomain(i,o))return Ep.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.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("path.bar").on("mouseover",(function(e){var n=nw(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(X.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){nw(this);t.services.events.dispatchEvent(X.Bar.BAR_MOUSEMOVE,{element:nw(this),datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Bar.BAR_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(X.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(NM),VM=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)}}(),UM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.padding=5,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return VM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups),r=this.getOptions(),i=r.data.groupMapsTo;this.setGroupScale();var a=this.getContainerSVG({withinChartClip:!0}),s=bd(n,(function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]})).keys(),u=a.selectAll("g.bars").data(s,(function(t){return t}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("data-name","bars"),l=c.merge(u);l.transition(this.services.transitions.getTransition("bar-group-update-enter",t)).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===P.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"}));var h=l.selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}),(function(t){return t[i]}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").attr("opacity",0);f.merge(h).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t){var n=e.groupScale(t[i]),r=e.getBarWidth(),o=n,a=n+r,s=e.services.cartesianScales.getRangeAxisPosition({datum:t}),u=e.services.cartesianScales.getValueThroughAxisPosition(s,0),c=e.services.cartesianScales.getRangeValue(t);if(!e.isOutsideZoomedDomain(o,a))return Ep.generateSVGPathString({x0:o,x1:a,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.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("path.bar").on("mouseover",(function(e){var n=nw(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(X.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Bar.BAR_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Bar.BAR_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(X.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups);return n.filter((function(n){var r=e.services.cartesianScales.getDomainIdentifier(n);return n[r]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getGroupedData(this.configs.groups),e=this.getTotalGroupPadding();return this.getBarWidth()*t.length+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getGroupedData(this.configs.groups);if(1===t.length)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t.length-1)},e.prototype.getBarWidth=function(){var t=this.getOptions(),e=Ep.getProperty(t,"bars","width"),n=Ep.getProperty(t,"bars","maxWidth");if(null!==e&&(null===n||e<=n))return e;var r=this.model.getGroupedData(this.configs.groups),i=r.length,o=this.getTotalGroupPadding(),a=this.services.cartesianScales.getDomainScale();return Math.min(n,(a.step()-o)/i)},e.prototype.setGroupScale=function(){var t=this.model.getActiveDataGroupNames(this.configs.groups);this.groupScale=Zd().domain(t).rangeRound([0,this.getGroupWidth()])},e}(NM),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)}}(),zM=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,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return HM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,a=this.model.getStackedData({groups:this.configs.groups}),s=n.selectAll("g.bars").data(a,(function(t){return t.length>0?t[0][i]:null}));s.exit().attr("opacity",0).remove(),s.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("data-name","bars");var u=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));u.exit().remove(),u.enter().append("path").merge(u).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t,n){var i=t.data.sharedStackKey,o=e.getBarWidth(),a=e.services.cartesianScales.getDomainValue(i,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(t[0],n),c=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,s))return Math.abs(c-u)>0&&Math.abs(c-u)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===P.VERTICAL?c+=1:c-=1),Ep.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t[1]-t[0]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r,i=nw(this);i.classed("hovered",!0),i.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")),n.services.events.dispatchEvent(X.Bar.BAR_MOUSEOVER,{element:i,datum:t});var o=n.model.getDisplayData(n.configs.groups),a=o.find((function(r){var i=n.services.cartesianScales.getDomainIdentifier(r),o=n.services.cartesianScales.getRangeIdentifier(r);return r[o]===t.data[t.group]&&r[i].toString()===t.data.sharedStackKey&&r[e]===t.group}));if(void 0===a){var s=n.services.cartesianScales.getDomainIdentifier(),u=n.services.cartesianScales.getRangeIdentifier();r={},r[s]=t.data.sharedStackKey,r[u]=t.data[t.group],r[e]=t.group,a=r}n.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:i,data:[a]})})).on("mousemove",(function(t){var e=nw(this);n.services.events.dispatchEvent(X.Bar.BAR_MOUSEMOVE,{element:e,datum:t}),n.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(t){n.services.events.dispatchEvent(X.Bar.BAR_CLICK,{element:nw(this),datum:t})})).on("mouseout",(function(t){var e=nw(this);e.classed("hovered",!1),n.services.events.dispatchEvent(X.Bar.BAR_MOUSEOUT,{element:e,datum:t}),n.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(NM),FM=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)}}(),WM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.handleChartHolderOnHover=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-hover-scatter")).attr("opacity",1)},e.handleChartHolderOnMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-mouseout-scatter")).attr("opacity",0)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-hover-scatter")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-mouseout-scatter")).attr("opacity",1)},e}return FM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(X.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(X.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.filterBasedOnZoomDomain=function(t){var e=this.services.cartesianScales.getDomainIdentifier(t),n=this.model.get("zoomDomain");return void 0!==n?t.filter((function(t){return t[e].getTime()>n[0].getTime()&&t[e].getTime()<n[1].getTime()})):t},e.prototype.getScatterData=function(){var t,e=this,n=this.getOptions(),r=this.configs.stacked;if(r){var i=Object.keys(n.axes).some((function(t){return n.axes[t].percentage}));t=this.model.getStackedData({groups:this.configs.groups,percentage:i})}else t=this.model.getDisplayData(this.configs.groups).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return void 0!==t[n]&&null!==t[n]}));return this.filterBasedOnZoomDomain(t)},e.prototype.render=function(t){var e=Ep.getProperty(this.getOptions(),"points","enabled")||Ep.getProperty(this.getOptions(),"bubble","enabled");if(e){var n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales.getDomainIdentifier(),a=n.selectAll("circle.dot").data(this.getScatterData(),(function(t){return t[i]+"-"+t[o]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("circle").classed("dot",!0).attr("opacity",0),u=s.merge(a);this.styleCircles(u,t),this.addEventListeners()}},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this,r=this.configs.handleThresholds;if(!r)return!1;var i=this.services.cartesianScales,o=i.getOrientation(),a=Ep.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=Ep.flipDomainAndRangeBasedOnOrientation((function(t,e){return n.services.cartesianScales.getDomainValue(t,e)}),(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)}),o),l=c[0],h=c[1],f=l(t,e),p=h(t,e);return u&&s?p<=u.scaleValue&&f>=s.scaleValue:u?p<=u.scaleValue:s?f>=s.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.points,a=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=u.transitions,h=r.data.groupMapsTo,f=function(t,e){return c.getDomainValue(t,e)},p=function(t,e){return c.getRangeValue(t,e)},d=Ep.flipDomainAndRangeBasedOnOrientation(f,p,c.getOrientation()),v=d[0],g=d[1],m=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=c.getDomainIdentifier(t),r=n.model.getIsFilled(t[h],t[e],t,a),i=r?[T.FILL,T.STROKE]:[T.STROKE];return n.model.getColorClassName({classNameTypes:i,dataGroupName:t[h],originalClassName:"dot"})})).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){var e=c.getDomainIdentifier(t);return n.model.getIsFilled(t[h],t[e],t,a)})).classed("unfilled",(function(t){var e=c.getDomainIdentifier(t);return!n.model.getIsFilled(t[h],t[e],t,a)})).transition(l.getTransition("scatter-update-enter",e)).attr("cx",v).attr("cy",g).attr("r",r.points.radius).style("fill",(function(t){var e=c.getDomainIdentifier(t);if(n.model.getIsFilled(t[h],t[e],t,a))return n.model.getFillColor(t[h],t[e],t)})).style("stroke",(function(t){var e=c.getDomainIdentifier(t);return n.model.getStrokeColor(t[h],t[e],t)})).attr("fill-opacity",a?s:1).attr("opacity",m?0:1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){var e=c.getRangeIdentifier(t);return t[e]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=t.getOptions().data.groupMapsTo;this.parent.selectAll("circle").on("mouseover",(function(n){var r=nw(this);r.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:n[e],originalClassName:r.attr("class")})})).style("fill",(function(n){var r=t.services.cartesianScales.getDomainIdentifier(n);return t.model.getFillColor(n[e],n[r],n)})).classed("unfilled",!1),t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:r,data:[n]}),t.services.events.dispatchEvent(X.Scatter.SCATTER_MOUSEOVER,{element:r,datum:n})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Scatter.SCATTER_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Scatter.SCATTER_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(n){var r=nw(this);if(r.classed("hovered",!1),!t.configs.filled){var i=t.getOptions().points.filled,o=t.services.cartesianScales.getDomainIdentifier(n);r.classed("unfilled",!t.model.getIsFilled(n[e],n[o],n,i)).style("fill",(function(n){return i?t.model.getFillColor(n[e],n[o],n):null}))}t.services.events.dispatchEvent(X.Scatter.SCATTER_MOUSEOUT,{element:r,datum:n}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(X.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(X.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(OS),YM=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)}}(),XM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return YM(e,t),e.prototype.getRadiusScale=function(t){var e=this.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=cw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),a=i.length>0,s=a?Dd(i):[1,1];return Rg().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.bubble.radiusMapsTo,a=this.getRadiusScale(t),s=r.data.groupMapsTo;t.raise().classed("dot",!0).attr("role",o.GRAPHICS_SYMBOL).transition(this.services.transitions.getTransition("bubble-update-enter",e)).attr("cx",(function(t,e){return n.services.cartesianScales.getDomainValue(t,e)})).attr("cy",(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)})).attr("r",(function(t){return a(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t[s],originalClassName:"dot"})})).style("fill",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getFillColor(t[s],t[e],t)})).style("stroke",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getStrokeColor(t[s],t[e],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("opacity",1)},e}(WM),qM=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)}}(),ZM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?Ip.opacity.unselected:Ip.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",Ip.opacity.selected)},e}return qM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this.services,i=r.cartesianScales,a=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=Ep.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=PM().x(l).y(h).curve(a.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(t),r=t[n];return null!==r&&void 0!==r})),d=[];if(this.configs.stacked){var v=Object.keys(f.axes).some((function(t){return f.axes[t].percentage})),g=f.data.groupMapsTo,m=this.model.getStackedData({groups:this.configs.groups,percentage:v});d=m.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t),r=e.services.cartesianScales.getRangeIdentifier(t);return{name:t[0][g],data:t.map((function(t){var e;return e={},e[n]=t.data.sharedStackKey,e[g]=t[g],e[r]=t[1],e})),hidden:!Ep.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData(this.configs.groups);var y=n.selectAll("path.line").data(d,(function(t){return t.name}));y.exit().attr("opacity",0).remove();var _=y.enter().append("path").classed("line",!0).attr("opacity",0);_.merge(y).data(d,(function(t){return t.name})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.STROKE],dataGroupName:t.name,originalClassName:"line"})})).style("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data;return n.map((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return t[n]})).join(",")})).transition(this.services.transitions.getTransition("line-update-enter",t)).attr("opacity",(function(t){return t.hidden?0:1})).attr("d",(function(t){var e=t.data;return p(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(OS),KM=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)}}(),$M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.handleScatterOnHover=function(t){var n=t.detail,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").attr("stroke-width",(function(t){return t[i]!==n.datum[i]?Ip.weight.unselected:Ip.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",Ip.weight.unselected)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t[i]!==n.datum()["name"]?Ip.opacity.unselected:Ip.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",Ip.opacity.selected)},e}return KM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.model.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales,a=o.getMainXScale(),s=o.getMainYScale(),u=o.getDomainIdentifier(),c=function(t,e){return o.getDomainValue(t,e)},l=function(t,e){return o.getRangeValue(t,e)},h=o.getOrientation(),f=Ep.flipDomainAndRangeBasedOnOrientation(c,l,h),p=f[0],d=f[1],v=n.selectAll("line.line").data(this.getScatterData(),(function(t){return t[i]+"-"+t[u]}));v.exit().attr("opacity",0).remove();var g=v.enter().append("line").attr("opacity",0),m=g.merge(v).classed("line",!0).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.STROKE],dataGroupName:t[i],originalClassName:"line"})})).transition(this.services.transitions.getTransition("lollipop-line-update-enter",t)).style("stroke",(function(t){return e.model.getFillColor(t[i],t[u],t)})).attr("opacity",1);h===P.HORIZONTAL?m.attr("y1",d).attr("y2",d).attr("x1",a.range()[0]).attr("x2",(function(t,e){return p(t,e)-r.points.radius})):m.attr("x1",p).attr("x2",p).attr("y1",s.range()[0]).attr("y2",(function(t,e){return d(t,e)+r.points.radius})),this.addScatterPointEventListeners()},e.prototype.addScatterPointEventListeners=function(){this.services.events.addEventListener(X.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(X.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){this.parent.selectAll("line.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(X.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(X.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(WM),QM=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)}}(),JM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e}return QM(e,t),e.prototype.render=function(t){var e=this,n=Ep.getProperty(this.getOptions(),"points","enabled");if(n){var r=this.getContainerSVG({withinChartClip:!0}),i=this.getOptions(),a=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({groups:this.configs.groups,percentage:s}),c=r.selectAll("g.dots").data(u,(function(t){return t[0][a]}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",o.GROUP),h=l.merge(c).selectAll("circle.dot").data((function(t){return t}));h.exit().attr("opacity",0).remove();var f=h.enter().append("circle").classed("dot",!0).attr("opacity",0),p=f.merge(h).datum((function(t){var n,r=t[a],i=e.services.cartesianScales.getDomainIdentifier(t),o=e.services.cartesianScales.getRangeIdentifier(t);return n={},n[a]=r,n[i]=t["data"]["sharedStackKey"],n[o]=t[1],n}));this.styleCircles(p,t),this.addEventListeners()}},e.prototype.getTooltipData=function(t,e){var n=this,r=this.getOptions(),i=r.data.groupMapsTo,o=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),a=this.model.getStackedData({groups:this.configs.groups,percentage:o}),s=[];return a.forEach((function(r,a){r.forEach((function(r,u){var c,l=r[i],h=r["data"]["sharedStackKey"],f=r["data"][l],p=r[1],d=n.services.cartesianScales.getDomainIdentifier(r),v=n.services.cartesianScales.getRangeIdentifier(r);null!==f&&void 0!==f&&t===n.services.cartesianScales.getDomainValue(h)&&e===n.services.cartesianScales.getRangeValue(p)&&(o&&(f=n.model.getStackedData({groups:n.configs.groups})[a][u]["data"][l]),null!==f&&s.push((c={},c[i]=l,c[d]=h,c[v]=f,c)))}))})),this.model.getDisplayData(this.configs.groups).filter((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t),r=n.services.cartesianScales.getRangeIdentifier(t);return void 0!==s.find((function(n){return n[i]==t[i]&&n[e]==t[e]&&n[r]==t[r]}))}))},e}(WM);function tA(t){return t.innerRadius}function eA(t){return t.outerRadius}function nA(t){return t.startAngle}function rA(t){return t.endAngle}function iA(t){return t&&t.padAngle}function oA(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<UE))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function aA(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/VE(s*s+u*u),l=c*u,h=-c*s,f=t+l,p=e+h,d=n+l,v=r+h,g=(f+d)/2,m=(p+v)/2,y=d-f,_=v-p,b=y*y+_*_,w=i-o,O=f*v-d*p,x=(_<0?-1:1)*VE(NE(0,w*w*b-O*O)),E=(O*_-y*x)/b,S=(-O*y-_*x)/b,T=(O*_+y*x)/b,M=(-O*y+_*x)/b,A=E-g,C=S-m,P=T-g,D=M-m;return A*A+C*C>P*P+D*D&&(E=T,S=M),{cx:E,cy:S,x01:-l,y01:-h,x11:E*(i/w-1),y11:S*(i/w-1)}}var sA=function(){var t=tA,e=eA,n=p_(0),r=null,i=nA,o=rA,a=iA,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-zE,p=o.apply(this,arguments)-zE,d=RE(p-f),v=p>f;if(s||(s=u=MM()),h<l&&(c=h,h=l,l=c),h>UE)if(d>FE-UE)s.moveTo(h*jE(f),h*GE(f)),s.arc(0,0,h,f,p,!v),l>UE&&(s.moveTo(l*jE(p),l*GE(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,w=p,O=d,x=d,E=a.apply(this,arguments)/2,S=E>UE&&(r?+r.apply(this,arguments):VE(l*l+h*h)),T=BE(RE(h-l)/2,+n.apply(this,arguments)),M=T,A=T;if(S>UE){var C=YE(S/l*GE(E)),P=YE(S/h*GE(E));(O-=2*C)>UE?(C*=v?1:-1,b+=C,w-=C):(O=0,b=w=(f+p)/2),(x-=2*P)>UE?(P*=v?1:-1,y+=P,_-=P):(x=0,y=_=(f+p)/2)}var D=h*jE(y),k=h*GE(y),L=l*jE(w),R=l*GE(w);if(T>UE){var I,j=h*jE(_),N=h*GE(_),B=l*jE(b),G=l*GE(b);if(d<HE&&(I=oA(D,k,B,G,j,N,L,R))){var V=D-I[0],U=k-I[1],H=j-I[0],z=N-I[1],F=1/GE(WE((V*H+U*z)/(VE(V*V+U*U)*VE(H*H+z*z)))/2),W=VE(I[0]*I[0]+I[1]*I[1]);M=BE(T,(l-W)/(F-1)),A=BE(T,(h-W)/(F+1))}}x>UE?A>UE?(g=aA(B,G,D,k,h,A,v),m=aA(j,N,L,R,h,A,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),A<T?s.arc(g.cx,g.cy,A,IE(g.y01,g.x01),IE(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,A,IE(g.y01,g.x01),IE(g.y11,g.x11),!v),s.arc(0,0,h,IE(g.cy+g.y11,g.cx+g.x11),IE(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,A,IE(m.y11,m.x11),IE(m.y01,m.x01),!v))):(s.moveTo(D,k),s.arc(0,0,h,y,_,!v)):s.moveTo(D,k),l>UE&&O>UE?M>UE?(g=aA(L,R,j,N,l,-M,v),m=aA(D,k,B,G,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,IE(g.y01,g.x01),IE(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,IE(g.y01,g.x01),IE(g.y11,g.x11),!v),s.arc(0,0,l,IE(g.cy+g.y11,g.cx+g.x11),IE(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,IE(m.y11,m.x11),IE(m.y01,m.x01),!v))):s.arc(0,0,l,w,b,v):s.lineTo(L,R)}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-HE/2;return[jE(r)*n,GE(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:p_(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:p_(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:p_(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:p_(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:p_(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:p_(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:p_(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},uA=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},cA=function(t){return t},lA=function(){var t=cA,e=uA,n=null,r=p_(0),i=p_(FE),o=p_(0);function a(a){var s,u,c,l,h,f=a.length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(FE,Math.max(-FE,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/f,o.apply(this,arguments)),_=y*(m<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?(m-f*_)/p:0;s<f;++s,g=l)u=d[s],h=v[u],l=g+(h>0?h*c:0)+_,v[u]={data:a[u],index:s,value:h,startAngle:g,endAngle:l,padAngle:y};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:p_(+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:p_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:p_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:p_(+t),a):o},a},hA=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 fA(t,e){var n=this,r=Kv(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var pA=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,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.data[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return hA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return Np.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getDisplayData().filter((function(t){return t.value>0})),a=this.getOptions(),s=a.data.groupMapsTo,u=this.computeRadius();this.arc=sA().innerRadius(this.getInnerRadius()).outerRadius(u),this.hoverArc=sA().innerRadius(this.getInnerRadius()).outerRadius(u+Np.hoverArc.outerRadiusOffset);var c=lA().value((function(t){return t.value})).sort(null).padAngle(Np.padAngle),l=c(i).sort((function(t,e){return t.index-e.index})),h=cw.appendOrSelect(r,"g.slices").attr("role",o.GROUP).attr("data-name","slices"),f=h.selectAll("path.slice").data(l,(function(t){return t.data[s]}));f.exit().attr("opacity",0).remove();var p=f.enter().append("path").classed("slice",!0).attr("opacity",0);p.merge(f).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.data[s],originalClassName:"slice"})})).style("fill",(function(t){return n.model.getFillColor(t.data[s])})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+Ep.convertValueToPercentage(t.data.value,i)+"%"})).attrTween("d",(function(t){return fA.bind(this)(t,n.arc)}));var d=l.filter((function(t){return t.value>0})),v=cw.appendOrSelect(r,"g.labels").attr("role",o.GROUP).attr("data-name","labels"),g=v.selectAll("text.pie-label").data(d,(function(t){return t.data[s]}));g.exit().attr("opacity",0).remove();var m=g.enter().append("text").classed("pie-label",!0),y=[];m.merge(g).style("text-anchor","middle").text((function(t){return a.pie.labels.formatter?a.pie.labels.formatter(t):Ep.convertValueToPercentage(t.data.value,i)+"%"})).datum((function(t){var e=u+7,n=(t.endAngle-t.startAngle)/2+t.startAngle,r=n/Math.PI*180,i=this.getComputedTextLength();return t.textOffsetX=i/2,t.textOffsetY=r>90&&r<270?10:0,t.xPosition=(t.textOffsetX+e)*Math.sin(n),t.yPosition=(t.textOffsetY+e)*-Math.cos(n),t})).attr("transform",(function(t,e){var n=d.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<Np.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+Np.callout.offsetX+Np.callout.textMargin+t.textOffsetX,o=t.yPosition-Np.callout.offsetY,t.direction=N.RIGHT,y.push(t)):(i=t.xPosition-Np.callout.offsetX-t.textOffsetX-Np.callout.textMargin,o=t.yPosition-Np.callout.offsetY,t.direction=N.LEFT,y.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(y);var _=Ep.getProperty(a,"donut")?"donut":"pie",b=Ep.getProperty(a,_,"alignment"),w=cw.getSVGElementSize(this.getParent(),{useAttr:!0}).width,O=u+Np.xOffset;b===L.CENTER?O=w/2:b===L.RIGHT&&(O=w-u-Np.xOffset);var x=u+Np.yOffset;y.length>0&&(x+=Np.yOffsetCallout),r.attr("transform","translate("+O+", "+x+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=cw.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",o.GROUP).attr("data-name","callouts"),n=e.selectAll("g.callout").data(t);n.exit().remove();var r=n.enter().append("g").classed("callout",!0).attr("role",o.GRAPHICS_SYMBOL+" "+o.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===N.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+Np.callout.offsetX,y:n-Np.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-Np.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-Np.callout.offsetX,y:n-Np.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+Np.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return nw(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 a=r.append("line").classed("horizontal-line",!0);a.merge(e.selectAll("line.horizontal-line")).datum((function(t){return nw(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("mouseover",(function(e){var n=nw(this);n.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(X.Pie.SLICE_MOUSEOVER,{element:nw(this),datum:e});var r=t.getOptions().data.groupMapsTo;t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,items:[{label:e.data[r],value:e.data.value}]})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Pie.SLICE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Pie.SLICE_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(X.Pie.SLICE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.computeRadius=function(){var t=cw.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+Np.radiusOffset},e}(OS),dA=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)}}(),vA="4,10 8,6 12,10",gA="12,6 8,10 4,6",mA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return dA(e,t),e.prototype.init=function(){this.services.events},e.prototype.getValue=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"value"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getValueRatio=function(){var t=Ep.clamp(this.getValue(),0,100);return t/100},e.prototype.getDelta=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"delta"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getArcRatio=function(){var t=this.getOptions(),e=Ep.getProperty(t,"gauge","type"),n=e===U.FULL?1:.5;return n},e.prototype.getArcSize=function(){return this.getArcRatio()*Math.PI*2},e.prototype.getStartAngle=function(){var t=this.getArcSize();return t===2*Math.PI?0:-t/2},e.prototype.getArrow=function(t){var e=this.getOptions(),n=Ep.getProperty(e,"gauge","deltaArrow","direction");switch(n){case H.UP:return vA;case H.DOWN:return gA;default:return t>0?vA:gA}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.getOptions(),i=(r.data.groupMapsTo,this.getValue()),a=this.getValueRatio(),s=this.getArcSize(),u=this.getStartAngle(),c=a*s,l=u+c,h=u+s,f=this.computeRadius(),p=this.getInnerRadius();this.backgroundArc=sA().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=sA().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),cw.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",o.GROUP);var d=n.selectAll("path.arc-foreground").data([i]),v=d.enter().append("path");v.merge(d).attr("class",this.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return Ep.getProperty(e.getOptions(),"color","scale","value")})).attr("d",this.arc).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),this.drawValueNumber(),this.drawDelta(),d.exit().remove();var g=Ep.getProperty(r,"gauge","alignment"),m=cw.getSVGElementSize(this.getParent(),{useAttr:!0}).width,y=f;g===L.CENTER?y=m/2:g===L.RIGHT&&(y=m-f),n.attr("transform","translate("+y+", "+f+")"),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getContainerSVG(),e=this.getOptions(),n=Ep.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=Ep.getProperty(e,"gauge","valueFontSize"),s=Ep.getProperty(e,"gauge","deltaFontSize"),u=Ep.getProperty(e,"gauge","numberSpacing"),c=0;n!==U.FULL||i?n===U.SEMI&&i&&(c=-(s(o)+u)):c=s(o);var l=cw.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+c+")"),h=cw.appendOrSelect(l,"g.gauge-value-number").attr("transform","translate(-10, 0)"),f=Ep.getProperty(e,"gauge","numberFormatter"),p=h.selectAll("text.gauge-value-number").data([r]);p.enter().append("text").attr("class","gauge-value-number").merge(p).style("font-size",a(o)+"px").attr("text-anchor","middle").text((function(t){return f(t)}));var d=cw.getSVGElementSize(cw.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width;cw.appendOrSelect(h,"text.gauge-value-symbol").style("font-size",a(o)/2+"px").attr("x",d/2).text("%")},e.prototype.drawDelta=function(){var t=this,e=this.getContainerSVG(),n=this.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?Ep.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?Ep.getProperty(n,"gauge","numberFormatter"):function(){return null},s=Ep.getProperty(n,"gauge","deltaArrow","size"),u=Ep.getProperty(n,"gauge","numberSpacing"),c=cw.appendOrSelect(e,"g.gauge-numbers"),l=cw.appendOrSelect(c,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),h=cw.appendOrSelect(l,"text.gauge-delta-number");h.data(null===r?[]:[r]),h.enter().append("text").classed("gauge-delta-number",!0).merge(h).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return a(t)+"%"}));var f=cw.getSVGElementSize(cw.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,p=Ep.getProperty(n,"gauge","deltaArrow","enabled"),d=l.selectAll("svg.gauge-delta-arrow").data(null!==r&&p?[r]:[]);d.enter().append("svg").merge(d).attr("class","gauge-delta-arrow").attr("x",-s(i)-f/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16"),cw.appendOrSelect(d,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var v=Ep.getProperty(n,"gauge","status");cw.appendOrSelect(d,"polygon.gauge-delta-arrow").attr("class",null!==v?"gauge-delta-arrow status--"+v:"").attr("points",t.getArrow(r)),d.exit().remove(),h.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=Ep.getProperty(this.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc-foreground").on("mouseover",(function(e){t.services.events.dispatchEvent(X.Gauge.ARC_MOUSEOVER,{element:nw(this),datum:e})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Gauge.ARC_MOUSEMOVE,{element:n,datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(X.Gauge.ARC_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Gauge.ARC_MOUSEOUT,{element:n,datum:e})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=Ep.getProperty(t,"gauge","type"),n=cw.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===U.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(OS),yA=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)}}(),_A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return yA(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e);var n=this;if(this.model.isDataEmpty())this.getContainerSVG().select("g.center").remove();else{var r=cw.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.getOptions(),o=this.computeRadius();cw.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(nw(this))})),cw.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(Ep.getProperty(i,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.getOptions(),n=Ep.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,e){return t+e.value}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?$v:zv;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(pA);function bA(t){return+t}var wA=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)}}(),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return wA(e,t),e.prototype.render=function(){var t=this.parent,e=t.node().parentNode,n=cw.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;t.attr("width",r).attr("height",i);var o=Ep.getProperty(this.getOptions(),"data","loading");o?this.renderSkeleton(o):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===B.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===B.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===B.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==B.DONUT)throw new Error('"'+this.configs.skeleton+'" is not a valid Skeleton type.');this.renderDonutSkeleton(t)}},e.prototype.renderGridSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawXGrid(t),this.drawYGrid(t),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.renderVertOrHorizSkeleton=function(t){var e=this.services.cartesianScales.getOrientation();this.setScales(),this.drawBackdrop(t),e===P.VERTICAL&&this.drawYGrid(t),e===P.HORIZONTAL&&this.drawXGrid(t),this.setShimmerEffect("shimmer-lines")},e.prototype.renderPieSkeleton=function(t){var e=this.computeOuterRadius(),n=0;this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.renderDonutSkeleton=function(t){var e=this.computeOuterRadius(),n=this.computeInnerRadius();this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.setScales=function(){var t=this.services.cartesianScales.getMainXScale().range(),e=this.services.cartesianScales.getMainYScale().range();this.xScale=Rg().domain([0,1]).range(t),this.yScale=Rg().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=e.node().parentNode,r=cw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;this.backdrop=cw.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",i).attr("height",o);var a=cw.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");a.attr("width","100%").attr("height","100%");var s=this.xScale.range(),u=s[0],c=(s[1],this.yScale.range()),l=(c[0],c[1]);this.backdrop.merge(a).attr("x",u).attr("y",l),a.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=Ep.getProperty(this.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*n})),o=cw.appendOrSelect(this.backdrop,"g.x.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2",e),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawYGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=Ep.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=cw.appendOrSelect(this.backdrop,"g.y.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",0).attr("x2",n).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawRing=function(t,e,n){void 0===n&&(n=!0);var r=this.parent,i=cw.getSVGElementSize(r.node().parentNode,{useAttrs:!0}),o=i.width,a=i.height,s=cw.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=Ep.getProperty(this.getOptions(),u,"alignment");cw.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=sA().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(Np.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=cw.appendOrSelect(s,"path").attr("class","skeleton-area-shape").attr("transform","translate("+h+", "+f+")").attr("d",l).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n),d=t+Np.xOffset;c===L.CENTER?d=o/2:c===L.RIGHT&&(d=o-t-Np.xOffset);var v=t+Np.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=cw.getSVGElementSize(this.parent.node().parentNode,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+Np.radiusOffset},e.prototype.computeInnerRadius=function(){return.75*this.computeOuterRadius()},e.prototype.setShimmerEffect=function(t){var e=2e3,n=1e3,r=.2,i="stop-bg-shimmer",o="stop-shimmer",a=this.parent.select(".chart-skeleton"),s=cw.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=cw.appendOrSelect(a,"defs").lower(),h=cw.appendOrSelect(l,"linearGradient").attr("id",t).attr("x1",u-3*r*s).attr("x2",c).attr("y1",0).attr("y2",0).attr("gradientUnits","userSpaceOnUse").attr("gradientTransform","translate(0, 0)"),f='\n\t\t\t<stop class="'+i+'" offset="'+u+'"></stop>\n\t\t\t<stop class="'+o+'" offset="'+(u+r)+'"></stop>\n\t\t\t<stop class="'+i+'" offset="'+(u+2*r)+'"></stop>\n\t\t';function p(){h.attr("gradientTransform","translate("+(u-3*r*s)+", 0)").transition().duration(e).delay(n).ease(bA).attr("gradientTransform","translate("+(c+3*r*s)+", 0)").on("end",p)}h.html(f),p()},e.prototype.removeSkeleton=function(){var t=this.parent.select(".chart-skeleton");t.remove()},e}(OS),xA=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)}}(),EA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return xA(e,t),e.prototype.render=function(){var e=this.parent,n=e.node().parentNode,r=cw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;e.attr("width",i).attr("height",o);var a=Ep.getProperty(this.getOptions(),"data","loading"),s=!Ep.getProperty(this.getOptions(),"grid","x","enabled")&&!Ep.getProperty(this.getOptions(),"grid","y","enabled")&&!Ep.getProperty(this.getOptions(),"axes","bottom","visible")&&!Ep.getProperty(this.getOptions(),"axes","left","visible");a&&!s?t.prototype.renderGridSkeleton.call(this,a):a&&s?this.renderSparklineSkeleton(a):this.removeSkeleton()},e.prototype.renderSparklineSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawSparkline(t),this.updateBackdropStyle(),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.drawSparkline=function(t){var e=this.backdrop.attr("width"),n=[100],r=cw.appendOrSelect(this.backdrop,"g.y.skeleton"),i=r.selectAll("line").data(n);i.enter().append("line").merge(i).attr("x1",0).attr("x2",e).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),r.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.updateBackdropStyle=function(){var t=this.parent;this.backdrop=cw.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=cw.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1),e.classed("shimmer-effect-sparkline",!0)},e}(OA);function SA(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 TA=function(){return this.eachAfter(SA)},MA=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},AA=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},CA=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},PA=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}))},DA=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},kA=function(t){var e=this,n=LA(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 LA(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 RA=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},IA=function(){var t=[];return this.each((function(e){t.push(e)})),t},jA=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},NA=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function BA(t,e){var n,r,i,o,a,s=new zA(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=VA);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 zA(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(HA)}function GA(){return BA(this).eachBefore(UA)}function VA(t){return t.children}function UA(t){t.data=t.data.data}function HA(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function zA(t){this.data=t,this.depth=this.height=0,this.parent=null}zA.prototype=BA.prototype={constructor:zA,count:TA,each:MA,eachAfter:CA,eachBefore:AA,sum:PA,sort:DA,path:kA,ancestors:RA,descendants:IA,leaves:jA,links:NA,copy:GA};var FA=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)},WA=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},YA=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},XA=(1+Math.sqrt(5))/2;function qA(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,g,m=[],y=e.children,_=0,b=0,w=y.length,O=e.value;while(_<w){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<w);for(h=f=l,v=Math.max(c/u,u/c)/(O*t),g=l*l*v,d=Math.max(f/g,g/h);b<w;++b){if(l+=s=y[b].value,s<h&&(h=s),s>f&&(f=s),g=l*l*v,p=Math.max(f/g,g/h),p>d){l-=s;break}d=p}m.push(a={value:l,dice:u<c,children:y.slice(_,b)}),a.dice?WA(a,n,r,i,O?r+=c*l/O:o):YA(a,n,r,O?n+=u*l/O:i,o),O-=l,_=b}return m}var ZA=function t(e){function n(t,n,r,i,o){qA(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(XA);function KA(t){if("function"!==typeof t)throw new Error;return t}function $A(){return 0}var QA=function(t){return function(){return t}},JA=function(){var t=ZA,e=!1,n=1,r=1,i=[0],o=$A,a=$A,s=$A,u=$A,c=$A;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(FA),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=KA(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:QA(+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:QA(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:QA(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:QA(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:QA(+t),l):c},l},tC="#000000",eC="#ffffff",nC="#f1c21b",rC=nC,iC="#ff832b",oC=iC,aC="#fff1f1",sC="#ffd7d9",uC="#ffb3b8",cC="#ff8389",lC="#fa4d56",hC="#da1e28",fC="#a2191f",pC="#750e13",dC="#520408",vC="#2d0709",gC={10:aC,20:sC,30:uC,40:cC,50:lC,60:hC,70:fC,80:pC,90:dC,100:vC},mC="#fff0f7",yC="#ffd6e8",_C="#ffafd2",bC="#ff7eb6",wC="#ee5396",OC="#d12771",xC="#9f1853",EC="#740937",SC="#510224",TC="#2a0a18",MC={10:mC,20:yC,30:_C,40:bC,50:wC,60:OC,70:xC,80:EC,90:SC,100:TC},AC="#f6f2ff",CC="#e8daff",PC="#d4bbff",DC="#be95ff",kC="#a56eff",LC="#8a3ffc",RC="#6929c4",IC="#491d8b",jC="#31135e",NC="#1c0f30",BC={10:AC,20:CC,30:PC,40:DC,50:kC,60:LC,70:RC,80:IC,90:jC,100:NC},GC="#edf5ff",VC="#d0e2ff",UC="#a6c8ff",HC="#78a9ff",zC="#4589ff",FC="#0f62fe",WC="#0043ce",YC="#002d9c",XC="#001d6c",qC="#001141",ZC={10:GC,20:VC,30:UC,40:HC,50:zC,60:FC,70:WC,80:YC,90:XC,100:qC},KC="#e5f6ff",$C="#bae6ff",QC="#82cfff",JC="#33b1ff",tP="#1192e8",eP="#0072c3",nP="#00539a",rP="#003a6d",iP="#012749",oP="#061727",aP={10:KC,20:$C,30:QC,40:JC,50:tP,60:eP,70:nP,80:rP,90:iP,100:oP},sP="#d9fbfb",uP="#9ef0f0",cP="#3ddbd9",lP="#08bdba",hP="#009d9a",fP="#007d79",pP="#005d5d",dP="#004144",vP="#022b30",gP="#081a1c",mP={10:sP,20:uP,30:cP,40:lP,50:hP,60:fP,70:pP,80:dP,90:vP,100:gP},yP="#defbe6",_P="#a7f0ba",bP="#6fdc8c",wP="#42be65",OP="#24a148",xP="#198038",EP="#0e6027",SP="#044317",TP="#022d0d",MP="#071908",AP={10:yP,20:_P,30:bP,40:wP,50:OP,60:xP,70:EP,80:SP,90:TP,100:MP},CP="#f2f4f8",PP="#dde1e6",DP="#c1c7cd",kP="#a2a9b0",LP="#878d96",RP="#697077",IP="#4d5358",jP="#343a3f",NP="#21272a",BP="#121619",GP={10:CP,20:PP,30:DP,40:kP,50:LP,60:RP,70:IP,80:jP,90:NP,100:BP},VP="#f4f4f4",UP="#e0e0e0",HP="#c6c6c6",zP="#a8a8a8",FP="#8d8d8d",WP="#6f6f6f",YP="#525252",XP="#393939",qP="#262626",ZP="#161616",KP={10:VP,20:UP,30:HP,40:zP,50:FP,60:WP,70:YP,80:XP,90:qP,100:ZP},$P="#f7f3f2",QP="#e5e0df",JP="#cac5c4",tD="#ada8a8",eD="#8f8b8b",nD="#736f6f",rD="#565151",iD="#3c3838",oD="#272525",aD="#171414",sD={10:$P,20:QP,30:JP,40:tD,50:eD,60:nD,70:rD,80:iD,90:oD,100:aD},uD="#fdd13a",cD={black:{100:tC},blue:ZC,coolGray:GP,cyan:aP,gray:KP,green:AP,magenta:MC,orange:{40:oC},purple:BC,red:gC,teal:mP,warmGray:sD,white:{0:eC},yellow:{20:uD,30:rC}};var lD=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)}}(),hD=function(t){if(!t)return null;for(var e=0,n=Object.keys(cD);e<n.length;e++)for(var r=n[e],i=cD[r],o=0,a=Object.keys(i);o<a.length;o++){var s=a[o],u=i[s];if(u===t)return s}return null},fD=function(){var t,e=nw(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=vv(n);if(r&&(t=hD(r?r.hex():null)),null===t||void 0===t){var i=Tv(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},pD=0,dD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-hover-treemap")).attr("opacity",(function(t){return t.parent.data.name===n.datum()["name"]?1:.3}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-mouseout-treemap")).attr("opacity",1)},e}return lD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.model.getData(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=Ep.getProperty(window,"location"),s=cw.getSVGElementSize(this.parent,{useAttrs:!0}),u=s.width,c=s.height,l=BA({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(Hd(r,(function(t){return Hd(t.children,(function(t){return t.value}))})),JA().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=this.services.transitions,p=n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name}));p.exit().attr("opacity",0).remove();var d=p.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return pD++})),v=d.merge(p);v.attr("data-name","leaf").transition(f.getTransition("treemap-group-update",t)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var g=v.selectAll("rect.leaf").data((function(t){return[t]}));g.exit().attr("width",0).attr("height",0).remove();var m=g.enter().append("rect").classed("leaf",!0);m.merge(g).attr("width",0).attr("height",0).attr("id",(function(){var t=nw(this.parentNode).attr("data-uid");return o.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition(this.services.transitions.getTransition("treemap-leaf-update-enter",t)).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).style("fill",(function(t){while(t.depth>1)t=t.parent;return e.model.getFillColor(t.data.name)})),v.selectAll("clipPath").data((function(t){return!0!==t.data.showLabel?[]:[1]}),(function(t){return t})).join((function(t){t.append("clipPath").attr("id",(function(){var t=nw(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=nw(this.parentNode.parentNode).attr("data-uid"),e=o.style.prefix+"-leaf-"+t;return new URL("#"+e,a)+""}))}),(function(t){return null}),(function(t){return t.remove()})),v.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=Tv(e.model.getFillColor(n.data.name));return[{text:t.data.name,color:r.l<.5?"white":"black"}]}),(function(t){return t})).join((function(t){var e=t.append("text").text((function(t){return t.text})).style("fill",fD).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=nw(this.parentNode).attr("data-uid"),e=o.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,a)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",fD)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e){var n=nw(this),r=getComputedStyle(this,null).getPropertyValue("fill"),i=e;while(i.depth>1)i=i.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).style("fill",(function(e){var n=t.model.getFillColor(e.parent.data.name);return n&&(r=n),vv(r).darker(.7).toString()})),t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,items:[{color:r,label:i.data.name,bold:!0},{label:e.data.name,value:e.data.value}]}),t.services.events.dispatchEvent(X.Treemap.LEAF_MOUSEOVER,{element:n,datum:e})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Treemap.LEAF_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Treemap.LEAF_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1);var r=e;while(r.depth>1)r=r.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).style("fill",(function(e){return t.model.getFillColor(e.parent.data.name)})),t.services.events.dispatchEvent(X.Treemap.LEAF_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:n})}))},e}(OS);function vD(t){var e=gD(yD(t),360);return mD(e,[0,10])||mD(e,[350,0])?{textAnchor:G.START,dominantBaseline:V.MIDDLE}:mD(e,[10,80])?{textAnchor:G.START,dominantBaseline:V.HANGING}:mD(e,[80,100])?{textAnchor:G.MIDDLE,dominantBaseline:V.HANGING}:mD(e,[100,170])?{textAnchor:G.END,dominantBaseline:V.HANGING}:mD(e,[170,190])?{textAnchor:G.END,dominantBaseline:V.MIDDLE}:mD(e,[190,260])?{textAnchor:G.END,dominantBaseline:V.BASELINE}:mD(e,[260,280])?{textAnchor:G.MIDDLE,dominantBaseline:V.BASELINE}:{textAnchor:G.START,dominantBaseline:V.BASELINE}}function gD(t,e){return(t%e+e)%e}function mD(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function yD(t){return t*(180/Math.PI)}function _D(t,e,n){void 0===n&&(n={x:0,y:0});var r=e*Math.cos(t)+n.x,i=e*Math.sin(t)+n.y;return{x:r,y:i}}function bD(t,e){return e*Math.sin(t-Math.PI/2)}var wD=xD(dE);function OD(t){this._curve=t}function xD(t){function e(e){return new OD(t(e))}return e._curve=t,e}function ED(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(xD(t)):e()._curve},t}OD.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 SD,TD=function(){return ED(PM().curve(wD))},MD=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)}}(),AD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.getLabelDimensions=function(t){var n=cw.appendOrSelect(e.getContainerSVG(),"g.tmp-tick"),r=cw.appendOrSelect(n,"text").text(t),i=cw.getSVGElementSize(r.node(),{useBBox:!0}),o=i.width,a=i.height;return n.remove(),{width:o,height:a}},e.normalizeFlatData=function(t){var n=e.getOptions(),r=Ep.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=Ep.getProperty(n,"data","groupMapsTo"),s=Ep.flatMapDeep(e.uniqueKeys.map((function(t){return e.uniqueGroups.map((function(e){var n;return n={},n[i]=t,n[a]=e,n[o]=null,n}))})));return Ep.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=Ep.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=Ep.getProperty(n,"data","groupMapsTo");return t.map((function(t){var n=t.name,r=t.data,s=e.uniqueKeys.map((function(t){var e;return e={},e[a]=n,e[i]=t,e[o]=null,e}));return{name:n,data:Ep.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-hover-blob")).style("fill-opacity",(function(t){return t.name!==n.datum().name?Bp.opacity.unselected:Bp.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?Bp.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",Bp.opacity.selected).style("stroke-opacity",1)},e}return MD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=cw.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,a=r.height,s=this.model.getData(),u=this.model.getDisplayData(),c=this.model.getGroupedData(),l=this.getOptions(),h=Ep.getProperty(l,"radar","axes"),f=h.angle,p=h.value,d=Ep.getProperty(l,"data","groupMapsTo"),v=Bp,g=v.xLabelPadding,m=v.yLabelPadding,y=v.yTicksNumber,_=v.minRange,b=v.xAxisRectHeight;this.uniqueKeys=Array.from(new Set(s.map((function(t){return t[f]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[d]})))),this.displayDataNormalized=this.normalizeFlatData(u),this.groupedDataNormalized=this.normalizeGroupedData(c);var w=this.getLabelDimensions(this.uniqueKeys[0]).height,O=2*(w+m),x=Math.min(i,a),E=x-O,S=E/2;if(!(S<=0)){var M=Zd().domain(this.displayDataNormalized.map((function(t){return t[f]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),A=Rg().domain([0,Vd(this.displayDataNormalized.map((function(t){return t[p]})))]).range([_,S]).nice(y),C=A.ticks(y),P=function(t){return e.model.getFillColor(t)},D=TD().angle((function(t){return M(t[f])+Math.PI/2})).radius((function(t){return A(t[p])})).curve(mE),k=TD().angle(D.angle()).radius((function(t){return SD?SD(t[p]):_})).curve(D.curve()),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=bD(M(t),S);return n+r})),R=Vd(L),I={x:R+g,y:a/2},j=cw.appendOrSelect(n,"g.y-axes").attr("role",o.GROUP),N=j.selectAll("path").data(C,(function(t){return t})),B=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[f]=e,n[p]=t,n}))};N.join((function(n){return n.append("path").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+I.x+", "+I.y+")").attr("fill","none").attr("d",(function(t){return k(B(t))})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return D(B(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_update",t)).attr("opacity",1).attr("transform","translate("+I.x+", "+I.y+")").attr("d",(function(t){return D(B(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_exit",t)).attr("d",(function(t){return D(B(t))})).attr("opacity",0).remove()}))}));var G=cw.appendOrSelect(n,"g.x-axes").attr("role",o.GROUP),V=G.selectAll("line").data(this.uniqueKeys,(function(t){return t}));V.join((function(n){return n.append("line").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+Ep.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return _D(M(t),0,I).x})).attr("y1",(function(t){return _D(M(t),0,I).y})).attr("x2",(function(t){return _D(M(t),0,I).x})).attr("y2",(function(t){return _D(M(t),0,I).y})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_enter",t)).attr("opacity",1).attr("x1",(function(t){return _D(M(t),A.range()[0],I).x})).attr("y1",(function(t){return _D(M(t),A.range()[0],I).y})).attr("x2",(function(t){return _D(M(t),A.range()[1],I).x})).attr("y2",(function(t){return _D(M(t),A.range()[1],I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_update",t)).attr("opacity",1).attr("x1",(function(t){return _D(M(t),A.range()[0],I).x})).attr("y1",(function(t){return _D(M(t),A.range()[0],I).y})).attr("x2",(function(t){return _D(M(t),A.range()[1],I).x})).attr("y2",(function(t){return _D(M(t),A.range()[1],I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_exit",t)).attr("opacity",0).remove()}))}));var U=cw.appendOrSelect(n,"g.x-labels").attr("role",o.GROUP),H=U.selectAll("text").data(this.uniqueKeys);H.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return _D(M(t),A.range()[1]+g,I).x})).attr("y",(function(t){return _D(M(t),A.range()[1]+g,I).y})).style("text-anchor",(function(t){return vD(M(t)).textAnchor})).style("dominant-baseline",(function(t){return vD(M(t)).dominantBaseline})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_update",t)).attr("opacity",1).attr("x",(function(t){return _D(M(t),A.range()[1]+g,I).x})).attr("y",(function(t){return _D(M(t),A.range()[1]+g,I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_exit",t)).attr("opacity",0).remove()}))}));var z=cw.appendOrSelect(n,"g.blobs").attr("role",o.GROUP),F=z.selectAll("path").data(this.groupedDataNormalized,(function(t){return t.name}));F.join((function(n){return n.append("path").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+I.x+", "+I.y+")").style("fill",(function(t){return P(t.name)})).style("fill-opacity",Bp.opacity.selected).style("stroke",(function(t){return P(t.name)})).attr("d",(function(t){return k(t.data)})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_enter",t)).attr("opacity",1).attr("d",(function(t){return D(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).style("fill",(function(t){return P(t.name)})).style("stroke",(function(t){return P(t.name)})),n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_update",t)).attr("opacity",1).attr("transform","translate("+I.x+", "+I.y+")").attr("d",(function(t){return D(t.data)}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_exit",t)).attr("d",(function(t){return D(t.data)})).attr("opacity",0).remove()}))}));var W=cw.appendOrSelect(n,"g.dots").attr("role",o.GROUP),Y=W.selectAll("circle").data(this.displayDataNormalized);Y.join((function(t){return t.append("circle").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[d],originalClassName:Ep.kebabCase(t[f])})})).attr("cx",(function(t){return _D(M(t[f]),A(t[p]),I).x})).attr("cy",(function(t){return _D(M(t[f]),A(t[p]),I).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return P(t[d])}));var X=cw.appendOrSelect(n,"g.x-axes-rect").attr("role",o.GROUP),q=X.selectAll("rect").data(this.uniqueKeys);q.join((function(t){return t.append("rect").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("x",I.x).attr("y",I.y-b/2).attr("width",A.range()[1]).attr("height",b).style("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+yD(M(t))+", "+I.x+", "+I.y+")"}));var Z=cw.appendOrSelect(n,"g.y-labels").attr("role",o.GROUP),K=Z.selectAll("text").data(Dd(C));K.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return _D(-Math.PI/2,A(t),I).x+m})).attr("y",(function(t){return _D(-Math.PI/2,A(t),I).y})).style("text-anchor","start").style("dominant-baseline","middle").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_update",t)).text((function(t){return t})).attr("opacity",1).attr("x",(function(t){return _D(-Math.PI/2,A(t),I).x+m})).attr("y",(function(t){return _D(-Math.PI/2,A(t),I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_exit",t)).attr("opacity",0).remove()}))}));var $=Ep.getProperty(l,"radar","alignment"),Q=cw.getAlignmentOffset($,n,this.getParent());n.attr("transform","translate("+Q+", 0)"),this.addEventListeners(),SD=A}},e.prototype.destroy=function(){this.parent.selectAll(".x-axes-rect > rect").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=Ep.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n){var r=nw(this);t.services.events.dispatchEvent(X.Radar.X_AXIS_MOUSEOVER,{element:r,datum:n});var i=t.parent.select(".x-axes .x-axis-"+Ep.kebabCase(n)),o=t.parent.selectAll(".dots circle."+Ep.kebabCase(n));i.classed("hovered",!0).attr("stroke-dasharray","4 4"),o.classed("hovered",!0).attr("opacity",1).attr("r",Bp.dotsRadius);var a=t.displayDataNormalized.filter((function(t){return t[e]===n})),s=t.getOptions(),u=s.data.groupMapsTo,c=Ep.getProperty(s,"radar","axes","value");t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:r,items:a.filter((function(t){return"number"===typeof t[c]})).map((function(e){return{label:e[u],value:e[c],color:t.model.getFillColor(e[u]),class:t.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:e[u]})}}))})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Radar.X_AXIS_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Radar.X_AXIS_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this),r=t.parent.select(".x-axes .x-axis-"+Ep.kebabCase(e)),i=t.parent.selectAll(".dots circle."+Ep.kebabCase(e));r.classed("hovered",!1).attr("stroke-dasharray","0"),i.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(X.Radar.X_AXIS_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE)}))},e}(OS),CD=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)}}(),PD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return CD(e,t),e.prototype.render=function(){cw.appendOrSelect(this.getContainerSVG(),"rect").attr("x",0).attr("y",0).attr("width",this.configs.size||Gp.default.size).attr("height",this.configs.size||Gp.default.size).attr("opacity",0)},e}(OS),DD=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)}}(),kD=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===I.ROW_REVERSE||a.configs.direction===I.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return DD(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=Ep.getProperty(t,"data","growth","x");return e===j.PREFERRED||e===j.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=Ep.getProperty(t,"data","growth","x");return e===j.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=cw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=BA({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===I.ROW||this.configs.direction===I.ROW_REVERSE?WA:YA;JA().tile(s).size([i,o])(a);var u=this.configs.direction===I.ROW||this.configs.direction===I.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(nw(n));var i=Ep.getProperty(e,"data","growth","x");i!==j.PREFERRED&&i!==j.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=Ep.getProperty(t,"data","growth","x"),n=cw.getSVGElementSize(nw(this),{useBBox:!0});if("legend"===t.data.id){var r=cw.getSVGElementSize(nw(this),{useAttrs:!0});r.height<40&&(n.height=r.height)}if(e===j.PREFERRED){var a=u?n.width:n.height,s=u?i:o;t.data.size=a/s*100}})),c.exit().remove(),this.children.filter((function(t){var e=Ep.getProperty(t,"growth","x");return e===j.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=BA({children:this.children}).sum((function(t){return t.size})),JA().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=Ep.getProperty(e,"data","growth","x");r===j.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}(OS),LD=Array.prototype.slice,RD=function(t){return t},ID=1,jD=2,ND=3,BD=4,GD=1e-6;function VD(t){return"translate("+(t+.5)+",0)"}function UD(t){return"translate(0,"+(t+.5)+")"}function HD(t){return function(e){return+t(e)}}function zD(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function FD(){return!this.__axis}function WD(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===ID||t===BD?-1:1,c=t===BD||t===jD?"x":"y",l=t===ID||t===ND?VD:UD;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):RD:i,d=Math.max(o,0)+s,v=e.range(),g=+v[0]+.5,m=+v[v.length-1]+.5,y=(e.bandwidth?zD:HD)(e.copy()),_=h.selection?h.selection():h,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(f,e).order(),O=w.exit(),x=w.enter().append("g").attr("class","tick"),E=w.select("line"),S=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(x),E=E.merge(x.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),S=S.merge(x.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===ID?"0em":t===ND?"0.71em":"0.32em")),h!==_&&(b=b.transition(h),w=w.transition(h),E=E.transition(h),S=S.transition(h),O=O.transition(h).attr("opacity",GD).attr("transform",(function(t){return isFinite(t=y(t))?l(t):this.getAttribute("transform")})),x.attr("opacity",GD).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:y(t))}))),O.remove(),b.attr("d",t===BD||t==jD?a?"M"+u*a+","+g+"H0.5V"+m+"H"+u*a:"M0.5,"+g+"V"+m:a?"M"+g+","+u*a+"V0.5H"+m+"V"+u*a:"M"+g+",0.5H"+m),w.attr("opacity",1).attr("transform",(function(t){return l(y(t))})),E.attr(c+"2",u*o),S.attr(c,u*d).text(p),_.filter(FD).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===jD?"start":t===BD?"end":"middle"),_.each((function(){this.__axis=y}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=LD.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:LD.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:LD.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 YD(t){return WD(ID,t)}function XD(t){return WD(jD,t)}function qD(t){return WD(ND,t)}function ZD(t){return WD(BD,t)}var KD=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)}}(),$D=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 KD(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,i=this.getOptions(),a=Ep.getProperty(i,"axes",r,"visible"),s=this.getContainerSVG(),u=cw.getSVGElementSize(this.parent,{useAttrs:!0}),c=u.width,l=u.height,h=cw.appendOrSelect(s,"g.axis."+r);r===M.BOTTOM||r===M.TOP?(e=this.configs.axes[M.LEFT]?this.margins.left:0,n=this.configs.axes[M.RIGHT]?c-this.margins.right:c):(e=l-this.margins.bottom,n=this.margins.top);var f,p=this.services.cartesianScales.getScaleByPosition(r);switch(this.scaleType===D.LABELS?p.rangeRound([e,n]):p.range([e,n]),r){case M.LEFT:f=ZD;break;case M.BOTTOM:f=qD;break;case M.RIGHT:f=XD;break;case M.TOP:f=YD;break}h.attr("aria-label",r+" axis");var d=!h.select("g.ticks").empty(),v=cw.appendOrSelect(h,"g.ticks");d||(v.attr("role",o.GRAPHICS_OBJECT+" "+o.GROUP),v.attr("aria-label",r+" ticks"));var g=cw.appendOrSelect(h,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+r+" ticks"),m=Ep.getProperty(i,"axes",r),y=this.scaleType===D.TIME||m.scaleType===D.TIME,_=r===M.LEFT||r===M.RIGHT,b=this.model.get("zoomDomain");if(b&&y&&!_&&p.domain(b),a){var w=Ep.getProperty(m,"scaleType"),O=Ep.getProperty(i,"data","loading"),x=Ep.getProperty(m,"ticks","number"),E=Ep.getProperty(m,"ticks","values"),S=Ep.getProperty(m,"truncation","type"),T=Ep.getProperty(m,"truncation","threshold"),A=Ep.getProperty(m,"truncation","numCharacter"),P=null!==x,k=Ep.getProperty(i,"timeScale"),L=cw.appendOrSelect(g,"g.tick"),R=cw.appendOrSelect(L,"text").text("0"),I=cw.getSVGElementSize(R.node(),{useBBox:!0}).height;L.remove();var j,N=this.scaleType||m.scaleType||D.LINEAR,B=f(p).tickSizeOuter(0);if(p.ticks){var G=void 0;if(P?G=x:(G=Lp.ticks.number,_&&(G=this.getNumberOfFittingTicks(l,I,Lp.ticks.verticalSpaceRatio))),1===p.ticks().length&&0===p.ticks()[0]&&(G=0),B.ticks(G),y)if(p.ticks(G).length){var V=Ep.getProperty(i,"timeScale","addSpaceOnEdges"),U=Ep.getProperty(i,"axes",r,"domain"),H=void 0,z=p.copy();V&&!U&&z.nice(G),H=z.ticks(G),V&&H.length>2&&!U&&(H.splice(H.length-1,1),H.splice(0,1)),B.tickValues(H)}else B.tickValues([])}var W=Ep.getProperty(m,"ticks","formatter");if(y){var Y=sM(B.tickValues());j=null===W?function(t,e){return rM(t,e,Y,k)}:function(t,e){var n=rM(t,e,Y,k);return W(t,e,n)}}else null===W?N===D.LINEAR&&(j=function(t){return t.toLocaleString()}):j=W;B.tickFormat(j);var X,q=this.services.cartesianScales.getScaleByPosition(r).domain(),Z=q[0],K=q[1];if(E){if(y)E.forEach((function(t,e){void 0===t.getTime&&(E[e]=new Date(t))})),X=E.filter((function(t){var e=t.getTime();return e>=new Date(Z).getTime()&&e<=new Date(K).getTime()}));else if(w===D.LABELS){var $=this.services.cartesianScales.getScaleByPosition(r).domain();X=E.filter((function(t){return $.includes(t)}))}else X=E.filter((function(t){return t>=Z&&t<=K}));B.tickValues(X)}switch(r){case M.LEFT:v.attr("transform","translate("+this.margins.left+", 0)");break;case M.BOTTOM:v.attr("transform","translate(0, "+(l-this.margins.bottom)+")");break;case M.RIGHT:v.attr("transform","translate("+(c-this.margins.right)+", 0)");break;case M.TOP:v.attr("transform","translate(0, "+this.margins.top+")");break}var Q=this.model.isDataEmpty();if(m.title){var J=cw.appendOrSelect(h,"text.axis-title").html(Q||O?"":m.title);switch(r){case M.LEFT:J.attr("transform","rotate(-90)").attr("y",0).attr("x",-p.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case M.BOTTOM:J.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+l+")").style("text-anchor","middle");break;case M.RIGHT:J.attr("transform","rotate(90)").attr("y",-c).attr("x",p.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case M.TOP:var tt=cw.getSVGElementSize(J,{useBBox:!0}).height;J.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+tt/2+")").style("text-anchor","middle");break}}if(y){var et=sM(B.tickValues()),nt=k.showDayName,rt=v;t&&(v=v.transition(this.services.transitions.getTransition("axis-update",t))),v=v.call(B);var it=rt.selectAll(".tick").data(B.tickValues(),p).order().select("text");it.style("font-weight",(function(t,e){return nM(t,e,et,nt)?"bold":"normal"}))}else v=t&&d?v.transition(this.services.transitions.getTransition("axis-update")).call(B):v.call(B);if(g.call(B),r===M.BOTTOM||r===M.TOP){var ot=!1,at=Ep.getProperty(m,"ticks","rotation");if(at===F.ALWAYS)ot=!0;else if(at===F.NEVER)ot=!1;else if(!at||at===F.AUTO)if(p.step){var st=g.selectAll("g.tick text").nodes();ot=st.some((function(t){return cw.getSVGElementSize(t,{useBBox:!0}).width>=p.step()}))}else{var ut=Ep.getProperty(m,"ticks","rotateIfSmallerThan")||Lp.ticks.rotateIfSmallerThan,ct=y?B.tickValues().length:p.ticks().length,lt=c/ct/2;ot=y?lt<2*ut:lt<ut}ot?(P||(B.ticks(this.getNumberOfFittingTicks(c,I,Lp.ticks.horizontalSpaceRatio)),g.call(B),v.call(B)),h.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",r===M.TOP?"start":"end")):h.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(O?h.attr("opacity",0):h.attr("opacity",1),v.selectAll("g.tick").attr("aria-label",(function(t){return t})),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),S!==C.NONE&&w===D.LABELS&&!E){var ht=this.services.cartesianScales.getScaleDomain(r);if(ht.length>0){var ft=s.select("g.axis."+r+" g.ticks g.tick").html();h.selectAll("g.ticks g.tick").html(ft),h.selectAll("g.tick text").data(ht).text((function(t){return t.length>T?Ep.truncateLabel(t,S,A):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(ht).text((function(t){return t.length>T?Ep.truncateLabel(t,S,A):t})),h.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),h.selectAll("g.tick text").data(ht)}}this.addEventListeners()}else v.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getContainerSVG(),e=this.configs.position,n=cw.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=Ep.getProperty(r,"axes",e),o=Ep.getProperty(i,"scaleType"),a=Ep.getProperty(i,"truncation","threshold"),s=(this.scaleType===D.TIME||(i.scaleType,D.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t){s.services.events.dispatchEvent(X.Axis.LABEL_MOUSEOVER,{element:nw(this),datum:t}),o===D.LABELS&&t.length>a&&s.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:nw(this),content:t})})).on("mousemove",(function(t){s.services.events.dispatchEvent(X.Axis.LABEL_MOUSEMOVE,{element:nw(this),datum:t}),o===D.LABELS&&t.length>a&&s.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(t){s.services.events.dispatchEvent(X.Axis.LABEL_CLICK,{element:nw(this),datum:t})})).on("mouseout",(function(t){s.services.events.dispatchEvent(X.Axis.LABEL_MOUSEOUT,{element:nw(this),datum:t}),o===D.LABELS&&s.services.events.dispatchEvent(X.Tooltip.HIDE)}))},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.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return Ep.clamp(r,2,Lp.ticks.number)},e.prototype.destroy=function(){var t=this.getContainerSVG(),e=this.configs.position,n=cw.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(OS),QD=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)}}(),JD=function(){return JD=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},JD.apply(this,arguments)},tk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return QD(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(M),i=Ep.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[M[t]];e&&(n[M[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=M[t];if(e.configs.axes[n]&&!e.children[n]){var r=new $D(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(n){var r,i=e.children[n],a=i.configs.position,s=i.getInvisibleAxisRef(),u=cw.getSVGElementSize(s,{useBBox:!0}),c=u.width,l=u.height;switch(i.getTitleRef().empty()?r=0:(r=cw.getSVGElementSize(i.getTitleRef(),{useBBox:!0}).height,a!==M.LEFT&&a!==M.RIGHT||(r+=5)),a){case M.TOP:o.top=l+r;break;case M.BOTTOM:o.bottom=l+r;break;case M.LEFT:o.left=c+r;break;case M.RIGHT:o.right=c+r;break}e.addAxisThresholds(t,a)}));var a=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));a&&(this.margins=Object.assign(this.margins,o),this.model.set({axesMargins:this.margins},{skipUpdate:!0}),this.services.events.dispatchEvent(X.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e.prototype.addAxisThresholds=function(t,e){var n=this,r=Ep.getProperty(this.getOptions(),"axes",e),i=r.thresholds;i&&(i.forEach((function(t,r){var i=new fM(n.model,n.services,JD(JD({},t),{axisPosition:e,index:r}));n.thresholds.push(i)})),this.thresholds.forEach((function(e){e.setParent(n.parent),e.render(t)})))},e}(OS);var ek=function(){vp.preventDefault(),vp.stopImmediatePropagation()},nk=function(t){var e=t.document.documentElement,n=nw(t).on("dragstart.drag",ek,!0);"onselectstart"in e?n.on("selectstart.drag",ek,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function rk(t,e){var n=t.document.documentElement,r=nw(t).on("dragstart.drag",null);e&&(r.on("click.drag",ek,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var ik=function(t,e,n){arguments.length<3&&(n=e,e=Sp().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return Tp(t,r);return null},ok=function(t){return function(){return t}},ak=function(t,e,n){this.target=t,this.type=e,this.selection=n};function sk(){vp.stopImmediatePropagation()}var uk=function(){vp.preventDefault(),vp.stopImmediatePropagation()},ck={name:"drag"},lk={name:"space"},hk={name:"handle"},fk={name:"center"};function pk(t){return[+t[0],+t[1]]}function dk(t){return[pk(t[0]),pk(t[1])]}function vk(t){return function(e){return ik(e,vp.touches,t)}}var gk={name:"x",handles:["w","e"].map(xk),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},mk={name:"y",handles:["n","s"].map(xk),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},yk=(["n","w","e","s","nw","ne","sw","se"].map(xk),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),_k={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},bk={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wk={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ok={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function xk(t){return{type:t}}function Ek(){return!vp.ctrlKey&&!vp.button}function Sk(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Tk(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mk(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function Ak(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ck(){return Pk(gk)}function Pk(t){var e,n=Sk,r=Ek,i=Tk,o=!0,a=bw("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([xk("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yk.overlay).merge(n).each((function(){var t=Mk(this).extent;nw(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([xk("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yk.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return yk[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=nw(this),e=Mk(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){return!n&&t.__brush.emitter||new h(t,e)}function h(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if((!e||vp.touches)&&r.apply(this,arguments)){var n,i,a,s,u,h,f,p,d,v,g,m=this,y=vp.target.__data__.type,_="selection"===(o&&vp.metaKey?y="overlay":y)?ck:o&&vp.altKey?fk:hk,b=t===mk?null:wk[y],w=t===gk?null:Ok[y],O=Mk(m),x=O.extent,E=O.selection,S=x[0][0],T=x[0][1],M=x[1][0],A=x[1][1],C=0,P=0,D=b&&w&&o&&vp.shiftKey,k=vp.touches?vk(vp.changedTouches[0].identifier):Mp,L=k(m),R=L,I=l(m,arguments,!0).beforestart();"overlay"===y?(E&&(d=!0),O.selection=E=[[n=t===mk?S:L[0],a=t===gk?T:L[1]],[u=t===mk?M:n,f=t===gk?A:a]]):(n=E[0][0],a=E[0][1],u=E[1][0],f=E[1][1]),i=n,s=a,h=u,p=f;var j=nw(m).attr("pointer-events","none"),N=j.selectAll(".overlay").attr("cursor",yk[y]);if(vp.touches)I.moved=G,I.ended=U;else{var B=nw(vp.view).on("mousemove.brush",G,!0).on("mouseup.brush",U,!0);o&&B.on("keydown.brush",H,!0).on("keyup.brush",z,!0),nk(vp.view)}sk(),iO(m),c.call(m),I.start()}function G(){var t=k(m);!D||v||g||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?g=!0:v=!0),R=t,d=!0,uk(),V()}function V(){var t;switch(C=R[0]-L[0],P=R[1]-L[1],_){case lk:case ck:b&&(C=Math.max(S-n,Math.min(M-u,C)),i=n+C,h=u+C),w&&(P=Math.max(T-a,Math.min(A-f,P)),s=a+P,p=f+P);break;case hk:b<0?(C=Math.max(S-n,Math.min(M-n,C)),i=n+C,h=u):b>0&&(C=Math.max(S-u,Math.min(M-u,C)),i=n,h=u+C),w<0?(P=Math.max(T-a,Math.min(A-a,P)),s=a+P,p=f):w>0&&(P=Math.max(T-f,Math.min(A-f,P)),s=a,p=f+P);break;case fk:b&&(i=Math.max(S,Math.min(M,n-C*b)),h=Math.max(S,Math.min(M,u+C*b))),w&&(s=Math.max(T,Math.min(A,a-P*w)),p=Math.max(T,Math.min(A,f+P*w)));break}h<i&&(b*=-1,t=n,n=u,u=t,t=i,i=h,h=t,y in _k&&N.attr("cursor",yk[y=_k[y]])),p<s&&(w*=-1,t=a,a=f,f=t,t=s,s=p,p=t,y in bk&&N.attr("cursor",yk[y=bk[y]])),O.selection&&(E=O.selection),v&&(i=E[0][0],h=E[1][0]),g&&(s=E[0][1],p=E[1][1]),E[0][0]===i&&E[0][1]===s&&E[1][0]===h&&E[1][1]===p||(O.selection=[[i,s],[h,p]],c.call(m),I.brush())}function U(){if(sk(),vp.touches){if(vp.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else rk(vp.view,d),B.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);j.attr("pointer-events","all"),N.attr("cursor",yk.overlay),O.selection&&(E=O.selection),Ak(E)&&(O.selection=null,c.call(m)),I.end()}function H(){switch(vp.keyCode){case 16:D=b&&w;break;case 18:_===hk&&(b&&(u=h-C*b,n=i+C*b),w&&(f=p-P*w,a=s+P*w),_=fk,V());break;case 32:_!==hk&&_!==fk||(b<0?u=h-C:b>0&&(n=i-C),w<0?f=p-P:w>0&&(a=s-P),_=lk,N.attr("cursor",yk.selection),V());break;default:return}uk()}function z(){switch(vp.keyCode){case 16:D&&(v=g=D=!1,V());break;case 18:_===fk&&(b<0?u=h:b>0&&(n=i),w<0?f=p:w>0&&(a=s),_=hk,V());break;case 32:_===lk&&(vp.altKey?(b&&(u=h-C*b,n=i+C*b),w&&(f=p-P*w,a=s+P*w),_=fk):(b<0?u=h:b>0&&(n=i),w<0?f=p:w>0&&(a=s),_=hk),N.attr("cursor",yk[y]),V());break;default:return}uk()}}function p(){l(this,arguments).moved()}function d(){l(this,arguments).ended()}function v(){var e=this.__brush||{selection:null};return e.extent=dk(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=Kv(o,a);function u(t){r.selection=1===t&&null===a?null:s(t),c.call(e),i.brush()}return null!==o&&null!==a?u:u(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"===typeof n?n.apply(e,r):n,i.extent),a=l(e,r).beforestart();iO(e),i.selection=null===o?null:o,c.call(e),a.start().brush().end()}))},u.clear=function(t){u.move(t,null)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){xp(new ak(u,e,t.output(this.state.selection)),a.apply,a,[e,this.that,this.args])}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:ok(dk(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:ok(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:ok(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(o=!!t,u):o},u.on=function(){var t=a.on.apply(a,arguments);return t===a?u:t},u}var Dk=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)}}(),kk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return Dk(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getContainerSVG(),o=cw.appendOrSelect(r,"svg.chart-grid-backdrop"),a=cw.appendOrSelect(o,"g."+this.type),s=cw.appendOrSelect(a,this.selectionSelector),u=cw.getSVGElementSize(o,{useAttrs:!0}),c=u.width,l=u.height,h=this.services.cartesianScales,f=h.getMainXScaleType(),p=h.getMainXScale(),d=p.range(),v=d[0];d[1];i.attr("transform","translate("+v+",0)");var g=cw.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===D.TIME){var m=this.model.get("zoomDomain");void 0===m&&(m=this.services.zoom.getDefaultZoomBarDomain(),m&&this.model.set({zoomDomain:m},{animate:!1}));var y=function(t){for(var n=t[1]-t[0],r="0,"+n.toString(),i=Math.floor(l/e.DASH_LENGTH),o=i*e.DASH_LENGTH,a=0;a<i;a++)r+=","+e.DASH_LENGTH;r+=","+(l-o),i%2===1&&(r+=",0"),r+=","+n.toString(),r+=","+l.toString(),g.attr("stroke-dasharray",r)},_=function(){var t=vp.selection;null!==t&&t[0]!==t[1]&&(g.attr("x",s.attr("x")).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(t))},b=function(t,e){var r=u_().range([0,c]).domain(m),i=[r.invert(t),r.invert(e)];i[0].valueOf()===i[1].valueOf()&&(i=n.services.zoom.getDefaultZoomBarDomain()),m[0].valueOf()===i[0].valueOf()&&m[1].valueOf()===i[1].valueOf()||n.services.zoom.handleDomainChange(i)},w=function(){var t=vp.selection;null!==t&&(b(t[0],t[1]),a.call(O.move,null),g.style("display","none"))},O=Ck().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",w);a.call(O);var x=this.services.zoom.getZoomRatio();o.on("click",(function(){if(vp.shiftKey){var t=Mp(a.node())[0],e=t-c*x/2;e<0&&(e=0);var n=t+c*x/2;n>c&&(n=c),b(e,n)}}))}},e.DASH_LENGTH=4,e}(OS),Lk=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)}}(),Rk=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return Lk(e,t),e.prototype.init=function(){this.model.set({chartClipId:this.chartClipId},{skipUpdate:!0})},e.prototype.render=function(t){void 0===t&&(t=!0),this.createClipPath()},e.prototype.createClipPath=function(){var t=this.parent,e=this.services.cartesianScales,n=e.getMainXScale(),r=e.getMainYScale(),i=n.range(),o=i[0],a=i[1],s=r.range(),u=s[0],c=s[1];this.chartClipPath=cw.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=cw.appendOrSelect(this.chartClipPath,"rect."+this.type);l.attr("x",o).attr("y",c).attr("width",a-o).attr("height",u-c),this.chartClipPath.merge(l).lower()},e}(OS),Ik=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)}}(),jk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Ik(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=Ep.getProperty(this.getOptions(),"grid","x","enabled"),n=Ep.getProperty(this.getOptions(),"grid","y","enabled");(e||n)&&(this.drawBackdrop(e,n),e&&(cw.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(cw.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this.parent,n=this.backdrop.attr("height"),r=this.services.cartesianScales.getMainXScale(),i=qD(r).tickSizeInner(-n).tickSizeOuter(0),o=Ep.getProperty(this.getOptions(),"grid","x","numberOfTicks");i.ticks(o);var a=e.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+n+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.drawYGrid=function(t){var e=this.parent,n=this.backdrop.attr("width"),r=this.services.cartesianScales.getMainYScale(),i=ZD(r).tickSizeInner(-n).tickSizeOuter(0),o=Ep.getProperty(this.getOptions(),"grid","y","numberOfTicks");i.ticks(o);var a=e.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(Ep.getTranslationValues(t).tx)-Number(Ep.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+Ep.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=+Ep.getTranslationValues(s).tx-+Ep.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=cw.getSVGElementSize(u).width;o=c-+Ep.getTranslationValues(a).tx}else o=+Ep.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=Ep.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=Ep.getTranslationValues(this),r={min:Number(e.tx)-n,max:Number(e.tx)+n};return r.min<=t[0]&&t[0]<=r.max}));return i},e.prototype.drawBackdrop=function(t,e){var n=this.parent,r=this.services.cartesianScales.getMainXScale(),i=this.services.cartesianScales.getMainYScale(),o=r.range(),a=o[0],s=o[1],u=i.range(),c=u[0],l=u[1];this.backdrop=cw.appendOrSelect(n,"svg.chart-grid-backdrop");var h=cw.appendOrSelect(this.backdrop,t||e?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop");this.backdrop.merge(h).attr("x",a).attr("y",l).attr("width",Math.abs(s-a)).attr("height",Math.abs(c-l)).lower(),h.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){t.selectAll("text").remove(),t.select(".domain").remove()},e}(OS),Nk=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)}}(),Bk=5;function Gk(t,e){return t>e-Bk&&t<e+Bk}var Vk,Uk,Hk,zk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.isXGridEnabled=Ep.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=Ep.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return Nk(e,t),e.prototype.render=function(){var t=Ep.getProperty(this.getOptions(),"ruler","enabled");this.drawBackdrop(),t&&!this.isEventListenerAdded?this.addBackdropEventListeners():!t&&this.isEventListenerAdded&&this.removeBackdropEventListeners()},e.prototype.removeBackdropEventListeners=function(){this.isEventListenerAdded=!1,this.backdrop.on("mousemove mouseover mouseout",null)},e.prototype.formatTooltipData=function(t){return t},e.prototype.showRuler=function(t){var e=this,n=t[0],r=t[1],i=this.parent,o=this.services.cartesianScales.getOrientation(),a=o===P.HORIZONTAL?r:n,s=cw.appendOrSelect(i,"g.ruler").attr("aria-label","ruler"),u=cw.appendOrSelect(s,"line.ruler-line"),c=i.selectAll("[role=graphics-symbol]"),l=this.model.getDisplayData(),h=this.services.cartesianScales.getRangeScale(),f=h.range(),p=f[0],d=f[1],v=l.map((function(t){return{domainValue:e.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return Gk(t.domainValue,a)}));if(this.pointsWithinLine&&v.length===this.pointsWithinLine.length&&v.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=v,this.services.events.dispatchEvent(X.Tooltip.MOVE,{mousePosition:[n,r]});this.pointsWithinLine=v;var g=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(a-e.domainValue),i=Math.abs(a-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(g.length>0){var m=g.map((function(t){return t.originalData})).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t),r=t[n];return null!==r&&void 0!==r})),y=g.map((function(t){return t.domainValue})),_=c.filter((function(t){var n=e.services.cartesianScales.getDomainValue(t);return y.includes(n)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!Ep.isEqual(this.elementsToHighlight,_)&&this.hideRuler(),_.dispatch("mouseover"),this.elementsToHighlight=_,this.services.events.dispatchEvent(X.Tooltip.SHOW,{mousePosition:[n,r],hoveredElement:u,data:this.formatTooltipData(m)}),s.attr("opacity",1);var b=g[0];"horizontal"===o?u.attr("x1",d).attr("x2",p).attr("y1",b.domainValue).attr("y2",b.domainValue):u.attr("y1",d).attr("y2",p).attr("x1",b.domainValue).attr("x2",b.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=cw.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(X.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.model.getDisplayData(),n=function(){var e=Mp(t.parent.node());t.showRuler(e)};if(e.length>100){var r=e.length%50*12.5;n=Ep.debounceWithD3MousePosition((function(){var e=this.mousePosition;t.showRuler(e)}),r,this.parent.node())}this.backdrop.on("mousemove mouseover",n).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=(r[0],r[1],n.range());i[0],i[1];this.backdrop=cw.appendOrSelect(t,"svg.chart-grid-backdrop");cw.appendOrSelect(this.backdrop,this.isXGridEnabled||this.isYGridEnabled?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop")},e}(OS),Fk=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)}}(),Wk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fk(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e.prototype.hideRuler=function(){var t=this.parent,e=cw.appendOrSelect(t,"g.ruler");this.services.events.dispatchEvent(X.Tooltip.HIDE),e.attr("opacity",0)},e}(zk),Yk=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)}}(),Xk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.overflowMenuX=0,e.overflowMenuY=0,e.overflowMenuItemId=Math.floor(99999999999*Math.random()),e}return Yk(e,t),e.prototype.init=function(){var t=this,e=this.getOptions(),n=nw(this.services.domUtils.getHolder()),r=Ep.getProperty(e,"style","prefix");this.overflowMenu=cw.appendOrSelect(n,"div."+ow.prefix+"--"+r+"--overflowMenu"),this.overflowMenu.style("max-width",null),this.services.events.addEventListener(X.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.overflowMenu.html(t.getOverflowMenuHTML())})),this.services.events.addEventListener(X.Toolbar.HIDE_OVERFLOW_MENU,(function(){t.overflowMenu.html(null)})),document.body.addEventListener("click",(function(){return t.updateOverflowMenu(!1)}))},e.prototype.render=function(t){void 0===t&&(t=!0);var e=Ep.getProperty(this.getOptions(),"data","loading"),n=Hp.buttonSize,r=parseFloat(this.parent.node().getAttribute("y")),i=this.getContainerSVG(),a=-6;i.attr("transform","translate(0, "+(r+a)+")");var s=cw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttrs:!0}).width,u=160;this.overflowMenuX=s-u,this.overflowMenuY=r+a+n;var c=cw.appendOrSelect(i,"svg.toolbar-container").attr("width","100%").attr("height",Hp.height).attr("opacity",1);c.html(null);var l=this.getControlConfigs(),h=l.buttonList,f=l.overflowMenuItemList;if(f&&h.push(this.getOverflowButtonConfig()),e||0===h.length)cw.appendOrSelect(c,"svg.toolbar-loading-spacer").append("rect").attr("height",Hp.height).attr("width",3*n).attr("opacity",0);else{var p=0;h.forEach((function(t){var e=cw.appendOrSelect(c,"svg."+t.id).classed("toolbar-button",!0),r=cw.appendOrSelect(e,"rect.toolbar-button-background").attr("x",p).attr("y",0).attr("width",n).attr("height",n),i=cw.appendOrSelect(e,"svg.toolbar-button-icon").attr("x",p+Hp.iconPadding).attr("y",Hp.iconPadding).attr("width",Hp.iconSize).attr("height",Hp.iconSize).attr("viewBox","0 0 32 32").attr("role",o.IMG);i.html(t.iconSVGContent),t.shouldBeDisabled()?(e.classed("toolbar-button--disabled",!0).classed("toolbar-button--focusable",!1).attr("tabindex",-1).attr("role",null),i.classed("toolbar-button-icon--disabled",!0),r.classed("toolbar-button-background--disabled",!0),e.on("click",null).on("keyup",null)):(e.classed("toolbar-button--disabled",!1).classed("toolbar-button--focusable",!0).attr("tabindex",0).attr("role",o.BUTTON),i.classed("toolbar-button-icon--disabled",!1),r.classed("toolbar-button-background--disabled",!1),e.on("click",t.clickFunction).on("keyup",(function(){(vp.key&&"Enter"===vp.key||" "===vp.key)&&(vp.preventDefault(),t.clickFunction())}))),p+=n})),this.overflowButton=this.getContainerSVG().select("svg.toolbar-overflow-menu"),this.isOverflowMenuOpen()&&this.updateOverflowMenu(!0)}},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.selectAll("ul.bx--overflow-menu-options--open").size()>0},e.prototype.updateOverflowMenu=function(t){this.overflowButton&&this.overflowButton.classed("toolbar-button--hovered",t),t?this.services.events.dispatchEvent(X.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(X.Toolbar.HIDE_OVERFLOW_MENU)},e.prototype.focusOnPreviousEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=e.length,r=t-1;r>=0;r--){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n<e.length){var o=nw("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.focusOnNextEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=-1,r=t+1;r<e.length;r++){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n>-1){var o=nw("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(){var t=this;if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var e=this,n=this.getOverflowMenuItems();n.forEach((function(n,r){var i=nw("#"+n.id+t.overflowMenuItemId);null!==i&&(i.on("click",(function(){n.clickFunction(),e.updateOverflowMenu(!1)})),i.on("keyup",(function(){"Enter"===vp.key?n.clickFunction():"ArrowUp"===vp.key?e.focusOnPreviousEnabledMenuItem(r):"ArrowDown"===vp.key&&e.focusOnNextEnabledMenuItem(r)})))})),e.focusOnNextEnabledMenuItem(-1)}vp.stopImmediatePropagation()},e.prototype.getOverflowMenuHTML=function(){var t,e=this,n=this.getOverflowMenuItems();return n&&0!==n.length?(t='<div data-floating-menu-container="true" data-floating-menu-direction="bottom" role="main">\n\t\t\t<ul class="bx--overflow-menu-options bx--overflow-menu--flip bx--overflow-menu-options--open"\n\t\t\t\ttabindex="-1" role="'+o.MENU+'" aria-label="Menu" data-floating-menu-direction="bottom"\n\t\t\t\tstyle="left:'+this.overflowMenuX+"px; top:"+this.overflowMenuY+'px;">',n.forEach((function(n,r){var i="bx--overflow-menu-options__option".concat(n.shouldBeDisabled()?" bx--overflow-menu-options__option--disabled":"");t+='<li class="'+i+'" role="'+o.MENU_ITEM+'">\n\t\t\t\t<button class="bx--overflow-menu-options__btn"\n\t\t\t\t\tdata-floating-menu-primary-focus="'+(0===r)+'"\n\t\t\t\t\ttabindex="-1" index="'+r+'" title="'+n.text+'"\n\t\t\t\t\tid="'+(n.id+e.overflowMenuItemId)+'">\n\t\t\t\t\t<div class="bx--overflow-menu-options__option-content">\n\t\t\t\t\t\t'+n.text+"\n\t\t\t\t\t</div>\n\t\t\t\t</button>\n\t\t\t</li>"})),t+="</ul></div>",t):""},e.prototype.getControlConfigs=function(){var t=this,e=Ep.getProperty(this.getOptions(),"toolbar","numberOfIcons"),n=Ep.getProperty(this.getOptions(),"toolbar","controls"),r=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,r.push(n))})),r.length<=e?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r}},e.prototype.getOverflowMenuItems=function(){var t=this.getControlConfigs().overflowMenuItemList;return t||[]},e.prototype.getOverflowButtonConfig=function(){var t=this;return{id:"toolbar-overflow-menu",shouldBeDisabled:function(){return!1},iconSVGContent:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="24" r="2"></circle>',clickFunction:function(){return t.toggleOverflowMenu()}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState();switch(t){case Y.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomIn()}});break;case Y.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomOut()}});break;case Y.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case Y.ZOOM_IN:return'<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>\n \t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case Y.ZOOM_OUT:return'<rect x="9" y="13" width="10" height="2"/>\n\t\t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case Y.RESET_ZOOM:return'<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';default:throw Error("Not supported toolbar control type: "+t)}},e}(OS),qk=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)}}(),Zk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e}return qk(e,t),e.prototype.render=function(t){var e=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),n=this.services.cartesianScales.getScaleByPosition(e),r=n.domain(),i=r[0],o=r[1],a=i>0&&o<0||i<0&&o>0,s=this.getContainerSVG();if(a){var u=this.services.cartesianScales.getDomainScale().range(),c=u[0],l=u[1],h=+n(0)+.5;h||(h=n.range()[0]);var f=Ep.flipSVGCoordinatesBasedOnOrientation({x0:c,x1:l,y0:h,y1:h},this.services.cartesianScales.getOrientation()),p=cw.appendOrSelect(s,"line.domain");p.transition(this.services.transitions.getTransition("zero-line-update",t)).attr("y1",f.y0).attr("y2",f.y1).attr("x1",f.x0).attr("x2",f.x1)}else s.selectAll("line.domain").remove()},e}(OS),Kk=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)}}(),$k=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=Ck(),e}return Kk(e,t),e.prototype.init=function(){this.services.events.addEventListener(X.ZoomBar.UPDATE,this.render.bind(this));var t=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services.zoom.isZoomBarLoading(M.TOP),i=this.services.zoom.isZoomBarLocked(M.TOP),o=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),a=zp.height[o],s=cw.getSVGElementSize(this.parent,{useAttrs:!0}).width;if(0!==s){var u=0,c=this.model.get("axesMargins");c&&c.left&&(u=c.left);var l=cw.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",a).attr("opacity",1);cw.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",a).attr("width","100%").attr("height",zp.spacerHeight).attr("opacity",1).attr("fill","none");if(o===A.GRAPH_VIEW?cw.appendOrSelect(l,"rect.zoom-bg").attr("x",u).attr("y",0).attr("width",s-u).attr("height","100%").classed("zoom-bg-skeleton",r):o===A.SLIDER_VIEW&&cw.appendOrSelect(l,"rect.zoom-slider-bg").attr("x",u).attr("y",a/2-1).attr("width",s-u).attr("height",2).classed("zoom-slider-bg-skeleton",r),r)this.renderSkeleton(l,u,s);else{var h=this.services.cartesianScales,f=h.getMainXScale(),p=h.getMainYScale(),d=h.getMainXScaleType();if(f&&d===D.TIME){var v=this.services.zoom.getZoomBarData();if(Ep.isEmpty(v))return;this.xScale=f.copy(),this.yScale=p.copy();var g=this.services.zoom.getDefaultZoomBarDomain(v);v=this.compensateDataForDefaultDomain(v,g);var m=this.model.get("initialZoomDomain"),y=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"initialZoomDomain");y&&y[0]&&y[1]&&(y[0]=new Date(y[0]),y[1]=new Date(y[1])),!y||m&&m[0].valueOf()===y[0].valueOf()&&m[1].valueOf()===y[1].valueOf()||this.model.set({initialZoomDomain:Ep.merge([],y),zoomDomain:y?Ep.merge([],y):g},{skipUpdate:!0}),this.xScale.range([u,s]).domain(g),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,a-6]).domain(Dd(v,(function(t){return t.value})));var _=this.model.get("zoomDomain");o===A.GRAPH_VIEW&&(this.renderZoomBarArea(l,"path.zoom-graph-area-unselected",v,null),this.updateClipPath(n,this.clipId,0,0,0,0),this.renderZoomBarArea(l,"path.zoom-graph-area",v,this.clipId),this.renderZoomBarBaseline(l,u,s)),this.addBrushEventListener(_,u,s);var b=cw.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===_);else if(_[0].valueOf()===_[1].valueOf())b.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getContainerSVG(),this.xScale.range(),this.xScale.domain());else{var w=_.map((function(t){return e.xScale(t)}));w[1]-w[0]<this.MIN_SELECTION_DIFF||(b.call(this.brush.move,w),this.updateBrushHandle(this.getContainerSVG(),w,_))}i&&(this.brush.filter((function(){return!1})),b.selectAll("rect").attr("cursor","auto"))}}}},e.prototype.addBrushEventListener=function(t,e,n){var r=this,i=function(){var e=vp.selection;null===e?r.handleBrushedEvent(t,r.xScale,r.xScale.range()):e[0]===e[1]||r.handleBrushedEvent(t,r.xScale,e)},o=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),a=zp.height[o];this.brush.extent([[e,0],[n,a]]).on("start brush end",null).on("start brush end",i)},e.prototype.handleBrushedEvent=function(t,e,n){var r=[e.invert(n[0]),e.invert(n[1])];if(this.updateBrushHandle(this.getContainerSVG(),n,r),null!=vp.sourceEvent&&("mousemove"===vp.sourceEvent.type||"mouseup"===vp.sourceEvent.type||"mousedown"===vp.sourceEvent.type||"touchstart"===vp.sourceEvent.type||"touchmove"===vp.sourceEvent.type||"touchend"===vp.sourceEvent.type)){void 0!==t&&t[0]===r[0]&&t[1]===r[1]||this.services.zoom.handleDomainChange(r,{dispatchEvent:!1});var i=void 0;"start"===vp.type?i=X.ZoomBar.SELECTION_START:"brush"===vp.type?i=X.ZoomBar.SELECTION_IN_PROGRESS:"end"===vp.type&&(i=X.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(X.ZoomDomain.CHANGE,{newDomain:r})),this.services.events.dispatchEvent(i,{selection:n,newDomain:r})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=zp.handleWidth,o=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),a=zp.height[o],s=-i/2,u=zp.handleBarWidth,c=o===A.GRAPH_VIEW?zp.handleBarHeight:6,l=-u/2,h=(a-c)/2;t.select(this.brushSelector).selectAll("rect.handle").data([{type:"w"},{type:"e"}]).attr("x",(function(t){return"w"===t.type?Math.max(e[0]+s,r.maxSelectionRange[0]):"e"===t.type?Math.min(e[1]+s,r.maxSelectionRange[1]-i):void 0})).attr("y",0).attr("width",i).attr("height",a).attr("cursor","ew-resize").style("display",null);var f=t.select(this.brushSelector).selectAll("rect.handle-bar").data([{type:"w"},{type:"e"}]);f.enter().append("rect").attr("class",(function(t){return"handle-bar handle-bar--"+t.type})),f.attr("x",(function(t){return"w"===t.type?Math.max(e[0]+l,r.maxSelectionRange[0]-s+l):"e"===t.type?Math.min(e[1]+l,r.maxSelectionRange[1]+s+l):void 0})).attr("y",h).attr("width",u).attr("height",c).attr("cursor","ew-resize"),o===A.SLIDER_VIEW&&this.updateSliderSelectedArea(e),this.updateClipPath(t,this.clipId,e[0],0,e[1]-e[0],a)},e.prototype.updateSliderSelectedArea=function(t){var e=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),n=zp.height[e],r=(cw.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getContainerSVG(),o=i.select("svg.zoom-container");cw.appendOrSelect(o,"rect.zoom-slider-selected-area").attr("x",t[0]).attr("y",n/2-1).attr("width",t[1]-t[0]).attr("height",2)},e.prototype.renderZoomBarArea=function(t,e,n,r){var i=this.services.cartesianScales,o=i.getMainXAxisPosition(),a=i.getMainYAxisPosition(),s=i.getMainXScaleType(),u=i.getMainYScaleType(),c=function(t,e,n){return function(r,o){return i.getValueFromScale(t,e,n,r,o)}},l=c(this.xScale,s,o),h=c(this.yScale,u,a),f=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),p=zp.height[f],d=DM().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=cw.appendOrSelect(t,e).datum(n).attr("d",d);r&&v.attr("clip-path","url(#"+r+")")},e.prototype.updateClipPath=function(t,e,n,r,i,o){var a=cw.appendOrSelect(t,"clipPath").attr("id",e);cw.appendOrSelect(a,"rect").attr("x",n).attr("y",r).attr("width",i).attr("height",o)},e.prototype.compensateDataForDefaultDomain=function(t,e){if(t&&!(t.length<2)){var n=Ep.clone(t),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier();if(Number(e[0])<Number(n[0][r])){var o={};o[r]=e[0],o[i]=0,n.unshift(o)}if(Number(e[1])>Number(n[n.length-1][r])){o={};o[r]=e[1],o[i]=0,n.push(o)}return n}},e.prototype.renderZoomBarBaseline=function(t,e,n,r){void 0===r&&(r=!1);var i=Ep.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"type"),o=zp.height[i],a=PM()([[e,o],[n,o]]);cw.appendOrSelect(t,"path.zoom-bg-baseline").attr("d",a).classed("zoom-bg-baseline-skeleton",r)},e.prototype.renderSkeleton=function(t,e,n){this.renderZoomBarArea(t,"path.zoom-graph-area-unselected",[],null),this.renderZoomBarArea(t,"path.zoom-graph-area",[],this.clipId),this.brush.on("start brush end",null),cw.appendOrSelect(this.getContainerSVG(),this.brushSelector).html(null);var r=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type");r===A.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(X.ZoomBar.UPDATE,this.render.bind(this))},e}(OS),Qk=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Jk=function(){function t(t,e){this.services={domUtils:cw,events:hw,gradientUtils:Sx,transitions:xx},this.model=new __(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},{skipUpdate:!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(X.Model.UPDATE,(function(t){var e=!!Ep.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(X.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(X.Chart.RENDER_FINISHED)}))}},t.prototype.destroy=function(){this.components.forEach((function(t){return t.destroy()})),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},{skipUpdate:!0})},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new dM(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},n={id:"legend",components:[new ES(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},r={id:"graph-frame",components:t,growth:{x:j.STRETCH,y:j.FIXED}},i=!1!==this.model.getOptions().legend.enabled,o=I.COLUMN;if(i){var a=Ep.getProperty(this.model.getOptions(),"legend","position");"left"===a?(o=I.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):"right"===a?(o=I.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):"bottom"===a&&(o=I.COLUMN_REVERSE)}var s={id:"spacer",components:[new PD(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},u={id:"full-frame",components:[new kD(this.model,this.services,Qk(i?[n]:[],i?[s]:[],[r]),{direction:o})],growth:{x:j.STRETCH,y:j.FIXED}},c=[];if(this.model.getOptions().title){c.push(e);var l={id:"spacer",components:[new PD(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}};c.push(l)}return c.push(u),[new yM(this.model,this.services),new kD(this.model,this.services,c,{direction:I.COLUMN})]},t}(),tL=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)}}(),eL=function(t){function e(e){return t.call(this,e)||this}return tL(e,t),e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"enabled"))){var r=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(Ep.clone(t)):this.getDisplayData(),n=e,r=this.services.cartesianScales;if(e&&r.domainAxisPosition&&r.rangeAxisPosition){var i=r.getDomainIdentifier(),o=r.getRangeIdentifier(),a=e.map((function(t){return t[i].getTime()}));a=Ep.removeArrayDuplicates(a).sort(),n=a.map((function(t){var n=0,r={};return e.forEach((function(e){e[i].getTime()===t&&(n+=e[o])})),r[i]=new Date(t),r[o]=n,r}))}this.set({zoomBarData:n})},e.prototype.getZoomBarData=function(){return this.get("zoomBarData")},e.prototype.sanitizeDateValues=function(t){var e=this.getOptions();if(!e.axes)return t;var n=[];return Object.keys(M).forEach((function(t){var r=M[t],i=e.axes[r];if(i&&i.scaleType===D.TIME){var o=i.mapsTo;null===o&&void 0===o||n.push(o)}})),n.length>0&&t.forEach((function(t){n.forEach((function(e){null===Ep.getProperty(t,e,"getTime")&&(t[e]=new Date(t[e]))}))})),t},e.prototype.sanitize=function(e){return e=t.prototype.sanitize.call(this,e),e=this.sanitizeDateValues(e),e},e}(__),nL=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)}}(),rL=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},iL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:lE,curves:_S,zoom:wS}),r.model=new eL(r.services),r}return nL(e,t),e.prototype.getAxisChartComponents=function(t){var e=Ep.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"enabled"),n=Ep.getProperty(this.model.getOptions(),"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var r=this.services.cartesianScales.getMainXAxisPosition(),i=Ep.getProperty(this.model.getOptions(),"axes",r,"scaleType"),o=e&&r===M.BOTTOM&&i===D.TIME,a=this.services.zoom.isZoomBarLocked(M.TOP),s=!!this.model.getOptions().title,u={id:"title",components:[new dM(this.model,this.services)],growth:{x:j.STRETCH,y:j.FIXED}},c={id:"toolbar",components:[new Xk(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},l={id:"header",components:[new kD(this.model,this.services,rL([u],n?[c]:[]),{direction:I.ROW})],growth:{x:j.PREFERRED,y:j.FIXED}},h={id:"legend",components:[new ES(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}};o&&!a&&t.push(new Rk(this.model,this.services),new kk(this.model,this.services));var f={id:"graph-frame",components:t,growth:{x:j.STRETCH,y:j.FIXED}},p=!1!==this.model.getOptions().legend.enabled,d=I.COLUMN;if(p){var v=Ep.getProperty(this.model.getOptions(),"legend","position");v===k.LEFT?(d=I.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):v===k.RIGHT?(d=I.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):v===k.BOTTOM&&(d=I.COLUMN_REVERSE)}var g={id:"spacer",components:[new PD(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},m={id:"full-frame",components:[new kD(this.model,this.services,rL(p?[h]:[],p?[g]:[],[f]),{direction:d})],growth:{x:j.STRETCH,y:j.FIXED}},y={id:"zoom-bar",components:[new $k(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},_=[];if(s||n){_.push(l);var b={id:"spacer",components:[new PD(this.model,this.services,n?{size:15}:void 0)],growth:{x:j.PREFERRED,y:j.FIXED}};_.push(b)}return o&&_.push(y),_.push(m),[new bM(this.model,this.services),new kD(this.model,this.services,_,{direction:I.COLUMN})]},e}(Jk),oL=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)}}(),aL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(Ep.clone(gd.areaChart),n.options)),r.init(e,n),r}return oL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new ZM(this.model,this.services),new LM(this.model,this.services),new WM(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),sL=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)}}(),uL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.stackedAreaChart,n.options)),r.init(e,n),r}return sL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new Wk(this.model,this.services),new IM(this.model,this.services),new ZM(this.model,this.services,{stacked:!0}),new JM(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),cL=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)}}(),lL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.simpleBarChart,n.options)),r.init(e,n),r}return cL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new GM(this.model,this.services),new Zk(this.model,this.services),new OA(this.model,this.services,{skeleton:B.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(iL),hL=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)}}(),fL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.groupedBarChart,n.options)),r.init(e,n),r}return hL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new UM(this.model,this.services),new Zk(this.model,this.services),new OA(this.model,this.services,{skeleton:B.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(iL),pL=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)}}(),dL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.stackedBarChart,n.options)),r.init(e,n),r}return pL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new Wk(this.model,this.services),new zM(this.model,this.services),new OA(this.model,this.services,{skeleton:B.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(iL),vL=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)}}(),gL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.bubbleChart,n.options)),r.init(e,n),r}return vL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new XM(this.model,this.services),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),mL=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)}}(),yL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.lineChart,n.options)),r.init(e,n),r}return mL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new ZM(this.model,this.services),new WM(this.model,this.services,{handleThresholds:!0}),new EA(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(iL),_L=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)}}(),bL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.lollipopChart,n.options)),r.init(e,n),r}return _L(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new $M(this.model,this.services),new WM(this.model,this.services),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),wL=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)}}(),OL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.scatterChart,n.options)),r.init(e,n),r}return wL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new WM(this.model,this.services),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),xL=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)}}(),EL=function(t){function e(e){return t.call(this,e)||this}return xL(e,t),e.prototype.getTabularData=function(e){var n=t.prototype.getTabularData.call(this,e);return e!==n&&n.forEach((function(t){t.key&&t.key!==t.group&&(t.group=t.key)})),n},e.prototype.sanitize=function(t){var e=this.getTabularData(t);return e.sort((function(t,e){return e.value-t.value}))},e}(__),SL=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)}}(),TL=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new EL(i.services),r?i:(i.model.setOptions(Ep.mergeDefaultChartOptions(gd.pieChart,n.options)),i.init(e,n),i)}return SL(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new OA(this.model,this.services,{skeleton:B.PIE})],e=this.getChartComponents(t);return e},e}(Jk),ML=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)}}(),AL=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.donutChart,n.options)),r.init(e,n),r}return ML(e,t),e.prototype.getComponents=function(){var t=[new _A(this.model,this.services),new OA(this.model,this.services,{skeleton:B.DONUT})],e=this.getChartComponents(t);return e},e}(TL),CL=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)}}(),PL=function(t){function e(e){return t.call(this,e)||this}return CL(e,t),e.prototype.generateDataLabels=function(t){var e={};return e[t.label]=Rp.items.status.ACTIVE,e},e.prototype.getDisplayData=function(){return this.get("data")?this.get("data")[0]:null},e.prototype.getFillColor=function(e){var n=this.getOptions(),r=Ep.getProperty(n,"color","scale"),i=this.getStatus();return r||!i?t.prototype.getFillColor.call(this,e):null},e.prototype.getStatus=function(){var t=this.getOptions(),e=this.getDisplayData().value,n=e>100?100:e,r=Ep.getProperty(t,"meter","status","ranges");if(r){var i=r.filter((function(t){return t.range[0]<=n&&n<=t.range[1]}));if(i.length>0)return i[0].status}return null},e}(__),DL=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)}}(),kL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e}return DL(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.getOptions(),a=this.model.getDisplayData(),s=this.model.getStatus(),u=cw.getSVGElementSize(this.parent,{useAttrs:!0}).width,c=i.data.groupMapsTo,l=Rg().domain([0,100]).range([0,u]);cw.appendOrSelect(r,"rect.container").attr("x",0).attr("y",0).attr("width",u).attr("height",Ep.getProperty(i,"meter","height"));var h=a.value>=100,f=r.selectAll("rect.value").data([a]),p=null==s||n.model.isUserProvidedColorScaleValid()?"":"value status--"+s;f.enter().append("rect").classed("value",!0).merge(f).attr("x",0).attr("y",0).attr("height",Ep.getProperty(i,"meter","height")).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[c],originalClassName:p})})).transition(this.services.transitions.getTransition("meter-bar-update",t)).attr("width",(function(t){return l(h?100:t.value)})).style("fill",(function(t){return n.model.getFillColor(t[c])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value}));var d=Ep.getProperty(i,"meter","peak"),v=null!==d&&d<a.value?a.value:d,g=null===v||h?[]:[v],m=r.selectAll("line.peak").data(g);m.enter().append("line").classed("peak",!0).merge(m).attr("y1",0).attr("y2",Ep.getProperty(i,"meter","height")).transition(this.services.transitions.getTransition("peak-line-update",t)).attr("x1",(function(t){return l(t)})).attr("x2",(function(t){return l(t)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),m.exit().remove(),this.services.domUtils.setSVGMaxHeight()},e}(OS),LL=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)}}(),RL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new PL(r.services),r.model.setOptions(Ep.merge(Ep.clone(gd.meterChart),n.options)),r.init(e,n),r}return LL(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new kL(this.model,this.services)],growth:{x:j.STRETCH,y:j.FIXED}},e={id:"title",components:[new gM(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},n={id:"spacer",components:[new PD(this.model,this.services,{size:8})],growth:{x:j.PREFERRED,y:j.FIXED}},r=[new kD(this.model,this.services,[e,n,t],{direction:I.COLUMN})],i=this.getChartComponents(r);return i},e}(Jk),IL=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)}}(),jL=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return r?i:(i.model.setOptions(Ep.mergeDefaultChartOptions(gd.radarChart,n.options)),i.init(e,n),i)}return IL(e,t),e.prototype.getComponents=function(){var t=[new AD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Jk),NL=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)}}(),BL=function(t){function e(e){return t.call(this,e)||this}return NL(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e}(__),GL=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)}}(),VL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new BL(r.services),r.model.setOptions(Ep.mergeDefaultChartOptions(gd.gaugeChart,n.options)),r.init(e,n),r}return GL(e,t),e.prototype.getComponents=function(){var t=[new mA(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Jk),UL=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)}}(),HL=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},zL=(Vk={},Vk[W.LINE]=[ZM,WM],Vk[W.SCATTER]=[WM],Vk[W.AREA]=[LM,ZM,WM],Vk[W.STACKED_AREA]=[IM,ZM,JM,Wk],Vk[W.SIMPLE_BAR]=[GM],Vk[W.GROUPED_BAR]=[UM,Zk],Vk[W.STACKED_BAR]=[zM,Wk],Vk),FL=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=Ep.mergeDefaultChartOptions(gd.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:W.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return UL(e,t),e.prototype.getGraphComponents=function(){var t=this,e=this.model.getOptions().comboChartTypes,n=0,r=e.map((function(e){var r,i,o=e.type;return"string"===typeof e.type?Object.keys(zL).includes(e.type)?(r=Ep.merge({},gd[Ep.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===W.STACKED_AREA&&(i=!0),zL[e.type].map((function(o,a){return new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r,stacked:i})}))):(console.error('Invalid chart type "'+e.type+'" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.'),null):(r=Ep.merge({},t.model.getOptions(),e.options),new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r}))})).filter((function(t){return null!==t}));return Ep.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===W.STACKED_BAR||t.type===W.STACKED_AREA})),n=HL([new tk(this.model,this.services),new jk(this.model,this.services),new OA(this.model,this.services,{skeleton:B.GRID})],e?[]:[new zk(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(iL),WL=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)}}(),YL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.treemapChart,n.options)),r.init(e,n),r}return WL(e,t),e.prototype.getComponents=function(){var t=[new dD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Jk),XL={name:"CcvBaseChart",data:function(){return{coreChart:null}},props:{data:{type:[Object,Array],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}}},qL=XL;function ZL(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 KL=ZL(qL,Uk,Hk,!1,null,null,null),$L=KL.exports,QL={name:"CcvAreaChart",extends:$L,mounted:function(){this.coreChart=new aL(this.$el,{data:this.data,options:this.options})}},JL=QL,tR=ZL(JL,x,E,!1,null,null,null),eR=tR.exports,nR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},rR=[],iR={name:"CcvStackedAreaChart",extends:$L,mounted:function(){this.coreChart=new uL(this.$el,{data:this.data,options:this.options})}},oR=iR,aR=ZL(oR,nR,rR,!1,null,null,null),sR=aR.exports,uR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},cR=[],lR={name:"CcvSimpleBarChart",extends:$L,mounted:function(){this.coreChart=new lL(this.$el,{data:this.data,options:this.options})}},hR=lR,fR=ZL(hR,uR,cR,!1,null,null,null),pR=fR.exports,dR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},vR=[],gR={name:"CcvGroupedBarChart",extends:$L,mounted:function(){this.coreChart=new fL(this.$el,{data:this.data,options:this.options})}},mR=gR,yR=ZL(mR,dR,vR,!1,null,null,null),_R=yR.exports,bR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},wR=[],OR={name:"CcvStackedBarChart",extends:$L,mounted:function(){this.coreChart=new dL(this.$el,{data:this.data,options:this.options})}},xR=OR,ER=ZL(xR,bR,wR,!1,null,null,null),SR=ER.exports,TR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},MR=[],AR={name:"CcvBubbleChart",extends:$L,mounted:function(){this.coreChart=new gL(this.$el,{data:this.data,options:this.options})}},CR=AR,PR=ZL(CR,TR,MR,!1,null,null,null),DR=PR.exports,kR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},LR=[],RR={name:"CcvDonutChart",extends:$L,mounted:function(){this.coreChart=new AL(this.$el,{data:this.data,options:this.options})}},IR=RR,jR=ZL(IR,kR,LR,!1,null,null,null),NR=jR.exports,BR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},GR=[],VR={name:"CcvGaugeChart",extends:$L,mounted:function(){this.coreChart=new VL(this.$el,{data:this.data,options:this.options})}},UR=VR,HR=ZL(UR,BR,GR,!1,null,null,null),zR=HR.exports,FR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},WR=[],YR={name:"CcvLineChart",extends:$L,mounted:function(){this.coreChart=new yL(this.$el,{data:this.data,options:this.options})}},XR=YR,qR=ZL(XR,FR,WR,!1,null,null,null),ZR=qR.exports,KR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},$R=[],QR={name:"CcvLollipopChart",extends:$L,mounted:function(){this.coreChart=new bL(this.$el,{data:this.data,options:this.options})}},JR=QR,tI=ZL(JR,KR,$R,!1,null,null,null),eI=tI.exports,nI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},rI=[],iI={name:"CcvPieChart",extends:$L,mounted:function(){this.coreChart=new TL(this.$el,{data:this.data,options:this.options})}},oI=iI,aI=ZL(oI,nI,rI,!1,null,null,null),sI=aI.exports,uI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},cI=[],lI={name:"CcvScatterChart",extends:$L,mounted:function(){this.coreChart=new OL(this.$el,{data:this.data,options:this.options})}},hI=lI,fI=ZL(hI,uI,cI,!1,null,null,null),pI=fI.exports,dI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},vI=[],gI={name:"CcvMeterChart",extends:$L,mounted:function(){this.coreChart=new RL(this.$el,{data:this.data,options:this.options})}},mI=gI,yI=ZL(mI,dI,vI,!1,null,null,null),_I=yI.exports,bI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},wI=[],OI={name:"CcvRadarChart",extends:$L,mounted:function(){this.coreChart=new jL(this.$el,{data:this.data,options:this.options})}},xI=OI,EI=ZL(xI,bI,wI,!1,null,null,null),SI=EI.exports,TI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},MI=[],AI={name:"CcvComboChart",extends:$L,mounted:function(){this.coreChart=new FL(this.$el,{data:this.data,options:this.options})}},CI=AI,PI=ZL(CI,TI,MI,!1,null,null,null),DI=PI.exports,kI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},LI=[],RI={name:"CcvTreemapChart",extends:$L,mounted:function(){this.coreChart=new YL(this.$el,{data:this.data,options:this.options})}},II=RI,jI=ZL(II,kI,LI,!1,null,null,null),NI=jI.exports,BI=[eR,sR,pR,_R,SR,DR,NR,zR,ZR,eI,sI,pI,_I,SI,DI,NI],GI={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=BI[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=BI[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,"CcvAreaChart",(function(){return eR})),n.d(e,"CcvStackedAreaChart",(function(){return sR})),n.d(e,"CcvSimpleBarChart",(function(){return pR})),n.d(e,"CcvGroupedBarChart",(function(){return _R})),n.d(e,"CcvStackedBarChart",(function(){return SR})),n.d(e,"CcvBubbleChart",(function(){return DR})),n.d(e,"CcvDonutChart",(function(){return NR})),n.d(e,"CcvGaugeChart",(function(){return zR})),n.d(e,"CcvLineChart",(function(){return ZR})),n.d(e,"CcvLollipopChart",(function(){return eI})),n.d(e,"CcvPieChart",(function(){return sI})),n.d(e,"CcvScatterChart",(function(){return pI})),n.d(e,"CcvMeterChart",(function(){return _I})),n.d(e,"CcvRadarChart",(function(){return SI})),n.d(e,"CcvComboChart",(function(){return DI})),n.d(e,"CcvTreemapChart",(function(){return NI}));e["default"]=GI},"1d8a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"1f5e":function(t,e,n){var r=n("378c"),i=n("b495"),o=n("9a0f"),a=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}};t.exports={includes:a(!0),indexOf:a(!1)}},2117:function(t,e,n){var r=n("8697");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};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)}}},2402:function(t,e){e.f=Object.getOwnPropertySymbols},"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=E(0,0,0,0);function v(t){return parseFloat(t)||0}function g(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 m(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 y(t){var e=t.getBBox();return E(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=m(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-=g(r,"left","right")+o),Math.round(u+a)!==n&&(u-=g(r,"top","bottom")+a)),!w(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 E(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 w(t){return t===p(t).document.documentElement}function O(t){return r?b(t)?y(t):_(t):d}function x(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 E(t,e,n,r){return{x:t,y:e,width:n,height:r}}var S=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};S.prototype.isActive=function(){var t=O(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},S.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var T=function(t,e){var n=x(e);f(this,{target:t,contentRect:n})},M=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};M.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 S(t)),this.controller_.addObserver(this),this.controller_.refresh())}},M.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))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},M.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new T(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0};var A="undefined"!==typeof WeakMap?new WeakMap:new n,C=function(t){if(!(this instanceof C))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 M(t,e,this);A.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){C.prototype[t]=function(){return(e=A.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:C}();e["a"]=P}).call(this,n("7d15"))},"2df4":function(t,e,n){"use strict";var r=n("6b1d"),i=n("2e3f"),o=n("0e39"),a=n("c1a2"),s=n("fa46"),u=n("5b12"),c=n("b8ba"),l=n("7d53"),h=n("0e93"),f=n("5bb7"),p=n("ff89"),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m="keys",y="values",_="entries",b=function(){return this};t.exports=function(t,e,n,l,p,w,O){i(n,e,l);var x,E,S,T=function(t){if(t===p&&D)return D;if(!v&&t in C)return C[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",A=!1,C=t.prototype,P=C[g]||C["@@iterator"]||p&&C[p],D=!v&&P||T(p),k="Array"==e&&C.entries||P;if(k&&(x=o(k.call(new t)),d!==Object.prototype&&x.next&&(h||o(x)===d||(a?a(x,d):"function"!=typeof x[g]&&u(x,g,b)),s(x,M,!0,!0),h&&(f[M]=b))),p==y&&P&&P.name!==y&&(A=!0,D=function(){return P.call(this)}),h&&!O||C[g]===D||u(C,g,D),f[e]=D,p)if(E={values:T(y),keys:w?D:T(m),entries:T(_)},O)for(S in E)!v&&!A&&S in C||c(C,S,E[S]);else r({target:e,proto:!0,forced:v||A},E);return E}},"2e3f":function(t,e,n){"use strict";var r=n("ff89").IteratorPrototype,i=n("82e8"),o=n("9618"),a=n("fa46"),s=n("5bb7"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},"332c":function(t,e,n){var r=n("4cdd"),i=n("1d8a"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3606:function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),a=n||{},s=a.width,u=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],c=r.match(u);if(!c)return null;var l,h=c[0],f=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(f)?o(f,(function(t){return t.test(r)})):i(f,(function(t){return t.test(r)})),l=t.valueCallback?t.valueCallback(l):l,l=a.valueCallback?a.valueCallback(l):l,{value:l,rest:r.slice(h.length)}}}function i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function o(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"378c":function(t,e,n){var r=n("83a6"),i=n("730c");t.exports=function(t){return r(i(t))}},"37d1":function(t,e,n){var r=n("730c");t.exports=function(t){return Object(r(t))}},"398c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("910f"));function i(t){return t&&t.__esModule?t:{default:t}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,r.default)({formats:o,defaultWidth:"full"}),time:(0,r.default)({formats:a,defaultWidth:"full"}),dateTime:(0,r.default)({formats:s,defaultWidth:"full"})},c=u;e.default=c,t.exports=e.default},"39ba":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("b128")),i=u(n("398c")),o=u(n("5cac")),a=u(n("7b70")),s=u(n("c9c9"));function u(t){return t&&t.__esModule?t:{default:t}}var c={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},l=c;e.default=l,t.exports=e.default},"3cec":function(t,e,n){var r=n("7d53"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"3e32":function(t,e,n){var r=n("7d53"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"3e34":function(t,e,n){var r=n("f498"),i=n("5b12");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},"3e36":function(t,e,n){var r=n("f498");t.exports=r},4141:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},"4cdd":function(t,e,n){var r=n("0e93"),i=n("c607");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"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("7326")(t))},"4db4":function(t,e,n){var r=n("e7a0");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4e41":function(t,e,n){var r=n("7d53");e.f=r},5268:function(t,e,n){"use strict";var r=n("3cec"),i=n("da06");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},5428:function(t,e,n){var r=n("3e36"),i=n("f498"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},5711:function(t,e,n){"use strict";function r(){return!1}e["a"]=r},"5ae7":function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"5b12":function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("9618");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"5bb7":function(t,e){t.exports={}},"5cac":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function i(t,e,n,i){return r[t]}t.exports=e.default},"65d0":function(t,e,n){var r=n("c91c"),i=n("b17e"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"68b8":function(t,e,n){var r=n("6a89");r("iterator")},"6a61":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6a86":function(t,e,n){var r=n("7526"),i=n("c6de"),o=n("7d53"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"6a89":function(t,e,n){var r=n("3e36"),i=n("f1a7"),o=n("4e41"),a=n("abdf").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"6b1d":function(t,e,n){var r=n("f498"),i=n("185a").f,o=n("5b12"),a=n("b8ba"),s=n("3e34"),u=n("b634"),c=n("ebac");t.exports=function(t,e){var n,l,h,f,p,d,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,l)for(h in e){if(p=e[h],t.noTargetGet?(d=i(l,h),f=d&&d.value):f=l[h],n=c(g?h:v+(m?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),a(l,h,p,t)}}},7297:function(t,e,n){var r=n("f498"),i=n("df6f"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"72df":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"730c":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},7326: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}},7526:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7b70":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("b489"));function i(t){return t&&t.__esModule?t:{default:t}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function h(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var f={ordinalNumber:h,era:(0,r.default)({values:o,defaultWidth:"wide"}),quarter:(0,r.default)({values:a,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:(0,r.default)({values:s,defaultWidth:"wide"}),day:(0,r.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:c,defaultWidth:"wide",formattingValues:l,defaultFormattingWidth:"wide"})},p=f;e.default=p,t.exports=e.default},"7c3f":function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f2bf");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"7d15":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},"7d53":function(t,e,n){var r=n("f498"),i=n("4cdd"),o=n("f1a7"),a=n("1d8a"),s=n("e7a0"),u=n("4db4"),c=i("wks"),l=r.Symbol,h=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(l,t)?c[t]=l[t]:c[t]=h("Symbol."+t)),c[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},"802e":function(t,e,n){var r=n("72df");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"82e8":function(t,e,n){var r,i=n("157c"),o=n("b99b"),a=n("b17e"),s=n("d687"),u=n("9324"),c=n("f2bf"),l=n("332c"),h=">",f="<",p="prototype",d="script",v=l("IE_PROTO"),g=function(){},m=function(t){return f+d+h+t+f+"/"+d+h},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?y(r):_();var t=a.length;while(t--)delete b[p][a[t]];return b()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=i(t),n=new g,g[p]=null,n[v]=t):n=b(),void 0===e?n:o(n,e)}},"83a6":function(t,e,n){var r=n("72df"),i=n("6a61"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"868d":function(t,e,n){var r=n("d4cb"),i=n("abdf").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";!r||u in o||i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},8697:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"8bb2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"8d0d":function(t,e,n){"use strict";var r=n("6b1d"),i=n("1f5e").includes,o=n("ed2b"),a=n("ce71"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"8d0f":function(t,e,n){"use strict";var r=n("6b1d"),i=n("d4cb"),o=n("f498"),a=n("f1a7"),s=n("7526"),u=n("abdf").f,c=n("b634"),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};c(f,l);var p=f.prototype=l.prototype;p.constructor=f;var d=p.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},"8e5d":function(t,e,n){var r=n("7526"),i=n("6a61"),o=n("7d53"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"910f":function(t,e,n){"use strict";function r(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"918c":function(t,e,n){var r=n("f498"),i=n("130d"),o=n("9531"),a=n("5b12"),s=n("7d53"),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in i){var f=r[h],p=f&&f.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(v){p[u]=l}if(p[c]||a(p,c,h),i[h])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(v){p[d]=o[d]}}}},"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("7d15"))},9324:function(t,e,n){var r=n("5428");t.exports=r("document","documentElement")},9531:function(t,e,n){"use strict";var r=n("378c"),i=n("ed2b"),o=n("5bb7"),a=n("cdcd"),s=n("2df4"),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9618:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"9a0f":function(t,e,n){var r=n("8bb2"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"9eea":function(t,e,n){var r=n("8e5d");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},a03e:function(t,e,n){var r=n("5428"),i=n("65d0"),o=n("2402"),a=n("157c");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},abdf:function(t,e,n){var r=n("d4cb"),i=n("7c3f"),o=n("157c"),a=n("083f"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},b128:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t,e,n){var i;return n=n||{},i="string"===typeof r[t]?r[t]:1===e?r[t].one:r[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+i:i+" ago":i}t.exports=e.default},b17e:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b489:function(t,e,n){"use strict";function r(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},b495:function(t,e,n){var r=n("8bb2"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b634:function(t,e,n){var r=n("f1a7"),i=n("a03e"),o=n("185a"),a=n("abdf");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},b7fb:function(t,e,n){var r=n("8bb2"),i=n("730c"),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},b8ba:function(t,e,n){var r=n("f498"),i=n("5b12"),o=n("f1a7"),a=n("3e34"),s=n("df6f"),u=n("cdcd"),c=u.get,l=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),l(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=n:i(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},b99b:function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("157c"),a=n("0c47");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,u=0;while(s>u)i.f(t,n=r[u++],e[n]);return t}},c1a2:function(t,e,n){var r=n("157c"),i=n("f3e4");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},c607:function(t,e,n){var r=n("f498"),i=n("3e34"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c6de:function(t,e,n){var r=n("6a61");t.exports=Array.isArray||function(t){return"Array"==r(t)}},c78b:function(t,e,n){"use strict";var r=n("6b1d"),i=n("9eea"),o=n("730c"),a=n("3e32");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},c91c:function(t,e,n){var r=n("f1a7"),i=n("378c"),o=n("1f5e").indexOf,a=n("d687");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},c9c9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("5ae7")),i=o(n("3606"));function o(t){return t&&t.__esModule?t:{default:t}}var a=/^(\d+)(th|st|nd|rd)?/i,s=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},l={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},d={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,r.default)({matchPattern:a,parsePattern:s,valueCallback:function(t){return parseInt(t,10)}}),era:(0,i.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,i.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},_=y;e.default=_,t.exports=e.default},cdcd:function(t,e,n){var r,i,o,a=n("7297"),s=n("f498"),u=n("7526"),c=n("5b12"),l=n("f1a7"),h=n("332c"),f=n("d687"),p=s.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var g=new p,m=g.get,y=g.has,_=g.set;r=function(t,e){return _.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return y.call(g,t)}}else{var b=h("state");f[b]=!0,r=function(t,e){return c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:v}},ce71:function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f1a7"),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,h)}))}},d054:function(t,e,n){var r=n("2117"),i=n("83a6"),o=n("37d1"),a=n("b495"),s=n("6a86"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h;return function(p,d,v,g){for(var m,y,_=o(p),b=i(_),w=r(d,v,3),O=a(b.length),x=0,E=g||s,S=e?E(p,O):n?E(p,0):void 0;O>x;x++)if((f||x in b)&&(m=b[x],y=w(m,x,_),t))if(e)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(S,m)}else if(l)return!1;return h?-1:c||l?l:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},d4cb:function(t,e,n){var r=n("72df");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d687:function(t,e){t.exports={}},d6de:function(t,e,n){"use strict";var r=n("6b1d"),i=n("f498"),o=n("5428"),a=n("0e93"),s=n("d4cb"),u=n("e7a0"),c=n("4db4"),l=n("72df"),h=n("f1a7"),f=n("c6de"),p=n("7526"),d=n("157c"),v=n("37d1"),g=n("378c"),m=n("083f"),y=n("9618"),_=n("82e8"),b=n("0c47"),w=n("65d0"),O=n("ee58"),x=n("2402"),E=n("185a"),S=n("abdf"),T=n("e129"),M=n("5b12"),A=n("b8ba"),C=n("4cdd"),P=n("332c"),D=n("d687"),k=n("1d8a"),L=n("7d53"),R=n("4e41"),I=n("6a89"),j=n("fa46"),N=n("cdcd"),B=n("d054").forEach,G=P("hidden"),V="Symbol",U="prototype",H=L("toPrimitive"),z=N.set,F=N.getterFor(V),W=Object[U],Y=i.Symbol,X=o("JSON","stringify"),q=E.f,Z=S.f,K=O.f,$=T.f,Q=C("symbols"),J=C("op-symbols"),tt=C("string-to-symbol-registry"),et=C("symbol-to-string-registry"),nt=C("wks"),rt=i.QObject,it=!rt||!rt[U]||!rt[U].findChild,ot=s&&l((function(){return 7!=_(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(W,e);r&&delete W[e],Z(t,e,n),r&&t!==W&&Z(W,e,r)}:Z,at=function(t,e){var n=Q[t]=_(Y[U]);return z(n,{type:V,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},ut=function(t,e,n){t===W&&ut(J,e,n),d(t);var r=m(e,!0);return d(n),h(Q,r)?(n.enumerable?(h(t,G)&&t[G][r]&&(t[G][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,G)||Z(t,G,y(1,{})),t[G][r]=!0),ot(t,r,n)):Z(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return B(r,(function(e){s&&!ht.call(n,e)||ut(t,e,n[e])})),t},lt=function(t,e){return void 0===e?_(t):ct(_(t),e)},ht=function(t){var e=m(t,!0),n=$.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,G)&&this[G][e])||n)},ft=function(t,e){var n=g(t),r=m(e,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=q(n,r);return!i||!h(Q,r)||h(n,G)&&n[G][r]||(i.enumerable=!0),i}},pt=function(t){var e=K(g(t)),n=[];return B(e,(function(t){h(Q,t)||h(D,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=K(e?J:g(t)),r=[];return B(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=k(t),n=function(t){this===W&&n.call(J,t),h(this,G)&&h(this[G],e)&&(this[G][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(Y[U],"toString",(function(){return F(this).tag})),A(Y,"withoutSetter",(function(t){return at(k(t),t)})),T.f=ht,S.f=ut,E.f=ft,w.f=O.f=pt,x.f=dt,R.f=function(t){return at(L(t),t)},s&&(Z(Y[U],"description",{configurable:!0,get:function(){return F(this).description}}),a||A(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),B(b(nt),(function(t){I(t)})),r({target:V,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=Y(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:lt,defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:l((function(){x.f(1)}))},{getOwnPropertySymbols:function(t){return x.f(v(t))}}),X){var vt=!u||l((function(){var t=Y();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}));r({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!st(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,X.apply(null,i)}})}Y[U][H]||M(Y[U],H,Y[U].valueOf),j(Y,V),D[G]=!0},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("7326")(t))},da06:function(t,e,n){var r=n("3cec"),i=n("6a61"),o=n("7d53"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},df6f:function(t,e,n){var r=n("c607"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},e129:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},e7a0:function(t,e,n){var r=n("72df");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},ebac:function(t,e,n){var r=n("72df"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},ed2b:function(t,e,n){var r=n("7d53"),i=n("82e8"),o=n("abdf"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},ee58:function(t,e,n){var r=n("378c"),i=n("65d0").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))}},ef1f:function(t,e,n){var r=n("3cec"),i=n("b8ba"),o=n("5268");r||i(Object.prototype,"toString",o,{unsafe:!0})},f1a7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},f2bf:function(t,e,n){var r=n("f498"),i=n("7526"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},f3b8:function(t,e,n){"use strict";var r=n("b7fb").charAt,i=n("cdcd"),o=n("2df4"),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},f3e4:function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},f498:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("7d15"))},fa46:function(t,e,n){var r=n("abdf").f,i=n("f1a7"),o=n("7d53"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},ff89:function(t,e,n){"use strict";var r,i,o,a=n("0e39"),s=n("5b12"),u=n("f1a7"),c=n("7d53"),l=n("0e93"),h=c("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),l||u(r,h)||s(r,h,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}}})}));
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("7326")(t))},"083f":function(t,e,n){var r=n("7526");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")}},"0c47":function(t,e,n){var r=n("c91c"),i=n("b17e");t.exports=Object.keys||function(t){return r(t,i)}},"0e39":function(t,e,n){var r=n("f1a7"),i=n("37d1"),o=n("332c"),a=n("802e"),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"0e93":function(t,e){t.exports=!1},"130d":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"157c":function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"185a":function(t,e,n){var r=n("d4cb"),i=n("e129"),o=n("9618"),a=n("378c"),s=n("083f"),u=n("f1a7"),c=n("7c3f"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"1c25":function(t,e,n){"use strict";n.r(e);var r,i={};(n.r(i),n.d(i,"Chart",(function(){return a})),n.d(i,"Model",(function(){return s})),n.d(i,"Toolbar",(function(){return u})),n.d(i,"ZoomBar",(function(){return c})),n.d(i,"ZoomDomain",(function(){return l})),n.d(i,"Axis",(function(){return h})),n.d(i,"Area",(function(){return f})),n.d(i,"Pie",(function(){return p})),n.d(i,"Gauge",(function(){return d})),n.d(i,"Bar",(function(){return v})),n.d(i,"Scatter",(function(){return g})),n.d(i,"Line",(function(){return m})),n.d(i,"Radar",(function(){return y})),n.d(i,"Treemap",(function(){return _})),n.d(i,"Tooltip",(function(){return b})),n.d(i,"Threshold",(function(){return w})),n.d(i,"Legend",(function(){return O})),"undefined"!==typeof window)&&(n("4141"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var o,a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,w,O,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},E=[];(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group",t["DOCUMENT"]="document",t["CHECKBOX"]="checkbox",t["BUTTON"]="button",t["MENU"]="menu",t["MENU_ITEM"]="menuitem",t["IMG"]="img"})(o||(o={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(a||(a={})),function(t){t["UPDATE"]="model-update"}(s||(s={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu"}(u||(u={})),function(t){t["UPDATE"]="zoom-bar-update",t["SELECTION_START"]="zoom-bar-selection-start",t["SELECTION_IN_PROGRESS"]="zoom-bar-selection-in-progress",t["SELECTION_END"]="zoom-bar-selection-end"}(c||(c={})),function(t){t["CHANGE"]="zoom-domain-change"}(l||(l={})),function(t){t["LABEL_MOUSEOVER"]="axis-label-mouseover",t["LABEL_MOUSEMOVE"]="axis-label-mousemove",t["LABEL_CLICK"]="axis-label-click",t["LABEL_MOUSEOUT"]="axis-label-mouseout"}(h||(h={})),function(t){t["AREA_MOUSEOVER"]="area-mouseover",t["AREA_MOUSEMOVE"]="area-mousemove",t["AREA_CLICK"]="area-click",t["AREA_MOUSEOUT"]="area-mouseout"}(f||(f={})),function(t){t["SLICE_MOUSEOVER"]="pie-slice-mouseover",t["SLICE_MOUSEMOVE"]="pie-slice-mousemove",t["SLICE_CLICK"]="pie-slice-click",t["SLICE_MOUSEOUT"]="pie-slice-mouseout"}(p||(p={})),function(t){t["ARC_MOUSEOVER"]="gauge-arc-mouseover",t["ARC_MOUSEMOVE"]="gauge-arc-mousemove",t["ARC_CLICK"]="gauge-arc-click",t["ARC_MOUSEOUT"]="gauge-arc-mouseout"}(d||(d={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(v||(v={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(g||(g={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(m||(m={})),function(t){t["X_AXIS_MOUSEOVER"]="radar-x-axis-mouseover",t["X_AXIS_MOUSEMOVE"]="radar-x-axis-mousemove",t["X_AXIS_CLICK"]="radar-x-axis-click",t["X_AXIS_MOUSEOUT"]="radar-x-axis-mouseout"}(y||(y={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(_||(_={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(b||(b={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(w||(w={})),function(t){t["ITEM_HOVER"]="legend-item-onhover",t["ITEM_CLICK"]="legend-item-onclick",t["ITEM_MOUSEOUT"]="legend-item-onmouseout",t["ITEMS_UPDATE"]="legend-items-update"}(O||(O={}));var S,T,M,A,C,P,D,k,L,R,I,j,N,B,G,V,U,H,z,F,W,Y,X=i;function q(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"})(S||(S={})),function(t){t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(T||(T={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(M||(M={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(A||(A={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(C||(C={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(P||(P={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels"}(D||(D={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(k||(k={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(L||(L={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(R||(R={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(I||(I={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(j||(j={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(N||(N={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(B||(B={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(G||(G={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(V||(V={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(U||(U={})),function(t){t["UP"]="up",t["DOWN"]="down"}(H||(H={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(z||(z={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(F||(F={})),function(t){t["SCATTER"]="scatter",t["LINE"]="line",t["SIMPLE_BAR"]="simple-bar",t["STACKED_BAR"]="stacked-bar",t["GROUPED_BAR"]="grouped-bar",t["AREA"]="area",t["STACKED_AREA"]="stacked-area"}(W||(W={})),function(t){t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom"}(Y||(Y={}));var Z=q,K=n("7f0d"),$=function(){return K["a"].Date.now()},Q=$,J=K["a"].Symbol,tt=J,et=Object.prototype,nt=et.hasOwnProperty,rt=et.toString,it=tt?tt.toStringTag:void 0;function ot(t){var e=nt.call(t,it),n=t[it];try{t[it]=void 0;var r=!0}catch(o){}var i=rt.call(t);return r&&(e?t[it]=n:delete t[it]),i}var at=ot,st=Object.prototype,ut=st.toString;function ct(t){return ut.call(t)}var lt=ct,ht="[object Null]",ft="[object Undefined]",pt=tt?tt.toStringTag:void 0;function dt(t){return null==t?void 0===t?ft:ht:pt&&pt in Object(t)?at(t):lt(t)}var vt=dt;function gt(t){return null!=t&&"object"==typeof t}var mt=gt,yt="[object Symbol]";function _t(t){return"symbol"==typeof t||mt(t)&&vt(t)==yt}var bt=_t,wt=NaN,Ot=/^\s+|\s+$/g,xt=/^[-+]0x[0-9a-f]+$/i,Et=/^0b[01]+$/i,St=/^0o[0-7]+$/i,Tt=parseInt;function Mt(t){if("number"==typeof t)return t;if(bt(t))return wt;if(Z(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Z(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ot,"");var n=Et.test(t);return n||St.test(t)?Tt(t.slice(2),n?2:8):xt.test(t)?wt:+t}var At=Mt,Ct="Expected a function",Pt=Math.max,Dt=Math.min;function kt(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(Ct);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(m,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?Dt(i,o-r):i}function g(t){var n=t-u,r=t-c;return void 0===u||n>=e||n<0||h&&r>=o}function m(){var t=Q();if(g(t))return y(t);s=setTimeout(m,v(t))}function y(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function _(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0}function b(){return void 0===s?a:y(Q())}function w(){var t=Q(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return d(u);if(h)return clearTimeout(s),s=setTimeout(m,e),p(u)}return void 0===s&&(s=setTimeout(m,e)),a}return e=At(e)||0,Z(n)&&(l=!!n.leading,h="maxWait"in n,o=h?Pt(At(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),w.cancel=_,w.flush=b,w}var Lt=kt;function Rt(){this.__data__=[],this.size=0}var It=Rt;function jt(t,e){return t===e||t!==t&&e!==e}var Nt=jt;function Bt(t,e){var n=t.length;while(n--)if(Nt(t[n][0],e))return n;return-1}var Gt=Bt,Vt=Array.prototype,Ut=Vt.splice;function Ht(t){var e=this.__data__,n=Gt(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ut.call(e,n,1),--this.size,!0}var zt=Ht;function Ft(t){var e=this.__data__,n=Gt(e,t);return n<0?void 0:e[n][1]}var Wt=Ft;function Yt(t){return Gt(this.__data__,t)>-1}var Xt=Yt;function qt(t,e){var n=this.__data__,r=Gt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Zt=qt;function Kt(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])}}Kt.prototype.clear=It,Kt.prototype["delete"]=zt,Kt.prototype.get=Wt,Kt.prototype.has=Xt,Kt.prototype.set=Zt;var $t=Kt;function Qt(){this.__data__=new $t,this.size=0}var Jt=Qt;function te(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var ee=te;function ne(t){return this.__data__.get(t)}var re=ne;function ie(t){return this.__data__.has(t)}var oe=ie,ae="[object AsyncFunction]",se="[object Function]",ue="[object GeneratorFunction]",ce="[object Proxy]";function le(t){if(!Z(t))return!1;var e=vt(t);return e==se||e==ue||e==ae||e==ce}var he=le,fe=K["a"]["__core-js_shared__"],pe=fe,de=function(){var t=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ve(t){return!!de&&de in t}var ge=ve,me=Function.prototype,ye=me.toString;function _e(t){if(null!=t){try{return ye.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var be=_e,we=/[\\^$.*+?()[\]{}|]/g,Oe=/^\[object .+?Constructor\]$/,xe=Function.prototype,Ee=Object.prototype,Se=xe.toString,Te=Ee.hasOwnProperty,Me=RegExp("^"+Se.call(Te).replace(we,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ae(t){if(!Z(t)||ge(t))return!1;var e=he(t)?Me:Oe;return e.test(be(t))}var Ce=Ae;function Pe(t,e){return null==t?void 0:t[e]}var De=Pe;function ke(t,e){var n=De(t,e);return Ce(n)?n:void 0}var Le=ke,Re=Le(K["a"],"Map"),Ie=Re,je=Le(Object,"create"),Ne=je;function Be(){this.__data__=Ne?Ne(null):{},this.size=0}var Ge=Be;function Ve(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ue=Ve,He="__lodash_hash_undefined__",ze=Object.prototype,Fe=ze.hasOwnProperty;function We(t){var e=this.__data__;if(Ne){var n=e[t];return n===He?void 0:n}return Fe.call(e,t)?e[t]:void 0}var Ye=We,Xe=Object.prototype,qe=Xe.hasOwnProperty;function Ze(t){var e=this.__data__;return Ne?void 0!==e[t]:qe.call(e,t)}var Ke=Ze,$e="__lodash_hash_undefined__";function Qe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ne&&void 0===e?$e:e,this}var Je=Qe;function tn(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])}}tn.prototype.clear=Ge,tn.prototype["delete"]=Ue,tn.prototype.get=Ye,tn.prototype.has=Ke,tn.prototype.set=Je;var en=tn;function nn(){this.size=0,this.__data__={hash:new en,map:new(Ie||$t),string:new en}}var rn=nn;function on(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var an=on;function sn(t,e){var n=t.__data__;return an(e)?n["string"==typeof e?"string":"hash"]:n.map}var un=sn;function cn(t){var e=un(this,t)["delete"](t);return this.size-=e?1:0,e}var ln=cn;function hn(t){return un(this,t).get(t)}var fn=hn;function pn(t){return un(this,t).has(t)}var dn=pn;function vn(t,e){var n=un(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var gn=vn;function mn(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])}}mn.prototype.clear=rn,mn.prototype["delete"]=ln,mn.prototype.get=fn,mn.prototype.has=dn,mn.prototype.set=gn;var yn=mn,_n=200;function bn(t,e){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!Ie||r.length<_n-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new yn(r)}return n.set(t,e),this.size=n.size,this}var wn=bn;function On(t){var e=this.__data__=new $t(t);this.size=e.size}On.prototype.clear=Jt,On.prototype["delete"]=ee,On.prototype.get=re,On.prototype.has=oe,On.prototype.set=wn;var xn=On;function En(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 Sn=En,Tn=function(){try{var t=Le(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Mn=Tn;function An(t,e,n){"__proto__"==e&&Mn?Mn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Cn=An,Pn=Object.prototype,Dn=Pn.hasOwnProperty;function kn(t,e,n){var r=t[e];Dn.call(t,e)&&Nt(r,n)&&(void 0!==n||e in t)||Cn(t,e,n)}var Ln=kn;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?Cn(n,s,u):Ln(n,s,u)}return n}var In=Rn;function jn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var Nn=jn,Bn="[object Arguments]";function Gn(t){return mt(t)&&vt(t)==Bn}var Vn=Gn,Un=Object.prototype,Hn=Un.hasOwnProperty,zn=Un.propertyIsEnumerable,Fn=Vn(function(){return arguments}())?Vn:function(t){return mt(t)&&Hn.call(t,"callee")&&!zn.call(t,"callee")},Wn=Fn,Yn=Array.isArray,Xn=Yn,qn=n("4cf0"),Zn=9007199254740991,Kn=/^(?:0|[1-9]\d*)$/;function $n(t,e){var n=typeof t;return e=null==e?Zn:e,!!e&&("number"==n||"symbol"!=n&&Kn.test(t))&&t>-1&&t%1==0&&t<e}var Qn=$n,Jn=9007199254740991;function tr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Jn}var er=tr,nr="[object Arguments]",rr="[object Array]",ir="[object Boolean]",or="[object Date]",ar="[object Error]",sr="[object Function]",ur="[object Map]",cr="[object Number]",lr="[object Object]",hr="[object RegExp]",fr="[object Set]",pr="[object String]",dr="[object WeakMap]",vr="[object ArrayBuffer]",gr="[object DataView]",mr="[object Float32Array]",yr="[object Float64Array]",_r="[object Int8Array]",br="[object Int16Array]",wr="[object Int32Array]",Or="[object Uint8Array]",xr="[object Uint8ClampedArray]",Er="[object Uint16Array]",Sr="[object Uint32Array]",Tr={};function Mr(t){return mt(t)&&er(t.length)&&!!Tr[vt(t)]}Tr[mr]=Tr[yr]=Tr[_r]=Tr[br]=Tr[wr]=Tr[Or]=Tr[xr]=Tr[Er]=Tr[Sr]=!0,Tr[nr]=Tr[rr]=Tr[vr]=Tr[ir]=Tr[gr]=Tr[or]=Tr[ar]=Tr[sr]=Tr[ur]=Tr[cr]=Tr[lr]=Tr[hr]=Tr[fr]=Tr[pr]=Tr[dr]=!1;var Ar=Mr;function Cr(t){return function(e){return t(e)}}var Pr=Cr,Dr=n("01ff"),kr=Dr["a"]&&Dr["a"].isTypedArray,Lr=kr?Pr(kr):Ar,Rr=Lr,Ir=Object.prototype,jr=Ir.hasOwnProperty;function Nr(t,e){var n=Xn(t),r=!n&&Wn(t),i=!n&&!r&&Object(qn["a"])(t),o=!n&&!r&&!i&&Rr(t),a=n||r||i||o,s=a?Nn(t.length,String):[],u=s.length;for(var c in t)!e&&!jr.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Qn(c,u))||s.push(c);return s}var Br=Nr,Gr=Object.prototype;function Vr(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Gr;return t===n}var Ur=Vr;function Hr(t,e){return function(n){return t(e(n))}}var zr=Hr,Fr=zr(Object.keys,Object),Wr=Fr,Yr=Object.prototype,Xr=Yr.hasOwnProperty;function qr(t){if(!Ur(t))return Wr(t);var e=[];for(var n in Object(t))Xr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Zr=qr;function Kr(t){return null!=t&&er(t.length)&&!he(t)}var $r=Kr;function Qr(t){return $r(t)?Br(t):Zr(t)}var Jr=Qr;function ti(t,e){return t&&In(e,Jr(e),t)}var ei=ti;function ni(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var ri=ni,ii=Object.prototype,oi=ii.hasOwnProperty;function ai(t){if(!Z(t))return ri(t);var e=Ur(t),n=[];for(var r in t)("constructor"!=r||!e&&oi.call(t,r))&&n.push(r);return n}var si=ai;function ui(t){return $r(t)?Br(t,!0):si(t)}var ci=ui;function li(t,e){return t&&In(e,ci(e),t)}var hi=li,fi=n("d6f0");function pi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var di=pi;function vi(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 gi=vi;function mi(){return[]}var yi=mi,_i=Object.prototype,bi=_i.propertyIsEnumerable,wi=Object.getOwnPropertySymbols,Oi=wi?function(t){return null==t?[]:(t=Object(t),gi(wi(t),(function(e){return bi.call(t,e)})))}:yi,xi=Oi;function Ei(t,e){return In(t,xi(t),e)}var Si=Ei;function Ti(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var Mi=Ti,Ai=zr(Object.getPrototypeOf,Object),Ci=Ai,Pi=Object.getOwnPropertySymbols,Di=Pi?function(t){var e=[];while(t)Mi(e,xi(t)),t=Ci(t);return e}:yi,ki=Di;function Li(t,e){return In(t,ki(t),e)}var Ri=Li;function Ii(t,e,n){var r=e(t);return Xn(t)?r:Mi(r,n(t))}var ji=Ii;function Ni(t){return ji(t,Jr,xi)}var Bi=Ni;function Gi(t){return ji(t,ci,ki)}var Vi=Gi,Ui=Le(K["a"],"DataView"),Hi=Ui,zi=Le(K["a"],"Promise"),Fi=zi,Wi=Le(K["a"],"Set"),Yi=Wi,Xi=Le(K["a"],"WeakMap"),qi=Xi,Zi="[object Map]",Ki="[object Object]",$i="[object Promise]",Qi="[object Set]",Ji="[object WeakMap]",to="[object DataView]",eo=be(Hi),no=be(Ie),ro=be(Fi),io=be(Yi),oo=be(qi),ao=vt;(Hi&&ao(new Hi(new ArrayBuffer(1)))!=to||Ie&&ao(new Ie)!=Zi||Fi&&ao(Fi.resolve())!=$i||Yi&&ao(new Yi)!=Qi||qi&&ao(new qi)!=Ji)&&(ao=function(t){var e=vt(t),n=e==Ki?t.constructor:void 0,r=n?be(n):"";if(r)switch(r){case eo:return to;case no:return Zi;case ro:return $i;case io:return Qi;case oo:return Ji}return e});var so=ao,uo=Object.prototype,co=uo.hasOwnProperty;function lo(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&co.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var ho=lo,fo=K["a"].Uint8Array,po=fo;function vo(t){var e=new t.constructor(t.byteLength);return new po(e).set(new po(t)),e}var go=vo;function mo(t,e){var n=e?go(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var yo=mo,_o=/\w*$/;function bo(t){var e=new t.constructor(t.source,_o.exec(t));return e.lastIndex=t.lastIndex,e}var wo=bo,Oo=tt?tt.prototype:void 0,xo=Oo?Oo.valueOf:void 0;function Eo(t){return xo?Object(xo.call(t)):{}}var So=Eo;function To(t,e){var n=e?go(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Mo=To,Ao="[object Boolean]",Co="[object Date]",Po="[object Map]",Do="[object Number]",ko="[object RegExp]",Lo="[object Set]",Ro="[object String]",Io="[object Symbol]",jo="[object ArrayBuffer]",No="[object DataView]",Bo="[object Float32Array]",Go="[object Float64Array]",Vo="[object Int8Array]",Uo="[object Int16Array]",Ho="[object Int32Array]",zo="[object Uint8Array]",Fo="[object Uint8ClampedArray]",Wo="[object Uint16Array]",Yo="[object Uint32Array]";function Xo(t,e,n){var r=t.constructor;switch(e){case jo:return go(t);case Ao:case Co:return new r(+t);case No:return yo(t,n);case Bo:case Go:case Vo:case Uo:case Ho:case zo:case Fo:case Wo:case Yo:return Mo(t,n);case Po:return new r;case Do:case Ro:return new r(t);case ko:return wo(t);case Lo:return new r;case Io:return So(t)}}var qo=Xo,Zo=Object.create,Ko=function(){function t(){}return function(e){if(!Z(e))return{};if(Zo)return Zo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),$o=Ko;function Qo(t){return"function"!=typeof t.constructor||Ur(t)?{}:$o(Ci(t))}var Jo=Qo,ta="[object Map]";function ea(t){return mt(t)&&so(t)==ta}var na=ea,ra=Dr["a"]&&Dr["a"].isMap,ia=ra?Pr(ra):na,oa=ia,aa="[object Set]";function sa(t){return mt(t)&&so(t)==aa}var ua=sa,ca=Dr["a"]&&Dr["a"].isSet,la=ca?Pr(ca):ua,ha=la,fa=1,pa=2,da=4,va="[object Arguments]",ga="[object Array]",ma="[object Boolean]",ya="[object Date]",_a="[object Error]",ba="[object Function]",wa="[object GeneratorFunction]",Oa="[object Map]",xa="[object Number]",Ea="[object Object]",Sa="[object RegExp]",Ta="[object Set]",Ma="[object String]",Aa="[object Symbol]",Ca="[object WeakMap]",Pa="[object ArrayBuffer]",Da="[object DataView]",ka="[object Float32Array]",La="[object Float64Array]",Ra="[object Int8Array]",Ia="[object Int16Array]",ja="[object Int32Array]",Na="[object Uint8Array]",Ba="[object Uint8ClampedArray]",Ga="[object Uint16Array]",Va="[object Uint32Array]",Ua={};function Ha(t,e,n,r,i,o){var a,s=e&fa,u=e&pa,c=e&da;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Z(t))return t;var l=Xn(t);if(l){if(a=ho(t),!s)return di(t,a)}else{var h=so(t),f=h==ba||h==wa;if(Object(qn["a"])(t))return Object(fi["a"])(t,s);if(h==Ea||h==va||f&&!i){if(a=u||f?{}:Jo(t),!s)return u?Ri(t,hi(a,t)):Si(t,ei(a,t))}else{if(!Ua[h])return i?t:{};a=qo(t,h,s)}}o||(o=new xn);var p=o.get(t);if(p)return p;o.set(t,a),ha(t)?t.forEach((function(r){a.add(Ha(r,e,n,r,t,o))})):oa(t)&&t.forEach((function(r,i){a.set(i,Ha(r,e,n,i,t,o))}));var d=c?u?Vi:Bi:u?keysIn:Jr,v=l?void 0:d(t);return Sn(v||t,(function(r,i){v&&(i=r,r=t[i]),Ln(a,i,Ha(r,e,n,i,t,o))})),a}Ua[va]=Ua[ga]=Ua[Pa]=Ua[Da]=Ua[ma]=Ua[ya]=Ua[ka]=Ua[La]=Ua[Ra]=Ua[Ia]=Ua[ja]=Ua[Oa]=Ua[xa]=Ua[Ea]=Ua[Sa]=Ua[Ta]=Ua[Ma]=Ua[Aa]=Ua[Na]=Ua[Ba]=Ua[Ga]=Ua[Va]=!0,Ua[_a]=Ua[ba]=Ua[Ca]=!1;var za=Ha,Fa=1,Wa=4;function Ya(t){return za(t,Fa|Wa)}var Xa=Ya;function qa(t,e,n){(void 0===n||Nt(t[e],n))&&(void 0!==n||e in t)||Cn(t,e,n)}var Za=qa;function Ka(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 $a=Ka,Qa=$a(),Ja=Qa;function ts(t){return mt(t)&&$r(t)}var es=ts,ns="[object Object]",rs=Function.prototype,is=Object.prototype,os=rs.toString,as=is.hasOwnProperty,ss=os.call(Object);function us(t){if(!mt(t)||vt(t)!=ns)return!1;var e=Ci(t);if(null===e)return!0;var n=as.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&os.call(n)==ss}var cs=us;function ls(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var hs=ls;function fs(t){return In(t,ci(t))}var ps=fs;function ds(t,e,n,r,i,o,a){var s=hs(t,n),u=hs(e,n),c=a.get(u);if(c)Za(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Xn(u),p=!f&&Object(qn["a"])(u),d=!f&&!p&&Rr(u);l=u,f||p||d?Xn(s)?l=s:es(s)?l=di(s):p?(h=!1,l=Object(fi["a"])(u,!0)):d?(h=!1,l=Mo(u,!0)):l=[]:cs(u)||Wn(u)?(l=s,Wn(s)?l=ps(s):Z(s)&&!he(s)||(l=Jo(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Za(t,n,l)}}var vs=ds;function gs(t,e,n,r,i){t!==e&&Ja(e,(function(o,a){if(i||(i=new xn),Z(o))vs(t,e,a,n,gs,r,i);else{var s=r?r(hs(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Za(t,a,s)}}),ci)}var ms=gs;function ys(t){return t}var _s=ys;function bs(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 ws=bs,Os=Math.max;function xs(t,e,n){return e=Os(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=Os(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),ws(t,this,s)}}var Es=xs;function Ss(t){return function(){return t}}var Ts=Ss,Ms=Mn?function(t,e){return Mn(t,"toString",{configurable:!0,enumerable:!1,value:Ts(e),writable:!0})}:_s,As=Ms,Cs=800,Ps=16,Ds=Date.now;function ks(t){var e=0,n=0;return function(){var r=Ds(),i=Ps-(r-n);if(n=r,i>0){if(++e>=Cs)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Ls=ks,Rs=Ls(As),Is=Rs;function js(t,e){return Is(Es(t,e,_s),t+"")}var Ns=js;function Bs(t,e,n){if(!Z(n))return!1;var r=typeof e;return!!("number"==r?$r(n)&&Qn(e,n.length):"string"==r&&e in n)&&Nt(n[e],t)}var Gs=Bs;function Vs(t){return Ns((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&&Gs(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 Us=Vs,Hs=Us((function(t,e,n){ms(t,e,n)})),zs=Hs,Fs="__lodash_hash_undefined__";function Ws(t){return this.__data__.set(t,Fs),this}var Ys=Ws;function Xs(t){return this.__data__.has(t)}var qs=Xs;function Zs(t){var e=-1,n=null==t?0:t.length;this.__data__=new yn;while(++e<n)this.add(t[e])}Zs.prototype.add=Zs.prototype.push=Ys,Zs.prototype.has=qs;var Ks=Zs;function $s(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 Qs=$s;function Js(t){return t!==t}var tu=Js;function eu(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var nu=eu;function ru(t,e,n){return e===e?nu(t,e,n):Qs(t,tu,n)}var iu=ru;function ou(t,e){var n=null==t?0:t.length;return!!n&&iu(t,e,0)>-1}var au=ou;function su(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 uu=su;function cu(t,e){return t.has(e)}var lu=cu;function hu(){}var fu=hu;function pu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var du=pu,vu=1/0,gu=Yi&&1/du(new Yi([,-0]))[1]==vu?function(t){return new Yi(t)}:fu,mu=gu,yu=200;function _u(t,e,n){var r=-1,i=au,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=uu;else if(o>=yu){var c=e?null:mu(t);if(c)return du(c);a=!1,i=lu,u=new Ks}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 bu=_u;function wu(t){return t&&t.length?bu(t):[]}var Ou=wu;function xu(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var Eu=xu;function Su(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=At(n),n=n===n?n:0),void 0!==e&&(e=At(e),e=e===e?e:0),Eu(At(t),e,n)}var Tu=Su,Mu=tt?tt.isConcatSpreadable:void 0;function Au(t){return Xn(t)||Wn(t)||!!(Mu&&t&&t[Mu])}var Cu=Au;function Pu(t,e,n,r,i){var o=-1,a=t.length;n||(n=Cu),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Pu(s,e-1,n,r,i):Mi(i,s):r||(i[i.length]=s)}return i}var Du=Pu;function ku(t){var e=null==t?0:t.length;return e?Du(t,1):[]}var Lu=ku;function Ru(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}var Iu=Ru,ju=1/0,Nu=tt?tt.prototype:void 0,Bu=Nu?Nu.toString:void 0;function Gu(t){if("string"==typeof t)return t;if(Xn(t))return Iu(t,Gu)+"";if(bt(t))return Bu?Bu.call(t):"";var e=t+"";return"0"==e&&1/t==-ju?"-0":e}var Vu=Gu;function Uu(t){return null==t?"":Vu(t)}var Hu=Uu;function zu(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}var Fu=zu;function Wu(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Fu(t,e,n)}var Yu=Wu,Xu="\\ud800-\\udfff",qu="\\u0300-\\u036f",Zu="\\ufe20-\\ufe2f",Ku="\\u20d0-\\u20ff",$u=qu+Zu+Ku,Qu="\\ufe0e\\ufe0f",Ju="\\u200d",tc=RegExp("["+Ju+Xu+$u+Qu+"]");function ec(t){return tc.test(t)}var nc=ec;function rc(t){return t.split("")}var ic=rc,oc="\\ud800-\\udfff",ac="\\u0300-\\u036f",sc="\\ufe20-\\ufe2f",uc="\\u20d0-\\u20ff",cc=ac+sc+uc,lc="\\ufe0e\\ufe0f",hc="["+oc+"]",fc="["+cc+"]",pc="\\ud83c[\\udffb-\\udfff]",dc="(?:"+fc+"|"+pc+")",vc="[^"+oc+"]",gc="(?:\\ud83c[\\udde6-\\uddff]){2}",mc="[\\ud800-\\udbff][\\udc00-\\udfff]",yc="\\u200d",_c=dc+"?",bc="["+lc+"]?",wc="(?:"+yc+"(?:"+[vc,gc,mc].join("|")+")"+bc+_c+")*",Oc=bc+_c+wc,xc="(?:"+[vc+fc+"?",fc,gc,mc,hc].join("|")+")",Ec=RegExp(pc+"(?="+pc+")|"+xc+Oc,"g");function Sc(t){return t.match(Ec)||[]}var Tc=Sc;function Mc(t){return nc(t)?Tc(t):ic(t)}var Ac=Mc;function Cc(t){return function(e){e=Hu(e);var n=nc(e)?Ac(e):void 0,r=n?n[0]:e.charAt(0),i=n?Yu(n,1).join(""):e.slice(1);return r[t]()+i}}var Pc=Cc,Dc=Pc("toUpperCase"),kc=Dc;function Lc(t){return kc(Hu(t).toLowerCase())}var Rc=Lc;function Ic(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}var jc=Ic;function Nc(t){return function(e){return null==t?void 0:t[e]}}var Bc=Nc,Gc={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Vc=Bc(Gc),Uc=Vc,Hc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zc="\\u0300-\\u036f",Fc="\\ufe20-\\ufe2f",Wc="\\u20d0-\\u20ff",Yc=zc+Fc+Wc,Xc="["+Yc+"]",qc=RegExp(Xc,"g");function Zc(t){return t=Hu(t),t&&t.replace(Hc,Uc).replace(qc,"")}var Kc=Zc,$c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Qc(t){return t.match($c)||[]}var Jc=Qc,tl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function el(t){return tl.test(t)}var nl=el,rl="\\ud800-\\udfff",il="\\u0300-\\u036f",ol="\\ufe20-\\ufe2f",al="\\u20d0-\\u20ff",sl=il+ol+al,ul="\\u2700-\\u27bf",cl="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",hl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fl="\\u2000-\\u206f",pl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dl="A-Z\\xc0-\\xd6\\xd8-\\xde",vl="\\ufe0e\\ufe0f",gl=ll+hl+fl+pl,ml="['’]",yl="["+gl+"]",_l="["+sl+"]",bl="\\d+",wl="["+ul+"]",Ol="["+cl+"]",xl="[^"+rl+gl+bl+ul+cl+dl+"]",El="\\ud83c[\\udffb-\\udfff]",Sl="(?:"+_l+"|"+El+")",Tl="[^"+rl+"]",Ml="(?:\\ud83c[\\udde6-\\uddff]){2}",Al="[\\ud800-\\udbff][\\udc00-\\udfff]",Cl="["+dl+"]",Pl="\\u200d",Dl="(?:"+Ol+"|"+xl+")",kl="(?:"+Cl+"|"+xl+")",Ll="(?:"+ml+"(?:d|ll|m|re|s|t|ve))?",Rl="(?:"+ml+"(?:D|LL|M|RE|S|T|VE))?",Il=Sl+"?",jl="["+vl+"]?",Nl="(?:"+Pl+"(?:"+[Tl,Ml,Al].join("|")+")"+jl+Il+")*",Bl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vl=jl+Il+Nl,Ul="(?:"+[wl,Ml,Al].join("|")+")"+Vl,Hl=RegExp([Cl+"?"+Ol+"+"+Ll+"(?="+[yl,Cl,"$"].join("|")+")",kl+"+"+Rl+"(?="+[yl,Cl+Dl,"$"].join("|")+")",Cl+"?"+Dl+"+"+Ll,Cl+"+"+Rl,Gl,Bl,bl,Ul].join("|"),"g");function zl(t){return t.match(Hl)||[]}var Fl=zl;function Wl(t,e,n){return t=Hu(t),e=n?void 0:e,void 0===e?nl(t)?Fl(t):Jc(t):t.match(e)||[]}var Yl=Wl,Xl="['’]",ql=RegExp(Xl,"g");function Zl(t){return function(e){return jc(Yl(Kc(e).replace(ql,"")),t,"")}}var Kl=Zl,$l=Kl((function(t,e,n){return e=e.toLowerCase(),t+(n?Rc(e):e)})),Ql=$l,Jl="[object Map]",th="[object Set]",eh=Object.prototype,nh=eh.hasOwnProperty;function rh(t){if(null==t)return!0;if($r(t)&&(Xn(t)||"string"==typeof t||"function"==typeof t.splice||Object(qn["a"])(t)||Rr(t)||Wn(t)))return!t.length;var e=so(t);if(e==Jl||e==th)return!t.size;if(Ur(t))return!Zr(t).length;for(var n in t)if(nh.call(t,n))return!1;return!0}var ih=rh;function oh(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var ah=oh,sh=1,uh=2;function ch(t,e,n,r,i,o){var a=n&sh,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,h=!0,f=n&uh?new Ks:void 0;o.set(t,e),o.set(e,t);while(++l<s){var p=t[l],d=e[l];if(r)var v=a?r(d,p,l,e,t,o):r(p,d,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!ah(e,(function(t,e){if(!lu(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)}))){h=!1;break}}else if(p!==d&&!i(p,d,n,r,o)){h=!1;break}}return o["delete"](t),o["delete"](e),h}var lh=ch;function hh(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var fh=hh,ph=1,dh=2,vh="[object Boolean]",gh="[object Date]",mh="[object Error]",yh="[object Map]",_h="[object Number]",bh="[object RegExp]",wh="[object Set]",Oh="[object String]",xh="[object Symbol]",Eh="[object ArrayBuffer]",Sh="[object DataView]",Th=tt?tt.prototype:void 0,Mh=Th?Th.valueOf:void 0;function Ah(t,e,n,r,i,o,a){switch(n){case Sh:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Eh:return!(t.byteLength!=e.byteLength||!o(new po(t),new po(e)));case vh:case gh:case _h:return Nt(+t,+e);case mh:return t.name==e.name&&t.message==e.message;case bh:case Oh:return t==e+"";case yh:var s=fh;case wh:var u=r&ph;if(s||(s=du),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=dh,a.set(t,e);var l=lh(s(t),s(e),r,i,o,a);return a["delete"](t),l;case xh:if(Mh)return Mh.call(t)==Mh.call(e)}return!1}var Ch=Ah,Ph=1,Dh=Object.prototype,kh=Dh.hasOwnProperty;function Lh(t,e,n,r,i,o){var a=n&Ph,s=Bi(t),u=s.length,c=Bi(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:kh.call(e,f)))return!1}var p=o.get(t);if(p&&o.get(e))return p==e;var d=!0;o.set(t,e),o.set(e,t);var v=a;while(++h<u){f=s[h];var g=t[f],m=e[f];if(r)var y=a?r(m,g,f,e,t,o):r(g,m,f,t,e,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){d=!1;break}v||(v="constructor"==f)}if(d&&!v){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),o["delete"](e),d}var Rh=Lh,Ih=1,jh="[object Arguments]",Nh="[object Array]",Bh="[object Object]",Gh=Object.prototype,Vh=Gh.hasOwnProperty;function Uh(t,e,n,r,i,o){var a=Xn(t),s=Xn(e),u=a?Nh:so(t),c=s?Nh:so(e);u=u==jh?Bh:u,c=c==jh?Bh:c;var l=u==Bh,h=c==Bh,f=u==c;if(f&&Object(qn["a"])(t)){if(!Object(qn["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new xn),a||Rr(t)?lh(t,e,n,r,i,o):Ch(t,e,u,n,r,i,o);if(!(n&Ih)){var p=l&&Vh.call(t,"__wrapped__"),d=h&&Vh.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new xn),i(v,g,n,r,o)}}return!!f&&(o||(o=new xn),Rh(t,e,n,r,i,o))}var Hh=Uh;function zh(t,e,n,r,i){return t===e||(null==t||null==e||!mt(t)&&!mt(e)?t!==t&&e!==e:Hh(t,e,n,r,zh,i))}var Fh=zh;function Wh(t,e){return Fh(t,e)}var Yh=Wh,Xh=1,qh=2;function Zh(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;t=Object(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<o){s=n[i];var u=s[0],c=t[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in t))return!1}else{var h=new xn;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?Fh(l,c,Xh|qh,r,h):f))return!1}}return!0}var Kh=Zh;function $h(t){return t===t&&!Z(t)}var Qh=$h;function Jh(t){var e=Jr(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,Qh(i)]}return e}var tf=Jh;function ef(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var nf=ef;function rf(t){var e=tf(t);return 1==e.length&&e[0][2]?nf(e[0][0],e[0][1]):function(n){return n===t||Kh(n,t,e)}}var of=rf,af=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sf=/^\w*$/;function uf(t,e){if(Xn(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!bt(t))||(sf.test(t)||!af.test(t)||null!=e&&t in Object(e))}var cf=uf,lf="Expected a function";function hf(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(lf);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(hf.Cache||yn),n}hf.Cache=yn;var ff=hf,pf=500;function df(t){var e=ff(t,(function(t){return n.size===pf&&n.clear(),t})),n=e.cache;return e}var vf=df,gf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mf=/\\(\\)?/g,yf=vf((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(gf,(function(t,n,r,i){e.push(r?i.replace(mf,"$1"):n||t)})),e})),_f=yf;function bf(t,e){return Xn(t)?t:cf(t,e)?[t]:_f(Hu(t))}var wf=bf,Of=1/0;function xf(t){if("string"==typeof t||bt(t))return t;var e=t+"";return"0"==e&&1/t==-Of?"-0":e}var Ef=xf;function Sf(t,e){e=wf(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Ef(e[n++])];return n&&n==r?t:void 0}var Tf=Sf;function Mf(t,e,n){var r=null==t?void 0:Tf(t,e);return void 0===r?n:r}var Af=Mf;function Cf(t,e){return null!=t&&e in Object(t)}var Pf=Cf;function Df(t,e,n){e=wf(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=Ef(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&er(i)&&Qn(a,i)&&(Xn(t)||Wn(t)))}var kf=Df;function Lf(t,e){return null!=t&&kf(t,e,Pf)}var Rf=Lf,If=1,jf=2;function Nf(t,e){return cf(t)&&Qh(e)?nf(Ef(t),e):function(n){var r=Af(n,t);return void 0===r&&r===e?Rf(n,t):Fh(e,r,If|jf)}}var Bf=Nf;function Gf(t){return function(e){return null==e?void 0:e[t]}}var Vf=Gf;function Uf(t){return function(e){return Tf(e,t)}}var Hf=Uf;function zf(t){return cf(t)?Vf(Ef(t)):Hf(t)}var Ff=zf;function Wf(t){return"function"==typeof t?t:null==t?_s:"object"==typeof t?Xn(t)?Bf(t[0],t[1]):of(t):Ff(t)}var Yf=Wf;function Xf(t,e){return t&&Ja(t,e,Jr)}var qf=Xf;function Zf(t,e){return function(n,r){if(null==n)return n;if(!$r(n))return t(n,r);var i=n.length,o=e?i:-1,a=Object(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var Kf=Zf,$f=Kf(qf),Qf=$f;function Jf(t,e){var n=-1,r=$r(t)?Array(t.length):[];return Qf(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var tp=Jf;function ep(t,e){var n=Xn(t)?Iu:tp;return n(t,Yf(e,3))}var np=ep,rp=1/0;function ip(t,e){return Du(np(t,e),rp)}var op=ip,ap=Kl((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),sp=ap;function up(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}var cp=up;function lp(t,e){var n;return Qf(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var hp=lp;function fp(t,e,n){var r=Xn(t)?ah:hp;return n&&Gs(t,e,n)&&(e=void 0),r(t,Yf(e,3))}var pp=fp,dp={},vp=null;if("undefined"!==typeof document){var gp=document.documentElement;"onmouseenter"in gp||(dp={mouseenter:"mouseover",mouseleave:"mouseout"})}function mp(t,e,n){return t=yp(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function yp(t,e,n){return function(r){var i=vp;vp=r;try{t.call(this,this.__data__,e,n)}finally{vp=i}}}function _p(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 bp(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 wp(t,e,n){var r=dp.hasOwnProperty(t.type)?mp:yp;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 Op=function(t,e,n){var r,i,o=_p(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?wp:bp,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 xp(t,e,n,r){var i=vp;t.sourceEvent=vp,vp=t;try{return e.apply(n,r)}finally{vp=i}}var Ep,Sp=function(){var t,e=vp;while(t=e.sourceEvent)e=t;return e},Tp=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]},Mp=function(t){var e=Sp();return e.changedTouches&&(e=e.changedTouches[0]),Tp(t,e)};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=Mp(n),clearTimeout(r),r=setTimeout((function(){t.apply(i,o)}),e)}}function n(e,n){e=t.clone(e);var r=Object.keys(n.axes||{});for(var i in 0===r.length&&delete e.axes,e.axes)if(r.includes(i)){var o=n.axes[i];(o["primary"]||o["secondary"])&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var a=o["mapsTo"];if(void 0===a||null===a){var s=o["scaleType"];void 0===s||null===s?o["mapsTo"]="value":s===D.TIME?o["mapsTo"]="date":s===D.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return t.merge(e,n)}function r(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function i(t){if(t){var e=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=t.getAttribute("transform").match(e);if(!n)return null;if(n[0]){var r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}}function o(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function a(t){var e=t.toString();return e.match(/[a-z]/i)?e:e+"px"}function s(t){return t[0].toUpperCase()+t.slice(1)}function u(t,e){var n=t/e.reduce((function(t,e){return t+e.value}),0)*100;return n%1!==0?parseFloat(n.toFixed(1)):n}function c(t,e,n){return n>t.length?t:e===C.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===C.FRONT_LINE?"..."+t.substr(-n):e===C.END_LINE?t.substr(0,n)+"...":void 0}function l(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 h(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 f(t){return t.each((function(){this.parentNode.appendChild(this)}))}function p(t,e,n){return n===P.VERTICAL?[t,e]:[e,t]}t.debounce=Lt,t.clone=Xa,t.merge=zs,t.removeArrayDuplicates=Ou,t.clamp=Tu,t.flatten=Lu,t.camelCase=Ql,t.isEmpty=ih,t.isEqual=Yh,t.flatMapDeep=op,t.kebabCase=sp,t.fromPairs=cp,t.some=pp,t.debounceWithD3MousePosition=e,t.mergeDefaultChartOptions=n,t.getDimensions=r,t.getTranslationValues=i,t.getTranformOffsets=o,t.formatWidthHeightValues=a,t.capitalizeFirstLetter=s,t.convertValueToPercentage=u,t.truncateLabel=c,t.arrayDifferences=l,t.getDuplicateValues=h,t.moveToFront=f,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(null===r[a]||void 0===r[a])return null;r=r[a]}return r}return null},t.flipSVGCoordinatesBasedOnOrientation=function(t,e){return e===P.HORIZONTAL?{y0:t.x0,y1:t.x1,x0:t.y0,x1:t.y1}:t},t.generateSVGPathString=function(e,n){var r=t.flipSVGCoordinatesBasedOnOrientation(e,n),i=r.x0,o=r.x1,a=r.y0,s=r.y1;return"M"+i+","+a+"L"+i+","+s+"L"+o+","+s+"L"+o+","+a+"L"+i+","+a},t.flipDomainAndRangeBasedOnOrientation=p,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(Ep||(Ep={}));var Ap,Cp=n("39ba"),Pp=n.n(Cp),Dp={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},kp={opacity:{unselected:0,selected:.4}},Lp={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},paddingRatio:.1},Rp={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8},checkbox:{radius:6.5,spaceAfter:4}},Ip={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},jp={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15}},Np={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}},Bp={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},Gp={default:{size:24}},Vp={horizontalOffset:10},Up={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}},Hp={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},zp={height:(Ap={},Ap[A.GRAPH_VIEW]=32,Ap[A.SLIDER_VIEW]=10,Ap),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},Fp={type:C.END_LINE,threshold:16,numCharacter:14},Wp={enabled:!0,position:k.BOTTOM,clickable:!0,truncation:Fp,alignment:L.LEFT,order:null},Yp={x:{enabled:!0,numberOfTicks:15},y:{enabled:!0,numberOfTicks:5}},Xp={enabled:!0},qp={enabled:!0,showTotal:!0,valueFormatter:function(t){return t.toLocaleString()},truncation:Fp},Zp={top:{visible:!0,includeZero:!0,truncation:Fp},bottom:{visible:!0,includeZero:!0,truncation:Fp},left:{visible:!0,includeZero:!0,truncation:Fp},right:{visible:!0,includeZero:!0,truncation:Fp}},Kp={addSpaceOnEdges:1,showDayName:!1,localeObject:Pp.a,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},$p={width:null,height:null,resizable:!0,tooltip:qp,legend:Wp,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}}},Qp=Ep.merge({},$p,{axes:Zp,timeScale:Kp,grid:Yp,ruler:Xp,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:A.GRAPH_VIEW}},toolbar:{enabled:!1,numberOfIcons:3,controls:[]}}),Jp=Ep.merge({},Qp,{bars:{maxWidth:16},timeScale:Ep.merge(Kp,{addSpaceOnEdges:1})}),td=Ep.merge({},Jp,{}),ed=Ep.merge({},Jp,{}),nd=Ep.merge({},Jp,{bars:Ep.merge({},Jp.bars,{dividerSize:1.5})}),rd=Ep.merge({},Qp,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),id=rd,od=Ep.merge({},rd,{points:{radius:3,filled:!1,enabled:!0}}),ad=Ep.merge({},od,{timeScale:Ep.merge(Kp,{addSpaceOnEdges:0})}),sd=ad,ud=Ep.merge({},Qp,{bubble:{radiusMapsTo:"radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2,enabled:!0},points:{filled:!0}}),cd=Ep.merge({},$p,{pie:{labels:{formatter:null},alignment:L.LEFT}}),ld=Ep.merge({},$p,{legend:{enabled:!1},gauge:{type:U.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},status:null,numberSpacing:10,deltaFontSize:function(t){return t/8},valueFontSize:function(t){return t/2.5},numberFormatter:function(t){return t.toFixed(2)%1!==0?t.toFixed(2).toLocaleString():t.toFixed().toLocaleString()},alignment:L.LEFT}}),hd=Ep.merge({},cd,{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()}},alignment:L.LEFT}}),fd=Ep.merge({},$p,{legend:{enabled:!1},meter:{height:8,statusBar:{percentageIndicator:{enabled:!0}}}}),pd=Ep.merge({},$p,{radar:{axes:{angle:"key",value:"value"},alignment:L.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),dd=Ep.merge({},Jp,{comboChartTypes:[]}),vd=Ep.merge({},$p,{data:Ep.merge($p.data,{groupMapsTo:"name"})}),gd={chart:$p,axisChart:Qp,simpleBarChart:td,groupedBarChart:ed,stackedBarChart:nd,bubbleChart:ud,lineChart:od,areaChart:ad,stackedAreaChart:sd,scatterChart:rd,lollipopChart:id,pieChart:cd,donutChart:hd,meterChart:fd,radarChart:pd,gaugeChart:ld,comboChart:dd,treemapChart:vd},md="$";function yd(){}function _d(t,e){var n=new yd;if(t instanceof yd)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}yd.prototype=_d.prototype={constructor:yd,has:function(t){return md+t in this},get:function(t){return this[md+t]},set:function(t,e){return this[md+t]=e,this},remove:function(t){var e=md+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===md&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===md&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===md&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===md&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===md&&++t;return t},empty:function(){for(var t in this)if(t[0]===md)return!1;return!0},each:function(t){for(var e in this)e[0]===md&&t(this[e],e.slice(1),this)}};var bd=_d;function wd(){}var Od=bd.prototype;function xd(t,e){var n=new wd;if(t instanceof wd)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}wd.prototype=xd.prototype={constructor:wd,has:Od.has,add:function(t){return t+="",this[md+t]=t,this},remove:Od.remove,clear:Od.clear,values:Od.keys,size:Od.size,empty:Od.empty,each:Od.each};var Ed=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Sd=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Td=function(t){return 1===t.length&&(t=Md(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 Md(t){return function(e,n){return Sd(t(e),n)}}var Ad=Td(Sd),Cd=Ad.right,Pd=(Ad.left,Cd);var Dd=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]},kd=Array.prototype,Ld=(kd.slice,kd.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}),Rd=Math.sqrt(50),Id=Math.sqrt(10),jd=Math.sqrt(2),Nd=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=Bd(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 Bd(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>=Rd?10:o>=Id?5:o>=jd?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Rd?10:o>=Id?5:o>=jd?2:1)}function Gd(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>=Rd?i*=10:o>=Id?i*=5:o>=jd&&(i*=2),e<t?-i:i}var Vd=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])&&n>r&&(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))&&n>r&&(r=n)}return r},Ud=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},Hd=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)while(++i<r)(n=+t[i])&&(o+=n);else while(++i<r)(n=+e(t[i],i,t))&&(o+=n);return o};function zd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Fd=Array.prototype,Wd=Fd.map,Yd=Fd.slice,Xd={name:"implicit"};function qd(){var t=bd(),e=[],n=[],r=Xd;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==Xd)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=bd();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=Yd.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return qd(e,n).unknown(r)},zd.apply(i,arguments),i}function Zd(){var t,e,n=qd().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=Ld(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 Zd(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},zd.apply(l(),arguments)}var Kd=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function $d(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Qd(){}var Jd=.7,tv=1/Jd,ev="\\s*([+-]?\\d+)\\s*",nv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",iv=/^#([0-9a-f]{3,8})$/,ov=new RegExp("^rgb\\("+[ev,ev,ev]+"\\)$"),av=new RegExp("^rgb\\("+[rv,rv,rv]+"\\)$"),sv=new RegExp("^rgba\\("+[ev,ev,ev,nv]+"\\)$"),uv=new RegExp("^rgba\\("+[rv,rv,rv,nv]+"\\)$"),cv=new RegExp("^hsl\\("+[nv,rv,rv]+"\\)$"),lv=new RegExp("^hsla\\("+[nv,rv,rv,nv]+"\\)$"),hv={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 fv(){return this.rgb().formatHex()}function pv(){return Sv(this).formatHsl()}function dv(){return this.rgb().formatRgb()}function vv(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=iv.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?gv(e):3===n?new bv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new bv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new bv(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=ov.exec(t))?new bv(e[1],e[2],e[3],1):(e=av.exec(t))?new bv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=sv.exec(t))?mv(e[1],e[2],e[3],e[4]):(e=uv.exec(t))?mv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cv.exec(t))?Ev(e[1],e[2]/100,e[3]/100,1):(e=lv.exec(t))?Ev(e[1],e[2]/100,e[3]/100,e[4]):hv.hasOwnProperty(t)?gv(hv[t]):"transparent"===t?new bv(NaN,NaN,NaN,0):null}function gv(t){return new bv(t>>16&255,t>>8&255,255&t,1)}function mv(t,e,n,r){return r<=0&&(t=e=n=NaN),new bv(t,e,n,r)}function yv(t){return t instanceof Qd||(t=vv(t)),t?(t=t.rgb(),new bv(t.r,t.g,t.b,t.opacity)):new bv}function _v(t,e,n,r){return 1===arguments.length?yv(t):new bv(t,e,n,null==r?1:r)}function bv(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function wv(){return"#"+xv(this.r)+xv(this.g)+xv(this.b)}function Ov(){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 xv(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ev(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Mv(t,e,n,r)}function Sv(t){if(t instanceof Mv)return new Mv(t.h,t.s,t.l,t.opacity);if(t instanceof Qd||(t=vv(t)),!t)return new Mv;if(t instanceof Mv)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 Mv(a,s,u,t.opacity)}function Tv(t,e,n,r){return 1===arguments.length?Sv(t):new Mv(t,e,n,null==r?1:r)}function Mv(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Av(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 Cv(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}Kd(Qd,vv,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:fv,formatHex:fv,formatHsl:pv,formatRgb:dv,toString:dv}),Kd(bv,_v,$d(Qd,{brighter:function(t){return t=null==t?tv:Math.pow(tv,t),new bv(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Jd:Math.pow(Jd,t),new bv(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:wv,formatHex:wv,formatRgb:Ov,toString:Ov})),Kd(Mv,Tv,$d(Qd,{brighter:function(t){return t=null==t?tv:Math.pow(tv,t),new Mv(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Jd:Math.pow(Jd,t),new Mv(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 bv(Av(t>=240?t-240:t+120,i,r),Av(t,i,r),Av(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 Pv=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 Cv((n-r/e)*e,a,i,o,s)}},Dv=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 Cv((n-r/e)*e,i,o,a,s)}},kv=function(t){return function(){return t}};function Lv(t,e){return function(n){return t+n*e}}function Rv(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 Iv(t){return 1===(t=+t)?jv:function(e,n){return n-e?Rv(e,n,t):kv(isNaN(e)?n:e)}}function jv(t,e){var n=e-t;return n?Lv(t,n):kv(isNaN(t)?e:t)}var Nv=function t(e){var n=Iv(e);function r(t,e){var r=n((t=_v(t)).r,(e=_v(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=jv(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 Bv(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=_v(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+""}}}Bv(Pv),Bv(Dv);var Gv=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function Vv(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Uv(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]=Kv(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}}var Hv=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},zv=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Fv=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]=Kv(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Wv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yv=new RegExp(Wv.source,"g");function Xv(t){return function(){return t}}function qv(t){return function(e){return t(e)+""}}var Zv=function(t,e){var n,r,i,o=Wv.lastIndex=Yv.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=Wv.exec(t))&&(r=Yv.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:zv(n,r)})),o=Yv.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?qv(u[0].x):Xv(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("")})},Kv=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?kv(e):("number"===r?zv:"string"===r?(n=vv(e))?(e=n,Nv):Zv:e instanceof vv?Nv:e instanceof Date?Hv:Vv(e)?Gv:Array.isArray(e)?Uv:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Fv:zv)(t,e)},$v=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},Qv=function(t){return function(){return t}},Jv=function(t){return+t},tg=[0,1];function eg(t){return t}function ng(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Qv(isNaN(e)?NaN:.5)}function rg(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 ig(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=ng(i,r),o=n(a,o)):(r=ng(r,i),o=n(o,a)),function(t){return o(r(t))}}function og(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]=ng(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Pd(t,e,1,r)-1;return o[n](i[n](e))}}function ag(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function sg(){var t,e,n,r,i,o,a=tg,s=tg,u=Kv,c=eg;function l(){return r=Math.min(a.length,s.length)>2?og:ig,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),zv)))(n)))},h.domain=function(t){return arguments.length?(a=Wd.call(t,Jv),c===eg||(c=rg(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=Yd.call(t),l()):s.slice()},h.rangeRound=function(t){return s=Yd.call(t),u=$v,l()},h.clamp=function(t){return arguments.length?(c=t?rg(a):eg,h):c!==eg},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 ug(t,e){return sg()(t,e)}var cg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function lg(t){if(!(e=cg.exec(t)))throw new Error("invalid format: "+t);var e;return new hg({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 hg(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+""}lg.prototype=hg.prototype,hg.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 fg,pg,dg,vg,gg=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)]},mg=function(t){return t=gg(Math.abs(t)),t?t[1]:NaN},yg=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mg(e)/3)))-mg(Math.abs(t)))},_g=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)}},bg=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},wg=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(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(e+1):t},Og=function(t,e){var n=gg(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(fg=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")+gg(t,Math.max(0,e+o-1))[0]},xg=function(t,e){var n=gg(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")},Eg={"%":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 xg(100*t,e)},r:xg,s:Og,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Sg=function(t){return t},Tg=Array.prototype.map,Mg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Ag=function(t){var e=void 0===t.grouping||void 0===t.thousands?Sg:_g(Tg.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?Sg:bg(Tg.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=lg(t);var c=t.fill,l=t.align,h=t.sign,f=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):Eg[y]||(void 0===g&&(g=12),m=!0,y="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var _="$"===f?n:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===f?r:/[%p]/.test(y)?a:"",w=Eg[y],O=/[defgprs%]/.test(y);function x(t){var n,r,a,f=_,x=b;if("c"===y)x=w(t)+x,t="";else{t=+t;var E=t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),m&&(t=wg(t)),E&&0===+t&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,x=("s"===y?Mg[8+fg/3]:"")+x+(E&&"("===h?")":""),O){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){x=(46===a?i+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var S=f.length+t.length+x.length,T=S<d?new Array(d-S+1).join(c):"";switch(v&&p&&(t=e(T+t,T.length?d-x.length:1/0),T=""),l){case"<":t=f+t+x+T;break;case"=":t=f+T+t+x;break;case"^":t=T.slice(0,S=T.length>>1)+f+t+x+T.slice(S);break;default:t=T+f+t+x;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return t+""},x}function l(t,e){var n=c((t=lg(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(mg(e)/3))),i=Math.pow(10,-r),o=Mg[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function Cg(t){return pg=Ag(t),dg=pg.format,vg=pg.formatPrefix,pg}Cg({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Pg=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,mg(e)-mg(t))+1},Dg=function(t){return Math.max(0,-mg(Math.abs(t)))},kg=function(t,e,n,r){var i,o=Gd(t,e,n);switch(r=lg(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=yg(o,a))||(r.precision=i),vg(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Pg(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Dg(o))||(r.precision=i-2*("%"===r.type));break}return dg(r)};function Lg(t){var e=t.domain;return t.ticks=function(t){var n=e();return Nd(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return kg(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=Bd(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=Bd(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=Bd(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 Rg(){var t=ug(eg,eg);return t.copy=function(){return ag(t,Rg())},zd.apply(t,arguments),Lg(t)}var Ig=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 jg(t){return Math.log(t)}function Ng(t){return Math.exp(t)}function Bg(t){return-Math.log(-t)}function Gg(t){return-Math.exp(-t)}function Vg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ug(t){return 10===t?Vg:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function Hg(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 zg(t){return function(e){return-t(-e)}}function Fg(t){var e,n,r=t(jg,Ng),i=r.domain,o=10;function a(){return e=Hg(o),n=Ug(o),i()[0]<0?(e=zg(e),n=zg(n),t(Bg,Gg)):t(jg,Ng),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=Nd(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=dg(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(Ig(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Wg(){var t=Fg(sg()).domain([1,10]);return t.copy=function(){return ag(t,Wg()).base(t.base())},zd.apply(t,arguments),t}var Yg=new Date,Xg=new Date;function qg(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 qg((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 Yg.setTime(+e),Xg.setTime(+r),t(Yg),t(Xg),Math.floor(n(Yg,Xg))},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 Zg=qg((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()}));Zg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qg((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 Kg=Zg,$g=(Zg.range,qg((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()}))),Qg=$g,Jg=($g.range,1e3),tm=6e4,em=36e5,nm=864e5,rm=6048e5;function im(t){return qg((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())*tm)/rm}))}var om=im(0),am=im(1),sm=im(2),um=im(3),cm=im(4),lm=im(5),hm=im(6),fm=(om.range,am.range,sm.range,um.range,cm.range,lm.range,hm.range,qg((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())*tm)/nm}),(function(t){return t.getDate()-1}))),pm=fm,dm=(fm.range,qg((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jg-t.getMinutes()*tm)}),(function(t,e){t.setTime(+t+e*em)}),(function(t,e){return(e-t)/em}),(function(t){return t.getHours()}))),vm=dm,gm=(dm.range,qg((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jg)}),(function(t,e){t.setTime(+t+e*tm)}),(function(t,e){return(e-t)/tm}),(function(t){return t.getMinutes()}))),mm=gm,ym=(gm.range,qg((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Jg)}),(function(t,e){return(e-t)/Jg}),(function(t){return t.getUTCSeconds()}))),_m=ym,bm=(ym.range,qg((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));bm.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?qg((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):bm:null};var wm=bm;bm.range;function Om(t){return qg((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)/rm}))}var xm=Om(0),Em=Om(1),Sm=Om(2),Tm=Om(3),Mm=Om(4),Am=Om(5),Cm=Om(6),Pm=(xm.range,Em.range,Sm.range,Tm.range,Mm.range,Am.range,Cm.range,qg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/nm}),(function(t){return t.getUTCDate()-1}))),Dm=Pm,km=(Pm.range,qg((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()})));km.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qg((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 Lm=km;km.range;function Rm(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 Im(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 jm(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Nm(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=Ym(i),l=Xm(i),h=Ym(o),f=Xm(o),p=Ym(a),d=Xm(a),v=Ym(s),g=Xm(s),m=Ym(u),y=Xm(u),_={a:L,A:R,b:I,B:j,c:null,d:dy,e:dy,f:_y,H:vy,I:gy,j:my,L:yy,m:by,M:wy,p:N,q:B,Q:Zy,s:Ky,S:Oy,u:xy,U:Ey,V:Sy,w:Ty,W:My,x:null,X:null,y:Ay,Y:Cy,Z:Py,"%":qy},b={a:G,A:V,b:U,B:H,c:null,d:Dy,e:Dy,f:jy,H:ky,I:Ly,j:Ry,L:Iy,m:Ny,M:By,p:z,q:F,Q:Zy,s:Ky,S:Gy,u:Vy,U:Uy,V:Hy,w:zy,W:Fy,x:null,X:null,y:Wy,Y:Yy,Z:Xy,"%":qy},w={a:T,A:M,b:A,B:C,c:P,d:iy,e:iy,f:ly,H:ay,I:ay,j:oy,L:cy,m:ry,M:sy,p:S,q:ny,Q:fy,s:py,S:uy,u:Zm,U:Km,V:$m,w:qm,W:Qm,x:D,X:k,y:ty,Y:Jm,Z:ey,"%":hy};function O(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=Vm[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 x(t,e){return function(n){var r,i,o=jm(1900,void 0,1),a=E(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=Im(jm(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?Em.ceil(r):Em(r),r=Dm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=Rm(jm(o.y,0,1)),i=r.getDay(),r=i>4||0===i?am.ceil(r):am(r),r=pm.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?Im(jm(o.y,0,1)).getUTCDay():Rm(jm(o.y,0,1)).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,Im(o)):Rm(o)}}function E(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=w[i in Vm?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function S(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function T(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1}function M(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=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1}function C(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1}function P(t,n,r){return E(t,e,n,r)}function D(t,e,r){return E(t,n,e,r)}function k(t,e,n){return E(t,r,e,n)}function L(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function j(t){return s[t.getMonth()]}function N(t){return i[+(t.getHours()>=12)]}function B(t){return 1+~~(t.getMonth()/3)}function G(t){return a[t.getUTCDay()]}function V(t){return o[t.getUTCDay()]}function U(t){return u[t.getUTCMonth()]}function H(t){return s[t.getUTCMonth()]}function z(t){return i[+(t.getUTCHours()>=12)]}function F(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=O(n,_),_.X=O(r,_),_.c=O(e,_),b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),{format:function(t){var e=O(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=x(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=x(t+="",!0);return e.toString=function(){return t},e}})}var Bm,Gm,Vm={"-":"",_:" ",0:"0"},Um=/^\s*\d+/,Hm=/^%/,zm=/[\\^$*+?|[\]().{}]/g;function Fm(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 Wm(t){return t.replace(zm,"\\$&")}function Ym(t){return new RegExp("^(?:"+t.map(Wm).join("|")+")","i")}function Xm(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function qm(t,e,n){var r=Um.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Zm(t,e,n){var r=Um.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Km(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function $m(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Qm(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Jm(t,e,n){var r=Um.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ty(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ey(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 ny(t,e,n){var r=Um.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ry(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function iy(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function oy(t,e,n){var r=Um.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ay(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function sy(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function uy(t,e,n){var r=Um.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function cy(t,e,n){var r=Um.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ly(t,e,n){var r=Um.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hy(t,e,n){var r=Hm.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function fy(t,e,n){var r=Um.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function py(t,e,n){var r=Um.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function dy(t,e){return Fm(t.getDate(),e,2)}function vy(t,e){return Fm(t.getHours(),e,2)}function gy(t,e){return Fm(t.getHours()%12||12,e,2)}function my(t,e){return Fm(1+pm.count(Kg(t),t),e,3)}function yy(t,e){return Fm(t.getMilliseconds(),e,3)}function _y(t,e){return yy(t,e)+"000"}function by(t,e){return Fm(t.getMonth()+1,e,2)}function wy(t,e){return Fm(t.getMinutes(),e,2)}function Oy(t,e){return Fm(t.getSeconds(),e,2)}function xy(t){var e=t.getDay();return 0===e?7:e}function Ey(t,e){return Fm(om.count(Kg(t)-1,t),e,2)}function Sy(t,e){var n=t.getDay();return t=n>=4||0===n?cm(t):cm.ceil(t),Fm(cm.count(Kg(t),t)+(4===Kg(t).getDay()),e,2)}function Ty(t){return t.getDay()}function My(t,e){return Fm(am.count(Kg(t)-1,t),e,2)}function Ay(t,e){return Fm(t.getFullYear()%100,e,2)}function Cy(t,e){return Fm(t.getFullYear()%1e4,e,4)}function Py(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Fm(e/60|0,"0",2)+Fm(e%60,"0",2)}function Dy(t,e){return Fm(t.getUTCDate(),e,2)}function ky(t,e){return Fm(t.getUTCHours(),e,2)}function Ly(t,e){return Fm(t.getUTCHours()%12||12,e,2)}function Ry(t,e){return Fm(1+Dm.count(Lm(t),t),e,3)}function Iy(t,e){return Fm(t.getUTCMilliseconds(),e,3)}function jy(t,e){return Iy(t,e)+"000"}function Ny(t,e){return Fm(t.getUTCMonth()+1,e,2)}function By(t,e){return Fm(t.getUTCMinutes(),e,2)}function Gy(t,e){return Fm(t.getUTCSeconds(),e,2)}function Vy(t){var e=t.getUTCDay();return 0===e?7:e}function Uy(t,e){return Fm(xm.count(Lm(t)-1,t),e,2)}function Hy(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Mm(t):Mm.ceil(t),Fm(Mm.count(Lm(t),t)+(4===Lm(t).getUTCDay()),e,2)}function zy(t){return t.getUTCDay()}function Fy(t,e){return Fm(Em.count(Lm(t)-1,t),e,2)}function Wy(t,e){return Fm(t.getUTCFullYear()%100,e,2)}function Yy(t,e){return Fm(t.getUTCFullYear()%1e4,e,4)}function Xy(){return"+0000"}function qy(){return"%"}function Zy(t){return+t}function Ky(t){return Math.floor(+t/1e3)}function $y(t){return Bm=Nm(t),Gm=Bm.format,Bm.parse,Bm.utcFormat,Bm.utcParse,Bm}$y({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 Qy=1e3,Jy=60*Qy,t_=60*Jy,e_=24*t_,n_=7*e_,r_=30*e_,i_=365*e_;function o_(t){return new Date(t)}function a_(t){return t instanceof Date?+t:+new Date(+t)}function s_(t,e,n,r,i,o,a,s,u){var c=ug(eg,eg),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),m=u("%b %d"),y=u("%B"),_=u("%Y"),b=[[a,1,Qy],[a,5,5*Qy],[a,15,15*Qy],[a,30,30*Qy],[o,1,Jy],[o,5,5*Jy],[o,15,15*Jy],[o,30,30*Jy],[i,1,t_],[i,3,3*t_],[i,6,6*t_],[i,12,12*t_],[r,1,e_],[r,2,2*e_],[n,1,n_],[e,1,r_],[e,3,3*r_],[t,1,i_]];function w(s){return(a(s)<s?f:o(s)<s?p:i(s)<s?d:r(s)<s?v:e(s)<s?n(s)<s?g:m:t(s)<s?y:_)(s)}function O(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=Td((function(t){return t[2]})).right(b,o);a===b.length?(i=Gd(n/i_,r/i_,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(Gd(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(Wd.call(t,a_)):h().map(o_)},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=O(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?w:u(e)},c.nice=function(t,e){var n=h();return(t=O(t,n[0],n[n.length-1],e))?h(Ig(n,t)):c},c.copy=function(){return ag(c,s_(t,e,n,r,i,o,a,s,u))},c}var u_=function(){return zd.apply(s_(Kg,Qg,om,pm,vm,mm,_m,wm,Gm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},c_=qg((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()})),l_=(c_.range,qg((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*em)}),(function(t,e){return(e-t)/em}),(function(t){return t.getUTCHours()}))),h_=(l_.range,qg((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*tm)}),(function(t,e){return(e-t)/tm}),(function(t){return t.getUTCMinutes()})));h_.range;var f_=Array.prototype.slice,p_=function(t){return function(){return t}},d_=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]},v_=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function g_(t,e){return t[e]}var m_=function(){var t=p_([]),e=v_,n=d_,r=g_;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:p_(f_.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:p_(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?v_:"function"===typeof t?t:p_(f_.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?d_:t,i):n},i},y_=function(){return y_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},y_.apply(this,arguments)},__=function(){function t(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}return t.prototype.getAllDataFromDomain=function(t){if(!this.getData())return null;var e=this.getOptions(),n=this.getData(),r=this.getDataGroups(),i=Ep.getProperty(e,"data").groupMapsTo,o=Ep.getProperty(e,"axes");return t&&(n=n.filter((function(e){return t.includes(e.group)}))),o&&Object.keys(o).forEach((function(t){var e=o[t].mapsTo,r=o[t].scaleType;if(r!==D.LINEAR&&r!==D.LOG||(n=n.map((function(t){var n;return y_(y_({},t),(n={},n[e]=Number(t[e]),n))}))),e&&o[t].domain)if(r===D.LABELS)n=n.filter((function(n){return o[t].domain.includes(n[e])}));else{var i=o[t].domain,a=i[0],s=i[1];n=n.filter((function(t){return t[e]>=a&&t[e]<=s}))}})),n.filter((function(t){return r.find((function(e){return e.name===t[i]}))}))},t.prototype.getDisplayData=function(t){if(!this.get("data"))return null;var e=Rp.items.status.ACTIVE,n=this.getDataGroups(t),r=this.getOptions().data.groupMapsTo,i=this.getAllDataFromDomain(t);return i.filter((function(t){return n.find((function(n){return n.name===t[r]&&n.status===e}))}))},t.prototype.getData=function(){return this.get("data")},t.prototype.isDataEmpty=function(){return!this.getData().length},t.prototype.setData=function(t){var e=this.sanitize(Ep.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=Ep.getProperty(this.getOptions(),"data","loading");return e?[]:t?this.get("dataGroups").filter((function(e){return t.includes(e.name)})):this.get("dataGroups")},t.prototype.getActiveDataGroups=function(t){var e=Rp.items.status.ACTIVE;return this.getDataGroups(t).filter((function(t){return t.status===e}))},t.prototype.getDataGroupNames=function(t){var e=this.getDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(t){var e=this.getActiveDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getGroupedData=function(t){var e=this.getDisplayData(t),n={},r=this.getOptions().data.groupMapsTo;return e.map((function(t){var e=t[r];null!==n[e]&&void 0!==n[e]?n[e].push(t):n[e]=[t]})),Object.keys(n).map((function(t){return{name:t,data:n[t]}}))},t.prototype.getDataValuesGroupedByKeys=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getDisplayData(t),o=bd(i,(function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]})).keys(),a=this.services.cartesianScales.domainAxisPosition,s=n.axes[a].scaleType;s===D.TIME?o.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):s!==D.LOG&&s!==D.LINEAR||o.sort((function(t,e){return t-e}));var u=this.getDataGroupNames();return o.map((function(t){var n={sharedStackKey:t};return u.forEach((function(o){var a=i.find((function(n){var i=e.services.cartesianScales.getDomainIdentifier(n);return n[r]===o&&n[i].toString()===t})),s=e.services.cartesianScales.getRangeIdentifier(n);n[o]=a?a[s]:null})),n}))},t.prototype.getStackedData=function(t){var e=t.percentage,n=void 0!==e&&e,r=t.groups,i=void 0===r?null:r,o=this.getOptions(),a=o.data.groupMapsTo,s=this.getDataGroupNames(i),u=this.getDataValuesGroupedByKeys(i);if(n){var c=Ep.fromPairs(u.map((function(t){return[t.sharedStackKey,0]})));u.forEach((function(t){s.forEach((function(e){c[t.sharedStackKey]+=t[e]}))})),u.forEach((function(t){s.forEach((function(e){c[t.sharedStackKey]?t[e]=t[e]/c[t.sharedStackKey]*100:t[e]=0}))}))}return m_().keys(s)(u).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var r=t[n];return r[a]=s[e],r}))}))},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){this.state=Object.assign({},this.state,t);var n=Object.assign({skipUpdate:!1,animate:!0},e);n.skipUpdate||this.update(n.animate)},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){this.set({options:Ep.merge(this.getOptions(),t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(X.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=Rp.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.getDataGroups(),o=i.some((function(t){return t.status===r})),a=i.filter((function(t){return t.status===n}));if(o)if(1===a.length&&a[0].name===t)i.forEach((function(t,e){i[e].status=n}));else{var s=i.findIndex((function(e){return e.name===t}));i[s].status=i[s].status===r?n:r}else i.forEach((function(e,o){i[o].status=e.name===t?n:r}));var u=i.filter((function(t){return t.status===n})),c=this.getOptions(),l=i.some((function(t){return t.status===r}));c.data.selectedGroups=l?u.map((function(t){return t.name})):[],this.services.events.dispatchEvent(X.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})},t.prototype.getIsFilled=function(t,e,n,r){var i=this.getOptions();return i.getIsFilled?i.getIsFilled(t,e,n,r):r},t.prototype.getFillColor=function(t,e,n){var r=this.getOptions(),i=Ep.getProperty(this.colorScale,t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions(),i=Ep.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=Ep.getProperty(this.getOptions(),"color","scale"),e=this.getDataGroups();return null!=t&&0!=Object.keys(t).length&&e.some((function(e){return Object.keys(t).includes(e.name)}))},t.prototype.getColorClassName=function(t){var e=this.colorClassNames(t.dataGroupName),n=t.originalClassName;return t.classNameTypes.forEach((function(r){return n=t.originalClassName?n+" "+r+"-"+e:r+"-"+e})),n},t.prototype.getStatus=function(){return null},t.prototype.getAllDataGroupsNames=function(){return this.allDataGroups},t.prototype.transformToTabularData=function(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var e=[],n=t.datasets,r=t.labels;return n.forEach((function(t){t.data.forEach((function(n,i){var o,a=Ep.getProperty(t,"label");if(null===a){var s=Ep.getProperty(r,i);o=s||"Ungrouped"}else o=a;var u={group:o,key:r[i]};isNaN(n)?(u["value"]=n.value,u["date"]=n.date):u["value"]=n,e.push(u)}))})),e},t.prototype.getTabularData=function(t){return Array.isArray(t)?t:this.transformToTabularData(t)},t.prototype.sanitize=function(t){return t=this.getTabularData(t),t},t.prototype.updateAllDataGroups=function(){var t=this;this.allDataGroups?this.getDataGroupNames().forEach((function(e){-1===t.allDataGroups.indexOf(e)&&t.allDataGroups.push(e)})):this.allDataGroups=this.getDataGroupNames()},t.prototype.generateDataGroups=function(t){var e=this.getOptions().data.groupMapsTo,n=Rp.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=bd(t,(function(t){return t[e]})).keys();if(o.data.selectedGroups.length){var s=o.data.selectedGroups.every((function(t){return a.includes(t)}));s||(o.data.selectedGroups=[])}var u=function(t){return!o.data.selectedGroups.length||o.data.selectedGroups.includes(t)?r:i};return a.map((function(t){return{name:t,status:u(t)}}))},t.prototype.setCustomColorScale=function(){var t=this;if(this.isUserProvidedColorScaleValid()){var e=this.getOptions(),n=Ep.getProperty(e,"color","scale");Object.keys(n).forEach((function(e){t.allDataGroups.includes(e)||console.warn('"'+e+'" does not exist in data groups.')}));var r=this.allDataGroups.filter((function(t){return n[t]}));r.forEach((function(e){return t.colorScale[e]=n[e]}))}},t.prototype.setColorClassNames=function(){var t=Ep.getProperty(this.getOptions(),"color","pairing"),e=Ep.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=Ep.getProperty(t,"option"),r=Dp.pairingOptions,i=e>5?14:e;n=n<=r[i+"-color"]?n:1;var o=this.allDataGroups.map((function(t,e){return i+"-"+n+"-"+(e%14+1)}));this.colorClassNames=qd().range(o).domain(this.allDataGroups)},t}(),b_=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}();function w_(){}var O_=function(t){return null==t?w_:function(){return this.querySelector(t)}},x_=function(t){"function"!==typeof t&&(t=O_(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 Jb(r,this._parents)};function E_(){return[]}var S_=function(t){return null==t?E_:function(){return this.querySelectorAll(t)}},T_=function(t){"function"!==typeof t&&(t=S_(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 Jb(r,i)},M_=function(t){return function(){return this.matches(t)}},A_=function(t){"function"!==typeof t&&(t=M_(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 Jb(r,this._parents)},C_=function(t){return new Array(t.length)},P_=function(){return new Jb(this._enter||this._groups.map(C_),this._parents)};function D_(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}D_.prototype={constructor:D_,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 k_=function(t){return function(){return t}},L_="$";function R_(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 D_(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function I_(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=L_+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=L_+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new D_(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var j_=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?I_:R_,r=this._parents,i=this._groups;"function"!==typeof t&&(t=k_(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),g=a[c]=new Array(d),m=u[c]=new Array(f);n(l,h,v,g,m,p,e);for(var y,_,b=0,w=0;b<d;++b)if(y=v[b]){b>=w&&(w=b+1);while(!(_=g[w])&&++w<d);y._next=_||null}}return a=new Jb(a,r),a._enter=s,a._exit=u,a},N_=function(){return new Jb(this._exit||this._groups.map(C_),this._parents)},B_=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},G_=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 Jb(a,this._parents)},V_=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},U_=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=H_);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 Jb(i,this._parents).order()};function H_(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var z_=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},F_=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},W_=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},Y_=function(){var t=0;return this.each((function(){++t})),t},X_=function(){return!this.node()},q_=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},Z_="http://www.w3.org/1999/xhtml",K_={svg:"http://www.w3.org/2000/svg",xhtml:Z_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},$_=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),K_.hasOwnProperty(e)?{space:K_[e],local:t}:t};function Q_(t){return function(){this.removeAttribute(t)}}function J_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tb(t,e){return function(){this.setAttribute(t,e)}}function eb(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function nb(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function rb(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 ib=function(t,e){var n=$_(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?J_:Q_:"function"===typeof e?n.local?rb:nb:n.local?eb:tb)(n,e))},ob=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function ab(t){return function(){this.style.removeProperty(t)}}function sb(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ub(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var cb=function(t,e,n){return arguments.length>1?this.each((null==e?ab:"function"===typeof e?ub:sb)(t,e,null==n?"":n)):lb(this.node(),t)};function lb(t,e){return t.style.getPropertyValue(e)||ob(t).getComputedStyle(t,null).getPropertyValue(e)}function hb(t){return function(){delete this[t]}}function fb(t,e){return function(){this[t]=e}}function pb(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var db=function(t,e){return arguments.length>1?this.each((null==e?hb:"function"===typeof e?pb:fb)(t,e)):this.node()[t]};function vb(t){return t.trim().split(/^|\s+/)}function gb(t){return t.classList||new mb(t)}function mb(t){this._node=t,this._names=vb(t.getAttribute("class")||"")}function yb(t,e){var n=gb(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function _b(t,e){var n=gb(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function bb(t){return function(){yb(this,t)}}function wb(t){return function(){_b(this,t)}}function Ob(t,e){return function(){(e.apply(this,arguments)?yb:_b)(this,t)}}mb.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 xb=function(t,e){var n=vb(t+"");if(arguments.length<2){var r=gb(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?Ob:e?bb:wb)(n,e))};function Eb(){this.textContent=""}function Sb(t){return function(){this.textContent=t}}function Tb(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var Mb=function(t){return arguments.length?this.each(null==t?Eb:("function"===typeof t?Tb:Sb)(t)):this.node().textContent};function Ab(){this.innerHTML=""}function Cb(t){return function(){this.innerHTML=t}}function Pb(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var Db=function(t){return arguments.length?this.each(null==t?Ab:("function"===typeof t?Pb:Cb)(t)):this.node().innerHTML};function kb(){this.nextSibling&&this.parentNode.appendChild(this)}var Lb=function(){return this.each(kb)};function Rb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var Ib=function(){return this.each(Rb)};function jb(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Z_&&e.documentElement.namespaceURI===Z_?e.createElement(t):e.createElementNS(n,t)}}function Nb(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Bb=function(t){var e=$_(t);return(e.local?Nb:jb)(e)},Gb=function(t){var e="function"===typeof t?t:Bb(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function Vb(){return null}var Ub=function(t,e){var n="function"===typeof t?t:Bb(t),r=null==e?Vb:"function"===typeof e?e:O_(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function Hb(){var t=this.parentNode;t&&t.removeChild(this)}var zb=function(){return this.each(Hb)};function Fb(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wb(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Yb=function(t){return this.select(t?Wb:Fb)},Xb=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function qb(t,e,n){var r=ob(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 Zb(t,e){return function(){return qb(this,t,e)}}function Kb(t,e){return function(){return qb(this,t,e.apply(this,arguments))}}var $b=function(t,e){return this.each(("function"===typeof e?Kb:Zb)(t,e))},Qb=[null];function Jb(t,e){this._groups=t,this._parents=e}function tw(){return new Jb([[document.documentElement]],Qb)}Jb.prototype=tw.prototype={constructor:Jb,select:x_,selectAll:T_,filter:A_,data:j_,enter:P_,exit:N_,join:B_,merge:G_,order:V_,sort:U_,call:z_,nodes:F_,node:W_,size:Y_,empty:X_,each:q_,attr:ib,style:cb,property:db,classed:xb,text:Mb,html:Db,raise:Lb,lower:Ib,append:Gb,insert:Ub,remove:zb,clone:Yb,datum:Xb,on:Op,dispatch:$b};var ew=tw,nw=function(t){return"string"===typeof t?new Jb([[document.querySelector(t)]],[document.documentElement]):new Jb([[t]],Qb)},rw={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 "},iw=rw,ow=iw,aw=n("2da1"),sw=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)}}(),uw="DONT_STYLE_ME_css_styles_verifier",cw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sw(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=nw(t));var n,r,i,o,a={width:0,height:0},s=function(t){t&&Object.keys(a).forEach((function(e){if(t[e]){var n=t[e],r=parseFloat(n);n&&r>a[e]&&-1===(""+n).indexOf("%")&&(a[e]=r)}}))},u={width:t.attr("width"),height:t.attr("height")};try{n=t.node().getBBox(),r={width:n.width,height:n.height}}catch(h){}try{i=t.node().getBoundingClientRect(),o={width:i.width,height:i.height}}catch(h){}var c={width:t.node().clientWidth,height:t.node().clientHeight};if(e){if(e.useAttrs&&(s(u),a.width>0&&a.height>0))return a;if(e.useClientDimensions&&(s(c),a.width>0&&a.height>0))return c;if(e.useBBox&&(s(r),a.width>0&&a.height>0))return r;if(e.useBoundingRect&&(s(o),a.width>0&&a.height>0))return o}try{var l={width:Ep.getProperty(t.node(),"width","baseVal","value"),height:Ep.getProperty(t.node(),"height","baseVal","value")};s(l)}catch(h){s(c),s(r),s(u)}return a},e.appendOrSelect=function(t,e){var n=t.select(""+e);if(n.empty()){var r=e.split("#"),i=void 0,o=void 0;return 2===r.length?(i=r[0],r=r[1].split("."),o=r[0]):(r=e.split("."),i=r[0]),t.append(i).attr("id",o).attr("class",r.slice(1).join(" "))}return n},e.getAlignmentOffset=function(t,n,r){var i=e.getSVGElementSize(n,{useBBox:!0}),o=e.getSVGElementSize(r,{useAttr:!0}).width,a=0;return t===L.CENTER?a=Math.floor((o-i.width)/2):t===L.RIGHT&&(a=o-i.width),a},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();nw(this.getHolder()).classed(ow.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=this.model.getOptions(),e=Ep.getProperty(t,"style","prefix"),n=nw(this.getHolder()).append("svg").classed(ow.prefix+"--"+e+"--chart-svg",!0).attr("height","100%").attr("width","100%");n.append("g").attr("class",uw),this.svg=n.node()},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=nw(t.svg).select("g."+uw).node(),n=getComputedStyle(e);"hidden"===n.getPropertyValue("overflow")&&"0"===n.getPropertyValue("opacity")||console.error("Missing CSS styles for Carbon Charts. Please read the Carbon Charts getting started guide.")}))},e.prototype.setSVGMaxHeight=function(){if(!this.model.getOptions().height){var t=e.getSVGElementSize(nw(this.svg),{useBBox:!0}).height,n=nw(this.svg).attr("class"),r=nw(this.svg).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(nw(t),{useBBox:!0}).height)})),i<=t?nw(this.svg).attr("height",i):nw(this.svg).attr("height","100%")}},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&nw(e).on("mouseover",(function(){t.services.events.dispatchEvent(X.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(X.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=Ep.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(X.Chart.RESIZE))}),12.5),o=new aw["a"](i);o.observe(e)}},e}(b_),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)}}(),hw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lw(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}(b_),fw={value:function(){}};function pw(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new dw(r)}function dw(t){this._=t}function vw(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 gw(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function mw(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=fw,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}dw.prototype=pw.prototype={constructor:dw,on:function(t,e){var n,r=this._,i=vw(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]=mw(r[n],t.name,e);else if(null==e)for(n in r)r[n]=mw(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=gw(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new dw(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 yw,_w,bw=pw,ww=0,Ow=0,xw=0,Ew=1e3,Sw=0,Tw=0,Mw=0,Aw="object"===typeof performance&&performance.now?performance:Date,Cw="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Pw(){return Tw||(Cw(Dw),Tw=Aw.now()+Mw)}function Dw(){Tw=0}function kw(){this._call=this._time=this._next=null}function Lw(t,e,n){var r=new kw;return r.restart(t,e,n),r}function Rw(){Pw(),++ww;var t,e=yw;while(e)(t=Tw-e._time)>=0&&e._call.call(null,t),e=e._next;--ww}function Iw(){Tw=(Sw=Aw.now())+Mw,ww=Ow=0;try{Rw()}finally{ww=0,Nw(),Tw=0}}function jw(){var t=Aw.now(),e=t-Sw;e>Ew&&(Mw-=e,Sw=t)}function Nw(){var t,e,n=yw,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:yw=e);_w=t,Bw(r)}function Bw(t){if(!ww){Ow&&(Ow=clearTimeout(Ow));var e=t-Tw;e>24?(t<1/0&&(Ow=setTimeout(Iw,t-Aw.now()-Mw)),xw&&(xw=clearInterval(xw))):(xw||(Sw=Aw.now(),xw=setInterval(jw,Ew)),ww=1,Cw(Iw))}}kw.prototype=Lw.prototype={constructor:kw,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?Pw():+n)+(null==e?0:+e),this._next||_w===this||(_w?_w._next=this:yw=this,_w=this),this._call=t,this._time=n,Bw()},stop:function(){this._call&&(this._call=null,this._time=1/0,Bw())}};var Gw=function(t,e,n){var r=new kw;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Vw=bw("start","end","cancel","interrupt"),Uw=[],Hw=0,zw=1,Fw=2,Ww=3,Yw=4,Xw=5,qw=6,Zw=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};Jw(t,n,{name:e,index:r,group:i,on:Vw,tween:Uw,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Hw})};function Kw(t,e){var n=Qw(t,e);if(n.state>Hw)throw new Error("too late; already scheduled");return n}function $w(t,e){var n=Qw(t,e);if(n.state>Ww)throw new Error("too late; already running");return n}function Qw(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Jw(t,e,n){var r,i=t.__transition;function o(t){n.state=zw,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!==zw)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===Ww)return Gw(a);f.state===Yw?(f.state=qw,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=qw,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Gw((function(){n.state===Ww&&(n.state=Yw,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=Fw,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Fw){for(n.state=Ww,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=Xw,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===Xw&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=qw,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Lw(o,0,n.time)}var tO,eO,nO,rO,iO=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>Fw&&n.state<Xw,n.state=qw,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}},oO=function(t){return this.each((function(){iO(this,t)}))},aO=180/Math.PI,sO={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},uO=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)*aO,skewX:Math.atan(u)*aO,scaleX:a,scaleY:s}};function cO(t){return"none"===t?sO:(tO||(tO=document.createElement("DIV"),eO=document.documentElement,nO=document.defaultView),tO.style.transform=t,t=nO.getComputedStyle(eO.appendChild(tO),null).getPropertyValue("transform"),eO.removeChild(tO),t=t.slice(7,-1).split(","),uO(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function lO(t){return null==t?sO:(rO||(rO=document.createElementNS("http://www.w3.org/2000/svg","g")),rO.setAttribute("transform",t),(t=rO.transform.baseVal.consolidate())?(t=t.matrix,uO(t.a,t.b,t.c,t.d,t.e,t.f)):sO)}function hO(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:zv(t,i)},{i:u-2,x:zv(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:zv(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:zv(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:zv(t,n)},{i:s-2,x:zv(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 fO=hO(cO,"px, ","px)","deg)"),pO=hO(lO,", ",")",")");function dO(t,e){var n,r;return function(){var i=$w(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 vO(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=$w(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 gO=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Qw(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?dO:vO)(n,t,e))};function mO(t,e,n){var r=t._id;return t.each((function(){var t=$w(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Qw(t,r).value[e]}}var yO=function(t,e){var n;return("number"===typeof e?zv:e instanceof vv?Nv:(n=vv(e))?(e=n,Nv):Zv)(t,e)};function _O(t){return function(){this.removeAttribute(t)}}function bO(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wO(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 OO(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 xO(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 EO(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 SO=function(t,e){var n=$_(t),r="transform"===n?pO:yO;return this.attrTween(t,"function"===typeof e?(n.local?EO:xO)(n,r,mO(this,"attr."+t,e)):null==e?(n.local?bO:_O)(n):(n.local?OO:wO)(n,r,e))};function TO(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function MO(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function AO(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&MO(t,i)),n}return i._value=e,i}function CO(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&TO(t,i)),n}return i._value=e,i}var PO=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=$_(t);return this.tween(n,(r.local?AO:CO)(r,e))};function DO(t,e){return function(){Kw(this,t).delay=+e.apply(this,arguments)}}function kO(t,e){return e=+e,function(){Kw(this,t).delay=e}}var LO=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?DO:kO)(e,t)):Qw(this.node(),e).delay};function RO(t,e){return function(){$w(this,t).duration=+e.apply(this,arguments)}}function IO(t,e){return e=+e,function(){$w(this,t).duration=e}}var jO=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?RO:IO)(e,t)):Qw(this.node(),e).duration};function NO(t,e){if("function"!==typeof e)throw new Error;return function(){$w(this,t).ease=e}}var BO=function(t){var e=this._id;return arguments.length?this.each(NO(e,t)):Qw(this.node(),e).ease},GO=function(t){"function"!==typeof t&&(t=M_(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 dx(r,this._parents,this._name,this._id)},VO=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 dx(a,this._parents,this._name,this._id)};function UO(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 HO(t,e,n){var r,i,o=UO(e)?Kw:$w;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var zO=function(t,e){var n=this._id;return arguments.length<2?Qw(this.node(),n).on.on(t):this.each(HO(n,t,e))};function FO(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var WO=function(){return this.on("end.remove",FO(this._id))},YO=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=O_(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,Zw(h[f],e,n,f,h,Qw(s,n)));return new dx(o,this._parents,e,n)},XO=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=S_(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=Qw(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&Zw(f,e,n,v,p,d);o.push(p),a.push(u)}return new dx(o,a,e,n)},qO=ew.prototype.constructor,ZO=function(){return new qO(this._groups,this._parents)};function KO(t,e){var n,r,i;return function(){var o=lb(this,t),a=(this.style.removeProperty(t),lb(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function $O(t){return function(){this.style.removeProperty(t)}}function QO(t,e,n){var r,i,o=n+"";return function(){var a=lb(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function JO(t,e,n){var r,i,o;return function(){var a=lb(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=lb(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function tx(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=$w(this,t),c=u.on,l=null==u.value[a]?o||(o=$O(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var ex=function(t,e,n){var r="transform"===(t+="")?fO:yO;return null==e?this.styleTween(t,KO(t,r)).on("end.style."+t,$O(t)):"function"===typeof e?this.styleTween(t,JO(t,r,mO(this,"style."+t,e))).each(tx(this._id,t)):this.styleTween(t,QO(t,r,e),n).on("end.style."+t,null)};function nx(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function rx(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&nx(t,o,n)),r}return o._value=e,o}var ix=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,rx(t,e,null==n?"":n))};function ox(t){return function(){this.textContent=t}}function ax(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var sx=function(t){return this.tween("text","function"===typeof t?ax(mO(this,"text",t)):ox(null==t?"":t+""))};function ux(t){return function(e){this.textContent=t.call(this,e)}}function cx(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&ux(r)),e}return r._value=t,r}var lx=function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,cx(t))},hx=function(){for(var t=this._name,e=this._id,n=gx(),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=Qw(a,e);Zw(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new dx(r,this._parents,t,n)},fx=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=$w(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}))}))},px=0;function dx(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function vx(t){return ew().transition(t)}function gx(){return++px}var mx=ew.prototype;function yx(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}dx.prototype=vx.prototype={constructor:dx,select:YO,selectAll:XO,filter:GO,merge:VO,selection:ZO,transition:hx,call:mx.call,nodes:mx.nodes,node:mx.node,size:mx.size,empty:mx.empty,each:mx.each,on:zO,attr:SO,attrTween:PO,style:ex,styleTween:ix,text:sx,textTween:lx,remove:WO,tween:gO,delay:LO,duration:jO,ease:BO,end:fx};var _x={time:null,delay:0,duration:250,ease:yx};function bx(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return _x.time=Pw(),_x;return n}var wx=function(t){var e,n;t instanceof dx?(e=t._id,t=t._name):(e=gx(),(n=_x).time=Pw(),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])&&Zw(a,t,e,c,s,n||bx(a,e));return new dx(r,this._parents,t,e)};ew.prototype.interrupt=oO,ew.prototype.transition=wx;var 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)}}(),xx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Ox(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(X.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=vx(t).duration(Ep.getProperty(Up,t,"duration")||Up.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=vx(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}(b_),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(){return null!==t&&t.apply(this,arguments)||this}return Ex(e,t),e.appendOrUpdateLinearGradient=function(t){var e=t.svg.select("defs linearGradient#"+t.id);e.empty()&&(e=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),e.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",(function(t){return t.offset})).style("stop-color",(function(t){return t.color})).style("stop-opacity",(function(t){return t.opacity}))},e.getOffsetRatio=function(t){var e=(100*Math.abs(t[1])/Math.abs(t[0]-t[1])).toFixed(2)+"%";return e},e.getStops=function(t,n){var r=t[0]<0&&t[1]>0,i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:e.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i},e}(b_);function Tx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Mx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e);return n.getFullYear()-r.getFullYear()}function Ax(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Cx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=Ax(n,r),o=Math.abs(Mx(n,r));n.setFullYear(n.getFullYear()-i*o);var a=Ax(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Px(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Dx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function kx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Px(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=Dx(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function Lx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return kx(t,12*n)}function Rx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Lx(t,-n)}function Ix(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function jx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=Ax(n,r),o=Math.abs(Ix(n,r));n.setMonth(n.getMonth()-i*o);var a=Ax(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Nx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return kx(t,-n)}var Bx=6e4;function Gx(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%Bx;return n*Bx+r}function Vx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t);return e.setHours(0,0,0,0),e}var Ux=864e5;function Hx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Vx(t),r=Vx(e),i=n.getTime()-Gx(n),o=r.getTime()-Gx(r);return Math.round((i-o)/Ux)}function zx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e),i=Ax(n,r),o=Math.abs(Hx(n,r));n.setDate(n.getDate()-i*o);var a=Ax(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Fx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Px(e);return n.setDate(n.getDate()+r),n}function Wx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Fx(t,-n)}function Yx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t),r=Tx(e);return n.getTime()-r.getTime()}var Xx=36e5;function qx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Yx(t,e)/Xx;return n>0?Math.floor(n):Math.ceil(n)}function Zx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Tx(t).getTime(),r=Px(e);return new Date(n+r)}var Kx=36e5;function $x(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Zx(t,n*Kx)}function Qx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return $x(t,-n)}var Jx=6e4;function tE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Yx(t,e)/Jx;return n>0?Math.floor(n):Math.ceil(n)}var eE=6e4;function nE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Zx(t,n*eE)}function rE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return nE(t,-n)}function iE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Yx(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function oE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Zx(t,1e3*n)}function aE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return oE(t,-n)}var sE=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)}}(),uE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},cE=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},lE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scaleTypes={top:null,right:null,bottom:null,left:null},e.scales={top:null,right:null,bottom:null,left:null},e}return sE(e,t),e.prototype.getDomainAxisPosition=function(t){var e,n=(void 0===t?{}:t).datum,r=void 0===n?null:n;if(this.dualAxes&&r){var i=this.model.getOptions(),o=i.data.groupMapsTo,a=Ep.getProperty(i,"axes",this.secondaryDomainAxisPosition),s=r[o];if((null===(e=a)||void 0===e?void 0:e.correspondingDatasets)&&a.correspondingDatasets.includes(s))return this.secondaryDomainAxisPosition}return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(t){var e,n=void 0===t?{}:t,r=n.datum,i=void 0===r?null:r,o=n.groups,a=void 0===o?null:o;if(this.dualAxes){var s=this.model.getOptions(),u=s.data.groupMapsTo,c=Ep.getProperty(s,"axes",this.secondaryRangeAxisPosition),l=void 0;if(null!==i?l=i[u]:a&&a.length>0&&(l=a[0]),(null===(e=c)||void 0===e?void 0:e.correspondingDatasets)&&c.correspondingDatasets.includes(l))return this.secondaryRangeAxisPosition}return this.rangeAxisPosition},e.prototype.getAxisOptions=function(t){return Ep.getProperty(this.model.getOptions(),"axes",t)},e.prototype.getDomainAxisOptions=function(){var t=this.getDomainAxisPosition();return this.getAxisOptions(t)},e.prototype.getRangeAxisOptions=function(){var t=this.getRangeAxisPosition();return this.getAxisOptions(t)},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(M).map((function(t){return M[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findVerticalAxesPositions(),e=this.findHorizontalAxesPositions(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.primaryDomainAxisPosition,this.rangeAxisPosition=n.primaryRangeAxisPosition,this.isDualAxes()&&(this.secondaryDomainAxisPosition=n.secondaryDomainAxisPosition,this.secondaryRangeAxisPosition=n.secondaryRangeAxisPosition)},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==M.LEFT&&this.rangeAxisPosition!==M.RIGHT||this.domainAxisPosition!==M.BOTTOM&&this.domainAxisPosition!==M.TOP?this.orientation=P.HORIZONTAL:this.orientation=P.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=Ep.getProperty(i,"axes");((null===(t=o[M.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[M.RIGHT]||(null===(e=o[M.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[M.LEFT]||(null===(n=o[M.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[M.BOTTOM]||(null===(r=o[M.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[M.TOP])&&(this.dualAxes=!0)},e.prototype.getOrientation=function(){return this.orientation},e.prototype.getScaleByPosition=function(t){return this.scales[t]},e.prototype.getScaleTypeByPosition=function(t){return this.scaleTypes[t]},e.prototype.getDomainAxisScaleType=function(){var t=this.getDomainAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getRangeAxisScaleType=function(){var t=this.getRangeAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getDomainScale=function(){return this.scales[this.domainAxisPosition]},e.prototype.getRangeScale=function(){return this.scales[this.rangeAxisPosition]},e.prototype.getMainXAxisPosition=function(){var t=[M.BOTTOM,M.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[M.LEFT,M.RIGHT];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainXScale=function(){return this.scales[this.getMainXAxisPosition()]},e.prototype.getMainYScale=function(){return this.scales[this.getMainYAxisPosition()]},e.prototype.getValueFromScale=function(t,e,n,r,i){var o,a=this.model.getOptions(),s=Ep.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=void 0!==r[c]?r[c]:r;switch(e){case D.LABELS:o=t(l)+t.step()/2;break;case D.TIME:o=t(new Date(l));break;default:o=t(l)}return o},e.prototype.getBoundedScaledValues=function(t,e){var n=this.model.getOptions().bounds,r=this.scales[this.rangeAxisPosition],i=this.model.getOptions(),o=Ep.getProperty(i,"axes"),a=o[this.rangeAxisPosition],s=a.mapsTo,u=void 0!==t[s]?t[s]:t,c=[r(t[n.upperBoundMapsTo]?t[n.upperBoundMapsTo]:u),r(t[n.lowerBoundMapsTo]?t[n.lowerBoundMapsTo]:u)];return c},e.prototype.getValueThroughAxisPosition=function(t,e,n){var r=this.scaleTypes[t],i=this.scales[t];return this.getValueFromScale(i,r,t,e,n)},e.prototype.getDomainValue=function(t,e){var n=this.getDomainAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getRangeValue=function(t,e){var n=this.getRangeAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getMainXScaleType=function(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())},e.prototype.getMainYScaleType=function(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())},e.prototype.getDomainIdentifier=function(t){var e=this.model.getOptions();return Ep.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return Ep.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=Ep.getProperty(n,"axes",t);if(r.scaleType===D.TIME){var i=Ep.getProperty(n,"timeScale","addSpaceOnEdges");return hE(e,i)}return fE(e,Lp.paddingRatio)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=Ep.getProperty(t,"axes"),n=this.isDualAxes();return null===Ep.getProperty(e,M.LEFT)&&null!==Ep.getProperty(e,M.RIGHT)||!0===Ep.getProperty(e,M.RIGHT,"main")||n&&Ep.getProperty(e,M.LEFT,"correspondingDatasets")?{primary:M.RIGHT,secondary:M.LEFT}:{primary:M.LEFT,secondary:M.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=Ep.getProperty(t,"axes"),n=this.isDualAxes();return null===Ep.getProperty(e,M.BOTTOM)&&null!==Ep.getProperty(e,M.TOP)||!0===Ep.getProperty(e,M.TOP,"main")||n&&Ep.getProperty(e,M.BOTTOM,"correspondingDatasets")?{primary:M.TOP,secondary:M.BOTTOM}:{primary:M.BOTTOM,secondary:M.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=Ep.getProperty(n,"axes",t.primary),i=Ep.getProperty(n,"axes",e.primary),o=r.scaleType||D.LINEAR,a=i.scaleType||D.LINEAR,s={primaryDomainAxisPosition:null,secondaryDomainAxisPosition:null,primaryRangeAxisPosition:null,secondaryRangeAxisPosition:null};return s.primaryDomainAxisPosition=e.primary,s.primaryRangeAxisPosition=t.primary,s.secondaryDomainAxisPosition=e.secondary,s.secondaryRangeAxisPosition=t.secondary,(a!==D.LABELS&&a!==D.TIME&&o===D.LABELS||o===D.TIME)&&(s.primaryDomainAxisPosition=t.primary,s.primaryRangeAxisPosition=e.primary,s.secondaryDomainAxisPosition=t.secondary,s.secondaryRangeAxisPosition=e.secondary),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=Ep.getProperty(e,"axes",t),r=Ep.getProperty(e,"bounds"),i=n.includeZero,o=Ep.getProperty(n,"scaleType")||D.LINEAR;if(this.model.isDataEmpty())return[];var a,s,u=this.model.getDisplayData(),c=n.mapsTo,l=n.percentage;if(n.domain)return o===D.LABELS?n.domain:(o===D.TIME&&(n.domain=n.domain.map((function(t){return void 0===t.getTime?new Date(t):t}))),this.extendsDomain(t,n.domain));if(l)return[0,100];if(n&&o===D.LABELS)return bd(u,(function(t){return t[c]})).keys();var h=this.model.getDataGroupNames();if(o===D.TIME)s=u.map((function(t){return+new Date(t[c])}));else if(r&&e.axes)s=[],u.forEach((function(t){s.push(t[c]),t[r.upperBoundMapsTo]&&s.push(t[r.upperBoundMapsTo]),t[r.lowerBoundMapsTo]&&s.push(t[r.lowerBoundMapsTo])}));else if(!0===n.stacked&&h&&t===this.getRangeAxisPosition()){var f=e.data.groupMapsTo,p=this.model.getDataValuesGroupedByKeys(h),d=u.filter((function(t){return!h.includes(t[f])})),v=p.map((function(t){t.sharedStackKey;var e=uE(t,["sharedStackKey"]);return Hd(Ed(e))}));s=cE(v,d.map((function(t){return t[c]})))}else s=u.map((function(t){return t[c]}));return o!==D.TIME&&i&&s.push(0),a=Dd(s),a=this.extendsDomain(t,a),a},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=Ep.getProperty(e,"axes",t);if(!n)return null;var r,i=Ep.getProperty(n,"scaleType")||D.LINEAR;return this.scaleTypes[t]=i,r=i===D.TIME?u_():i===D.LOG?Wg().base(n.base||10):i===D.LABELS?Zd():Rg(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=Ep.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==D.TIME||"string"!==typeof i.value&&void 0!==i.value.getTime||(i.value=new Date(i.value)),{threshold:i,scaleValue:r(i.value)}},e.prototype.getHighestRangeThreshold=function(){var t=Ep.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getRangeScale(),i=n.sort((function(t,e){return e.value-t.value}))[0];return{threshold:i,scaleValue:r(i.value)}},e}(b_);function hE(t,e){var n=new Date(t[0]),r=new Date(t[1]);return Cx(r,n)>1?[Rx(n,e),Lx(r,e)]:jx(r,n)>1?[Nx(n,e),kx(r,e)]:zx(r,n)>1?[Wx(n,e),Fx(r,e)]:qx(r,n)>1?[Qx(n,e),$x(r,e)]:tE(r,n)>30?[rE(n,30*e),nE(r,30*e)]:tE(r,n)>1?[rE(n,e),nE(r,e)]:iE(r,n)>15?[aE(n,15*e),oE(r,15*e)]:iE(r,n)>1?[aE(n,e),oE(r,e)]:[n,r]}function fE(t,e){var n=t[0],r=t[1],i=r-n,o=i*e,a=r<=0&&r+o>0?0:r+o,s=n>=0&&n-o<0?0:n-o;return[s,a]}function pE(t){this._context=t}pE.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 dE=function(t){return new pE(t)},vE=function(){};function gE(t){this._context=t}gE.prototype={areaStart:vE,areaEnd:vE,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 mE=function(t){return new gE(t)};function yE(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 _E(t){this._context=t}_E.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:yE(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:yE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var bE=function(t){return new _E(t)};function wE(t){this._context=t}wE.prototype={areaStart:vE,areaEnd:vE,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:yE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var OE=function(t){return new wE(t)};function xE(t){this._context=t}xE.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:yE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var EE=function(t){return new xE(t)};function SE(t,e){this._basis=new _E(t),this._beta=e}SE.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 TE=function t(e){function n(t){return 1===e?new _E(t):new SE(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function ME(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 AE(t,e){this._context=t,this._k=(1-e)/6}AE.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:ME(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:ME(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 CE=function t(e){function n(t){return new AE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function PE(t,e){this._context=t,this._k=(1-e)/6}PE.prototype={areaStart:vE,areaEnd:vE,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:ME(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 DE=function t(e){function n(t){return new PE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function kE(t,e){this._context=t,this._k=(1-e)/6}kE.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:ME(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 LE=function t(e){function n(t){return new kE(t,e)}return n.tension=function(e){return t(+e)},n}(0),RE=Math.abs,IE=Math.atan2,jE=Math.cos,NE=Math.max,BE=Math.min,GE=Math.sin,VE=Math.sqrt,UE=1e-12,HE=Math.PI,zE=HE/2,FE=2*HE;function WE(t){return t>1?0:t<-1?HE:Math.acos(t)}function YE(t){return t>=1?zE:t<=-1?-zE:Math.asin(t)}function XE(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>UE){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>UE){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 qE(t,e){this._context=t,this._alpha=e}qE.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:XE(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 ZE=function t(e){function n(t){return e?new qE(t,e):new AE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function KE(t,e){this._context=t,this._alpha=e}KE.prototype={areaStart:vE,areaEnd:vE,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:XE(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 $E=function t(e){function n(t){return e?new KE(t,e):new PE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function QE(t,e){this._context=t,this._alpha=e}QE.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:XE(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 JE=function t(e){function n(t){return e?new QE(t,e):new kE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tS(t){return t<0?-1:1}function eS(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(tS(o)+tS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function nS(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function rS(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 iS(t){this._context=t}function oS(t){this._context=new aS(t)}function aS(t){this._context=t}function sS(t){return new iS(t)}function uS(t){return new oS(t)}function cS(t){this._context=t}function lS(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]}iS.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:rS(this,this._t0,nS(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,rS(this,nS(this,n=eS(this,t,e)),n);break;default:rS(this,this._t0,n=eS(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(oS.prototype=Object.create(iS.prototype)).point=function(t,e){iS.prototype.point.call(this,e,t)},aS.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)}},cS.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=lS(t),i=lS(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 hS=function(t){return new cS(t)};function fS(t,e){this._context=t,this._t=e}fS.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 pS=function(t){return new fS(t,.5)};function dS(t){return new fS(t,0)}function vS(t){return new fS(t,1)}var gS,mS,yS=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)}}(),_S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:dE,curveLinearClosed:mE,curveBasis:bE,curveBasisClosed:OE,curveBasisOpen:EE,curveBundle:TE,curveCardinal:CE,curveCardinalClosed:DE,curveCardinalOpen:LE,curveCatmullRom:ZE,curveCatmullRomClosed:$E,curveCatmullRomOpen:JE,curveMonotoneX:sS,curveMonotoneY:uS,curveNatural:hS,curveStep:pS,curveStepAfter:vS,curveStepBefore:dS},e}return yS(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}(b_),bS=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)}}(),wS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bS(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!Ep.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=Ep.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===M.BOTTOM&&e===D.TIME},e.prototype.getZoomBarData=function(){var t=this.model.getZoomBarData();return t&&t.length>1?t:this.model.getDisplayData()},e.prototype.getDefaultZoomBarDomain=function(t){var e=t||this.services.zoom.getZoomBarData(),n=this.services.cartesianScales,r=n.getMainXAxisPosition(),i=n.getDomainIdentifier();return n.extendsDomain(r,Dd(e,(function(t){return t[i]})))},e.prototype.handleDomainChange=function(t,e){void 0===e&&(e={dispatchEvent:!0}),this.model.set({zoomDomain:t},{animate:!1}),e.dispatchEvent&&this.services.events.dispatchEvent(X.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return Ep.getProperty(this.model.getOptions(),"zoomBar","zoomRatio")},e.prototype.filterDataForRangeAxis=function(t,e){var n=this.model.get("zoomDomain"),r=Object.assign({stacked:!1},e),i=Ep.getProperty(this.model.getOptions(),"zoomBar","updateRangeAxis");if(this.isZoomBarEnabled()&&i&&n){var o=r.stacked?"sharedStackKey":this.services.cartesianScales.getDomainIdentifier(),a=t.filter((function(t){return new Date(t[o])>=n[0]&&new Date(t[o])<=n[1]}));if(a.length>0)return a}return t},e.prototype.zoomIn=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=zp.handleWidth,r=this.services.cartesianScales.getMainXScale().copy();r.domain(this.getDefaultZoomBarDomain());var i=r(e[0]),o=r(e[1]);if(!(o-i<n+1)){var a=r.range(),s=o-i,u=Math.min((a[1]-a[0])/2*(t/2),s/2),c=i+u,l=o-u;c>=l&&(c=i+s/2-n/2,l=o-s/2+n/2);var h=[r.invert(c),r.invert(l)];e[0].valueOf()===h[0].valueOf()&&e[1].valueOf()===h[1].valueOf()||this.handleDomainChange(h)}},e.prototype.zoomOut=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=this.services.cartesianScales.getMainXScale().copy();n.domain(this.getDefaultZoomBarDomain());var r=n(e[0]),i=n(e[1]),o=n.range(),a=(o[1]-o[0])/2*(t/2),s=Math.max(r-a,o[0]),u=Math.min(i+a,o[1]),c=[n.invert(s),n.invert(u)];e[0].valueOf()===c[0].valueOf()&&e[1].valueOf()===c[1].valueOf()||this.handleDomainChange(c)},e.prototype.resetZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();t[0].valueOf()===e[0].valueOf()&&t[1].valueOf()===e[1].valueOf()||this.handleDomainChange(e)},e.prototype.isMinZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();if(!t||!e)return!1;var n=t[1].valueOf()-t[0].valueOf(),r=e[1].valueOf()-e[0].valueOf(),i=Ep.getProperty(this.model.getOptions(),"zoomBar","minZoomRatio");return n/r<i},e.prototype.isMaxZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();return!(!t||!e||t[0].valueOf()!==e[0].valueOf()||t[1].valueOf()!==e[1].valueOf())},e.prototype.isEmptyState=function(){return 0===this.getZoomBarData().length},e.prototype.isZoomBarLoading=function(t){return Ep.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return Ep.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(b_),OS=function(){function t(t,e,n){if(this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=Ep.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(nw(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=Ep.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(ow.prefix+"--"+n+"--"+this.type,!0).attr("id",this.id),e&&e.classed(ow.prefix+"--"+n+"--"+this.type,!1).attr("id",this.id)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=Ep.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=cw.appendOrSelect(this.parent,"g"+n+"."+ow.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");i&&r.attr("clip-path","url(#"+i+")")}return r}return this.parent},t.prototype.getOptions=function(){if(this.configs.options){var t=Ep.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),xS=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)}}(),ES=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return xS(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",o.GROUP).attr("data-name","legend-items"),n=this.getOptions(),r=Ep.getProperty(n,"legend"),i=this.model.getDataGroups(),a=Ep.getProperty(r,"order");a&&(i=this.sortDataGroups(i,a));var s=e.selectAll("g.legend-item").data(i,(function(t){return t.name})),u=s.enter().append("g").classed("legend-item",!0).classed("active",(function(t,e){return t.status===Rp.items.status.ACTIVE})),c=Rp.checkbox.radius,l=Ep.getProperty(r,"truncation","type"),h=Ep.getProperty(r,"truncation","threshold"),f=Ep.getProperty(r,"truncation","numCharacter"),p=(Ep.getProperty(n,"color","pairing","option"),Ep.getProperty(this.getOptions(),"legend","clickable"));e.classed("clickable",p),u.append("rect").classed("checkbox",!0).merge(s.select("rect.checkbox")).attr("role",o.CHECKBOX).attr("tabindex",p?0:-1).attr("aria-label",(function(t){return t.name})).attr("aria-checked",(function(t){var e=t.status;return e===Rp.items.status.ACTIVE})).attr("width",2*c).attr("height",2*c).attr("rx",1).attr("ry",1).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:e.name,originalClassName:"checkbox"})})).style("fill",(function(e){return e.status===Rp.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===Rp.items.status.ACTIVE}));var d=u.append("text").merge(s.select("text"));l!==C.NONE?d.html((function(t){return t.name.length>h?Ep.truncateLabel(t.name,l,f):t.name})):d.html((function(t){return t.name})),this.breakItemsIntoLines(u),s.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),p&&u.size()>0&&this.addEventListeners();var v=Ep.getProperty(r,"alignment"),g=cw.getAlignmentOffset(v,e,this.getParent());e.attr("transform","translate("+g+", 0)")},e.prototype.sortDataGroups=function(t,e){if(t.sort((function(t,n){return e.indexOf(t.name)-e.indexOf(n.name)})),e.length<t.length){var n=t.length-e.length,r=t.slice(n);return r.concat(t.slice(0,n))}return t},e.prototype.breakItemsIntoLines=function(t){var e=this,n=this.getContainerSVG(),r=this.getOptions(),i=Rp.checkbox.radius,o=Rp.items.horizontalSpace,a=Rp.items.verticalSpace,s=Rp.items.textYOffset,u=2*i+Rp.checkbox.spaceAfter,c=Rp.items.status.DISABLED,l=this.model.getDataGroups(),h=l.some((function(t){return t.status===c})),f=Ep.getProperty(r,"legend","orientation"),p=0,d=0,v=0;t.merge(n.selectAll("g.legend-item")).each((function(t,r){var c=nw(this),l=nw(n.selectAll("g.legend-item").nodes()[r-1]);if(0===v||l.empty()||f===R.VERTICAL)f===R.VERTICAL&&0!==r&&d++;else{var g=cw.getSVGElementSize(e.parent,{useAttr:!0}),m=cw.getSVGElementSize(nw(this).select("text"),{useBBox:!0}),y=cw.getSVGElementSize(l.select("text"),{useBBox:!0});p=p+y.width+u+o,p+u+m.width>g.width&&(d++,p=0,v=0)}var _=0;c.select("rect.checkbox").attr("x",p).attr("y",_+d*a);var b=s+d*a;c.select("text").attr("x",p+u).attr("y",_+b+3),b;var w=(!f||f===R.HORIZONTAL)&&"0"===c.select("rect.checkbox").attr("y"),O=f===R.VERTICAL&&"0"===c.select("rect.checkbox").attr("x"),x=w||O;h&&c.select("g.check").empty()&&x?(c.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'),c.select("g.check svg").attr("width",2*i-1).attr("height",2*i-1).attr("x",parseFloat(c.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(c.select("rect.checkbox").attr("y"))+.5)):h||c.select("g.check").empty()||c.select("g.check").remove(),v++}))},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.getOptions(),r=Ep.getProperty(n,"legend"),i=Ep.getProperty(r,"truncation","threshold");e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent(X.Legend.ITEM_HOVER,{hoveredElement:nw(this)});var e=Rp.checkbox.radius,n=nw(this);n.select("rect.checkbox").classed("hovered",!0),n.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(n.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(n.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower();var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,content:r.name})})).on("mousemove",(function(){t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(){t.services.events.dispatchEvent(X.Legend.ITEM_CLICK,{clickedElement:nw(this)});var e=nw(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=nw(this);e.select("rect.hover-stroke").remove(),e.select("rect.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(X.Tooltip.HIDE),t.services.events.dispatchEvent(X.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("g.legend-item rect.checkbox").on("keyup",(function(e){!vp.key||"Enter"!==vp.key&&" "!==vp.key||(vp.preventDefault(),t.model.toggleDataLabel(e.name))}))},e}(OS);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(mS||(mS={}));var SS=(gS={},gS[mS.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)}},gS[mS.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)}},gS[mS.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)}},gS[mS.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)}},gS),TS="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},MS=function(){function t(t){void 0===t&&(t={}),this.positions=SS,this.positions=Object.assign({},SS,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:TS.innerHeight-TS.scrollY,height:TS.innerWidth-TS.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}(),AS=(new MS,MS);function CS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t);return!isNaN(e)}var PS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function DS(t,e,n){var r;return n=n||{},r="string"===typeof PS[t]?PS[t]:1===e?PS[t].one:PS[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function kS(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}var LS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},RS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jS={date:kS({formats:LS,defaultWidth:"full"}),time:kS({formats:RS,defaultWidth:"full"}),dateTime:kS({formats:IS,defaultWidth:"full"})},NS=jS,BS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function GS(t,e,n,r){return BS[t]}function VS(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}var US={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},HS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},FS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},WS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},YS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function XS(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var qS={ordinalNumber:XS,era:VS({values:US,defaultWidth:"wide"}),quarter:VS({values:HS,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:VS({values:zS,defaultWidth:"wide"}),day:VS({values:FS,defaultWidth:"wide"}),dayPeriod:VS({values:WS,defaultWidth:"wide",formattingValues:YS,defaultFormattingWidth:"wide"})},ZS=qS;function KS(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}function $S(t){return function(e,n){var r=String(e),i=n||{},o=i.width,a=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=r.match(a);if(!s)return null;var u,c=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?JS(l,(function(t){return t.test(r)})):QS(l,(function(t){return t.test(r)})),u=t.valueCallback?t.valueCallback(u):u,u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(c.length)}}}function QS(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function JS(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var tT=/^(\d+)(th|st|nd|rd)?/i,eT=/\d+/i,nT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rT={any:[/^b/i,/^(a|c)/i]},iT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oT={any:[/1/i,/2/i,/3/i,/4/i]},aT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fT={ordinalNumber:KS({matchPattern:tT,parsePattern:eT,valueCallback:function(t){return parseInt(t,10)}}),era:$S({matchPatterns:nT,defaultMatchWidth:"wide",parsePatterns:rT,defaultParseWidth:"any"}),quarter:$S({matchPatterns:iT,defaultMatchWidth:"wide",parsePatterns:oT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:$S({matchPatterns:aT,defaultMatchWidth:"wide",parsePatterns:sT,defaultParseWidth:"any"}),day:$S({matchPatterns:uT,defaultMatchWidth:"wide",parsePatterns:cT,defaultParseWidth:"any"}),dayPeriod:$S({matchPatterns:lT,defaultMatchWidth:"any",parsePatterns:hT,defaultParseWidth:"any"})},pT=fT,dT={code:"en-US",formatDistance:DS,formatLong:NS,formatRelative:GS,localize:ZS,match:pT,options:{weekStartsOn:0,firstWeekContainsDate:1}},vT=dT;function gT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Px(e);return Zx(t,-n)}function mT(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var yT={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return mT("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):mT(n+1,2)},d:function(t,e){return mT(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return mT(t.getUTCHours()%12||12,e.length)},H:function(t,e){return mT(t.getUTCHours(),e.length)},m:function(t,e){return mT(t.getUTCMinutes(),e.length)},s:function(t,e){return mT(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return mT(i,e.length)}},_T=yT,bT=864e5;function wT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/bT)+1}function OT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=Tx(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function xT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=OT(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=OT(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function ET(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=xT(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=OT(n);return r}var ST=6048e5;function TT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Tx(t),n=OT(e).getTime()-ET(e).getTime();return Math.round(n/ST)+1}function MT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:Px(i),a=null==n.weekStartsOn?o:Px(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Tx(t),u=s.getUTCDay(),c=(u<a?7:0)+u-a;return s.setUTCDate(s.getUTCDate()-c),s.setUTCHours(0,0,0,0),s}function AT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Tx(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:Px(a),u=null==i.firstWeekContainsDate?s:Px(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=MT(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=MT(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function CT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:Px(i),a=null==n.firstWeekContainsDate?o:Px(n.firstWeekContainsDate),s=AT(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=MT(u,e);return c}var PT=6048e5;function DT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Tx(t),r=MT(n,e).getTime()-CT(n,e).getTime();return Math.round(r/PT)+1}var kT={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},LT={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return _T.y(t,e)},Y:function(t,e,n,r){var i=AT(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return mT(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):mT(o,e.length)},R:function(t,e){var n=xT(t);return mT(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return mT(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return mT(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return mT(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return _T.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return mT(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=DT(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):mT(i,e.length)},I:function(t,e,n){var r=TT(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):mT(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):_T.d(t,e)},D:function(t,e,n){var r=wT(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):mT(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return mT(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return mT(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return mT(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?kT.noon:0===i?kT.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?kT.evening:i>=12?kT.afternoon:i>=4?kT.morning:kT.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _T.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_T.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):mT(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):mT(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_T.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_T.s(t,e)},S:function(t,e){return _T.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return IT(o);case"XXXX":case"XX":return jT(o);case"XXXXX":case"XXX":default:return jT(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return IT(o);case"xxxx":case"xx":return jT(o);case"xxxxx":case"xxx":default:return jT(o,":")}},O:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+RT(o,":");case"OOOO":default:return"GMT"+jT(o,":")}},z:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+RT(o,":");case"zzzz":default:return"GMT"+jT(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return mT(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return mT(o,e.length)}};function RT(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+mT(o,2)}function IT(t,e){if(t%60===0){var n=t>0?"-":"+";return n+mT(Math.abs(t)/60,2)}return jT(t,e)}function jT(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=mT(Math.floor(i/60),2),a=mT(i%60,2);return r+o+n+a}var NT=LT;function BT(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function GT(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function VT(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return BT(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"});break}return n.replace("{{date}}",BT(i,e)).replace("{{time}}",GT(o,e))}var UT={p:GT,P:VT},HT=UT,zT=["D","DD"],FT=["YY","YYYY"];function WT(t){return-1!==zT.indexOf(t)}function YT(t){return-1!==FT.indexOf(t)}function XT(t){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===t)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===t)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===t)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var qT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KT=/^'([^]*?)'?$/,$T=/''/g,QT=/[a-zA-Z]/;function JT(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(e),i=n||{},o=i.locale||vT,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:Px(a),u=null==i.firstWeekContainsDate?s:Px(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:Px(c),h=null==i.weekStartsOn?l:Px(i.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=Tx(t);if(!CS(f))throw new RangeError("Invalid time value");var p=Gx(f),d=gT(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(ZT).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=HT[e];return n(t,o.formatLong,v)}return t})).join("").match(qT).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return tM(t);var n=NT[e];if(n)return!i.useAdditionalWeekYearTokens&&YT(t)&&XT(t),!i.useAdditionalDayOfYearTokens&&WT(t)&&XT(t),n(d,t,o.localize,v);if(e.match(QT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function tM(t){return t.match(KT)[1].replace($T,"'")}var eM=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function nM(t,e,n,r){var i=0===e,o=2===Number(JT(new Date(t),"c")),a=1===Number(JT(new Date(t),"q"));switch(n){case"15seconds":return i||uM(t)||cM(t)||lM(t);case"minute":return i||uM(t)||cM(t)||lM(t);case"30minutes":return i||uM(t)||cM(t)||lM(t);case"hourly":return i||uM(t)||cM(t)||lM(t);case"daily":return r?i||o||lM(t):i||cM(t)||lM(t);case"monthly":return i||lM(t);case"quarterly":return i||a;case"yearly":return!1;default:throw new Error(n+" is not a valid time interval.")}}function rM(t,e,n,r){var i=r.showDayName,o="daily"===n&&i?"weekly":n,a=new Date(t),s=Ep.getProperty(r,"timeIntervalFormats")[o],u=Ep.getProperty(s,"primary"),c=Ep.getProperty(s,"secondary"),l=nM(t,e,n,i)?u:c,h=r.localeObject;return JT(a,l,{locale:h})}function iM(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function oM(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function aM(t){var e=eM.reduce((function(e,n,r){n[0];var i=n[1],o=eM[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return eM[e][0]}function sM(t){if(1===t.length)return"15seconds";var e=oM(t),n=Ud(e);return aM(n)}function uM(t){var e=iM(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function cM(t){var e=iM(t),n=e.d,r=e.s,i=e.m,o=e.H;return 1===n&&0===o&&0===i&&0===r}function lM(t){var e=iM(t),n=e.M,r=e.d,i=e.s,o=e.m,a=e.H;return 1===n&&1===r&&0===a&&0===o&&0===i}var 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)}}(),fM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="threshold",i.positionService=new AS,i}return hM(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=this.configs,r=n.value,i=n.fillColor,o=n.axisPosition,a=n.index,s=Ep.getProperty(this.getOptions(),"style","prefix");this.thresholdClass=ow.prefix+"--"+s+"--threshold",this.thresholdIdentifierClass=o+"-"+a,this.threshold=cw.appendOrSelect(this.parent,"g."+this.thresholdClass+"."+this.thresholdIdentifierClass).raise();var u=cw.appendOrSelect(this.threshold,"rect.threshold-hoverable-area"),c=cw.appendOrSelect(this.threshold,"line.threshold-line");c.style("stroke",i);var l=this.services.cartesianScales.getScaleByPosition(o),h=this.services.cartesianScales.getScaleTypeByPosition(o),f=this.services.cartesianScales.getMainXScale(),p=this.services.cartesianScales.getMainYScale(),d=h===D.LABELS,v=f.range(),g=v[0],m=v[1],y=p.range(),_=y[0],b=y[1],w=this.services.cartesianScales,O=w.getOrientation(),x=function(t){return w.getDomainValue(t)},E=function(t){return w.getRangeValue(t)},S=Ep.flipDomainAndRangeBasedOnOrientation(x,E,O),T=S[0],A=S[1];if(o===M.TOP||o===M.BOTTOM){var C=T(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+C+", "+b+")"),c.attr("y2",_-b),u.attr("width",Math.abs(_-b)).classed("rotate",!0)}else{C=A(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+g+", "+C+")"),c.attr("x2",m-g),u.attr("width",Math.abs(m-g))}var P=this;this.services.events.addEventListener(X.Threshold.SHOW,(function(t){var n=t.detail.hoveredElement.node();n===P.threshold&&(e.setThresholdLabelPosition(),e.label.classed("hidden",!1))})),this.services.events.addEventListener(X.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(){var t=this.configs,e=t.value,n=t.axisPosition,r=this.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===D.TIME){var o=[M.LEFT,M.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=Ep.getProperty(r,"timeScale"),l=sM(u.ticks());return rM(e,0,l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=this.configs,e=t.value,n=t.valueFormatter,r=t.fillColor,i=t.label,o=void 0===i?"Threshold":i,a=nw(this.services.domUtils.getHolder()),s=n?n(e):this.getFormattedValue();this.label=cw.appendOrSelect(a,"div."+this.thresholdClass+"--label."+this.thresholdIdentifierClass),this.label.html(o+": "+s).classed("hidden",!0).style("background-color",r)},e.prototype.setThresholdLabelPosition=function(){var t=this.services.domUtils.getHolder(),e=this.label.node(),n=Mp(t),r=this.positionService.findBestPlacementAt({left:n[0],top:n[1]},e,[mS.RIGHT,mS.LEFT,mS.TOP,mS.BOTTOM],(function(){return{width:t.offsetWidth,height:t.offsetHeight}})),i=this.positionService.findPositionAt({left:n[0],top:n[1]},e,r);this.positionService.setElement(e,i)},e.prototype.addEventListeners=function(){var t=this;cw.appendOrSelect(this.threshold,"rect").on("mouseover mousemove",(function(){t.threshold.classed("active",!0),t.services.events.dispatchEvent(X.Threshold.SHOW,{hoveredElement:nw(t.threshold)})})).on("mouseout",(function(){t.threshold.classed("active",!1),t.services.events.dispatchEvent(X.Threshold.HIDE,{hoveredElement:nw(t.threshold)})}))},e}(OS),pM=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)}}(),dM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return pM(e,t),e.prototype.render=function(){var t=this.getContainerSVG(),e=t.selectAll("text.title").data([this.getOptions().title]);e.enter().append("text").classed("title",!0).merge(e).attr("x",0).attr("y","1em").html((function(t){return t}));var n=this.getMaxTitleWidth(),r=cw.appendOrSelect(t,"text.title");r.node().getComputedTextLength()>n&&n>0&&this.truncateTitle(r,n),e.exit().remove()},e.prototype.truncateTitle=function(t,e){if(!(e<=0)){var n=t.text();if(t.node().getComputedTextLength()>e){t.append("tspan").text("...");var r=cw.appendOrSelect(t,"tspan").node().getComputedTextLength(),i=t.text(),o=this.getSubstringIndex(t.node(),0,i.length-1,e-r);t.html(i.substring(0,o-1)).append("tspan").text("...");var a=this;t.on("mouseover",(function(){a.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:t,content:n})})).on("mousemove",(function(){a.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("mouseout",(function(){a.services.events.dispatchEvent(X.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return cw.getSVGElementSize(this.parent.node(),{useAttr:!0}).width},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}(OS),vM=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)}}(),gM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e}return vM(e,t),e.prototype.render=function(){var t=this.model.getDisplayData(),e=this.getOptions(),n=this.getContainerSVG(),r=e.data.groupMapsTo,i=n.selectAll("text.meter-title").data([t[r]]);i.enter().append("text").classed("meter-title",!0).merge(i).attr("x",0).attr("y","1em").text((function(t){return t})),i.exit().remove(),this.appendPercentage(),this.displayStatus();var o=this.getMaxTitleWidth(),a=cw.appendOrSelect(n,"text.meter-title");o>0&&a.node().getComputedTextLength()>o&&this.truncateTitle(a,o)},e.prototype.displayStatus=function(){var t=this,e=this.getContainerSVG(),n=(this.getOptions(),cw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0})),r=n.width?n.width:this.parent.node().getAttribute("width"),i=this.model.getStatus(),o=jp.status.indicatorSize/2,a=cw.appendOrSelect(e,"g.status-indicator").attr("class",null!==i?"status-indicator status--"+i:"").attr("transform","translate("+(r-o)+", 0)"),s=i?[i]:[],u=a.selectAll("circle.status").data(s);u.enter().append("circle").merge(u).attr("class","status").attr("r",o).attr("cx",0).attr("cy","calc(1em / 2)");var c=a.selectAll("path.innerFill").data(s);c.enter().append("path").merge(c).attr("d",t.getStatusIconPathString(i)).attr("transform","translate(-"+o+", 0)").attr("class","innerFill"),c.exit().remove(),u.exit().remove()},e.prototype.appendPercentage=function(){var t=this.model.getDisplayData().value,e=this.getContainerSVG(),n=cw.appendOrSelect(e,"text.meter-title"),r=!0===Ep.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=jp.statusBar.paddingRight;i.enter().append("text").classed("percent-value",!0).merge(i).text((function(t){return t+"%"})).attr("x",+n.attr("x")+n.node().getComputedTextLength()+o).attr("y",n.attr("y")),i.exit().remove()},e.prototype.truncateTitle=function(e,n){t.prototype.truncateTitle.call(this,e,n);var r=cw.appendOrSelect(this.parent,"tspan"),i=jp.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=cw.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=cw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),e=t.width?t.width:this.parent.node().getAttribute("width"),n=cw.appendOrSelect(this.parent,"text.percent-value"),r=jp.statusBar.paddingRight,i=n.node().getComputedTextLength(),o=cw.appendOrSelect(this.parent,"g.status-indicator").node(),a=cw.getSVGElementSize(o,{useBBox:!0}).width+jp.status.paddingLeft;return e-i-r-a},e.prototype.getStatusIconPathString=function(t){switch(t){case z.SUCCESS:return"M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";case z.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case z.WARNING:return"M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z"}},e}(dM),mM=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)}}(),yM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.isEventListenerAdded=!1,i.positionService=new AS,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=cw.appendOrSelect(i.tooltip,"div.content-box");if(Ep.getProperty(i.getOptions(),"tooltip","customHTML"))if(t.detail.content){var o='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";r.html(o)}else r.html(i.model.getOptions().tooltip.customHTML(e,n));else r.html(n);i.positionTooltip(t),i.tooltip.classed("hidden",!1).attr("aria-hidden",!1)},i.handleHideTooltip=function(){i.tooltip.classed("hidden",!0).attr("aria-hidden",!0)},i.init(),i}return mM(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(X.Tooltip.MOVE,(function(e){t.positionTooltip(e)})),this.services.events.addEventListener(X.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(X.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(X.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(X.Tooltip.MOVE,null),this.services.events.removeEventListener(X.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(X.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(X.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.getItems=function(t){return t.detail.items?t.detail.items:[]},e.prototype.formatItems=function(t){var e=this,n=this.getOptions(),r=Ep.getProperty(n,"tooltip","truncation","type"),i=Ep.getProperty(n,"tooltip","truncation","threshold"),o=Ep.getProperty(n,"tooltip","truncation","numCharacter");return r!==C.NONE?t.map((function(t){return t.value=t.value?e.valueFormatter(t.value):t.value,t.label&&t.label.length>i&&(t.label=Ep.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=Ep.truncateLabel(t.value,r,o)),t})):t},e.prototype.getTooltipHTML=function(t){var e;if(t.detail.content)e='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";else{var n=this.getItems(t),r=this.formatItems(n);e="<ul class='multi-tooltip'>"+r.map((function(t){return'<li>\n\t\t\t\t\t\t\t<div class="datapoint-tooltip '+(t.bold?"bold":"")+'">\n\t\t\t\t\t\t\t\t'+(t.class?'<a class="tooltip-color '+t.class+'"></a>':"")+"\n\t\t\t\t\t\t\t\t"+(t.color?'<a style="background-color: '+t.color+'" class="tooltip-color"></a>':"")+'\n\t\t\t\t\t\t\t\t<p class="label">'+(t.label||"")+'</p>\n\t\t\t\t\t\t\t\t<p class="value">'+(t.value||"")+"</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>"})).join("")+"</ul>"}return e},e.prototype.valueFormatter=function(t){var e=this.getOptions(),n=Ep.getProperty(e,"tooltip","valueFormatter");return n?n(t):t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=Ep.getProperty(t,"tooltip","enabled");if(e){var n=nw(this.services.domUtils.getHolder()),r=Ep.getProperty(t,"style","prefix");this.tooltip=cw.appendOrSelect(n,"div."+ow.prefix+"--"+r+"--tooltip"),this.tooltip.style("max-width",null),this.isEventListenerAdded||(this.addTooltipEventListener(),this.isEventListenerAdded=!0),this.tooltip.classed("hidden",!0)}else!e&&this.isEventListenerAdded&&(this.removeTooltipEventListener(),this.isEventListenerAdded=!1)},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=this.getOptions(),o=Ep.getProperty(i,"zoomBar","top","enabled"),a=Ep.getProperty(t,"detail","mousePosition");if(a){var s=Ep.getProperty(i,"zoomBar","top","type"),u=zp.height[s];o&&(a[1]+=u+zp.spacerHeight)}else a=Mp(n);var c=this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[mS.RIGHT,mS.LEFT,mS.TOP,mS.BOTTOM],(function(){return{width:n.offsetWidth,height:n.offsetHeight}})),l=Vp.horizontalOffset;c===mS.LEFT&&(l*=-1),e=this.positionService.findPositionAt({left:a[0]+l,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(OS),_M=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 _M(e,t),e.prototype.getItems=function(t){var e=this;if(t.detail.items)return t.detail.items;var n=t.detail.data;if(!n.length||!n[0])return[];var r=this.getOptions(),i=this.services.cartesianScales,o=i.getDomainAxisOptions(),a=i.getDomainIdentifier(),s=i.getDomainAxisScaleType(),u=r.data.groupMapsTo,c=o.title;if(!c){var l=i.getDomainAxisPosition();c=l===M.BOTTOM||l===M.TOP?"x-value":"y-value"}var h,f=n[0][a];if(s===D.TIME?f=JT(new Date(n[0][a]),"MMM d, yyyy"):s===D.LINEAR&&(f=f.toLocaleString()),1===n.length){var p=n[0],d=i.getRangeAxisPosition({datum:p}),v=i.getRangeIdentifier(p),g=i.getAxisOptions(d),m=g.title;m||(m=d===M.LEFT||d===M.RIGHT?"y-value":"x-value"),h=[{label:c,value:f},{label:m,value:p[v]},{label:r.tooltip.groupLabel||"Group",value:p[u],color:this.model.getFillColor(p[u]),class:this.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:p[u]})}]}else if(n.length>1){h=[{label:c,value:this.valueFormatter(f)}],h=h.concat(n.map((function(t){return{label:t[u],value:e.valueFormatter(t[i.getRangeIdentifier(t)]),color:e.model.getFillColor(t[u]),class:e.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:t[u]})}})).sort((function(t,e){return e.value-t.value})));var y=i.isDualAxes();if(!y&&!0===Ep.getProperty(r,"tooltip","showTotal")){var _=i.getRangeIdentifier();h.push({label:r.tooltip.totalLabel||"Total",value:this.valueFormatter(n.reduce((function(t,e){return t+e[_]}),0)),bold:!0})}}return h},e}(yM),wM=Math.PI,OM=2*wM,xM=1e-6,EM=OM-xM;function SM(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function TM(){return new SM}SM.prototype=TM.prototype={constructor:SM,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>xM)if(Math.abs(l*s-u*c)>xM&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,g=Math.sqrt(d),m=Math.sqrt(h),y=i*Math.tan((wM-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>xM&&(this._+="L"+(t+_*c)+","+(e+_*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)>xM||Math.abs(this._y1-c)>xM)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%OM+OM),h>EM?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>xM&&(this._+="A"+n+","+n+",0,"+ +(h>=wM)+","+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 MM=TM;function AM(t){return t[0]}function CM(t){return t[1]}var PM=function(){var t=AM,e=CM,n=p_(!0),r=null,i=dE,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=MM())),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:p_(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:p_(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:p_(!!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},DM=function(){var t=AM,e=null,n=p_(0),r=CM,i=p_(!0),o=null,a=dE,s=null;function u(u){var c,l,h,f,p,d=u.length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=MM())),c=0;c<=d;++c){if(!(c<d&&i(f=u[c],c,u))===v)if(v=!v)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=l;--h)s.point(g[h],m[h]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+t(f,c,u),m[c]=+n(f,c,u),s.point(e?+e(f,c,u):g[c],r?+r(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return PM().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:p_(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:p_(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:p_(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:p_(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:p_(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:p_(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:p_(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u},kM=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)}}(),LM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?kp.opacity.unselected:kp.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",kp.opacity.selected)},e}return kM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=DM().curve(this.services.curves.getD3Curve()),s=this.model.getGroupedData(this.configs.groups),u=Ep.getProperty(this.getOptions(),"bounds"),c=u&&s&&1===s.length;!c&&u&&console.warn("Bounds can only be shown when having 1 single datagroup, you've supplied "+s.length);var l=function(t,e){return c?i.getBoundedScaledValues(t,e)[0]:i.getRangeValue(0)},h=function(t,e){return c?i.getBoundedScaledValues(t,e)[1]:i.getRangeValue(t,e)};o===P.VERTICAL?(r=this.services.cartesianScales.getMainYScale().domain(),a.x((function(t,e){return i.getDomainValue(t,e)})).y0((function(t,e){return l(t,e)})).y1((function(t,e){return h(t,e)}))):(r=this.services.cartesianScales.getMainXScale().domain(),a.x0((function(t,e){return l(t,e)})).x1((function(t,e){return h(t,e)})).y((function(t,e){return i.getDomainValue(t,e)})));var f=Ep.getProperty(this.getOptions(),"color","gradient","enabled"),p=s&&1===s.length&&f;s.length>1&&f&&console.error("Gradients can only be enabled when having 1 single dataset");var d=n.selectAll("path.area").data(s),v=Ep.getProperty(this.getOptions(),"style","prefix"),g=cw.appendOrSelect(nw(this.services.domUtils.getHolder()),"svg."+ow.prefix+"--"+v+"--chart-svg");if(d.exit().attr("opacity",0).remove(),s.length){var m=g.select("path."+this.model.getColorClassName({classNameTypes:[T.STROKE],dataGroupName:s[0].name})).node(),y=m?getComputedStyle(m,null).getPropertyValue("stroke"):null;p&&y?Sx.appendOrUpdateLinearGradient({svg:this.parent,id:s[0].name.replace(" ","")+"_"+this.gradient_id,x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:Sx.getStops(r,y)}):this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var _=this,b=d.enter().append("path");p?b.merge(d).style("fill",(function(t){return"url(#"+t.name.replace(" ","")+"_"+e.gradient_id+")"})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):(b.attr("opacity",0).merge(d).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return _.model.getFillColor(t.name)})).transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",c?1:kp.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)})),c&&b.attr("fill-opacity",kp.opacity.selected).style("stroke",(function(t){return _.model.getStrokeColor(t.name)})).style("stroke-dasharray","2, 2").attr("stroke-width","0.7px"))}},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(OS),RM=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)}}(),IM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t[0][i]!==n.datum().name?kp.opacity.unselected:kp.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",kp.opacity.selected)},e}return RM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this,i=this.getOptions(),a=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({percentage:s,groups:this.configs.groups}),c=this.services.cartesianScales.getDomainAxisPosition({datum:u[0][0]}),l=this.services.cartesianScales.getRangeAxisPosition({datum:u[0][0]}),h=this.services.cartesianScales.getScaleByPosition(l),f=n.selectAll("path.area").data(u,(function(t){return t[0][a]}));this.areaGenerator=DM().x((function(t,n){return e.services.cartesianScales.getValueThroughAxisPosition(c,t.data.sharedStackKey,n)})).y0((function(t){return h(t[0])})).y1((function(t){return h(t[1])})).curve(this.services.curves.getD3Curve()),f.exit().attr("opacity",0).remove();var p=f.enter().append("path").attr("opacity",0);p.merge(f).data(u,(function(t){return t[0][a]})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[0][a],originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(t[0][a])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",kp.opacity.selected).attr("d",this.areaGenerator)},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(OS),jM=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)}}(),NM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jM(e,t),e.prototype.getBarWidth=function(t){var e=this.getOptions();if(e.bars.width)return e.bars.width;var n=this.model.getDisplayData().length,r=this.services.cartesianScales.getMainXScale(),i=cw.getSVGElementSize(this.parent,{useAttrs:!0}).width;return r.step?Math.min(e.bars.maxWidth,r.step()/2):Math.min(e.bars.maxWidth,.25*i/n)},e.prototype.isOutsideZoomedDomain=function(t,e){var n=this.model.getDisplayData().length;if(n<=1)return!1;var r=this.model.get("zoomDomain");if(void 0!==r){var i=this.services.cartesianScales.getDomainScale();return t<i(r[0])||e>i(r[1])}return!1},e}(OS),BM=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)}}(),GM=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,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return BM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG({withinChartClip:!0}),a=this.model.getDisplayData(this.configs.groups),s=i.selectAll("path.bar").data(a,(function(t){return t[r]}));s.exit().attr("opacity",0).remove();var u=s.enter().append("path").attr("opacity",0);u.merge(s).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=e.getBarWidth(),i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0),s=e.services.cartesianScales.getRangeValue(t,n);if(!e.isOutsideZoomedDomain(i,o))return Ep.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.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("path.bar").on("mouseover",(function(e){var n=nw(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(X.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){nw(this);t.services.events.dispatchEvent(X.Bar.BAR_MOUSEMOVE,{element:nw(this),datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Bar.BAR_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(X.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(NM),VM=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)}}(),UM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.padding=5,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return VM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups),r=this.getOptions(),i=r.data.groupMapsTo;this.setGroupScale();var a=this.getContainerSVG({withinChartClip:!0}),s=bd(n,(function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]})).keys(),u=a.selectAll("g.bars").data(s,(function(t){return t}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("data-name","bars"),l=c.merge(u);l.transition(this.services.transitions.getTransition("bar-group-update-enter",t)).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===P.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"}));var h=l.selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}),(function(t){return t[i]}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").attr("opacity",0);f.merge(h).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t){var n=e.groupScale(t[i]),r=e.getBarWidth(),o=n,a=n+r,s=e.services.cartesianScales.getRangeAxisPosition({datum:t}),u=e.services.cartesianScales.getValueThroughAxisPosition(s,0),c=e.services.cartesianScales.getRangeValue(t);if(!e.isOutsideZoomedDomain(o,a))return Ep.generateSVGPathString({x0:o,x1:a,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.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("path.bar").on("mouseover",(function(e){var n=nw(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(X.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Bar.BAR_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Bar.BAR_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(X.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups);return n.filter((function(n){var r=e.services.cartesianScales.getDomainIdentifier(n);return n[r]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getGroupedData(this.configs.groups),e=this.getTotalGroupPadding();return this.getBarWidth()*t.length+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getGroupedData(this.configs.groups);if(1===t.length)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t.length-1)},e.prototype.getBarWidth=function(){var t=this.getOptions(),e=Ep.getProperty(t,"bars","width"),n=Ep.getProperty(t,"bars","maxWidth");if(null!==e&&(null===n||e<=n))return e;var r=this.model.getGroupedData(this.configs.groups),i=r.length,o=this.getTotalGroupPadding(),a=this.services.cartesianScales.getDomainScale();return Math.min(n,(a.step()-o)/i)},e.prototype.setGroupScale=function(){var t=this.model.getActiveDataGroupNames(this.configs.groups);this.groupScale=Zd().domain(t).rangeRound([0,this.getGroupWidth()])},e}(NM),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)}}(),zM=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,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return HM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,a=this.model.getStackedData({groups:this.configs.groups}),s=n.selectAll("g.bars").data(a,(function(t){return t.length>0?t[0][i]:null}));s.exit().attr("opacity",0).remove(),s.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("data-name","bars");var u=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));u.exit().remove(),u.enter().append("path").merge(u).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t,n){var i=t.data.sharedStackKey,o=e.getBarWidth(),a=e.services.cartesianScales.getDomainValue(i,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(t[0],n),c=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,s))return Math.abs(c-u)>0&&Math.abs(c-u)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===P.VERTICAL?c+=1:c-=1),Ep.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t[1]-t[0]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r,i=nw(this);i.classed("hovered",!0),i.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")),n.services.events.dispatchEvent(X.Bar.BAR_MOUSEOVER,{element:i,datum:t});var o=n.model.getDisplayData(n.configs.groups),a=o.find((function(r){var i=n.services.cartesianScales.getDomainIdentifier(r),o=n.services.cartesianScales.getRangeIdentifier(r);return r[o]===t.data[t.group]&&r[i].toString()===t.data.sharedStackKey&&r[e]===t.group}));if(void 0===a){var s=n.services.cartesianScales.getDomainIdentifier(),u=n.services.cartesianScales.getRangeIdentifier();r={},r[s]=t.data.sharedStackKey,r[u]=t.data[t.group],r[e]=t.group,a=r}n.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:i,data:[a]})})).on("mousemove",(function(t){var e=nw(this);n.services.events.dispatchEvent(X.Bar.BAR_MOUSEMOVE,{element:e,datum:t}),n.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(t){n.services.events.dispatchEvent(X.Bar.BAR_CLICK,{element:nw(this),datum:t})})).on("mouseout",(function(t){var e=nw(this);e.classed("hovered",!1),n.services.events.dispatchEvent(X.Bar.BAR_MOUSEOUT,{element:e,datum:t}),n.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(NM),FM=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)}}(),WM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.handleChartHolderOnHover=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-hover-scatter")).attr("opacity",1)},e.handleChartHolderOnMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-mouseout-scatter")).attr("opacity",0)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-hover-scatter")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-mouseout-scatter")).attr("opacity",1)},e}return FM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(X.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(X.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.filterBasedOnZoomDomain=function(t){var e=this.services.cartesianScales.getDomainIdentifier(t),n=this.model.get("zoomDomain");return void 0!==n?t.filter((function(t){return t[e].getTime()>n[0].getTime()&&t[e].getTime()<n[1].getTime()})):t},e.prototype.getScatterData=function(){var t,e=this,n=this.getOptions(),r=this.configs.stacked;if(r){var i=Object.keys(n.axes).some((function(t){return n.axes[t].percentage}));t=this.model.getStackedData({groups:this.configs.groups,percentage:i})}else t=this.model.getDisplayData(this.configs.groups).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return void 0!==t[n]&&null!==t[n]}));return this.filterBasedOnZoomDomain(t)},e.prototype.render=function(t){var e=Ep.getProperty(this.getOptions(),"points","enabled")||Ep.getProperty(this.getOptions(),"bubble","enabled");if(e){var n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales.getDomainIdentifier(),a=n.selectAll("circle.dot").data(this.getScatterData(),(function(t){return t[i]+"-"+t[o]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("circle").classed("dot",!0).attr("opacity",0),u=s.merge(a);this.styleCircles(u,t),this.addEventListeners()}},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this,r=this.configs.handleThresholds;if(!r)return!1;var i=this.services.cartesianScales,o=i.getOrientation(),a=Ep.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=Ep.flipDomainAndRangeBasedOnOrientation((function(t,e){return n.services.cartesianScales.getDomainValue(t,e)}),(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)}),o),l=c[0],h=c[1],f=l(t,e),p=h(t,e);return u&&s?p<=u.scaleValue&&f>=s.scaleValue:u?p<=u.scaleValue:s?f>=s.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.points,a=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=u.transitions,h=r.data.groupMapsTo,f=function(t,e){return c.getDomainValue(t,e)},p=function(t,e){return c.getRangeValue(t,e)},d=Ep.flipDomainAndRangeBasedOnOrientation(f,p,c.getOrientation()),v=d[0],g=d[1],m=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=c.getDomainIdentifier(t),r=n.model.getIsFilled(t[h],t[e],t,a),i=r?[T.FILL,T.STROKE]:[T.STROKE];return n.model.getColorClassName({classNameTypes:i,dataGroupName:t[h],originalClassName:"dot"})})).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){var e=c.getDomainIdentifier(t);return n.model.getIsFilled(t[h],t[e],t,a)})).classed("unfilled",(function(t){var e=c.getDomainIdentifier(t);return!n.model.getIsFilled(t[h],t[e],t,a)})).transition(l.getTransition("scatter-update-enter",e)).attr("cx",v).attr("cy",g).attr("r",r.points.radius).style("fill",(function(t){var e=c.getDomainIdentifier(t);if(n.model.getIsFilled(t[h],t[e],t,a))return n.model.getFillColor(t[h],t[e],t)})).style("stroke",(function(t){var e=c.getDomainIdentifier(t);return n.model.getStrokeColor(t[h],t[e],t)})).attr("fill-opacity",a?s:1).attr("opacity",m?0:1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){var e=c.getRangeIdentifier(t);return t[e]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=t.getOptions().data.groupMapsTo;this.parent.selectAll("circle").on("mouseover",(function(n){var r=nw(this);r.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:n[e],originalClassName:r.attr("class")})})).style("fill",(function(n){var r=t.services.cartesianScales.getDomainIdentifier(n);return t.model.getFillColor(n[e],n[r],n)})).classed("unfilled",!1),t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:r,data:[n]}),t.services.events.dispatchEvent(X.Scatter.SCATTER_MOUSEOVER,{element:r,datum:n})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Scatter.SCATTER_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Scatter.SCATTER_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(n){var r=nw(this);if(r.classed("hovered",!1),!t.configs.filled){var i=t.getOptions().points.filled,o=t.services.cartesianScales.getDomainIdentifier(n);r.classed("unfilled",!t.model.getIsFilled(n[e],n[o],n,i)).style("fill",(function(n){return i?t.model.getFillColor(n[e],n[o],n):null}))}t.services.events.dispatchEvent(X.Scatter.SCATTER_MOUSEOUT,{element:r,datum:n}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(X.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(X.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(OS),YM=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)}}(),XM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return YM(e,t),e.prototype.getRadiusScale=function(t){var e=this.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=cw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),a=i.length>0,s=a?Dd(i):[1,1];return Rg().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.bubble.radiusMapsTo,a=this.getRadiusScale(t),s=r.data.groupMapsTo;t.raise().classed("dot",!0).attr("role",o.GRAPHICS_SYMBOL).transition(this.services.transitions.getTransition("bubble-update-enter",e)).attr("cx",(function(t,e){return n.services.cartesianScales.getDomainValue(t,e)})).attr("cy",(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)})).attr("r",(function(t){return a(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t[s],originalClassName:"dot"})})).style("fill",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getFillColor(t[s],t[e],t)})).style("stroke",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getStrokeColor(t[s],t[e],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("opacity",1)},e}(WM),qM=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)}}(),ZM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?Ip.opacity.unselected:Ip.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",Ip.opacity.selected)},e}return qM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this.services,i=r.cartesianScales,a=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=Ep.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=PM().x(l).y(h).curve(a.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(t),r=t[n];return null!==r&&void 0!==r})),d=[];if(this.configs.stacked){var v=Object.keys(f.axes).some((function(t){return f.axes[t].percentage})),g=f.data.groupMapsTo,m=this.model.getStackedData({groups:this.configs.groups,percentage:v});d=m.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t),r=e.services.cartesianScales.getRangeIdentifier(t);return{name:t[0][g],data:t.map((function(t){var e;return e={},e[n]=t.data.sharedStackKey,e[g]=t[g],e[r]=t[1],e})),hidden:!Ep.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData(this.configs.groups);var y=n.selectAll("path.line").data(d,(function(t){return t.name}));y.exit().attr("opacity",0).remove();var _=y.enter().append("path").classed("line",!0).attr("opacity",0);_.merge(y).data(d,(function(t){return t.name})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.STROKE],dataGroupName:t.name,originalClassName:"line"})})).style("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data;return n.map((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return t[n]})).join(",")})).transition(this.services.transitions.getTransition("line-update-enter",t)).attr("opacity",(function(t){return t.hidden?0:1})).attr("d",(function(t){var e=t.data;return p(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(OS),KM=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)}}(),$M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.handleScatterOnHover=function(t){var n=t.detail,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").attr("stroke-width",(function(t){return t[i]!==n.datum[i]?Ip.weight.unselected:Ip.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",Ip.weight.unselected)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t[i]!==n.datum()["name"]?Ip.opacity.unselected:Ip.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",Ip.opacity.selected)},e}return KM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.model.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales,a=o.getMainXScale(),s=o.getMainYScale(),u=o.getDomainIdentifier(),c=function(t,e){return o.getDomainValue(t,e)},l=function(t,e){return o.getRangeValue(t,e)},h=o.getOrientation(),f=Ep.flipDomainAndRangeBasedOnOrientation(c,l,h),p=f[0],d=f[1],v=n.selectAll("line.line").data(this.getScatterData(),(function(t){return t[i]+"-"+t[u]}));v.exit().attr("opacity",0).remove();var g=v.enter().append("line").attr("opacity",0),m=g.merge(v).classed("line",!0).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.STROKE],dataGroupName:t[i],originalClassName:"line"})})).transition(this.services.transitions.getTransition("lollipop-line-update-enter",t)).style("stroke",(function(t){return e.model.getFillColor(t[i],t[u],t)})).attr("opacity",1);h===P.HORIZONTAL?m.attr("y1",d).attr("y2",d).attr("x1",a.range()[0]).attr("x2",(function(t,e){return p(t,e)-r.points.radius})):m.attr("x1",p).attr("x2",p).attr("y1",s.range()[0]).attr("y2",(function(t,e){return d(t,e)+r.points.radius})),this.addScatterPointEventListeners()},e.prototype.addScatterPointEventListeners=function(){this.services.events.addEventListener(X.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(X.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){this.parent.selectAll("line.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(X.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(X.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(WM),QM=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)}}(),JM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e}return QM(e,t),e.prototype.render=function(t){var e=this,n=Ep.getProperty(this.getOptions(),"points","enabled");if(n){var r=this.getContainerSVG({withinChartClip:!0}),i=this.getOptions(),a=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({groups:this.configs.groups,percentage:s}),c=r.selectAll("g.dots").data(u,(function(t){return t[0][a]}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",o.GROUP),h=l.merge(c).selectAll("circle.dot").data((function(t){return t}));h.exit().attr("opacity",0).remove();var f=h.enter().append("circle").classed("dot",!0).attr("opacity",0),p=f.merge(h).datum((function(t){var n,r=t[a],i=e.services.cartesianScales.getDomainIdentifier(t),o=e.services.cartesianScales.getRangeIdentifier(t);return n={},n[a]=r,n[i]=t["data"]["sharedStackKey"],n[o]=t[1],n}));this.styleCircles(p,t),this.addEventListeners()}},e.prototype.getTooltipData=function(t,e){var n=this,r=this.getOptions(),i=r.data.groupMapsTo,o=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),a=this.model.getStackedData({groups:this.configs.groups,percentage:o}),s=[];return a.forEach((function(r,a){r.forEach((function(r,u){var c,l=r[i],h=r["data"]["sharedStackKey"],f=r["data"][l],p=r[1],d=n.services.cartesianScales.getDomainIdentifier(r),v=n.services.cartesianScales.getRangeIdentifier(r);null!==f&&void 0!==f&&t===n.services.cartesianScales.getDomainValue(h)&&e===n.services.cartesianScales.getRangeValue(p)&&(o&&(f=n.model.getStackedData({groups:n.configs.groups})[a][u]["data"][l]),null!==f&&s.push((c={},c[i]=l,c[d]=h,c[v]=f,c)))}))})),this.model.getDisplayData(this.configs.groups).filter((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t),r=n.services.cartesianScales.getRangeIdentifier(t);return void 0!==s.find((function(n){return n[i]==t[i]&&n[e]==t[e]&&n[r]==t[r]}))}))},e}(WM);function tA(t){return t.innerRadius}function eA(t){return t.outerRadius}function nA(t){return t.startAngle}function rA(t){return t.endAngle}function iA(t){return t&&t.padAngle}function oA(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<UE))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function aA(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/VE(s*s+u*u),l=c*u,h=-c*s,f=t+l,p=e+h,d=n+l,v=r+h,g=(f+d)/2,m=(p+v)/2,y=d-f,_=v-p,b=y*y+_*_,w=i-o,O=f*v-d*p,x=(_<0?-1:1)*VE(NE(0,w*w*b-O*O)),E=(O*_-y*x)/b,S=(-O*y-_*x)/b,T=(O*_+y*x)/b,M=(-O*y+_*x)/b,A=E-g,C=S-m,P=T-g,D=M-m;return A*A+C*C>P*P+D*D&&(E=T,S=M),{cx:E,cy:S,x01:-l,y01:-h,x11:E*(i/w-1),y11:S*(i/w-1)}}var sA=function(){var t=tA,e=eA,n=p_(0),r=null,i=nA,o=rA,a=iA,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-zE,p=o.apply(this,arguments)-zE,d=RE(p-f),v=p>f;if(s||(s=u=MM()),h<l&&(c=h,h=l,l=c),h>UE)if(d>FE-UE)s.moveTo(h*jE(f),h*GE(f)),s.arc(0,0,h,f,p,!v),l>UE&&(s.moveTo(l*jE(p),l*GE(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,w=p,O=d,x=d,E=a.apply(this,arguments)/2,S=E>UE&&(r?+r.apply(this,arguments):VE(l*l+h*h)),T=BE(RE(h-l)/2,+n.apply(this,arguments)),M=T,A=T;if(S>UE){var C=YE(S/l*GE(E)),P=YE(S/h*GE(E));(O-=2*C)>UE?(C*=v?1:-1,b+=C,w-=C):(O=0,b=w=(f+p)/2),(x-=2*P)>UE?(P*=v?1:-1,y+=P,_-=P):(x=0,y=_=(f+p)/2)}var D=h*jE(y),k=h*GE(y),L=l*jE(w),R=l*GE(w);if(T>UE){var I,j=h*jE(_),N=h*GE(_),B=l*jE(b),G=l*GE(b);if(d<HE&&(I=oA(D,k,B,G,j,N,L,R))){var V=D-I[0],U=k-I[1],H=j-I[0],z=N-I[1],F=1/GE(WE((V*H+U*z)/(VE(V*V+U*U)*VE(H*H+z*z)))/2),W=VE(I[0]*I[0]+I[1]*I[1]);M=BE(T,(l-W)/(F-1)),A=BE(T,(h-W)/(F+1))}}x>UE?A>UE?(g=aA(B,G,D,k,h,A,v),m=aA(j,N,L,R,h,A,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),A<T?s.arc(g.cx,g.cy,A,IE(g.y01,g.x01),IE(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,A,IE(g.y01,g.x01),IE(g.y11,g.x11),!v),s.arc(0,0,h,IE(g.cy+g.y11,g.cx+g.x11),IE(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,A,IE(m.y11,m.x11),IE(m.y01,m.x01),!v))):(s.moveTo(D,k),s.arc(0,0,h,y,_,!v)):s.moveTo(D,k),l>UE&&O>UE?M>UE?(g=aA(L,R,j,N,l,-M,v),m=aA(D,k,B,G,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,IE(g.y01,g.x01),IE(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,IE(g.y01,g.x01),IE(g.y11,g.x11),!v),s.arc(0,0,l,IE(g.cy+g.y11,g.cx+g.x11),IE(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,IE(m.y11,m.x11),IE(m.y01,m.x01),!v))):s.arc(0,0,l,w,b,v):s.lineTo(L,R)}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-HE/2;return[jE(r)*n,GE(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:p_(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:p_(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:p_(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:p_(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:p_(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:p_(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:p_(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},uA=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},cA=function(t){return t},lA=function(){var t=cA,e=uA,n=null,r=p_(0),i=p_(FE),o=p_(0);function a(a){var s,u,c,l,h,f=a.length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(FE,Math.max(-FE,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/f,o.apply(this,arguments)),_=y*(m<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?(m-f*_)/p:0;s<f;++s,g=l)u=d[s],h=v[u],l=g+(h>0?h*c:0)+_,v[u]={data:a[u],index:s,value:h,startAngle:g,endAngle:l,padAngle:y};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:p_(+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:p_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:p_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:p_(+t),a):o},a},hA=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 fA(t,e){var n=this,r=Kv(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var pA=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,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.data[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return hA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return Np.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getDisplayData().filter((function(t){return t.value>0})),a=this.getOptions(),s=a.data.groupMapsTo,u=this.computeRadius();this.arc=sA().innerRadius(this.getInnerRadius()).outerRadius(u),this.hoverArc=sA().innerRadius(this.getInnerRadius()).outerRadius(u+Np.hoverArc.outerRadiusOffset);var c=lA().value((function(t){return t.value})).sort(null).padAngle(Np.padAngle),l=c(i).sort((function(t,e){return t.index-e.index})),h=cw.appendOrSelect(r,"g.slices").attr("role",o.GROUP).attr("data-name","slices"),f=h.selectAll("path.slice").data(l,(function(t){return t.data[s]}));f.exit().attr("opacity",0).remove();var p=f.enter().append("path").classed("slice",!0).attr("opacity",0);p.merge(f).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.data[s],originalClassName:"slice"})})).style("fill",(function(t){return n.model.getFillColor(t.data[s])})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+Ep.convertValueToPercentage(t.data.value,i)+"%"})).attrTween("d",(function(t){return fA.bind(this)(t,n.arc)}));var d=l.filter((function(t){return t.value>0})),v=cw.appendOrSelect(r,"g.labels").attr("role",o.GROUP).attr("data-name","labels"),g=v.selectAll("text.pie-label").data(d,(function(t){return t.data[s]}));g.exit().attr("opacity",0).remove();var m=g.enter().append("text").classed("pie-label",!0),y=[];m.merge(g).style("text-anchor","middle").text((function(t){return a.pie.labels.formatter?a.pie.labels.formatter(t):Ep.convertValueToPercentage(t.data.value,i)+"%"})).datum((function(t){var e=u+7,n=(t.endAngle-t.startAngle)/2+t.startAngle,r=n/Math.PI*180,i=this.getComputedTextLength();return t.textOffsetX=i/2,t.textOffsetY=r>90&&r<270?10:0,t.xPosition=(t.textOffsetX+e)*Math.sin(n),t.yPosition=(t.textOffsetY+e)*-Math.cos(n),t})).attr("transform",(function(t,e){var n=d.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<Np.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+Np.callout.offsetX+Np.callout.textMargin+t.textOffsetX,o=t.yPosition-Np.callout.offsetY,t.direction=N.RIGHT,y.push(t)):(i=t.xPosition-Np.callout.offsetX-t.textOffsetX-Np.callout.textMargin,o=t.yPosition-Np.callout.offsetY,t.direction=N.LEFT,y.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(y);var _=Ep.getProperty(a,"donut")?"donut":"pie",b=Ep.getProperty(a,_,"alignment"),w=cw.getSVGElementSize(this.getParent(),{useAttr:!0}).width,O=u+Np.xOffset;b===L.CENTER?O=w/2:b===L.RIGHT&&(O=w-u-Np.xOffset);var x=u+Np.yOffset;y.length>0&&(x+=Np.yOffsetCallout),r.attr("transform","translate("+O+", "+x+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=cw.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",o.GROUP).attr("data-name","callouts"),n=e.selectAll("g.callout").data(t);n.exit().remove();var r=n.enter().append("g").classed("callout",!0).attr("role",o.GRAPHICS_SYMBOL+" "+o.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===N.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+Np.callout.offsetX,y:n-Np.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-Np.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-Np.callout.offsetX,y:n-Np.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+Np.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return nw(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 a=r.append("line").classed("horizontal-line",!0);a.merge(e.selectAll("line.horizontal-line")).datum((function(t){return nw(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("mouseover",(function(e){var n=nw(this);n.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(X.Pie.SLICE_MOUSEOVER,{element:nw(this),datum:e});var r=t.getOptions().data.groupMapsTo;t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,items:[{label:e.data[r],value:e.data.value}]})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Pie.SLICE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Pie.SLICE_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(X.Pie.SLICE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.computeRadius=function(){var t=cw.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+Np.radiusOffset},e}(OS),dA=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)}}(),vA="4,10 8,6 12,10",gA="12,6 8,10 4,6",mA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return dA(e,t),e.prototype.init=function(){this.services.events},e.prototype.getValue=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"value"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getValueRatio=function(){var t=Ep.clamp(this.getValue(),0,100);return t/100},e.prototype.getDelta=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"delta"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getArcRatio=function(){var t=this.getOptions(),e=Ep.getProperty(t,"gauge","type"),n=e===U.FULL?1:.5;return n},e.prototype.getArcSize=function(){return this.getArcRatio()*Math.PI*2},e.prototype.getStartAngle=function(){var t=this.getArcSize();return t===2*Math.PI?0:-t/2},e.prototype.getArrow=function(t){var e=this.getOptions(),n=Ep.getProperty(e,"gauge","deltaArrow","direction");switch(n){case H.UP:return vA;case H.DOWN:return gA;default:return t>0?vA:gA}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.getOptions(),i=(r.data.groupMapsTo,this.getValue()),a=this.getValueRatio(),s=this.getArcSize(),u=this.getStartAngle(),c=a*s,l=u+c,h=u+s,f=this.computeRadius(),p=this.getInnerRadius();this.backgroundArc=sA().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=sA().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),cw.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",o.GROUP);var d=n.selectAll("path.arc-foreground").data([i]),v=d.enter().append("path");v.merge(d).attr("class",this.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return Ep.getProperty(e.getOptions(),"color","scale","value")})).attr("d",this.arc).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),this.drawValueNumber(),this.drawDelta(),d.exit().remove();var g=Ep.getProperty(r,"gauge","alignment"),m=cw.getSVGElementSize(this.getParent(),{useAttr:!0}).width,y=f;g===L.CENTER?y=m/2:g===L.RIGHT&&(y=m-f),n.attr("transform","translate("+y+", "+f+")"),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getContainerSVG(),e=this.getOptions(),n=Ep.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=Ep.getProperty(e,"gauge","valueFontSize"),s=Ep.getProperty(e,"gauge","deltaFontSize"),u=Ep.getProperty(e,"gauge","numberSpacing"),c=0;n!==U.FULL||i?n===U.SEMI&&i&&(c=-(s(o)+u)):c=s(o);var l=cw.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+c+")"),h=a(o),f=cw.appendOrSelect(l,"g.gauge-value-number"),p=Ep.getProperty(e,"gauge","numberFormatter"),d=f.selectAll("text.gauge-value-number").data([r]);d.enter().append("text").attr("class","gauge-value-number").merge(d).style("font-size",h+"px").attr("text-anchor","middle").text((function(t){return p(t)}));var v=cw.getSVGElementSize(cw.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,g=h/2,m=cw.appendOrSelect(f,"text.gauge-value-symbol").style("font-size",g+"px").attr("x",v/2).text("%"),y=cw.getSVGElementSize(m,{useBBox:!0}),_=y.width,b=y.height;m.attr("y","-"+b/2+"px"),f.attr("transform","translate(-"+_/2+", 0)")},e.prototype.drawDelta=function(){var t=this,e=this.getContainerSVG(),n=this.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?Ep.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?Ep.getProperty(n,"gauge","numberFormatter"):function(){return null},s=Ep.getProperty(n,"gauge","deltaArrow","size"),u=Ep.getProperty(n,"gauge","numberSpacing"),c=cw.appendOrSelect(e,"g.gauge-numbers"),l=cw.appendOrSelect(c,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),h=cw.appendOrSelect(l,"text.gauge-delta-number");h.data(null===r?[]:[r]),h.enter().append("text").classed("gauge-delta-number",!0).merge(h).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return a(t)+"%"}));var f=cw.getSVGElementSize(cw.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,p=Ep.getProperty(n,"gauge","deltaArrow","enabled"),d=l.selectAll("svg.gauge-delta-arrow").data(null!==r&&p?[r]:[]);d.enter().append("svg").merge(d).attr("class","gauge-delta-arrow").attr("x",-s(i)-f/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16"),cw.appendOrSelect(d,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var v=Ep.getProperty(n,"gauge","status");cw.appendOrSelect(d,"polygon.gauge-delta-arrow").attr("class",null!==v?"gauge-delta-arrow status--"+v:"").attr("points",t.getArrow(r)),d.exit().remove(),h.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=Ep.getProperty(this.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc-foreground").on("mouseover",(function(e){t.services.events.dispatchEvent(X.Gauge.ARC_MOUSEOVER,{element:nw(this),datum:e})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Gauge.ARC_MOUSEMOVE,{element:n,datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(X.Gauge.ARC_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Gauge.ARC_MOUSEOUT,{element:n,datum:e})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=Ep.getProperty(t,"gauge","type"),n=cw.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===U.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(OS),yA=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)}}(),_A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return yA(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e);var n=this;if(this.model.isDataEmpty())this.getContainerSVG().select("g.center").remove();else{var r=cw.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.getOptions(),o=this.computeRadius();cw.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(nw(this))})),cw.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(Ep.getProperty(i,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.getOptions(),n=Ep.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,e){return t+e.value}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?$v:zv;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(pA);function bA(t){return+t}var wA=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)}}(),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return wA(e,t),e.prototype.render=function(){var t=this.parent,e=t.node().parentNode,n=cw.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;t.attr("width",r).attr("height",i);var o=Ep.getProperty(this.getOptions(),"data","loading");o?this.renderSkeleton(o):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===B.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===B.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===B.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==B.DONUT)throw new Error('"'+this.configs.skeleton+'" is not a valid Skeleton type.');this.renderDonutSkeleton(t)}},e.prototype.renderGridSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawXGrid(t),this.drawYGrid(t),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.renderVertOrHorizSkeleton=function(t){var e=this.services.cartesianScales.getOrientation();this.setScales(),this.drawBackdrop(t),e===P.VERTICAL&&this.drawYGrid(t),e===P.HORIZONTAL&&this.drawXGrid(t),this.setShimmerEffect("shimmer-lines")},e.prototype.renderPieSkeleton=function(t){var e=this.computeOuterRadius(),n=0;this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.renderDonutSkeleton=function(t){var e=this.computeOuterRadius(),n=this.computeInnerRadius();this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.setScales=function(){var t=this.services.cartesianScales.getMainXScale().range(),e=this.services.cartesianScales.getMainYScale().range();this.xScale=Rg().domain([0,1]).range(t),this.yScale=Rg().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=e.node().parentNode,r=cw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;this.backdrop=cw.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",i).attr("height",o);var a=cw.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");a.attr("width","100%").attr("height","100%");var s=this.xScale.range(),u=s[0],c=(s[1],this.yScale.range()),l=(c[0],c[1]);this.backdrop.merge(a).attr("x",u).attr("y",l),a.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=Ep.getProperty(this.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*n})),o=cw.appendOrSelect(this.backdrop,"g.x.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2",e),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawYGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=Ep.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=cw.appendOrSelect(this.backdrop,"g.y.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",0).attr("x2",n).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawRing=function(t,e,n){void 0===n&&(n=!0);var r=this.parent,i=cw.getSVGElementSize(r.node().parentNode,{useAttrs:!0}),o=i.width,a=i.height,s=cw.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=Ep.getProperty(this.getOptions(),u,"alignment");cw.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=sA().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(Np.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=cw.appendOrSelect(s,"path").attr("class","skeleton-area-shape").attr("transform","translate("+h+", "+f+")").attr("d",l).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n),d=t+Np.xOffset;c===L.CENTER?d=o/2:c===L.RIGHT&&(d=o-t-Np.xOffset);var v=t+Np.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=cw.getSVGElementSize(this.parent.node().parentNode,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+Np.radiusOffset},e.prototype.computeInnerRadius=function(){return.75*this.computeOuterRadius()},e.prototype.setShimmerEffect=function(t){var e=2e3,n=1e3,r=.2,i="stop-bg-shimmer",o="stop-shimmer",a=this.parent.select(".chart-skeleton"),s=cw.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=cw.appendOrSelect(a,"defs").lower(),h=cw.appendOrSelect(l,"linearGradient").attr("id",t).attr("x1",u-3*r*s).attr("x2",c).attr("y1",0).attr("y2",0).attr("gradientUnits","userSpaceOnUse").attr("gradientTransform","translate(0, 0)"),f='\n\t\t\t<stop class="'+i+'" offset="'+u+'"></stop>\n\t\t\t<stop class="'+o+'" offset="'+(u+r)+'"></stop>\n\t\t\t<stop class="'+i+'" offset="'+(u+2*r)+'"></stop>\n\t\t';function p(){h.attr("gradientTransform","translate("+(u-3*r*s)+", 0)").transition().duration(e).delay(n).ease(bA).attr("gradientTransform","translate("+(c+3*r*s)+", 0)").on("end",p)}h.html(f),p()},e.prototype.removeSkeleton=function(){var t=this.parent.select(".chart-skeleton");t.remove()},e}(OS),xA=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)}}(),EA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return xA(e,t),e.prototype.render=function(){var e=this.parent,n=e.node().parentNode,r=cw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;e.attr("width",i).attr("height",o);var a=Ep.getProperty(this.getOptions(),"data","loading"),s=!Ep.getProperty(this.getOptions(),"grid","x","enabled")&&!Ep.getProperty(this.getOptions(),"grid","y","enabled")&&!Ep.getProperty(this.getOptions(),"axes","bottom","visible")&&!Ep.getProperty(this.getOptions(),"axes","left","visible");a&&!s?t.prototype.renderGridSkeleton.call(this,a):a&&s?this.renderSparklineSkeleton(a):this.removeSkeleton()},e.prototype.renderSparklineSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawSparkline(t),this.updateBackdropStyle(),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.drawSparkline=function(t){var e=this.backdrop.attr("width"),n=[100],r=cw.appendOrSelect(this.backdrop,"g.y.skeleton"),i=r.selectAll("line").data(n);i.enter().append("line").merge(i).attr("x1",0).attr("x2",e).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),r.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.updateBackdropStyle=function(){var t=this.parent;this.backdrop=cw.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=cw.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1),e.classed("shimmer-effect-sparkline",!0)},e}(OA);function SA(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 TA=function(){return this.eachAfter(SA)},MA=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},AA=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},CA=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},PA=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}))},DA=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},kA=function(t){var e=this,n=LA(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 LA(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 RA=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},IA=function(){var t=[];return this.each((function(e){t.push(e)})),t},jA=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},NA=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function BA(t,e){var n,r,i,o,a,s=new zA(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=VA);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 zA(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(HA)}function GA(){return BA(this).eachBefore(UA)}function VA(t){return t.children}function UA(t){t.data=t.data.data}function HA(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function zA(t){this.data=t,this.depth=this.height=0,this.parent=null}zA.prototype=BA.prototype={constructor:zA,count:TA,each:MA,eachAfter:CA,eachBefore:AA,sum:PA,sort:DA,path:kA,ancestors:RA,descendants:IA,leaves:jA,links:NA,copy:GA};var FA=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)},WA=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},YA=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},XA=(1+Math.sqrt(5))/2;function qA(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,g,m=[],y=e.children,_=0,b=0,w=y.length,O=e.value;while(_<w){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<w);for(h=f=l,v=Math.max(c/u,u/c)/(O*t),g=l*l*v,d=Math.max(f/g,g/h);b<w;++b){if(l+=s=y[b].value,s<h&&(h=s),s>f&&(f=s),g=l*l*v,p=Math.max(f/g,g/h),p>d){l-=s;break}d=p}m.push(a={value:l,dice:u<c,children:y.slice(_,b)}),a.dice?WA(a,n,r,i,O?r+=c*l/O:o):YA(a,n,r,O?n+=u*l/O:i,o),O-=l,_=b}return m}var ZA=function t(e){function n(t,n,r,i,o){qA(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(XA);function KA(t){if("function"!==typeof t)throw new Error;return t}function $A(){return 0}var QA=function(t){return function(){return t}},JA=function(){var t=ZA,e=!1,n=1,r=1,i=[0],o=$A,a=$A,s=$A,u=$A,c=$A;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(FA),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=KA(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:QA(+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:QA(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:QA(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:QA(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:QA(+t),l):c},l},tC="#000000",eC="#ffffff",nC="#f1c21b",rC=nC,iC="#ff832b",oC=iC,aC="#fff1f1",sC="#ffd7d9",uC="#ffb3b8",cC="#ff8389",lC="#fa4d56",hC="#da1e28",fC="#a2191f",pC="#750e13",dC="#520408",vC="#2d0709",gC={10:aC,20:sC,30:uC,40:cC,50:lC,60:hC,70:fC,80:pC,90:dC,100:vC},mC="#fff0f7",yC="#ffd6e8",_C="#ffafd2",bC="#ff7eb6",wC="#ee5396",OC="#d12771",xC="#9f1853",EC="#740937",SC="#510224",TC="#2a0a18",MC={10:mC,20:yC,30:_C,40:bC,50:wC,60:OC,70:xC,80:EC,90:SC,100:TC},AC="#f6f2ff",CC="#e8daff",PC="#d4bbff",DC="#be95ff",kC="#a56eff",LC="#8a3ffc",RC="#6929c4",IC="#491d8b",jC="#31135e",NC="#1c0f30",BC={10:AC,20:CC,30:PC,40:DC,50:kC,60:LC,70:RC,80:IC,90:jC,100:NC},GC="#edf5ff",VC="#d0e2ff",UC="#a6c8ff",HC="#78a9ff",zC="#4589ff",FC="#0f62fe",WC="#0043ce",YC="#002d9c",XC="#001d6c",qC="#001141",ZC={10:GC,20:VC,30:UC,40:HC,50:zC,60:FC,70:WC,80:YC,90:XC,100:qC},KC="#e5f6ff",$C="#bae6ff",QC="#82cfff",JC="#33b1ff",tP="#1192e8",eP="#0072c3",nP="#00539a",rP="#003a6d",iP="#012749",oP="#061727",aP={10:KC,20:$C,30:QC,40:JC,50:tP,60:eP,70:nP,80:rP,90:iP,100:oP},sP="#d9fbfb",uP="#9ef0f0",cP="#3ddbd9",lP="#08bdba",hP="#009d9a",fP="#007d79",pP="#005d5d",dP="#004144",vP="#022b30",gP="#081a1c",mP={10:sP,20:uP,30:cP,40:lP,50:hP,60:fP,70:pP,80:dP,90:vP,100:gP},yP="#defbe6",_P="#a7f0ba",bP="#6fdc8c",wP="#42be65",OP="#24a148",xP="#198038",EP="#0e6027",SP="#044317",TP="#022d0d",MP="#071908",AP={10:yP,20:_P,30:bP,40:wP,50:OP,60:xP,70:EP,80:SP,90:TP,100:MP},CP="#f2f4f8",PP="#dde1e6",DP="#c1c7cd",kP="#a2a9b0",LP="#878d96",RP="#697077",IP="#4d5358",jP="#343a3f",NP="#21272a",BP="#121619",GP={10:CP,20:PP,30:DP,40:kP,50:LP,60:RP,70:IP,80:jP,90:NP,100:BP},VP="#f4f4f4",UP="#e0e0e0",HP="#c6c6c6",zP="#a8a8a8",FP="#8d8d8d",WP="#6f6f6f",YP="#525252",XP="#393939",qP="#262626",ZP="#161616",KP={10:VP,20:UP,30:HP,40:zP,50:FP,60:WP,70:YP,80:XP,90:qP,100:ZP},$P="#f7f3f2",QP="#e5e0df",JP="#cac5c4",tD="#ada8a8",eD="#8f8b8b",nD="#736f6f",rD="#565151",iD="#3c3838",oD="#272525",aD="#171414",sD={10:$P,20:QP,30:JP,40:tD,50:eD,60:nD,70:rD,80:iD,90:oD,100:aD},uD="#fdd13a",cD={black:{100:tC},blue:ZC,coolGray:GP,cyan:aP,gray:KP,green:AP,magenta:MC,orange:{40:oC},purple:BC,red:gC,teal:mP,warmGray:sD,white:{0:eC},yellow:{20:uD,30:rC}};var lD=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)}}(),hD=function(t){if(!t)return null;for(var e=0,n=Object.keys(cD);e<n.length;e++)for(var r=n[e],i=cD[r],o=0,a=Object.keys(i);o<a.length;o++){var s=a[o],u=i[s];if(u===t)return s}return null},fD=function(){var t,e=nw(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=vv(n);if(r&&(t=hD(r?r.hex():null)),null===t||void 0===t){var i=Tv(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},pD=0,dD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-hover-treemap")).attr("opacity",(function(t){return t.parent.data.name===n.datum()["name"]?1:.3}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-mouseout-treemap")).attr("opacity",1)},e}return lD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.model.getData(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=Ep.getProperty(window,"location"),s=cw.getSVGElementSize(this.parent,{useAttrs:!0}),u=s.width,c=s.height,l=BA({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(Hd(r,(function(t){return Hd(t.children,(function(t){return t.value}))})),JA().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=this.services.transitions,p=n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name}));p.exit().attr("opacity",0).remove();var d=p.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return pD++})),v=d.merge(p);v.attr("data-name","leaf").transition(f.getTransition("treemap-group-update",t)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var g=v.selectAll("rect.leaf").data((function(t){return[t]}));g.exit().attr("width",0).attr("height",0).remove();var m=g.enter().append("rect").classed("leaf",!0);m.merge(g).attr("width",0).attr("height",0).attr("id",(function(){var t=nw(this.parentNode).attr("data-uid");return o.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition(this.services.transitions.getTransition("treemap-leaf-update-enter",t)).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).style("fill",(function(t){while(t.depth>1)t=t.parent;return e.model.getFillColor(t.data.name)})),v.selectAll("clipPath").data((function(t){return!0!==t.data.showLabel?[]:[1]}),(function(t){return t})).join((function(t){t.append("clipPath").attr("id",(function(){var t=nw(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=nw(this.parentNode.parentNode).attr("data-uid"),e=o.style.prefix+"-leaf-"+t;return new URL("#"+e,a)+""}))}),(function(t){return null}),(function(t){return t.remove()})),v.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=Tv(e.model.getFillColor(n.data.name));return[{text:t.data.name,color:r.l<.5?"white":"black"}]}),(function(t){return t})).join((function(t){var e=t.append("text").text((function(t){return t.text})).style("fill",fD).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=nw(this.parentNode).attr("data-uid"),e=o.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,a)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",fD)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e){var n=nw(this),r=getComputedStyle(this,null).getPropertyValue("fill"),i=e;while(i.depth>1)i=i.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).style("fill",(function(e){var n=t.model.getFillColor(e.parent.data.name);return n&&(r=n),vv(r).darker(.7).toString()})),t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:n,items:[{color:r,label:i.data.name,bold:!0},{label:e.data.name,value:e.data.value}]}),t.services.events.dispatchEvent(X.Treemap.LEAF_MOUSEOVER,{element:n,datum:e})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Treemap.LEAF_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Treemap.LEAF_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1);var r=e;while(r.depth>1)r=r.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).style("fill",(function(e){return t.model.getFillColor(e.parent.data.name)})),t.services.events.dispatchEvent(X.Treemap.LEAF_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE,{hoveredElement:n})}))},e}(OS);function vD(t){var e=gD(yD(t),360);return mD(e,[0,10])||mD(e,[350,0])?{textAnchor:G.START,dominantBaseline:V.MIDDLE}:mD(e,[10,80])?{textAnchor:G.START,dominantBaseline:V.HANGING}:mD(e,[80,100])?{textAnchor:G.MIDDLE,dominantBaseline:V.HANGING}:mD(e,[100,170])?{textAnchor:G.END,dominantBaseline:V.HANGING}:mD(e,[170,190])?{textAnchor:G.END,dominantBaseline:V.MIDDLE}:mD(e,[190,260])?{textAnchor:G.END,dominantBaseline:V.BASELINE}:mD(e,[260,280])?{textAnchor:G.MIDDLE,dominantBaseline:V.BASELINE}:{textAnchor:G.START,dominantBaseline:V.BASELINE}}function gD(t,e){return(t%e+e)%e}function mD(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function yD(t){return t*(180/Math.PI)}function _D(t,e,n){void 0===n&&(n={x:0,y:0});var r=e*Math.cos(t)+n.x,i=e*Math.sin(t)+n.y;return{x:r,y:i}}function bD(t,e){return e*Math.sin(t-Math.PI/2)}var wD=xD(dE);function OD(t){this._curve=t}function xD(t){function e(e){return new OD(t(e))}return e._curve=t,e}function ED(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(xD(t)):e()._curve},t}OD.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 SD,TD=function(){return ED(PM().curve(wD))},MD=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)}}(),AD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.getLabelDimensions=function(t){var n=cw.appendOrSelect(e.getContainerSVG(),"g.tmp-tick"),r=cw.appendOrSelect(n,"text").text(t),i=cw.getSVGElementSize(r.node(),{useBBox:!0}),o=i.width,a=i.height;return n.remove(),{width:o,height:a}},e.normalizeFlatData=function(t){var n=e.getOptions(),r=Ep.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=Ep.getProperty(n,"data","groupMapsTo"),s=Ep.flatMapDeep(e.uniqueKeys.map((function(t){return e.uniqueGroups.map((function(e){var n;return n={},n[i]=t,n[a]=e,n[o]=null,n}))})));return Ep.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=Ep.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=Ep.getProperty(n,"data","groupMapsTo");return t.map((function(t){var n=t.name,r=t.data,s=e.uniqueKeys.map((function(t){var e;return e={},e[a]=n,e[i]=t,e[o]=null,e}));return{name:n,data:Ep.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-hover-blob")).style("fill-opacity",(function(t){return t.name!==n.datum().name?Bp.opacity.unselected:Bp.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?Bp.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",Bp.opacity.selected).style("stroke-opacity",1)},e}return MD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=cw.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,a=r.height,s=this.model.getData(),u=this.model.getDisplayData(),c=this.model.getGroupedData(),l=this.getOptions(),h=Ep.getProperty(l,"radar","axes"),f=h.angle,p=h.value,d=Ep.getProperty(l,"data","groupMapsTo"),v=Bp,g=v.xLabelPadding,m=v.yLabelPadding,y=v.yTicksNumber,_=v.minRange,b=v.xAxisRectHeight;this.uniqueKeys=Array.from(new Set(s.map((function(t){return t[f]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[d]})))),this.displayDataNormalized=this.normalizeFlatData(u),this.groupedDataNormalized=this.normalizeGroupedData(c);var w=this.getLabelDimensions(this.uniqueKeys[0]).height,O=2*(w+m),x=Math.min(i,a),E=x-O,S=E/2;if(!(S<=0)){var M=Zd().domain(this.displayDataNormalized.map((function(t){return t[f]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),A=Rg().domain([0,Vd(this.displayDataNormalized.map((function(t){return t[p]})))]).range([_,S]).nice(y),C=A.ticks(y),P=function(t){return e.model.getFillColor(t)},D=TD().angle((function(t){return M(t[f])+Math.PI/2})).radius((function(t){return A(t[p])})).curve(mE),k=TD().angle(D.angle()).radius((function(t){return SD?SD(t[p]):_})).curve(D.curve()),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=bD(M(t),S);return n+r})),R=Vd(L),I={x:R+g,y:a/2},j=cw.appendOrSelect(n,"g.y-axes").attr("role",o.GROUP),N=j.selectAll("path").data(C,(function(t){return t})),B=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[f]=e,n[p]=t,n}))};N.join((function(n){return n.append("path").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+I.x+", "+I.y+")").attr("fill","none").attr("d",(function(t){return k(B(t))})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return D(B(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_update",t)).attr("opacity",1).attr("transform","translate("+I.x+", "+I.y+")").attr("d",(function(t){return D(B(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_exit",t)).attr("d",(function(t){return D(B(t))})).attr("opacity",0).remove()}))}));var G=cw.appendOrSelect(n,"g.x-axes").attr("role",o.GROUP),V=G.selectAll("line").data(this.uniqueKeys,(function(t){return t}));V.join((function(n){return n.append("line").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+Ep.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return _D(M(t),0,I).x})).attr("y1",(function(t){return _D(M(t),0,I).y})).attr("x2",(function(t){return _D(M(t),0,I).x})).attr("y2",(function(t){return _D(M(t),0,I).y})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_enter",t)).attr("opacity",1).attr("x1",(function(t){return _D(M(t),A.range()[0],I).x})).attr("y1",(function(t){return _D(M(t),A.range()[0],I).y})).attr("x2",(function(t){return _D(M(t),A.range()[1],I).x})).attr("y2",(function(t){return _D(M(t),A.range()[1],I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_update",t)).attr("opacity",1).attr("x1",(function(t){return _D(M(t),A.range()[0],I).x})).attr("y1",(function(t){return _D(M(t),A.range()[0],I).y})).attr("x2",(function(t){return _D(M(t),A.range()[1],I).x})).attr("y2",(function(t){return _D(M(t),A.range()[1],I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_exit",t)).attr("opacity",0).remove()}))}));var U=cw.appendOrSelect(n,"g.x-labels").attr("role",o.GROUP),H=U.selectAll("text").data(this.uniqueKeys);H.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return _D(M(t),A.range()[1]+g,I).x})).attr("y",(function(t){return _D(M(t),A.range()[1]+g,I).y})).style("text-anchor",(function(t){return vD(M(t)).textAnchor})).style("dominant-baseline",(function(t){return vD(M(t)).dominantBaseline})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_update",t)).attr("opacity",1).attr("x",(function(t){return _D(M(t),A.range()[1]+g,I).x})).attr("y",(function(t){return _D(M(t),A.range()[1]+g,I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_exit",t)).attr("opacity",0).remove()}))}));var z=cw.appendOrSelect(n,"g.blobs").attr("role",o.GROUP),F=z.selectAll("path").data(this.groupedDataNormalized,(function(t){return t.name}));F.join((function(n){return n.append("path").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+I.x+", "+I.y+")").style("fill",(function(t){return P(t.name)})).style("fill-opacity",Bp.opacity.selected).style("stroke",(function(t){return P(t.name)})).attr("d",(function(t){return k(t.data)})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_enter",t)).attr("opacity",1).attr("d",(function(t){return D(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).style("fill",(function(t){return P(t.name)})).style("stroke",(function(t){return P(t.name)})),n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_update",t)).attr("opacity",1).attr("transform","translate("+I.x+", "+I.y+")").attr("d",(function(t){return D(t.data)}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_exit",t)).attr("d",(function(t){return D(t.data)})).attr("opacity",0).remove()}))}));var W=cw.appendOrSelect(n,"g.dots").attr("role",o.GROUP),Y=W.selectAll("circle").data(this.displayDataNormalized);Y.join((function(t){return t.append("circle").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[d],originalClassName:Ep.kebabCase(t[f])})})).attr("cx",(function(t){return _D(M(t[f]),A(t[p]),I).x})).attr("cy",(function(t){return _D(M(t[f]),A(t[p]),I).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return P(t[d])}));var X=cw.appendOrSelect(n,"g.x-axes-rect").attr("role",o.GROUP),q=X.selectAll("rect").data(this.uniqueKeys);q.join((function(t){return t.append("rect").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("x",I.x).attr("y",I.y-b/2).attr("width",A.range()[1]).attr("height",b).style("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+yD(M(t))+", "+I.x+", "+I.y+")"}));var Z=cw.appendOrSelect(n,"g.y-labels").attr("role",o.GROUP),K=Z.selectAll("text").data(Dd(C));K.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return _D(-Math.PI/2,A(t),I).x+m})).attr("y",(function(t){return _D(-Math.PI/2,A(t),I).y})).style("text-anchor","start").style("dominant-baseline","middle").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_update",t)).text((function(t){return t})).attr("opacity",1).attr("x",(function(t){return _D(-Math.PI/2,A(t),I).x+m})).attr("y",(function(t){return _D(-Math.PI/2,A(t),I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_exit",t)).attr("opacity",0).remove()}))}));var $=Ep.getProperty(l,"radar","alignment"),Q=cw.getAlignmentOffset($,n,this.getParent());n.attr("transform","translate("+Q+", 0)"),this.addEventListeners(),SD=A}},e.prototype.destroy=function(){this.parent.selectAll(".x-axes-rect > rect").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(X.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(X.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=Ep.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n){var r=nw(this);t.services.events.dispatchEvent(X.Radar.X_AXIS_MOUSEOVER,{element:r,datum:n});var i=t.parent.select(".x-axes .x-axis-"+Ep.kebabCase(n)),o=t.parent.selectAll(".dots circle."+Ep.kebabCase(n));i.classed("hovered",!0).attr("stroke-dasharray","4 4"),o.classed("hovered",!0).attr("opacity",1).attr("r",Bp.dotsRadius);var a=t.displayDataNormalized.filter((function(t){return t[e]===n})),s=t.getOptions(),u=s.data.groupMapsTo,c=Ep.getProperty(s,"radar","axes","value");t.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:r,items:a.filter((function(t){return"number"===typeof t[c]})).map((function(e){return{label:e[u],value:e[c],color:t.model.getFillColor(e[u]),class:t.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:e[u]})}}))})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(X.Radar.X_AXIS_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(X.Radar.X_AXIS_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this),r=t.parent.select(".x-axes .x-axis-"+Ep.kebabCase(e)),i=t.parent.selectAll(".dots circle."+Ep.kebabCase(e));r.classed("hovered",!1).attr("stroke-dasharray","0"),i.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(X.Radar.X_AXIS_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(X.Tooltip.HIDE)}))},e}(OS),CD=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)}}(),PD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return CD(e,t),e.prototype.render=function(){cw.appendOrSelect(this.getContainerSVG(),"rect").attr("x",0).attr("y",0).attr("width",this.configs.size||Gp.default.size).attr("height",this.configs.size||Gp.default.size).attr("opacity",0)},e}(OS),DD=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)}}(),kD=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===I.ROW_REVERSE||a.configs.direction===I.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return DD(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=Ep.getProperty(t,"data","growth","x");return e===j.PREFERRED||e===j.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=Ep.getProperty(t,"data","growth","x");return e===j.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=cw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=BA({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===I.ROW||this.configs.direction===I.ROW_REVERSE?WA:YA;JA().tile(s).size([i,o])(a);var u=this.configs.direction===I.ROW||this.configs.direction===I.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(nw(n));var i=Ep.getProperty(e,"data","growth","x");i!==j.PREFERRED&&i!==j.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=Ep.getProperty(t,"data","growth","x"),n=cw.getSVGElementSize(nw(this),{useBBox:!0});if("legend"===t.data.id){var r=cw.getSVGElementSize(nw(this),{useAttrs:!0});r.height<40&&(n.height=r.height)}if(e===j.PREFERRED){var a=u?n.width:n.height,s=u?i:o;t.data.size=a/s*100}})),c.exit().remove(),this.children.filter((function(t){var e=Ep.getProperty(t,"growth","x");return e===j.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=BA({children:this.children}).sum((function(t){return t.size})),JA().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=Ep.getProperty(e,"data","growth","x");r===j.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}(OS),LD=Array.prototype.slice,RD=function(t){return t},ID=1,jD=2,ND=3,BD=4,GD=1e-6;function VD(t){return"translate("+(t+.5)+",0)"}function UD(t){return"translate(0,"+(t+.5)+")"}function HD(t){return function(e){return+t(e)}}function zD(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function FD(){return!this.__axis}function WD(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===ID||t===BD?-1:1,c=t===BD||t===jD?"x":"y",l=t===ID||t===ND?VD:UD;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):RD:i,d=Math.max(o,0)+s,v=e.range(),g=+v[0]+.5,m=+v[v.length-1]+.5,y=(e.bandwidth?zD:HD)(e.copy()),_=h.selection?h.selection():h,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(f,e).order(),O=w.exit(),x=w.enter().append("g").attr("class","tick"),E=w.select("line"),S=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(x),E=E.merge(x.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),S=S.merge(x.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===ID?"0em":t===ND?"0.71em":"0.32em")),h!==_&&(b=b.transition(h),w=w.transition(h),E=E.transition(h),S=S.transition(h),O=O.transition(h).attr("opacity",GD).attr("transform",(function(t){return isFinite(t=y(t))?l(t):this.getAttribute("transform")})),x.attr("opacity",GD).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:y(t))}))),O.remove(),b.attr("d",t===BD||t==jD?a?"M"+u*a+","+g+"H0.5V"+m+"H"+u*a:"M0.5,"+g+"V"+m:a?"M"+g+","+u*a+"V0.5H"+m+"V"+u*a:"M"+g+",0.5H"+m),w.attr("opacity",1).attr("transform",(function(t){return l(y(t))})),E.attr(c+"2",u*o),S.attr(c,u*d).text(p),_.filter(FD).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===jD?"start":t===BD?"end":"middle"),_.each((function(){this.__axis=y}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=LD.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:LD.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:LD.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 YD(t){return WD(ID,t)}function XD(t){return WD(jD,t)}function qD(t){return WD(ND,t)}function ZD(t){return WD(BD,t)}var KD=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)}}(),$D=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 KD(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,i=this.getOptions(),a=Ep.getProperty(i,"axes",r,"visible"),s=this.getContainerSVG(),u=cw.getSVGElementSize(this.parent,{useAttrs:!0}),c=u.width,l=u.height,h=cw.appendOrSelect(s,"g.axis."+r);r===M.BOTTOM||r===M.TOP?(e=this.configs.axes[M.LEFT]?this.margins.left:0,n=this.configs.axes[M.RIGHT]?c-this.margins.right:c):(e=l-this.margins.bottom,n=this.margins.top);var f,p=this.services.cartesianScales.getScaleByPosition(r);switch(this.scaleType===D.LABELS?p.rangeRound([e,n]):p.range([e,n]),r){case M.LEFT:f=ZD;break;case M.BOTTOM:f=qD;break;case M.RIGHT:f=XD;break;case M.TOP:f=YD;break}h.attr("aria-label",r+" axis");var d=!h.select("g.ticks").empty(),v=cw.appendOrSelect(h,"g.ticks");d||(v.attr("role",o.GRAPHICS_OBJECT+" "+o.GROUP),v.attr("aria-label",r+" ticks"));var g=cw.appendOrSelect(h,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+r+" ticks"),m=Ep.getProperty(i,"axes",r),y=this.scaleType===D.TIME||m.scaleType===D.TIME,_=r===M.LEFT||r===M.RIGHT,b=this.model.get("zoomDomain");if(b&&y&&!_&&p.domain(b),a){var w=Ep.getProperty(m,"scaleType"),O=Ep.getProperty(i,"data","loading"),x=Ep.getProperty(m,"ticks","number"),E=Ep.getProperty(m,"ticks","values"),S=Ep.getProperty(m,"truncation","type"),T=Ep.getProperty(m,"truncation","threshold"),A=Ep.getProperty(m,"truncation","numCharacter"),P=null!==x,k=Ep.getProperty(i,"timeScale"),L=cw.appendOrSelect(g,"g.tick"),R=cw.appendOrSelect(L,"text").text("0"),I=cw.getSVGElementSize(R.node(),{useBBox:!0}).height;L.remove();var j,N=this.scaleType||m.scaleType||D.LINEAR,B=f(p).tickSizeOuter(0);if(p.ticks){var G=void 0;if(P?G=x:(G=Lp.ticks.number,_&&(G=this.getNumberOfFittingTicks(l,I,Lp.ticks.verticalSpaceRatio))),1===p.ticks().length&&0===p.ticks()[0]&&(G=0),B.ticks(G),y)if(p.ticks(G).length){var V=Ep.getProperty(i,"timeScale","addSpaceOnEdges"),U=Ep.getProperty(i,"axes",r,"domain"),H=void 0,z=p.copy();V&&!U&&z.nice(G),H=z.ticks(G),V&&H.length>2&&!U&&(H.splice(H.length-1,1),H.splice(0,1)),B.tickValues(H)}else B.tickValues([])}var W=Ep.getProperty(m,"ticks","formatter");if(y){var Y=sM(B.tickValues());j=null===W?function(t,e){return rM(t,e,Y,k)}:function(t,e){var n=rM(t,e,Y,k);return W(t,e,n)}}else null===W?N===D.LINEAR&&(j=function(t){return t.toLocaleString()}):j=W;B.tickFormat(j);var X,q=this.services.cartesianScales.getScaleByPosition(r).domain(),Z=q[0],K=q[1];if(E){if(y)E.forEach((function(t,e){void 0===t.getTime&&(E[e]=new Date(t))})),X=E.filter((function(t){var e=t.getTime();return e>=new Date(Z).getTime()&&e<=new Date(K).getTime()}));else if(w===D.LABELS){var $=this.services.cartesianScales.getScaleByPosition(r).domain();X=E.filter((function(t){return $.includes(t)}))}else X=E.filter((function(t){return t>=Z&&t<=K}));B.tickValues(X)}switch(r){case M.LEFT:v.attr("transform","translate("+this.margins.left+", 0)");break;case M.BOTTOM:v.attr("transform","translate(0, "+(l-this.margins.bottom)+")");break;case M.RIGHT:v.attr("transform","translate("+(c-this.margins.right)+", 0)");break;case M.TOP:v.attr("transform","translate(0, "+this.margins.top+")");break}var Q=this.model.isDataEmpty();if(m.title){var J=cw.appendOrSelect(h,"text.axis-title").html(Q||O?"":m.title);switch(r){case M.LEFT:J.attr("transform","rotate(-90)").attr("y",0).attr("x",-p.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case M.BOTTOM:J.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+l+")").style("text-anchor","middle");break;case M.RIGHT:J.attr("transform","rotate(90)").attr("y",-c).attr("x",p.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case M.TOP:var tt=cw.getSVGElementSize(J,{useBBox:!0}).height;J.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+tt/2+")").style("text-anchor","middle");break}}if(y){var et=sM(B.tickValues()),nt=k.showDayName,rt=v;t&&(v=v.transition(this.services.transitions.getTransition("axis-update",t))),v=v.call(B);var it=rt.selectAll(".tick").data(B.tickValues(),p).order().select("text");it.style("font-weight",(function(t,e){return nM(t,e,et,nt)?"bold":"normal"}))}else v=t&&d?v.transition(this.services.transitions.getTransition("axis-update")).call(B):v.call(B);if(g.call(B),r===M.BOTTOM||r===M.TOP){var ot=!1,at=Ep.getProperty(m,"ticks","rotation");if(at===F.ALWAYS)ot=!0;else if(at===F.NEVER)ot=!1;else if(!at||at===F.AUTO)if(p.step){var st=g.selectAll("g.tick text").nodes();ot=st.some((function(t){return cw.getSVGElementSize(t,{useBBox:!0}).width>=p.step()}))}else{var ut=Ep.getProperty(m,"ticks","rotateIfSmallerThan")||Lp.ticks.rotateIfSmallerThan,ct=y?B.tickValues().length:p.ticks().length,lt=c/ct/2;ot=y?lt<2*ut:lt<ut}ot?(P||(B.ticks(this.getNumberOfFittingTicks(c,I,Lp.ticks.horizontalSpaceRatio)),g.call(B),v.call(B)),h.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",r===M.TOP?"start":"end")):h.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(O?h.attr("opacity",0):h.attr("opacity",1),v.selectAll("g.tick").attr("aria-label",(function(t){return t})),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),S!==C.NONE&&w===D.LABELS&&!E){var ht=this.services.cartesianScales.getScaleDomain(r);if(ht.length>0){var ft=s.select("g.axis."+r+" g.ticks g.tick").html();h.selectAll("g.ticks g.tick").html(ft),h.selectAll("g.tick text").data(ht).text((function(t){return t.length>T?Ep.truncateLabel(t,S,A):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(ht).text((function(t){return t.length>T?Ep.truncateLabel(t,S,A):t})),h.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),h.selectAll("g.tick text").data(ht)}}this.addEventListeners()}else v.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getContainerSVG(),e=this.configs.position,n=cw.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=Ep.getProperty(r,"axes",e),o=Ep.getProperty(i,"scaleType"),a=Ep.getProperty(i,"truncation","threshold"),s=(this.scaleType===D.TIME||(i.scaleType,D.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t){s.services.events.dispatchEvent(X.Axis.LABEL_MOUSEOVER,{element:nw(this),datum:t}),o===D.LABELS&&t.length>a&&s.services.events.dispatchEvent(X.Tooltip.SHOW,{hoveredElement:nw(this),content:t})})).on("mousemove",(function(t){s.services.events.dispatchEvent(X.Axis.LABEL_MOUSEMOVE,{element:nw(this),datum:t}),o===D.LABELS&&t.length>a&&s.services.events.dispatchEvent(X.Tooltip.MOVE)})).on("click",(function(t){s.services.events.dispatchEvent(X.Axis.LABEL_CLICK,{element:nw(this),datum:t})})).on("mouseout",(function(t){s.services.events.dispatchEvent(X.Axis.LABEL_MOUSEOUT,{element:nw(this),datum:t}),o===D.LABELS&&s.services.events.dispatchEvent(X.Tooltip.HIDE)}))},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.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return Ep.clamp(r,2,Lp.ticks.number)},e.prototype.destroy=function(){var t=this.getContainerSVG(),e=this.configs.position,n=cw.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(OS),QD=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)}}(),JD=function(){return JD=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},JD.apply(this,arguments)},tk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return QD(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(M),i=Ep.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[M[t]];e&&(n[M[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=M[t];if(e.configs.axes[n]&&!e.children[n]){var r=new $D(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(n){var r,i=e.children[n],a=i.configs.position,s=i.getInvisibleAxisRef(),u=cw.getSVGElementSize(s,{useBBox:!0}),c=u.width,l=u.height;switch(i.getTitleRef().empty()?r=0:(r=cw.getSVGElementSize(i.getTitleRef(),{useBBox:!0}).height,a!==M.LEFT&&a!==M.RIGHT||(r+=5)),a){case M.TOP:o.top=l+r;break;case M.BOTTOM:o.bottom=l+r;break;case M.LEFT:o.left=c+r;break;case M.RIGHT:o.right=c+r;break}e.addAxisThresholds(t,a)}));var a=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));a&&(this.margins=Object.assign(this.margins,o),this.model.set({axesMargins:this.margins},{skipUpdate:!0}),this.services.events.dispatchEvent(X.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e.prototype.addAxisThresholds=function(t,e){var n=this,r=Ep.getProperty(this.getOptions(),"axes",e),i=r.thresholds;i&&(i.forEach((function(t,r){var i=new fM(n.model,n.services,JD(JD({},t),{axisPosition:e,index:r}));n.thresholds.push(i)})),this.thresholds.forEach((function(e){e.setParent(n.parent),e.render(t)})))},e}(OS);var ek=function(){vp.preventDefault(),vp.stopImmediatePropagation()},nk=function(t){var e=t.document.documentElement,n=nw(t).on("dragstart.drag",ek,!0);"onselectstart"in e?n.on("selectstart.drag",ek,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function rk(t,e){var n=t.document.documentElement,r=nw(t).on("dragstart.drag",null);e&&(r.on("click.drag",ek,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var ik=function(t,e,n){arguments.length<3&&(n=e,e=Sp().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return Tp(t,r);return null},ok=function(t){return function(){return t}},ak=function(t,e,n){this.target=t,this.type=e,this.selection=n};function sk(){vp.stopImmediatePropagation()}var uk=function(){vp.preventDefault(),vp.stopImmediatePropagation()},ck={name:"drag"},lk={name:"space"},hk={name:"handle"},fk={name:"center"};function pk(t){return[+t[0],+t[1]]}function dk(t){return[pk(t[0]),pk(t[1])]}function vk(t){return function(e){return ik(e,vp.touches,t)}}var gk={name:"x",handles:["w","e"].map(xk),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},mk={name:"y",handles:["n","s"].map(xk),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},yk=(["n","w","e","s","nw","ne","sw","se"].map(xk),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),_k={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},bk={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wk={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ok={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function xk(t){return{type:t}}function Ek(){return!vp.ctrlKey&&!vp.button}function Sk(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Tk(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mk(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function Ak(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ck(){return Pk(gk)}function Pk(t){var e,n=Sk,r=Ek,i=Tk,o=!0,a=bw("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([xk("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yk.overlay).merge(n).each((function(){var t=Mk(this).extent;nw(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([xk("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yk.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return yk[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=nw(this),e=Mk(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){return!n&&t.__brush.emitter||new h(t,e)}function h(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if((!e||vp.touches)&&r.apply(this,arguments)){var n,i,a,s,u,h,f,p,d,v,g,m=this,y=vp.target.__data__.type,_="selection"===(o&&vp.metaKey?y="overlay":y)?ck:o&&vp.altKey?fk:hk,b=t===mk?null:wk[y],w=t===gk?null:Ok[y],O=Mk(m),x=O.extent,E=O.selection,S=x[0][0],T=x[0][1],M=x[1][0],A=x[1][1],C=0,P=0,D=b&&w&&o&&vp.shiftKey,k=vp.touches?vk(vp.changedTouches[0].identifier):Mp,L=k(m),R=L,I=l(m,arguments,!0).beforestart();"overlay"===y?(E&&(d=!0),O.selection=E=[[n=t===mk?S:L[0],a=t===gk?T:L[1]],[u=t===mk?M:n,f=t===gk?A:a]]):(n=E[0][0],a=E[0][1],u=E[1][0],f=E[1][1]),i=n,s=a,h=u,p=f;var j=nw(m).attr("pointer-events","none"),N=j.selectAll(".overlay").attr("cursor",yk[y]);if(vp.touches)I.moved=G,I.ended=U;else{var B=nw(vp.view).on("mousemove.brush",G,!0).on("mouseup.brush",U,!0);o&&B.on("keydown.brush",H,!0).on("keyup.brush",z,!0),nk(vp.view)}sk(),iO(m),c.call(m),I.start()}function G(){var t=k(m);!D||v||g||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?g=!0:v=!0),R=t,d=!0,uk(),V()}function V(){var t;switch(C=R[0]-L[0],P=R[1]-L[1],_){case lk:case ck:b&&(C=Math.max(S-n,Math.min(M-u,C)),i=n+C,h=u+C),w&&(P=Math.max(T-a,Math.min(A-f,P)),s=a+P,p=f+P);break;case hk:b<0?(C=Math.max(S-n,Math.min(M-n,C)),i=n+C,h=u):b>0&&(C=Math.max(S-u,Math.min(M-u,C)),i=n,h=u+C),w<0?(P=Math.max(T-a,Math.min(A-a,P)),s=a+P,p=f):w>0&&(P=Math.max(T-f,Math.min(A-f,P)),s=a,p=f+P);break;case fk:b&&(i=Math.max(S,Math.min(M,n-C*b)),h=Math.max(S,Math.min(M,u+C*b))),w&&(s=Math.max(T,Math.min(A,a-P*w)),p=Math.max(T,Math.min(A,f+P*w)));break}h<i&&(b*=-1,t=n,n=u,u=t,t=i,i=h,h=t,y in _k&&N.attr("cursor",yk[y=_k[y]])),p<s&&(w*=-1,t=a,a=f,f=t,t=s,s=p,p=t,y in bk&&N.attr("cursor",yk[y=bk[y]])),O.selection&&(E=O.selection),v&&(i=E[0][0],h=E[1][0]),g&&(s=E[0][1],p=E[1][1]),E[0][0]===i&&E[0][1]===s&&E[1][0]===h&&E[1][1]===p||(O.selection=[[i,s],[h,p]],c.call(m),I.brush())}function U(){if(sk(),vp.touches){if(vp.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else rk(vp.view,d),B.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);j.attr("pointer-events","all"),N.attr("cursor",yk.overlay),O.selection&&(E=O.selection),Ak(E)&&(O.selection=null,c.call(m)),I.end()}function H(){switch(vp.keyCode){case 16:D=b&&w;break;case 18:_===hk&&(b&&(u=h-C*b,n=i+C*b),w&&(f=p-P*w,a=s+P*w),_=fk,V());break;case 32:_!==hk&&_!==fk||(b<0?u=h-C:b>0&&(n=i-C),w<0?f=p-P:w>0&&(a=s-P),_=lk,N.attr("cursor",yk.selection),V());break;default:return}uk()}function z(){switch(vp.keyCode){case 16:D&&(v=g=D=!1,V());break;case 18:_===fk&&(b<0?u=h:b>0&&(n=i),w<0?f=p:w>0&&(a=s),_=hk,V());break;case 32:_===lk&&(vp.altKey?(b&&(u=h-C*b,n=i+C*b),w&&(f=p-P*w,a=s+P*w),_=fk):(b<0?u=h:b>0&&(n=i),w<0?f=p:w>0&&(a=s),_=hk),N.attr("cursor",yk[y]),V());break;default:return}uk()}}function p(){l(this,arguments).moved()}function d(){l(this,arguments).ended()}function v(){var e=this.__brush||{selection:null};return e.extent=dk(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=Kv(o,a);function u(t){r.selection=1===t&&null===a?null:s(t),c.call(e),i.brush()}return null!==o&&null!==a?u:u(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"===typeof n?n.apply(e,r):n,i.extent),a=l(e,r).beforestart();iO(e),i.selection=null===o?null:o,c.call(e),a.start().brush().end()}))},u.clear=function(t){u.move(t,null)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){xp(new ak(u,e,t.output(this.state.selection)),a.apply,a,[e,this.that,this.args])}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:ok(dk(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:ok(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:ok(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(o=!!t,u):o},u.on=function(){var t=a.on.apply(a,arguments);return t===a?u:t},u}var Dk=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)}}(),kk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return Dk(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getContainerSVG(),o=cw.appendOrSelect(r,"svg.chart-grid-backdrop"),a=cw.appendOrSelect(o,"g."+this.type),s=cw.appendOrSelect(a,this.selectionSelector),u=cw.getSVGElementSize(o,{useAttrs:!0}),c=u.width,l=u.height,h=this.services.cartesianScales,f=h.getMainXScaleType(),p=h.getMainXScale(),d=p.range(),v=d[0];d[1];i.attr("transform","translate("+v+",0)");var g=cw.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===D.TIME){var m=this.model.get("zoomDomain");void 0===m&&(m=this.services.zoom.getDefaultZoomBarDomain(),m&&this.model.set({zoomDomain:m},{animate:!1}));var y=function(t){for(var n=t[1]-t[0],r="0,"+n.toString(),i=Math.floor(l/e.DASH_LENGTH),o=i*e.DASH_LENGTH,a=0;a<i;a++)r+=","+e.DASH_LENGTH;r+=","+(l-o),i%2===1&&(r+=",0"),r+=","+n.toString(),r+=","+l.toString(),g.attr("stroke-dasharray",r)},_=function(){var t=vp.selection;null!==t&&t[0]!==t[1]&&(g.attr("x",s.attr("x")).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(t))},b=function(t,e){var r=u_().range([0,c]).domain(m),i=[r.invert(t),r.invert(e)];i[0].valueOf()===i[1].valueOf()&&(i=n.services.zoom.getDefaultZoomBarDomain()),m[0].valueOf()===i[0].valueOf()&&m[1].valueOf()===i[1].valueOf()||n.services.zoom.handleDomainChange(i)},w=function(){var t=vp.selection;null!==t&&(b(t[0],t[1]),a.call(O.move,null),g.style("display","none"))},O=Ck().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",w);a.call(O);var x=this.services.zoom.getZoomRatio();o.on("click",(function(){if(vp.shiftKey){var t=Mp(a.node())[0],e=t-c*x/2;e<0&&(e=0);var n=t+c*x/2;n>c&&(n=c),b(e,n)}}))}},e.DASH_LENGTH=4,e}(OS),Lk=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)}}(),Rk=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return Lk(e,t),e.prototype.init=function(){this.model.set({chartClipId:this.chartClipId},{skipUpdate:!0})},e.prototype.render=function(t){void 0===t&&(t=!0),this.createClipPath()},e.prototype.createClipPath=function(){var t=this.parent,e=this.services.cartesianScales,n=e.getMainXScale(),r=e.getMainYScale(),i=n.range(),o=i[0],a=i[1],s=r.range(),u=s[0],c=s[1];this.chartClipPath=cw.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=cw.appendOrSelect(this.chartClipPath,"rect."+this.type);l.attr("x",o).attr("y",c).attr("width",a-o).attr("height",u-c),this.chartClipPath.merge(l).lower()},e}(OS),Ik=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)}}(),jk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Ik(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=Ep.getProperty(this.getOptions(),"grid","x","enabled"),n=Ep.getProperty(this.getOptions(),"grid","y","enabled");(e||n)&&(this.drawBackdrop(e,n),e&&(cw.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(cw.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this.parent,n=this.backdrop.attr("height"),r=this.services.cartesianScales.getMainXScale(),i=qD(r).tickSizeInner(-n).tickSizeOuter(0),o=Ep.getProperty(this.getOptions(),"grid","x","numberOfTicks");i.ticks(o);var a=e.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+n+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.drawYGrid=function(t){var e=this.parent,n=this.backdrop.attr("width"),r=this.services.cartesianScales.getMainYScale(),i=ZD(r).tickSizeInner(-n).tickSizeOuter(0),o=Ep.getProperty(this.getOptions(),"grid","y","numberOfTicks");i.ticks(o);var a=e.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(Ep.getTranslationValues(t).tx)-Number(Ep.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+Ep.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=+Ep.getTranslationValues(s).tx-+Ep.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=cw.getSVGElementSize(u).width;o=c-+Ep.getTranslationValues(a).tx}else o=+Ep.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=Ep.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=Ep.getTranslationValues(this),r={min:Number(e.tx)-n,max:Number(e.tx)+n};return r.min<=t[0]&&t[0]<=r.max}));return i},e.prototype.drawBackdrop=function(t,e){var n=this.parent,r=this.services.cartesianScales.getMainXScale(),i=this.services.cartesianScales.getMainYScale(),o=r.range(),a=o[0],s=o[1],u=i.range(),c=u[0],l=u[1];this.backdrop=cw.appendOrSelect(n,"svg.chart-grid-backdrop");var h=cw.appendOrSelect(this.backdrop,t||e?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop");this.backdrop.merge(h).attr("x",a).attr("y",l).attr("width",Math.abs(s-a)).attr("height",Math.abs(c-l)).lower(),h.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){t.selectAll("text").remove(),t.select(".domain").remove()},e}(OS),Nk=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)}}(),Bk=5;function Gk(t,e){return t>e-Bk&&t<e+Bk}var Vk,Uk,Hk,zk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.isXGridEnabled=Ep.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=Ep.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return Nk(e,t),e.prototype.render=function(){var t=Ep.getProperty(this.getOptions(),"ruler","enabled");this.drawBackdrop(),t&&!this.isEventListenerAdded?this.addBackdropEventListeners():!t&&this.isEventListenerAdded&&this.removeBackdropEventListeners()},e.prototype.removeBackdropEventListeners=function(){this.isEventListenerAdded=!1,this.backdrop.on("mousemove mouseover mouseout",null)},e.prototype.formatTooltipData=function(t){return t},e.prototype.showRuler=function(t){var e=this,n=t[0],r=t[1],i=this.parent,o=this.services.cartesianScales.getOrientation(),a=o===P.HORIZONTAL?r:n,s=cw.appendOrSelect(i,"g.ruler").attr("aria-label","ruler"),u=cw.appendOrSelect(s,"line.ruler-line"),c=i.selectAll("[role=graphics-symbol]"),l=this.model.getDisplayData(),h=this.services.cartesianScales.getRangeScale(),f=h.range(),p=f[0],d=f[1],v=l.map((function(t){return{domainValue:e.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return Gk(t.domainValue,a)}));if(this.pointsWithinLine&&v.length===this.pointsWithinLine.length&&v.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=v,this.services.events.dispatchEvent(X.Tooltip.MOVE,{mousePosition:[n,r]});this.pointsWithinLine=v;var g=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(a-e.domainValue),i=Math.abs(a-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(g.length>0){var m=g.map((function(t){return t.originalData})).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t),r=t[n];return null!==r&&void 0!==r})),y=g.map((function(t){return t.domainValue})),_=c.filter((function(t){var n=e.services.cartesianScales.getDomainValue(t);return y.includes(n)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!Ep.isEqual(this.elementsToHighlight,_)&&this.hideRuler(),_.dispatch("mouseover"),this.elementsToHighlight=_,this.services.events.dispatchEvent(X.Tooltip.SHOW,{mousePosition:[n,r],hoveredElement:u,data:this.formatTooltipData(m)}),s.attr("opacity",1);var b=g[0];"horizontal"===o?u.attr("x1",d).attr("x2",p).attr("y1",b.domainValue).attr("y2",b.domainValue):u.attr("y1",d).attr("y2",p).attr("x1",b.domainValue).attr("x2",b.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=cw.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(X.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.model.getDisplayData(),n=function(){var e=Mp(t.parent.node());t.showRuler(e)};if(e.length>100){var r=e.length%50*12.5;n=Ep.debounceWithD3MousePosition((function(){var e=this.mousePosition;t.showRuler(e)}),r,this.parent.node())}this.backdrop.on("mousemove mouseover",n).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=(r[0],r[1],n.range());i[0],i[1];this.backdrop=cw.appendOrSelect(t,"svg.chart-grid-backdrop");cw.appendOrSelect(this.backdrop,this.isXGridEnabled||this.isYGridEnabled?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop")},e}(OS),Fk=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)}}(),Wk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fk(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e.prototype.hideRuler=function(){var t=this.parent,e=cw.appendOrSelect(t,"g.ruler");this.services.events.dispatchEvent(X.Tooltip.HIDE),e.attr("opacity",0)},e}(zk),Yk=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)}}(),Xk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.overflowMenuX=0,e.overflowMenuY=0,e.overflowMenuItemId=Math.floor(99999999999*Math.random()),e}return Yk(e,t),e.prototype.init=function(){var t=this,e=this.getOptions(),n=nw(this.services.domUtils.getHolder()),r=Ep.getProperty(e,"style","prefix");this.overflowMenu=cw.appendOrSelect(n,"div."+ow.prefix+"--"+r+"--overflowMenu"),this.overflowMenu.style("max-width",null),this.services.events.addEventListener(X.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.overflowMenu.html(t.getOverflowMenuHTML())})),this.services.events.addEventListener(X.Toolbar.HIDE_OVERFLOW_MENU,(function(){t.overflowMenu.html(null)})),document.body.addEventListener("click",(function(){return t.updateOverflowMenu(!1)}))},e.prototype.render=function(t){void 0===t&&(t=!0);var e=Ep.getProperty(this.getOptions(),"data","loading"),n=Hp.buttonSize,r=parseFloat(this.parent.node().getAttribute("y")),i=this.getContainerSVG(),a=-6;i.attr("transform","translate(0, "+(r+a)+")");var s=cw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttrs:!0}).width,u=160;this.overflowMenuX=s-u,this.overflowMenuY=r+a+n;var c=cw.appendOrSelect(i,"svg.toolbar-container").attr("width","100%").attr("height",Hp.height).attr("opacity",1);c.html(null);var l=this.getControlConfigs(),h=l.buttonList,f=l.overflowMenuItemList;if(f&&h.push(this.getOverflowButtonConfig()),e||0===h.length)cw.appendOrSelect(c,"svg.toolbar-loading-spacer").append("rect").attr("height",Hp.height).attr("width",3*n).attr("opacity",0);else{var p=0;h.forEach((function(t){var e=cw.appendOrSelect(c,"svg."+t.id).classed("toolbar-button",!0),r=cw.appendOrSelect(e,"rect.toolbar-button-background").attr("x",p).attr("y",0).attr("width",n).attr("height",n),i=cw.appendOrSelect(e,"svg.toolbar-button-icon").attr("x",p+Hp.iconPadding).attr("y",Hp.iconPadding).attr("width",Hp.iconSize).attr("height",Hp.iconSize).attr("viewBox","0 0 32 32").attr("role",o.IMG);i.html(t.iconSVGContent),t.shouldBeDisabled()?(e.classed("toolbar-button--disabled",!0).classed("toolbar-button--focusable",!1).attr("tabindex",-1).attr("role",null),i.classed("toolbar-button-icon--disabled",!0),r.classed("toolbar-button-background--disabled",!0),e.on("click",null).on("keyup",null)):(e.classed("toolbar-button--disabled",!1).classed("toolbar-button--focusable",!0).attr("tabindex",0).attr("role",o.BUTTON),i.classed("toolbar-button-icon--disabled",!1),r.classed("toolbar-button-background--disabled",!1),e.on("click",t.clickFunction).on("keyup",(function(){(vp.key&&"Enter"===vp.key||" "===vp.key)&&(vp.preventDefault(),t.clickFunction())}))),p+=n})),this.overflowButton=this.getContainerSVG().select("svg.toolbar-overflow-menu"),this.isOverflowMenuOpen()&&this.updateOverflowMenu(!0)}},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.selectAll("ul.bx--overflow-menu-options--open").size()>0},e.prototype.updateOverflowMenu=function(t){this.overflowButton&&this.overflowButton.classed("toolbar-button--hovered",t),t?this.services.events.dispatchEvent(X.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(X.Toolbar.HIDE_OVERFLOW_MENU)},e.prototype.focusOnPreviousEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=e.length,r=t-1;r>=0;r--){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n<e.length){var o=nw("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.focusOnNextEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=-1,r=t+1;r<e.length;r++){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n>-1){var o=nw("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(){var t=this;if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var e=this,n=this.getOverflowMenuItems();n.forEach((function(n,r){var i=nw("#"+n.id+t.overflowMenuItemId);null!==i&&(i.on("click",(function(){n.clickFunction(),e.updateOverflowMenu(!1)})),i.on("keyup",(function(){"Enter"===vp.key?n.clickFunction():"ArrowUp"===vp.key?e.focusOnPreviousEnabledMenuItem(r):"ArrowDown"===vp.key&&e.focusOnNextEnabledMenuItem(r)})))})),e.focusOnNextEnabledMenuItem(-1)}vp.stopImmediatePropagation()},e.prototype.getOverflowMenuHTML=function(){var t,e=this,n=this.getOverflowMenuItems();return n&&0!==n.length?(t='<div data-floating-menu-container="true" data-floating-menu-direction="bottom" role="main">\n\t\t\t<ul class="bx--overflow-menu-options bx--overflow-menu--flip bx--overflow-menu-options--open"\n\t\t\t\ttabindex="-1" role="'+o.MENU+'" aria-label="Menu" data-floating-menu-direction="bottom"\n\t\t\t\tstyle="left:'+this.overflowMenuX+"px; top:"+this.overflowMenuY+'px;">',n.forEach((function(n,r){var i="bx--overflow-menu-options__option".concat(n.shouldBeDisabled()?" bx--overflow-menu-options__option--disabled":"");t+='<li class="'+i+'" role="'+o.MENU_ITEM+'">\n\t\t\t\t<button class="bx--overflow-menu-options__btn"\n\t\t\t\t\tdata-floating-menu-primary-focus="'+(0===r)+'"\n\t\t\t\t\ttabindex="-1" index="'+r+'" title="'+n.text+'"\n\t\t\t\t\tid="'+(n.id+e.overflowMenuItemId)+'">\n\t\t\t\t\t<div class="bx--overflow-menu-options__option-content">\n\t\t\t\t\t\t'+n.text+"\n\t\t\t\t\t</div>\n\t\t\t\t</button>\n\t\t\t</li>"})),t+="</ul></div>",t):""},e.prototype.getControlConfigs=function(){var t=this,e=Ep.getProperty(this.getOptions(),"toolbar","numberOfIcons"),n=Ep.getProperty(this.getOptions(),"toolbar","controls"),r=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,r.push(n))})),r.length<=e?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r}},e.prototype.getOverflowMenuItems=function(){var t=this.getControlConfigs().overflowMenuItemList;return t||[]},e.prototype.getOverflowButtonConfig=function(){var t=this;return{id:"toolbar-overflow-menu",shouldBeDisabled:function(){return!1},iconSVGContent:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="24" r="2"></circle>',clickFunction:function(){return t.toggleOverflowMenu()}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState();switch(t){case Y.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomIn()}});break;case Y.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomOut()}});break;case Y.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case Y.ZOOM_IN:return'<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>\n \t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case Y.ZOOM_OUT:return'<rect x="9" y="13" width="10" height="2"/>\n\t\t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case Y.RESET_ZOOM:return'<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';default:throw Error("Not supported toolbar control type: "+t)}},e}(OS),qk=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)}}(),Zk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e}return qk(e,t),e.prototype.render=function(t){var e=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),n=this.services.cartesianScales.getScaleByPosition(e),r=n.domain(),i=r[0],o=r[1],a=i>0&&o<0||i<0&&o>0,s=this.getContainerSVG();if(a){var u=this.services.cartesianScales.getDomainScale().range(),c=u[0],l=u[1],h=+n(0)+.5;h||(h=n.range()[0]);var f=Ep.flipSVGCoordinatesBasedOnOrientation({x0:c,x1:l,y0:h,y1:h},this.services.cartesianScales.getOrientation()),p=cw.appendOrSelect(s,"line.domain");p.transition(this.services.transitions.getTransition("zero-line-update",t)).attr("y1",f.y0).attr("y2",f.y1).attr("x1",f.x0).attr("x2",f.x1)}else s.selectAll("line.domain").remove()},e}(OS),Kk=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)}}(),$k=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=Ck(),e}return Kk(e,t),e.prototype.init=function(){this.services.events.addEventListener(X.ZoomBar.UPDATE,this.render.bind(this));var t=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services.zoom.isZoomBarLoading(M.TOP),i=this.services.zoom.isZoomBarLocked(M.TOP),o=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),a=zp.height[o],s=cw.getSVGElementSize(this.parent,{useAttrs:!0}).width;if(0!==s){var u=0,c=this.model.get("axesMargins");c&&c.left&&(u=c.left);var l=cw.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",a).attr("opacity",1);cw.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",a).attr("width","100%").attr("height",zp.spacerHeight).attr("opacity",1).attr("fill","none");if(o===A.GRAPH_VIEW?cw.appendOrSelect(l,"rect.zoom-bg").attr("x",u).attr("y",0).attr("width",s-u).attr("height","100%").classed("zoom-bg-skeleton",r):o===A.SLIDER_VIEW&&cw.appendOrSelect(l,"rect.zoom-slider-bg").attr("x",u).attr("y",a/2-1).attr("width",s-u).attr("height",2).classed("zoom-slider-bg-skeleton",r),r)this.renderSkeleton(l,u,s);else{var h=this.services.cartesianScales,f=h.getMainXScale(),p=h.getMainYScale(),d=h.getMainXScaleType();if(f&&d===D.TIME){var v=this.services.zoom.getZoomBarData();if(Ep.isEmpty(v))return;this.xScale=f.copy(),this.yScale=p.copy();var g=this.services.zoom.getDefaultZoomBarDomain(v);v=this.compensateDataForDefaultDomain(v,g);var m=this.model.get("initialZoomDomain"),y=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"initialZoomDomain");y&&y[0]&&y[1]&&(y[0]=new Date(y[0]),y[1]=new Date(y[1])),!y||m&&m[0].valueOf()===y[0].valueOf()&&m[1].valueOf()===y[1].valueOf()||this.model.set({initialZoomDomain:Ep.merge([],y),zoomDomain:y?Ep.merge([],y):g},{skipUpdate:!0}),this.xScale.range([u,s]).domain(g),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,a-6]).domain(Dd(v,(function(t){return t.value})));var _=this.model.get("zoomDomain");o===A.GRAPH_VIEW&&(this.renderZoomBarArea(l,"path.zoom-graph-area-unselected",v,null),this.updateClipPath(n,this.clipId,0,0,0,0),this.renderZoomBarArea(l,"path.zoom-graph-area",v,this.clipId),this.renderZoomBarBaseline(l,u,s)),this.addBrushEventListener(_,u,s);var b=cw.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===_);else if(_[0].valueOf()===_[1].valueOf())b.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getContainerSVG(),this.xScale.range(),this.xScale.domain());else{var w=_.map((function(t){return e.xScale(t)}));w[1]-w[0]<this.MIN_SELECTION_DIFF||(b.call(this.brush.move,w),this.updateBrushHandle(this.getContainerSVG(),w,_))}i&&(this.brush.filter((function(){return!1})),b.selectAll("rect").attr("cursor","auto"))}}}},e.prototype.addBrushEventListener=function(t,e,n){var r=this,i=function(){var e=vp.selection;null===e?r.handleBrushedEvent(t,r.xScale,r.xScale.range()):e[0]===e[1]||r.handleBrushedEvent(t,r.xScale,e)},o=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),a=zp.height[o];this.brush.extent([[e,0],[n,a]]).on("start brush end",null).on("start brush end",i)},e.prototype.handleBrushedEvent=function(t,e,n){var r=[e.invert(n[0]),e.invert(n[1])];if(this.updateBrushHandle(this.getContainerSVG(),n,r),null!=vp.sourceEvent&&("mousemove"===vp.sourceEvent.type||"mouseup"===vp.sourceEvent.type||"mousedown"===vp.sourceEvent.type||"touchstart"===vp.sourceEvent.type||"touchmove"===vp.sourceEvent.type||"touchend"===vp.sourceEvent.type)){void 0!==t&&t[0]===r[0]&&t[1]===r[1]||this.services.zoom.handleDomainChange(r,{dispatchEvent:!1});var i=void 0;"start"===vp.type?i=X.ZoomBar.SELECTION_START:"brush"===vp.type?i=X.ZoomBar.SELECTION_IN_PROGRESS:"end"===vp.type&&(i=X.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(X.ZoomDomain.CHANGE,{newDomain:r})),this.services.events.dispatchEvent(i,{selection:n,newDomain:r})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=zp.handleWidth,o=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),a=zp.height[o],s=-i/2,u=zp.handleBarWidth,c=o===A.GRAPH_VIEW?zp.handleBarHeight:6,l=-u/2,h=(a-c)/2;t.select(this.brushSelector).selectAll("rect.handle").data([{type:"w"},{type:"e"}]).attr("x",(function(t){return"w"===t.type?Math.max(e[0]+s,r.maxSelectionRange[0]):"e"===t.type?Math.min(e[1]+s,r.maxSelectionRange[1]-i):void 0})).attr("y",0).attr("width",i).attr("height",a).attr("cursor","ew-resize").style("display",null);var f=t.select(this.brushSelector).selectAll("rect.handle-bar").data([{type:"w"},{type:"e"}]);f.enter().append("rect").attr("class",(function(t){return"handle-bar handle-bar--"+t.type})),f.attr("x",(function(t){return"w"===t.type?Math.max(e[0]+l,r.maxSelectionRange[0]-s+l):"e"===t.type?Math.min(e[1]+l,r.maxSelectionRange[1]+s+l):void 0})).attr("y",h).attr("width",u).attr("height",c).attr("cursor","ew-resize"),o===A.SLIDER_VIEW&&this.updateSliderSelectedArea(e),this.updateClipPath(t,this.clipId,e[0],0,e[1]-e[0],a)},e.prototype.updateSliderSelectedArea=function(t){var e=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),n=zp.height[e],r=(cw.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getContainerSVG(),o=i.select("svg.zoom-container");cw.appendOrSelect(o,"rect.zoom-slider-selected-area").attr("x",t[0]).attr("y",n/2-1).attr("width",t[1]-t[0]).attr("height",2)},e.prototype.renderZoomBarArea=function(t,e,n,r){var i=this.services.cartesianScales,o=i.getMainXAxisPosition(),a=i.getMainYAxisPosition(),s=i.getMainXScaleType(),u=i.getMainYScaleType(),c=function(t,e,n){return function(r,o){return i.getValueFromScale(t,e,n,r,o)}},l=c(this.xScale,s,o),h=c(this.yScale,u,a),f=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type"),p=zp.height[f],d=DM().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=cw.appendOrSelect(t,e).datum(n).attr("d",d);r&&v.attr("clip-path","url(#"+r+")")},e.prototype.updateClipPath=function(t,e,n,r,i,o){var a=cw.appendOrSelect(t,"clipPath").attr("id",e);cw.appendOrSelect(a,"rect").attr("x",n).attr("y",r).attr("width",i).attr("height",o)},e.prototype.compensateDataForDefaultDomain=function(t,e){if(t&&!(t.length<2)){var n=Ep.clone(t),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier();if(Number(e[0])<Number(n[0][r])){var o={};o[r]=e[0],o[i]=0,n.unshift(o)}if(Number(e[1])>Number(n[n.length-1][r])){o={};o[r]=e[1],o[i]=0,n.push(o)}return n}},e.prototype.renderZoomBarBaseline=function(t,e,n,r){void 0===r&&(r=!1);var i=Ep.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"type"),o=zp.height[i],a=PM()([[e,o],[n,o]]);cw.appendOrSelect(t,"path.zoom-bg-baseline").attr("d",a).classed("zoom-bg-baseline-skeleton",r)},e.prototype.renderSkeleton=function(t,e,n){this.renderZoomBarArea(t,"path.zoom-graph-area-unselected",[],null),this.renderZoomBarArea(t,"path.zoom-graph-area",[],this.clipId),this.brush.on("start brush end",null),cw.appendOrSelect(this.getContainerSVG(),this.brushSelector).html(null);var r=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"type");r===A.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(X.ZoomBar.UPDATE,this.render.bind(this))},e}(OS),Qk=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Jk=function(){function t(t,e){this.services={domUtils:cw,events:hw,gradientUtils:Sx,transitions:xx},this.model=new __(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},{skipUpdate:!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(X.Model.UPDATE,(function(t){var e=!!Ep.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(X.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(X.Chart.RENDER_FINISHED)}))}},t.prototype.destroy=function(){this.components.forEach((function(t){return t.destroy()})),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},{skipUpdate:!0})},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new dM(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},n={id:"legend",components:[new ES(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},r={id:"graph-frame",components:t,growth:{x:j.STRETCH,y:j.FIXED}},i=!1!==this.model.getOptions().legend.enabled,o=I.COLUMN;if(i){var a=Ep.getProperty(this.model.getOptions(),"legend","position");"left"===a?(o=I.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):"right"===a?(o=I.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):"bottom"===a&&(o=I.COLUMN_REVERSE)}var s={id:"spacer",components:[new PD(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},u={id:"full-frame",components:[new kD(this.model,this.services,Qk(i?[n]:[],i?[s]:[],[r]),{direction:o})],growth:{x:j.STRETCH,y:j.FIXED}},c=[];if(this.model.getOptions().title){c.push(e);var l={id:"spacer",components:[new PD(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}};c.push(l)}return c.push(u),[new yM(this.model,this.services),new kD(this.model,this.services,c,{direction:I.COLUMN})]},t}(),tL=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)}}(),eL=function(t){function e(e){return t.call(this,e)||this}return tL(e,t),e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"enabled"))){var r=Ep.getProperty(this.getOptions(),"zoomBar",M.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(Ep.clone(t)):this.getDisplayData(),n=e,r=this.services.cartesianScales;if(e&&r.domainAxisPosition&&r.rangeAxisPosition){var i=r.getDomainIdentifier(),o=r.getRangeIdentifier(),a=e.map((function(t){return t[i].getTime()}));a=Ep.removeArrayDuplicates(a).sort(),n=a.map((function(t){var n=0,r={};return e.forEach((function(e){e[i].getTime()===t&&(n+=e[o])})),r[i]=new Date(t),r[o]=n,r}))}this.set({zoomBarData:n})},e.prototype.getZoomBarData=function(){return this.get("zoomBarData")},e.prototype.sanitizeDateValues=function(t){var e=this.getOptions();if(!e.axes)return t;var n=[];return Object.keys(M).forEach((function(t){var r=M[t],i=e.axes[r];if(i&&i.scaleType===D.TIME){var o=i.mapsTo;null===o&&void 0===o||n.push(o)}})),n.length>0&&t.forEach((function(t){n.forEach((function(e){null===Ep.getProperty(t,e,"getTime")&&(t[e]=new Date(t[e]))}))})),t},e.prototype.sanitize=function(e){return e=t.prototype.sanitize.call(this,e),e=this.sanitizeDateValues(e),e},e}(__),nL=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)}}(),rL=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},iL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:lE,curves:_S,zoom:wS}),r.model=new eL(r.services),r}return nL(e,t),e.prototype.getAxisChartComponents=function(t){var e=Ep.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"enabled"),n=Ep.getProperty(this.model.getOptions(),"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var r=this.services.cartesianScales.getMainXAxisPosition(),i=Ep.getProperty(this.model.getOptions(),"axes",r,"scaleType"),o=e&&r===M.BOTTOM&&i===D.TIME,a=this.services.zoom.isZoomBarLocked(M.TOP),s=!!this.model.getOptions().title,u={id:"title",components:[new dM(this.model,this.services)],growth:{x:j.STRETCH,y:j.FIXED}},c={id:"toolbar",components:[new Xk(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},l={id:"header",components:[new kD(this.model,this.services,rL([u],n?[c]:[]),{direction:I.ROW})],growth:{x:j.PREFERRED,y:j.FIXED}},h={id:"legend",components:[new ES(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}};o&&!a&&t.push(new Rk(this.model,this.services),new kk(this.model,this.services));var f={id:"graph-frame",components:t,growth:{x:j.STRETCH,y:j.FIXED}},p=!1!==this.model.getOptions().legend.enabled,d=I.COLUMN;if(p){var v=Ep.getProperty(this.model.getOptions(),"legend","position");v===k.LEFT?(d=I.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):v===k.RIGHT?(d=I.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):v===k.BOTTOM&&(d=I.COLUMN_REVERSE)}var g={id:"spacer",components:[new PD(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},m={id:"full-frame",components:[new kD(this.model,this.services,rL(p?[h]:[],p?[g]:[],[f]),{direction:d})],growth:{x:j.STRETCH,y:j.FIXED}},y={id:"zoom-bar",components:[new $k(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},_=[];if(s||n){_.push(l);var b={id:"spacer",components:[new PD(this.model,this.services,n?{size:15}:void 0)],growth:{x:j.PREFERRED,y:j.FIXED}};_.push(b)}return o&&_.push(y),_.push(m),[new bM(this.model,this.services),new kD(this.model,this.services,_,{direction:I.COLUMN})]},e}(Jk),oL=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)}}(),aL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(Ep.clone(gd.areaChart),n.options)),r.init(e,n),r}return oL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new ZM(this.model,this.services),new LM(this.model,this.services),new WM(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),sL=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)}}(),uL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.stackedAreaChart,n.options)),r.init(e,n),r}return sL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new Wk(this.model,this.services),new IM(this.model,this.services),new ZM(this.model,this.services,{stacked:!0}),new JM(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),cL=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)}}(),lL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.simpleBarChart,n.options)),r.init(e,n),r}return cL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new GM(this.model,this.services),new Zk(this.model,this.services),new OA(this.model,this.services,{skeleton:B.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(iL),hL=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)}}(),fL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.groupedBarChart,n.options)),r.init(e,n),r}return hL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new UM(this.model,this.services),new Zk(this.model,this.services),new OA(this.model,this.services,{skeleton:B.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(iL),pL=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)}}(),dL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.stackedBarChart,n.options)),r.init(e,n),r}return pL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new Wk(this.model,this.services),new zM(this.model,this.services),new OA(this.model,this.services,{skeleton:B.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(iL),vL=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)}}(),gL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.bubbleChart,n.options)),r.init(e,n),r}return vL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new XM(this.model,this.services),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),mL=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)}}(),yL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.lineChart,n.options)),r.init(e,n),r}return mL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new ZM(this.model,this.services),new WM(this.model,this.services,{handleThresholds:!0}),new EA(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(iL),_L=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)}}(),bL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.lollipopChart,n.options)),r.init(e,n),r}return _L(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new $M(this.model,this.services),new WM(this.model,this.services),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),wL=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)}}(),OL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.scatterChart,n.options)),r.init(e,n),r}return wL(e,t),e.prototype.getComponents=function(){var t=[new tk(this.model,this.services),new jk(this.model,this.services),new zk(this.model,this.services),new WM(this.model,this.services),new OA(this.model,this.services,{skeleton:B.GRID})],e=this.getAxisChartComponents(t);return e},e}(iL),xL=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)}}(),EL=function(t){function e(e){return t.call(this,e)||this}return xL(e,t),e.prototype.getTabularData=function(e){var n=t.prototype.getTabularData.call(this,e);return e!==n&&n.forEach((function(t){t.key&&t.key!==t.group&&(t.group=t.key)})),n},e.prototype.sanitize=function(t){var e=this.getTabularData(t);return e.sort((function(t,e){return e.value-t.value}))},e}(__),SL=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)}}(),TL=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new EL(i.services),r?i:(i.model.setOptions(Ep.mergeDefaultChartOptions(gd.pieChart,n.options)),i.init(e,n),i)}return SL(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new OA(this.model,this.services,{skeleton:B.PIE})],e=this.getChartComponents(t);return e},e}(Jk),ML=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)}}(),AL=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.donutChart,n.options)),r.init(e,n),r}return ML(e,t),e.prototype.getComponents=function(){var t=[new _A(this.model,this.services),new OA(this.model,this.services,{skeleton:B.DONUT})],e=this.getChartComponents(t);return e},e}(TL),CL=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)}}(),PL=function(t){function e(e){return t.call(this,e)||this}return CL(e,t),e.prototype.generateDataLabels=function(t){var e={};return e[t.label]=Rp.items.status.ACTIVE,e},e.prototype.getDisplayData=function(){return this.get("data")?this.get("data")[0]:null},e.prototype.getFillColor=function(e){var n=this.getOptions(),r=Ep.getProperty(n,"color","scale"),i=this.getStatus();return r||!i?t.prototype.getFillColor.call(this,e):null},e.prototype.getStatus=function(){var t=this.getOptions(),e=this.getDisplayData().value,n=e>100?100:e,r=Ep.getProperty(t,"meter","status","ranges");if(r){var i=r.filter((function(t){return t.range[0]<=n&&n<=t.range[1]}));if(i.length>0)return i[0].status}return null},e}(__),DL=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)}}(),kL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e}return DL(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.getOptions(),a=this.model.getDisplayData(),s=this.model.getStatus(),u=cw.getSVGElementSize(this.parent,{useAttrs:!0}).width,c=i.data.groupMapsTo,l=Rg().domain([0,100]).range([0,u]);cw.appendOrSelect(r,"rect.container").attr("x",0).attr("y",0).attr("width",u).attr("height",Ep.getProperty(i,"meter","height"));var h=a.value>=100,f=r.selectAll("rect.value").data([a]),p=null==s||n.model.isUserProvidedColorScaleValid()?"":"value status--"+s;f.enter().append("rect").classed("value",!0).merge(f).attr("x",0).attr("y",0).attr("height",Ep.getProperty(i,"meter","height")).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[c],originalClassName:p})})).transition(this.services.transitions.getTransition("meter-bar-update",t)).attr("width",(function(t){return l(h?100:t.value)})).style("fill",(function(t){return n.model.getFillColor(t[c])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value}));var d=Ep.getProperty(i,"meter","peak"),v=null!==d&&d<a.value?a.value:d,g=null===v||h?[]:[v],m=r.selectAll("line.peak").data(g);m.enter().append("line").classed("peak",!0).merge(m).attr("y1",0).attr("y2",Ep.getProperty(i,"meter","height")).transition(this.services.transitions.getTransition("peak-line-update",t)).attr("x1",(function(t){return l(t)})).attr("x2",(function(t){return l(t)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),m.exit().remove(),this.services.domUtils.setSVGMaxHeight()},e}(OS),LL=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)}}(),RL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new PL(r.services),r.model.setOptions(Ep.merge(Ep.clone(gd.meterChart),n.options)),r.init(e,n),r}return LL(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new kL(this.model,this.services)],growth:{x:j.STRETCH,y:j.FIXED}},e={id:"title",components:[new gM(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},n={id:"spacer",components:[new PD(this.model,this.services,{size:8})],growth:{x:j.PREFERRED,y:j.FIXED}},r=[new kD(this.model,this.services,[e,n,t],{direction:I.COLUMN})],i=this.getChartComponents(r);return i},e}(Jk),IL=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)}}(),jL=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return r?i:(i.model.setOptions(Ep.mergeDefaultChartOptions(gd.radarChart,n.options)),i.init(e,n),i)}return IL(e,t),e.prototype.getComponents=function(){var t=[new AD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Jk),NL=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)}}(),BL=function(t){function e(e){return t.call(this,e)||this}return NL(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e}(__),GL=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)}}(),VL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new BL(r.services),r.model.setOptions(Ep.mergeDefaultChartOptions(gd.gaugeChart,n.options)),r.init(e,n),r}return GL(e,t),e.prototype.getComponents=function(){var t=[new mA(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Jk),UL=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)}}(),HL=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},zL=(Vk={},Vk[W.LINE]=[ZM,WM],Vk[W.SCATTER]=[WM],Vk[W.AREA]=[LM,ZM,WM],Vk[W.STACKED_AREA]=[IM,ZM,JM,Wk],Vk[W.SIMPLE_BAR]=[GM],Vk[W.GROUPED_BAR]=[UM,Zk],Vk[W.STACKED_BAR]=[zM,Wk],Vk),FL=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=Ep.mergeDefaultChartOptions(gd.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:W.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return UL(e,t),e.prototype.getGraphComponents=function(){var t=this,e=this.model.getOptions().comboChartTypes,n=0,r=e.map((function(e){var r,i,o=e.type;return"string"===typeof e.type?Object.keys(zL).includes(e.type)?(r=Ep.merge({},gd[Ep.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===W.STACKED_AREA&&(i=!0),zL[e.type].map((function(o,a){return new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r,stacked:i})}))):(console.error('Invalid chart type "'+e.type+'" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.'),null):(r=Ep.merge({},t.model.getOptions(),e.options),new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r}))})).filter((function(t){return null!==t}));return Ep.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===W.STACKED_BAR||t.type===W.STACKED_AREA})),n=HL([new tk(this.model,this.services),new jk(this.model,this.services),new OA(this.model,this.services,{skeleton:B.GRID})],e?[]:[new zk(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(iL),WL=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)}}(),YL=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Ep.mergeDefaultChartOptions(gd.treemapChart,n.options)),r.init(e,n),r}return WL(e,t),e.prototype.getComponents=function(){var t=[new dD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Jk),XL={name:"CcvBaseChart",data:function(){return{coreChart:null}},props:{data:{type:[Object,Array],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}}},qL=XL;function ZL(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 KL=ZL(qL,Uk,Hk,!1,null,null,null),$L=KL.exports,QL={name:"CcvAreaChart",extends:$L,mounted:function(){this.coreChart=new aL(this.$el,{data:this.data,options:this.options})}},JL=QL,tR=ZL(JL,x,E,!1,null,null,null),eR=tR.exports,nR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},rR=[],iR={name:"CcvStackedAreaChart",extends:$L,mounted:function(){this.coreChart=new uL(this.$el,{data:this.data,options:this.options})}},oR=iR,aR=ZL(oR,nR,rR,!1,null,null,null),sR=aR.exports,uR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},cR=[],lR={name:"CcvSimpleBarChart",extends:$L,mounted:function(){this.coreChart=new lL(this.$el,{data:this.data,options:this.options})}},hR=lR,fR=ZL(hR,uR,cR,!1,null,null,null),pR=fR.exports,dR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},vR=[],gR={name:"CcvGroupedBarChart",extends:$L,mounted:function(){this.coreChart=new fL(this.$el,{data:this.data,options:this.options})}},mR=gR,yR=ZL(mR,dR,vR,!1,null,null,null),_R=yR.exports,bR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},wR=[],OR={name:"CcvStackedBarChart",extends:$L,mounted:function(){this.coreChart=new dL(this.$el,{data:this.data,options:this.options})}},xR=OR,ER=ZL(xR,bR,wR,!1,null,null,null),SR=ER.exports,TR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},MR=[],AR={name:"CcvBubbleChart",extends:$L,mounted:function(){this.coreChart=new gL(this.$el,{data:this.data,options:this.options})}},CR=AR,PR=ZL(CR,TR,MR,!1,null,null,null),DR=PR.exports,kR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},LR=[],RR={name:"CcvDonutChart",extends:$L,mounted:function(){this.coreChart=new AL(this.$el,{data:this.data,options:this.options})}},IR=RR,jR=ZL(IR,kR,LR,!1,null,null,null),NR=jR.exports,BR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},GR=[],VR={name:"CcvGaugeChart",extends:$L,mounted:function(){this.coreChart=new VL(this.$el,{data:this.data,options:this.options})}},UR=VR,HR=ZL(UR,BR,GR,!1,null,null,null),zR=HR.exports,FR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},WR=[],YR={name:"CcvLineChart",extends:$L,mounted:function(){this.coreChart=new yL(this.$el,{data:this.data,options:this.options})}},XR=YR,qR=ZL(XR,FR,WR,!1,null,null,null),ZR=qR.exports,KR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},$R=[],QR={name:"CcvLollipopChart",extends:$L,mounted:function(){this.coreChart=new bL(this.$el,{data:this.data,options:this.options})}},JR=QR,tI=ZL(JR,KR,$R,!1,null,null,null),eI=tI.exports,nI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},rI=[],iI={name:"CcvPieChart",extends:$L,mounted:function(){this.coreChart=new TL(this.$el,{data:this.data,options:this.options})}},oI=iI,aI=ZL(oI,nI,rI,!1,null,null,null),sI=aI.exports,uI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},cI=[],lI={name:"CcvScatterChart",extends:$L,mounted:function(){this.coreChart=new OL(this.$el,{data:this.data,options:this.options})}},hI=lI,fI=ZL(hI,uI,cI,!1,null,null,null),pI=fI.exports,dI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},vI=[],gI={name:"CcvMeterChart",extends:$L,mounted:function(){this.coreChart=new RL(this.$el,{data:this.data,options:this.options})}},mI=gI,yI=ZL(mI,dI,vI,!1,null,null,null),_I=yI.exports,bI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},wI=[],OI={name:"CcvRadarChart",extends:$L,mounted:function(){this.coreChart=new jL(this.$el,{data:this.data,options:this.options})}},xI=OI,EI=ZL(xI,bI,wI,!1,null,null,null),SI=EI.exports,TI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},MI=[],AI={name:"CcvComboChart",extends:$L,mounted:function(){this.coreChart=new FL(this.$el,{data:this.data,options:this.options})}},CI=AI,PI=ZL(CI,TI,MI,!1,null,null,null),DI=PI.exports,kI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},LI=[],RI={name:"CcvTreemapChart",extends:$L,mounted:function(){this.coreChart=new YL(this.$el,{data:this.data,options:this.options})}},II=RI,jI=ZL(II,kI,LI,!1,null,null,null),NI=jI.exports,BI=[eR,sR,pR,_R,SR,DR,NR,zR,ZR,eI,sI,pI,_I,SI,DI,NI],GI={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=BI[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=BI[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,"CcvAreaChart",(function(){return eR})),n.d(e,"CcvStackedAreaChart",(function(){return sR})),n.d(e,"CcvSimpleBarChart",(function(){return pR})),n.d(e,"CcvGroupedBarChart",(function(){return _R})),n.d(e,"CcvStackedBarChart",(function(){return SR})),n.d(e,"CcvBubbleChart",(function(){return DR})),n.d(e,"CcvDonutChart",(function(){return NR})),n.d(e,"CcvGaugeChart",(function(){return zR})),n.d(e,"CcvLineChart",(function(){return ZR})),n.d(e,"CcvLollipopChart",(function(){return eI})),n.d(e,"CcvPieChart",(function(){return sI})),n.d(e,"CcvScatterChart",(function(){return pI})),n.d(e,"CcvMeterChart",(function(){return _I})),n.d(e,"CcvRadarChart",(function(){return SI})),n.d(e,"CcvComboChart",(function(){return DI})),n.d(e,"CcvTreemapChart",(function(){return NI}));e["default"]=GI},"1d8a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"1f5e":function(t,e,n){var r=n("378c"),i=n("b495"),o=n("9a0f"),a=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}};t.exports={includes:a(!0),indexOf:a(!1)}},2117:function(t,e,n){var r=n("8697");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};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)}}},2402:function(t,e){e.f=Object.getOwnPropertySymbols},"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=E(0,0,0,0);function v(t){return parseFloat(t)||0}function g(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 m(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 y(t){var e=t.getBBox();return E(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=m(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-=g(r,"left","right")+o),Math.round(u+a)!==n&&(u-=g(r,"top","bottom")+a)),!w(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 E(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 w(t){return t===p(t).document.documentElement}function O(t){return r?b(t)?y(t):_(t):d}function x(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 E(t,e,n,r){return{x:t,y:e,width:n,height:r}}var S=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};S.prototype.isActive=function(){var t=O(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},S.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var T=function(t,e){var n=x(e);f(this,{target:t,contentRect:n})},M=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};M.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 S(t)),this.controller_.addObserver(this),this.controller_.refresh())}},M.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))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},M.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new T(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0};var A="undefined"!==typeof WeakMap?new WeakMap:new n,C=function(t){if(!(this instanceof C))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 M(t,e,this);A.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){C.prototype[t]=function(){return(e=A.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:C}();e["a"]=P}).call(this,n("7d15"))},"2df4":function(t,e,n){"use strict";var r=n("6b1d"),i=n("2e3f"),o=n("0e39"),a=n("c1a2"),s=n("fa46"),u=n("5b12"),c=n("b8ba"),l=n("7d53"),h=n("0e93"),f=n("5bb7"),p=n("ff89"),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m="keys",y="values",_="entries",b=function(){return this};t.exports=function(t,e,n,l,p,w,O){i(n,e,l);var x,E,S,T=function(t){if(t===p&&D)return D;if(!v&&t in C)return C[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",A=!1,C=t.prototype,P=C[g]||C["@@iterator"]||p&&C[p],D=!v&&P||T(p),k="Array"==e&&C.entries||P;if(k&&(x=o(k.call(new t)),d!==Object.prototype&&x.next&&(h||o(x)===d||(a?a(x,d):"function"!=typeof x[g]&&u(x,g,b)),s(x,M,!0,!0),h&&(f[M]=b))),p==y&&P&&P.name!==y&&(A=!0,D=function(){return P.call(this)}),h&&!O||C[g]===D||u(C,g,D),f[e]=D,p)if(E={values:T(y),keys:w?D:T(m),entries:T(_)},O)for(S in E)!v&&!A&&S in C||c(C,S,E[S]);else r({target:e,proto:!0,forced:v||A},E);return E}},"2e3f":function(t,e,n){"use strict";var r=n("ff89").IteratorPrototype,i=n("82e8"),o=n("9618"),a=n("fa46"),s=n("5bb7"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},"332c":function(t,e,n){var r=n("4cdd"),i=n("1d8a"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3606:function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),a=n||{},s=a.width,u=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],c=r.match(u);if(!c)return null;var l,h=c[0],f=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(f)?o(f,(function(t){return t.test(r)})):i(f,(function(t){return t.test(r)})),l=t.valueCallback?t.valueCallback(l):l,l=a.valueCallback?a.valueCallback(l):l,{value:l,rest:r.slice(h.length)}}}function i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function o(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"378c":function(t,e,n){var r=n("83a6"),i=n("730c");t.exports=function(t){return r(i(t))}},"37d1":function(t,e,n){var r=n("730c");t.exports=function(t){return Object(r(t))}},"398c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("910f"));function i(t){return t&&t.__esModule?t:{default:t}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,r.default)({formats:o,defaultWidth:"full"}),time:(0,r.default)({formats:a,defaultWidth:"full"}),dateTime:(0,r.default)({formats:s,defaultWidth:"full"})},c=u;e.default=c,t.exports=e.default},"39ba":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("b128")),i=u(n("398c")),o=u(n("5cac")),a=u(n("7b70")),s=u(n("c9c9"));function u(t){return t&&t.__esModule?t:{default:t}}var c={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},l=c;e.default=l,t.exports=e.default},"3cec":function(t,e,n){var r=n("7d53"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"3e32":function(t,e,n){var r=n("7d53"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"3e34":function(t,e,n){var r=n("f498"),i=n("5b12");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},"3e36":function(t,e,n){var r=n("f498");t.exports=r},4141:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},"4cdd":function(t,e,n){var r=n("0e93"),i=n("c607");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"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("7326")(t))},"4db4":function(t,e,n){var r=n("e7a0");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4e41":function(t,e,n){var r=n("7d53");e.f=r},5268:function(t,e,n){"use strict";var r=n("3cec"),i=n("da06");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},5428:function(t,e,n){var r=n("3e36"),i=n("f498"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},5711:function(t,e,n){"use strict";function r(){return!1}e["a"]=r},"5ae7":function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"5b12":function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("9618");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"5bb7":function(t,e){t.exports={}},"5cac":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function i(t,e,n,i){return r[t]}t.exports=e.default},"65d0":function(t,e,n){var r=n("c91c"),i=n("b17e"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"68b8":function(t,e,n){var r=n("6a89");r("iterator")},"6a61":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6a86":function(t,e,n){var r=n("7526"),i=n("c6de"),o=n("7d53"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"6a89":function(t,e,n){var r=n("3e36"),i=n("f1a7"),o=n("4e41"),a=n("abdf").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"6b1d":function(t,e,n){var r=n("f498"),i=n("185a").f,o=n("5b12"),a=n("b8ba"),s=n("3e34"),u=n("b634"),c=n("ebac");t.exports=function(t,e){var n,l,h,f,p,d,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,l)for(h in e){if(p=e[h],t.noTargetGet?(d=i(l,h),f=d&&d.value):f=l[h],n=c(g?h:v+(m?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),a(l,h,p,t)}}},7297:function(t,e,n){var r=n("f498"),i=n("df6f"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"72df":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"730c":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},7326: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}},7526:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7b70":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("b489"));function i(t){return t&&t.__esModule?t:{default:t}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function h(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var f={ordinalNumber:h,era:(0,r.default)({values:o,defaultWidth:"wide"}),quarter:(0,r.default)({values:a,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:(0,r.default)({values:s,defaultWidth:"wide"}),day:(0,r.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:c,defaultWidth:"wide",formattingValues:l,defaultFormattingWidth:"wide"})},p=f;e.default=p,t.exports=e.default},"7c3f":function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f2bf");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"7d15":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},"7d53":function(t,e,n){var r=n("f498"),i=n("4cdd"),o=n("f1a7"),a=n("1d8a"),s=n("e7a0"),u=n("4db4"),c=i("wks"),l=r.Symbol,h=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(l,t)?c[t]=l[t]:c[t]=h("Symbol."+t)),c[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},"802e":function(t,e,n){var r=n("72df");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"82e8":function(t,e,n){var r,i=n("157c"),o=n("b99b"),a=n("b17e"),s=n("d687"),u=n("9324"),c=n("f2bf"),l=n("332c"),h=">",f="<",p="prototype",d="script",v=l("IE_PROTO"),g=function(){},m=function(t){return f+d+h+t+f+"/"+d+h},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?y(r):_();var t=a.length;while(t--)delete b[p][a[t]];return b()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=i(t),n=new g,g[p]=null,n[v]=t):n=b(),void 0===e?n:o(n,e)}},"83a6":function(t,e,n){var r=n("72df"),i=n("6a61"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"868d":function(t,e,n){var r=n("d4cb"),i=n("abdf").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";!r||u in o||i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},8697:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"8bb2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"8d0d":function(t,e,n){"use strict";var r=n("6b1d"),i=n("1f5e").includes,o=n("ed2b"),a=n("ce71"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"8d0f":function(t,e,n){"use strict";var r=n("6b1d"),i=n("d4cb"),o=n("f498"),a=n("f1a7"),s=n("7526"),u=n("abdf").f,c=n("b634"),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};c(f,l);var p=f.prototype=l.prototype;p.constructor=f;var d=p.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},"8e5d":function(t,e,n){var r=n("7526"),i=n("6a61"),o=n("7d53"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"910f":function(t,e,n){"use strict";function r(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"918c":function(t,e,n){var r=n("f498"),i=n("130d"),o=n("9531"),a=n("5b12"),s=n("7d53"),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in i){var f=r[h],p=f&&f.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(v){p[u]=l}if(p[c]||a(p,c,h),i[h])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(v){p[d]=o[d]}}}},"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("7d15"))},9324:function(t,e,n){var r=n("5428");t.exports=r("document","documentElement")},9531:function(t,e,n){"use strict";var r=n("378c"),i=n("ed2b"),o=n("5bb7"),a=n("cdcd"),s=n("2df4"),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9618:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"9a0f":function(t,e,n){var r=n("8bb2"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"9eea":function(t,e,n){var r=n("8e5d");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},a03e:function(t,e,n){var r=n("5428"),i=n("65d0"),o=n("2402"),a=n("157c");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},abdf:function(t,e,n){var r=n("d4cb"),i=n("7c3f"),o=n("157c"),a=n("083f"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},b128:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t,e,n){var i;return n=n||{},i="string"===typeof r[t]?r[t]:1===e?r[t].one:r[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+i:i+" ago":i}t.exports=e.default},b17e:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b489:function(t,e,n){"use strict";function r(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},b495:function(t,e,n){var r=n("8bb2"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b634:function(t,e,n){var r=n("f1a7"),i=n("a03e"),o=n("185a"),a=n("abdf");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},b7fb:function(t,e,n){var r=n("8bb2"),i=n("730c"),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},b8ba:function(t,e,n){var r=n("f498"),i=n("5b12"),o=n("f1a7"),a=n("3e34"),s=n("df6f"),u=n("cdcd"),c=u.get,l=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),l(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=n:i(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},b99b:function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("157c"),a=n("0c47");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,u=0;while(s>u)i.f(t,n=r[u++],e[n]);return t}},c1a2:function(t,e,n){var r=n("157c"),i=n("f3e4");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},c607:function(t,e,n){var r=n("f498"),i=n("3e34"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c6de:function(t,e,n){var r=n("6a61");t.exports=Array.isArray||function(t){return"Array"==r(t)}},c78b:function(t,e,n){"use strict";var r=n("6b1d"),i=n("9eea"),o=n("730c"),a=n("3e32");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},c91c:function(t,e,n){var r=n("f1a7"),i=n("378c"),o=n("1f5e").indexOf,a=n("d687");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},c9c9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("5ae7")),i=o(n("3606"));function o(t){return t&&t.__esModule?t:{default:t}}var a=/^(\d+)(th|st|nd|rd)?/i,s=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},l={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},d={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,r.default)({matchPattern:a,parsePattern:s,valueCallback:function(t){return parseInt(t,10)}}),era:(0,i.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,i.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},_=y;e.default=_,t.exports=e.default},cdcd:function(t,e,n){var r,i,o,a=n("7297"),s=n("f498"),u=n("7526"),c=n("5b12"),l=n("f1a7"),h=n("332c"),f=n("d687"),p=s.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var g=new p,m=g.get,y=g.has,_=g.set;r=function(t,e){return _.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return y.call(g,t)}}else{var b=h("state");f[b]=!0,r=function(t,e){return c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:v}},ce71:function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f1a7"),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,h)}))}},d054:function(t,e,n){var r=n("2117"),i=n("83a6"),o=n("37d1"),a=n("b495"),s=n("6a86"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h;return function(p,d,v,g){for(var m,y,_=o(p),b=i(_),w=r(d,v,3),O=a(b.length),x=0,E=g||s,S=e?E(p,O):n?E(p,0):void 0;O>x;x++)if((f||x in b)&&(m=b[x],y=w(m,x,_),t))if(e)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(S,m)}else if(l)return!1;return h?-1:c||l?l:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},d4cb:function(t,e,n){var r=n("72df");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d687:function(t,e){t.exports={}},d6de:function(t,e,n){"use strict";var r=n("6b1d"),i=n("f498"),o=n("5428"),a=n("0e93"),s=n("d4cb"),u=n("e7a0"),c=n("4db4"),l=n("72df"),h=n("f1a7"),f=n("c6de"),p=n("7526"),d=n("157c"),v=n("37d1"),g=n("378c"),m=n("083f"),y=n("9618"),_=n("82e8"),b=n("0c47"),w=n("65d0"),O=n("ee58"),x=n("2402"),E=n("185a"),S=n("abdf"),T=n("e129"),M=n("5b12"),A=n("b8ba"),C=n("4cdd"),P=n("332c"),D=n("d687"),k=n("1d8a"),L=n("7d53"),R=n("4e41"),I=n("6a89"),j=n("fa46"),N=n("cdcd"),B=n("d054").forEach,G=P("hidden"),V="Symbol",U="prototype",H=L("toPrimitive"),z=N.set,F=N.getterFor(V),W=Object[U],Y=i.Symbol,X=o("JSON","stringify"),q=E.f,Z=S.f,K=O.f,$=T.f,Q=C("symbols"),J=C("op-symbols"),tt=C("string-to-symbol-registry"),et=C("symbol-to-string-registry"),nt=C("wks"),rt=i.QObject,it=!rt||!rt[U]||!rt[U].findChild,ot=s&&l((function(){return 7!=_(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(W,e);r&&delete W[e],Z(t,e,n),r&&t!==W&&Z(W,e,r)}:Z,at=function(t,e){var n=Q[t]=_(Y[U]);return z(n,{type:V,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},ut=function(t,e,n){t===W&&ut(J,e,n),d(t);var r=m(e,!0);return d(n),h(Q,r)?(n.enumerable?(h(t,G)&&t[G][r]&&(t[G][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,G)||Z(t,G,y(1,{})),t[G][r]=!0),ot(t,r,n)):Z(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return B(r,(function(e){s&&!ht.call(n,e)||ut(t,e,n[e])})),t},lt=function(t,e){return void 0===e?_(t):ct(_(t),e)},ht=function(t){var e=m(t,!0),n=$.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,G)&&this[G][e])||n)},ft=function(t,e){var n=g(t),r=m(e,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=q(n,r);return!i||!h(Q,r)||h(n,G)&&n[G][r]||(i.enumerable=!0),i}},pt=function(t){var e=K(g(t)),n=[];return B(e,(function(t){h(Q,t)||h(D,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=K(e?J:g(t)),r=[];return B(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=k(t),n=function(t){this===W&&n.call(J,t),h(this,G)&&h(this[G],e)&&(this[G][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(Y[U],"toString",(function(){return F(this).tag})),A(Y,"withoutSetter",(function(t){return at(k(t),t)})),T.f=ht,S.f=ut,E.f=ft,w.f=O.f=pt,x.f=dt,R.f=function(t){return at(L(t),t)},s&&(Z(Y[U],"description",{configurable:!0,get:function(){return F(this).description}}),a||A(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),B(b(nt),(function(t){I(t)})),r({target:V,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=Y(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:lt,defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:l((function(){x.f(1)}))},{getOwnPropertySymbols:function(t){return x.f(v(t))}}),X){var vt=!u||l((function(){var t=Y();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}));r({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!st(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,X.apply(null,i)}})}Y[U][H]||M(Y[U],H,Y[U].valueOf),j(Y,V),D[G]=!0},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("7326")(t))},da06:function(t,e,n){var r=n("3cec"),i=n("6a61"),o=n("7d53"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},df6f:function(t,e,n){var r=n("c607"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},e129:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},e7a0:function(t,e,n){var r=n("72df");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},ebac:function(t,e,n){var r=n("72df"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},ed2b:function(t,e,n){var r=n("7d53"),i=n("82e8"),o=n("abdf"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},ee58:function(t,e,n){var r=n("378c"),i=n("65d0").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))}},ef1f:function(t,e,n){var r=n("3cec"),i=n("b8ba"),o=n("5268");r||i(Object.prototype,"toString",o,{unsafe:!0})},f1a7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},f2bf:function(t,e,n){var r=n("f498"),i=n("7526"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},f3b8:function(t,e,n){"use strict";var r=n("b7fb").charAt,i=n("cdcd"),o=n("2df4"),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},f3e4:function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},f498:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("7d15"))},fa46:function(t,e,n){var r=n("abdf").f,i=n("f1a7"),o=n("7d53"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},ff89:function(t,e,n){"use strict";var r,i,o,a=n("0e39"),s=n("5b12"),u=n("f1a7"),c=n("7d53"),l=n("0e93"),h=c("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),l||u(r,h)||s(r,h,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}}})}));
2
2
  //# sourceMappingURL=charts-vue.umd.min.js.map