@carbon/charts-vue 0.43.0 → 0.45.1

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={};n.r(r),n.d(r,"Chart",(function(){return s})),n.d(r,"Modal",(function(){return u})),n.d(r,"Model",(function(){return c})),n.d(r,"Toolbar",(function(){return l})),n.d(r,"ZoomBar",(function(){return h})),n.d(r,"ZoomDomain",(function(){return f})),n.d(r,"CanvasZoom",(function(){return p})),n.d(r,"Axis",(function(){return d})),n.d(r,"Area",(function(){return v})),n.d(r,"WordCloud",(function(){return g})),n.d(r,"Pie",(function(){return m})),n.d(r,"Gauge",(function(){return y})),n.d(r,"Bar",(function(){return _})),n.d(r,"Boxplot",(function(){return b})),n.d(r,"Scatter",(function(){return O})),n.d(r,"Line",(function(){return w})),n.d(r,"Radar",(function(){return x})),n.d(r,"Treemap",(function(){return E})),n.d(r,"Tooltip",(function(){return T})),n.d(r,"Threshold",(function(){return S})),n.d(r,"Legend",(function(){return M})),n.d(r,"CirclePack",(function(){return C}));var i,o={};(n.r(o),n.d(o,"grid",(function(){return md})),n.d(o,"ruler",(function(){return yd})),n.d(o,"baseTooltip",(function(){return _d})),n.d(o,"timeScale",(function(){return Od})),n.d(o,"options",(function(){return Yd})),n.d(o,"area",(function(){return at})),n.d(o,"axis",(function(){return st})),n.d(o,"canvasZoomSettings",(function(){return ut})),n.d(o,"circlePack",(function(){return ct})),n.d(o,"color",(function(){return lt})),n.d(o,"boxplot",(function(){return ht})),n.d(o,"histogram",(function(){return ft})),n.d(o,"legend",(function(){return pt})),n.d(o,"lines",(function(){return dt})),n.d(o,"meter",(function(){return vt})),n.d(o,"pie",(function(){return gt})),n.d(o,"radar",(function(){return mt})),n.d(o,"spacers",(function(){return yt})),n.d(o,"tooltips",(function(){return _t})),n.d(o,"transitions",(function(){return bt})),n.d(o,"toolbar",(function(){return Ot})),n.d(o,"zoomBar",(function(){return wt})),n.d(o,"defaultLegendAdditionalItems",(function(){return xt})),"undefined"!==typeof window)&&(n("4141"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,O,w,x,E,T,S,M,C,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},P=[];(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"})(a||(a={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(s||(s={})),function(t){t["SHOW"]="show-modal",t["HIDE"]="hide-modal"}(u||(u={})),function(t){t["UPDATE"]="model-update"}(c||(c={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu"}(l||(l={})),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"}(h||(h={})),function(t){t["CHANGE"]="zoom-domain-change"}(f||(f={})),function(t){t["CANVAS_ZOOM_IN"]="canvas-zoom-in",t["CANVAS_ZOOM_OUT"]="canvas-zoom-out"}(p||(p={})),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"}(d||(d={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(v||(v={})),function(t){t["WORD_MOUSEOVER"]="wordcloud-word-mouseover",t["WORD_MOUSEMOVE"]="wordcloud-word-mousemove",t["WORD_CLICK"]="wordcloud-word-click",t["WORD_MOUSEOUT"]="wordcloud-word-mouseout"}(g||(g={})),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"}(m||(m={})),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"}(y||(y={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(_||(_={})),function(t){t["BOX_MOUSEOVER"]="box-mouseover",t["BOX_MOUSEMOVE"]="box-mousemove",t["BOX_CLICK"]="box-click",t["BOX_MOUSEOUT"]="box-mouseout",t["OUTLIER_MOUSEOVER"]="outlier-mouseover",t["OUTLIER_MOUSEMOVE"]="outlier-mousemove",t["OUTLIER_CLICK"]="outlier-click",t["OUTLIER_MOUSEOUT"]="outlier-mouseout"}(b||(b={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(O||(O={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(w||(w={})),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"}(x||(x={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(E||(E={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(T||(T={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(S||(S={})),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"}(M||(M={})),function(t){t["CIRCLE_MOUSEOVER"]="circle-leaf-mouseover",t["CIRCLE_CLICK"]="circle-leaf-click",t["CIRCLE_MOUSEOUT"]="circle-leaf-mouseout",t["CIRCLE_MOUSEMOVE"]="circle-leaf-mousemove"}(C||(C={}));var L,D,k,R,I,j,N,B,V,U,H,G,F,z,W,q,Y,Z,X,K,$,Q,J,tt,et,nt,rt,it=r;function ot(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function(t){t["HTML"]="html",t["SVG"]="svg"})(L||(L={})),function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"}(D||(D={})),function(t){t["BACKGROUND"]="background",t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(k||(k={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(R||(R={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(I||(I={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(j||(j={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(N||(N={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels",t["LABELS_RATIO"]="labels-ratio"}(B||(B={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(V||(V={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(U||(U={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(H||(H={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(G||(G={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(F||(F={})),function(t){t["CENTER"]="center"}(z||(z={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(W||(W={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(q||(q={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(Y||(Y={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(Z||(Z={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(X||(X={})),function(t){t["UP"]="up",t["DOWN"]="down"}(K||(K={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}($||($={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(Q||(Q={})),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"}(J||(J={})),function(t){t["EXPORT_CSV"]="Export as CSV",t["EXPORT_PNG"]="Export as PNG",t["EXPORT_JPG"]="Export as JPG",t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom",t["MAKE_FULLSCREEN"]="Make fullscreen",t["SHOW_AS_DATATABLE"]="Show as data-table"}(tt||(tt={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(et||(et={})),function(t){t["CHECKBOX"]="checkbox",t["RADIUS"]="radius",t["AREA"]="area",t["SIZE"]="size",t["LINE"]="line",t["QUARTILE"]="quartile",t["ZOOM"]="zoom"}(nt||(nt={}));var at={opacity:{unselected:.05,selected:.4}},st={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1},ut={duration:1e3,ease:ot,zoomLevel:3},ct={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},lt={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},ht={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},ft={defaultBins:10},pt={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"}},dt={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},vt={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15}},gt={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}},mt={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},yt={default:{size:24}},_t={horizontalOffset:10},bt={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}},Ot={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},wt={height:(rt={},rt[I.GRAPH_VIEW]=32,rt[I.SLIDER_VIEW]=10,rt),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},xt=[{type:nt.RADIUS,name:"Radius"},{type:nt.AREA,name:"Poor area"},{type:nt.AREA,name:"Satisfactory area"},{type:nt.AREA,name:"Great area"},{type:nt.QUARTILE,name:"Quartiles"}];function Et(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Tt=Et,St=n("7f0d"),Mt=function(){return St["a"].Date.now()},Ct=Mt,At=/\s/;function Pt(t){var e=t.length;while(e--&&At.test(t.charAt(e)));return e}var Lt=Pt,Dt=/^\s+/;function kt(t){return t?t.slice(0,Lt(t)+1).replace(Dt,""):t}var Rt=kt,It=St["a"].Symbol,jt=It,Nt=Object.prototype,Bt=Nt.hasOwnProperty,Vt=Nt.toString,Ut=jt?jt.toStringTag:void 0;function Ht(t){var e=Bt.call(t,Ut),n=t[Ut];try{t[Ut]=void 0;var r=!0}catch(o){}var i=Vt.call(t);return r&&(e?t[Ut]=n:delete t[Ut]),i}var Gt=Ht,Ft=Object.prototype,zt=Ft.toString;function Wt(t){return zt.call(t)}var qt=Wt,Yt="[object Null]",Zt="[object Undefined]",Xt=jt?jt.toStringTag:void 0;function Kt(t){return null==t?void 0===t?Zt:Yt:Xt&&Xt in Object(t)?Gt(t):qt(t)}var $t=Kt;function Qt(t){return null!=t&&"object"==typeof t}var Jt=Qt,te="[object Symbol]";function ee(t){return"symbol"==typeof t||Jt(t)&&$t(t)==te}var ne=ee,re=NaN,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,se=parseInt;function ue(t){if("number"==typeof t)return t;if(ne(t))return re;if(Tt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Tt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Rt(t);var n=oe.test(t);return n||ae.test(t)?se(t.slice(2),n?2:8):ie.test(t)?re:+t}var ce=ue,le="Expected a function",he=Math.max,fe=Math.min;function pe(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(le);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?fe(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=Ct();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(Ct())}function O(){var t=Ct(),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=ce(e)||0,Tt(n)&&(l=!!n.leading,h="maxWait"in n,o=h?he(ce(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=_,O.flush=b,O}var de=pe;function ve(){this.__data__=[],this.size=0}var ge=ve;function me(t,e){return t===e||t!==t&&e!==e}var ye=me;function _e(t,e){var n=t.length;while(n--)if(ye(t[n][0],e))return n;return-1}var be=_e,Oe=Array.prototype,we=Oe.splice;function xe(t){var e=this.__data__,n=be(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():we.call(e,n,1),--this.size,!0}var Ee=xe;function Te(t){var e=this.__data__,n=be(e,t);return n<0?void 0:e[n][1]}var Se=Te;function Me(t){return be(this.__data__,t)>-1}var Ce=Me;function Ae(t,e){var n=this.__data__,r=be(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Pe=Ae;function Le(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])}}Le.prototype.clear=ge,Le.prototype["delete"]=Ee,Le.prototype.get=Se,Le.prototype.has=Ce,Le.prototype.set=Pe;var De=Le;function ke(){this.__data__=new De,this.size=0}var Re=ke;function Ie(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var je=Ie;function Ne(t){return this.__data__.get(t)}var Be=Ne;function Ve(t){return this.__data__.has(t)}var Ue=Ve,He="[object AsyncFunction]",Ge="[object Function]",Fe="[object GeneratorFunction]",ze="[object Proxy]";function We(t){if(!Tt(t))return!1;var e=$t(t);return e==Ge||e==Fe||e==He||e==ze}var qe=We,Ye=St["a"]["__core-js_shared__"],Ze=Ye,Xe=function(){var t=/[^.]+$/.exec(Ze&&Ze.keys&&Ze.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Ke(t){return!!Xe&&Xe in t}var $e=Ke,Qe=Function.prototype,Je=Qe.toString;function tn(t){if(null!=t){try{return Je.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var en=tn,nn=/[\\^$.*+?()[\]{}|]/g,rn=/^\[object .+?Constructor\]$/,on=Function.prototype,an=Object.prototype,sn=on.toString,un=an.hasOwnProperty,cn=RegExp("^"+sn.call(un).replace(nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ln(t){if(!Tt(t)||$e(t))return!1;var e=qe(t)?cn:rn;return e.test(en(t))}var hn=ln;function fn(t,e){return null==t?void 0:t[e]}var pn=fn;function dn(t,e){var n=pn(t,e);return hn(n)?n:void 0}var vn=dn,gn=vn(St["a"],"Map"),mn=gn,yn=vn(Object,"create"),_n=yn;function bn(){this.__data__=_n?_n(null):{},this.size=0}var On=bn;function wn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var xn=wn,En="__lodash_hash_undefined__",Tn=Object.prototype,Sn=Tn.hasOwnProperty;function Mn(t){var e=this.__data__;if(_n){var n=e[t];return n===En?void 0:n}return Sn.call(e,t)?e[t]:void 0}var Cn=Mn,An=Object.prototype,Pn=An.hasOwnProperty;function Ln(t){var e=this.__data__;return _n?void 0!==e[t]:Pn.call(e,t)}var Dn=Ln,kn="__lodash_hash_undefined__";function Rn(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=_n&&void 0===e?kn:e,this}var In=Rn;function jn(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])}}jn.prototype.clear=On,jn.prototype["delete"]=xn,jn.prototype.get=Cn,jn.prototype.has=Dn,jn.prototype.set=In;var Nn=jn;function Bn(){this.size=0,this.__data__={hash:new Nn,map:new(mn||De),string:new Nn}}var Vn=Bn;function Un(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var Hn=Un;function Gn(t,e){var n=t.__data__;return Hn(e)?n["string"==typeof e?"string":"hash"]:n.map}var Fn=Gn;function zn(t){var e=Fn(this,t)["delete"](t);return this.size-=e?1:0,e}var Wn=zn;function qn(t){return Fn(this,t).get(t)}var Yn=qn;function Zn(t){return Fn(this,t).has(t)}var Xn=Zn;function Kn(t,e){var n=Fn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var $n=Kn;function Qn(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])}}Qn.prototype.clear=Vn,Qn.prototype["delete"]=Wn,Qn.prototype.get=Yn,Qn.prototype.has=Xn,Qn.prototype.set=$n;var Jn=Qn,tr=200;function er(t,e){var n=this.__data__;if(n instanceof De){var r=n.__data__;if(!mn||r.length<tr-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(t,e),this.size=n.size,this}var nr=er;function rr(t){var e=this.__data__=new De(t);this.size=e.size}rr.prototype.clear=Re,rr.prototype["delete"]=je,rr.prototype.get=Be,rr.prototype.has=Ue,rr.prototype.set=nr;var ir=rr;function or(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 ar=or,sr=function(){try{var t=vn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),ur=sr;function cr(t,e,n){"__proto__"==e&&ur?ur(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var lr=cr,hr=Object.prototype,fr=hr.hasOwnProperty;function pr(t,e,n){var r=t[e];fr.call(t,e)&&ye(r,n)&&(void 0!==n||e in t)||lr(t,e,n)}var dr=pr;function vr(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?lr(n,s,u):dr(n,s,u)}return n}var gr=vr;function mr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var yr=mr,_r="[object Arguments]";function br(t){return Jt(t)&&$t(t)==_r}var Or=br,wr=Object.prototype,xr=wr.hasOwnProperty,Er=wr.propertyIsEnumerable,Tr=Or(function(){return arguments}())?Or:function(t){return Jt(t)&&xr.call(t,"callee")&&!Er.call(t,"callee")},Sr=Tr,Mr=Array.isArray,Cr=Mr,Ar=n("4cf0"),Pr=9007199254740991,Lr=/^(?:0|[1-9]\d*)$/;function Dr(t,e){var n=typeof t;return e=null==e?Pr:e,!!e&&("number"==n||"symbol"!=n&&Lr.test(t))&&t>-1&&t%1==0&&t<e}var kr=Dr,Rr=9007199254740991;function Ir(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Rr}var jr=Ir,Nr="[object Arguments]",Br="[object Array]",Vr="[object Boolean]",Ur="[object Date]",Hr="[object Error]",Gr="[object Function]",Fr="[object Map]",zr="[object Number]",Wr="[object Object]",qr="[object RegExp]",Yr="[object Set]",Zr="[object String]",Xr="[object WeakMap]",Kr="[object ArrayBuffer]",$r="[object DataView]",Qr="[object Float32Array]",Jr="[object Float64Array]",ti="[object Int8Array]",ei="[object Int16Array]",ni="[object Int32Array]",ri="[object Uint8Array]",ii="[object Uint8ClampedArray]",oi="[object Uint16Array]",ai="[object Uint32Array]",si={};function ui(t){return Jt(t)&&jr(t.length)&&!!si[$t(t)]}si[Qr]=si[Jr]=si[ti]=si[ei]=si[ni]=si[ri]=si[ii]=si[oi]=si[ai]=!0,si[Nr]=si[Br]=si[Kr]=si[Vr]=si[$r]=si[Ur]=si[Hr]=si[Gr]=si[Fr]=si[zr]=si[Wr]=si[qr]=si[Yr]=si[Zr]=si[Xr]=!1;var ci=ui;function li(t){return function(e){return t(e)}}var hi=li,fi=n("01ff"),pi=fi["a"]&&fi["a"].isTypedArray,di=pi?hi(pi):ci,vi=di,gi=Object.prototype,mi=gi.hasOwnProperty;function yi(t,e){var n=Cr(t),r=!n&&Sr(t),i=!n&&!r&&Object(Ar["a"])(t),o=!n&&!r&&!i&&vi(t),a=n||r||i||o,s=a?yr(t.length,String):[],u=s.length;for(var c in t)!e&&!mi.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||kr(c,u))||s.push(c);return s}var _i=yi,bi=Object.prototype;function Oi(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||bi;return t===n}var wi=Oi;function xi(t,e){return function(n){return t(e(n))}}var Ei=xi,Ti=Ei(Object.keys,Object),Si=Ti,Mi=Object.prototype,Ci=Mi.hasOwnProperty;function Ai(t){if(!wi(t))return Si(t);var e=[];for(var n in Object(t))Ci.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Pi=Ai;function Li(t){return null!=t&&jr(t.length)&&!qe(t)}var Di=Li;function ki(t){return Di(t)?_i(t):Pi(t)}var Ri=ki;function Ii(t,e){return t&&gr(e,Ri(e),t)}var ji=Ii;function Ni(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Bi=Ni,Vi=Object.prototype,Ui=Vi.hasOwnProperty;function Hi(t){if(!Tt(t))return Bi(t);var e=wi(t),n=[];for(var r in t)("constructor"!=r||!e&&Ui.call(t,r))&&n.push(r);return n}var Gi=Hi;function Fi(t){return Di(t)?_i(t,!0):Gi(t)}var zi=Fi;function Wi(t,e){return t&&gr(e,zi(e),t)}var qi=Wi,Yi=n("d6f0");function Zi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var Xi=Zi;function Ki(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 $i=Ki;function Qi(){return[]}var Ji=Qi,to=Object.prototype,eo=to.propertyIsEnumerable,no=Object.getOwnPropertySymbols,ro=no?function(t){return null==t?[]:(t=Object(t),$i(no(t),(function(e){return eo.call(t,e)})))}:Ji,io=ro;function oo(t,e){return gr(t,io(t),e)}var ao=oo;function so(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var uo=so,co=Ei(Object.getPrototypeOf,Object),lo=co,ho=Object.getOwnPropertySymbols,fo=ho?function(t){var e=[];while(t)uo(e,io(t)),t=lo(t);return e}:Ji,po=fo;function vo(t,e){return gr(t,po(t),e)}var go=vo;function mo(t,e,n){var r=e(t);return Cr(t)?r:uo(r,n(t))}var yo=mo;function _o(t){return yo(t,Ri,io)}var bo=_o;function Oo(t){return yo(t,zi,po)}var wo=Oo,xo=vn(St["a"],"DataView"),Eo=xo,To=vn(St["a"],"Promise"),So=To,Mo=vn(St["a"],"Set"),Co=Mo,Ao=vn(St["a"],"WeakMap"),Po=Ao,Lo="[object Map]",Do="[object Object]",ko="[object Promise]",Ro="[object Set]",Io="[object WeakMap]",jo="[object DataView]",No=en(Eo),Bo=en(mn),Vo=en(So),Uo=en(Co),Ho=en(Po),Go=$t;(Eo&&Go(new Eo(new ArrayBuffer(1)))!=jo||mn&&Go(new mn)!=Lo||So&&Go(So.resolve())!=ko||Co&&Go(new Co)!=Ro||Po&&Go(new Po)!=Io)&&(Go=function(t){var e=$t(t),n=e==Do?t.constructor:void 0,r=n?en(n):"";if(r)switch(r){case No:return jo;case Bo:return Lo;case Vo:return ko;case Uo:return Ro;case Ho:return Io}return e});var Fo=Go,zo=Object.prototype,Wo=zo.hasOwnProperty;function qo(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Wo.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Yo=qo,Zo=St["a"].Uint8Array,Xo=Zo;function Ko(t){var e=new t.constructor(t.byteLength);return new Xo(e).set(new Xo(t)),e}var $o=Ko;function Qo(t,e){var n=e?$o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Jo=Qo,ta=/\w*$/;function ea(t){var e=new t.constructor(t.source,ta.exec(t));return e.lastIndex=t.lastIndex,e}var na=ea,ra=jt?jt.prototype:void 0,ia=ra?ra.valueOf:void 0;function oa(t){return ia?Object(ia.call(t)):{}}var aa=oa;function sa(t,e){var n=e?$o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var ua=sa,ca="[object Boolean]",la="[object Date]",ha="[object Map]",fa="[object Number]",pa="[object RegExp]",da="[object Set]",va="[object String]",ga="[object Symbol]",ma="[object ArrayBuffer]",ya="[object DataView]",_a="[object Float32Array]",ba="[object Float64Array]",Oa="[object Int8Array]",wa="[object Int16Array]",xa="[object Int32Array]",Ea="[object Uint8Array]",Ta="[object Uint8ClampedArray]",Sa="[object Uint16Array]",Ma="[object Uint32Array]";function Ca(t,e,n){var r=t.constructor;switch(e){case ma:return $o(t);case ca:case la:return new r(+t);case ya:return Jo(t,n);case _a:case ba:case Oa:case wa:case xa:case Ea:case Ta:case Sa:case Ma:return ua(t,n);case ha:return new r;case fa:case va:return new r(t);case pa:return na(t);case da:return new r;case ga:return aa(t)}}var Aa=Ca,Pa=Object.create,La=function(){function t(){}return function(e){if(!Tt(e))return{};if(Pa)return Pa(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Da=La;function ka(t){return"function"!=typeof t.constructor||wi(t)?{}:Da(lo(t))}var Ra=ka,Ia="[object Map]";function ja(t){return Jt(t)&&Fo(t)==Ia}var Na=ja,Ba=fi["a"]&&fi["a"].isMap,Va=Ba?hi(Ba):Na,Ua=Va,Ha="[object Set]";function Ga(t){return Jt(t)&&Fo(t)==Ha}var Fa=Ga,za=fi["a"]&&fi["a"].isSet,Wa=za?hi(za):Fa,qa=Wa,Ya=1,Za=2,Xa=4,Ka="[object Arguments]",$a="[object Array]",Qa="[object Boolean]",Ja="[object Date]",ts="[object Error]",es="[object Function]",ns="[object GeneratorFunction]",rs="[object Map]",is="[object Number]",os="[object Object]",as="[object RegExp]",ss="[object Set]",us="[object String]",cs="[object Symbol]",ls="[object WeakMap]",hs="[object ArrayBuffer]",fs="[object DataView]",ps="[object Float32Array]",ds="[object Float64Array]",vs="[object Int8Array]",gs="[object Int16Array]",ms="[object Int32Array]",ys="[object Uint8Array]",_s="[object Uint8ClampedArray]",bs="[object Uint16Array]",Os="[object Uint32Array]",ws={};function xs(t,e,n,r,i,o){var a,s=e&Ya,u=e&Za,c=e&Xa;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Tt(t))return t;var l=Cr(t);if(l){if(a=Yo(t),!s)return Xi(t,a)}else{var h=Fo(t),f=h==es||h==ns;if(Object(Ar["a"])(t))return Object(Yi["a"])(t,s);if(h==os||h==Ka||f&&!i){if(a=u||f?{}:Ra(t),!s)return u?go(t,qi(a,t)):ao(t,ji(a,t))}else{if(!ws[h])return i?t:{};a=Aa(t,h,s)}}o||(o=new ir);var p=o.get(t);if(p)return p;o.set(t,a),qa(t)?t.forEach((function(r){a.add(xs(r,e,n,r,t,o))})):Ua(t)&&t.forEach((function(r,i){a.set(i,xs(r,e,n,i,t,o))}));var d=c?u?wo:bo:u?zi:Ri,v=l?void 0:d(t);return ar(v||t,(function(r,i){v&&(i=r,r=t[i]),dr(a,i,xs(r,e,n,i,t,o))})),a}ws[Ka]=ws[$a]=ws[hs]=ws[fs]=ws[Qa]=ws[Ja]=ws[ps]=ws[ds]=ws[vs]=ws[gs]=ws[ms]=ws[rs]=ws[is]=ws[os]=ws[as]=ws[ss]=ws[us]=ws[cs]=ws[ys]=ws[_s]=ws[bs]=ws[Os]=!0,ws[ts]=ws[es]=ws[ls]=!1;var Es=xs,Ts=1,Ss=4;function Ms(t){return Es(t,Ts|Ss)}var Cs=Ms;function As(t,e,n){(void 0===n||ye(t[e],n))&&(void 0!==n||e in t)||lr(t,e,n)}var Ps=As;function Ls(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 Ds=Ls,ks=Ds(),Rs=ks;function Is(t){return Jt(t)&&Di(t)}var js=Is,Ns="[object Object]",Bs=Function.prototype,Vs=Object.prototype,Us=Bs.toString,Hs=Vs.hasOwnProperty,Gs=Us.call(Object);function Fs(t){if(!Jt(t)||$t(t)!=Ns)return!1;var e=lo(t);if(null===e)return!0;var n=Hs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Us.call(n)==Gs}var zs=Fs;function Ws(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var qs=Ws;function Ys(t){return gr(t,zi(t))}var Zs=Ys;function Xs(t,e,n,r,i,o,a){var s=qs(t,n),u=qs(e,n),c=a.get(u);if(c)Ps(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Cr(u),p=!f&&Object(Ar["a"])(u),d=!f&&!p&&vi(u);l=u,f||p||d?Cr(s)?l=s:js(s)?l=Xi(s):p?(h=!1,l=Object(Yi["a"])(u,!0)):d?(h=!1,l=ua(u,!0)):l=[]:zs(u)||Sr(u)?(l=s,Sr(s)?l=Zs(s):Tt(s)&&!qe(s)||(l=Ra(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Ps(t,n,l)}}var Ks=Xs;function $s(t,e,n,r,i){t!==e&&Rs(e,(function(o,a){if(i||(i=new ir),Tt(o))Ks(t,e,a,n,$s,r,i);else{var s=r?r(qs(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Ps(t,a,s)}}),zi)}var Qs=$s;function Js(t){return t}var tu=Js;function eu(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 nu=eu,ru=Math.max;function iu(t,e,n){return e=ru(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=ru(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),nu(t,this,s)}}var ou=iu;function au(t){return function(){return t}}var su=au,uu=ur?function(t,e){return ur(t,"toString",{configurable:!0,enumerable:!1,value:su(e),writable:!0})}:tu,cu=uu,lu=800,hu=16,fu=Date.now;function pu(t){var e=0,n=0;return function(){var r=fu(),i=hu-(r-n);if(n=r,i>0){if(++e>=lu)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var du=pu,vu=du(cu),gu=vu;function mu(t,e){return gu(ou(t,e,tu),t+"")}var yu=mu;function _u(t,e,n){if(!Tt(n))return!1;var r=typeof e;return!!("number"==r?Di(n)&&kr(e,n.length):"string"==r&&e in n)&&ye(n[e],t)}var bu=_u;function Ou(t){return yu((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&&bu(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 wu=Ou,xu=wu((function(t,e,n){Qs(t,e,n)})),Eu=xu,Tu=jt?jt.isConcatSpreadable:void 0;function Su(t){return Cr(t)||Sr(t)||!!(Tu&&t&&t[Tu])}var Mu=Su;function Cu(t,e,n,r,i){var o=-1,a=t.length;n||(n=Mu),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Cu(s,e-1,n,r,i):uo(i,s):r||(i[i.length]=s)}return i}var Au=Cu,Pu="__lodash_hash_undefined__";function Lu(t){return this.__data__.set(t,Pu),this}var Du=Lu;function ku(t){return this.__data__.has(t)}var Ru=ku;function Iu(t){var e=-1,n=null==t?0:t.length;this.__data__=new Jn;while(++e<n)this.add(t[e])}Iu.prototype.add=Iu.prototype.push=Du,Iu.prototype.has=Ru;var ju=Iu;function Nu(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 Bu=Nu;function Vu(t,e){return t.has(e)}var Uu=Vu,Hu=1,Gu=2;function Fu(t,e,n,r,i,o){var a=n&Hu,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var h=-1,f=!0,p=n&Gu?new ju:void 0;o.set(t,e),o.set(e,t);while(++h<s){var d=t[h],v=e[h];if(r)var g=a?r(v,d,h,e,t,o):r(d,v,h,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Bu(e,(function(t,e){if(!Uu(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){f=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}var zu=Fu;function Wu(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var qu=Wu;function Yu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Zu=Yu,Xu=1,Ku=2,$u="[object Boolean]",Qu="[object Date]",Ju="[object Error]",tc="[object Map]",ec="[object Number]",nc="[object RegExp]",rc="[object Set]",ic="[object String]",oc="[object Symbol]",ac="[object ArrayBuffer]",sc="[object DataView]",uc=jt?jt.prototype:void 0,cc=uc?uc.valueOf:void 0;function lc(t,e,n,r,i,o,a){switch(n){case sc:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ac:return!(t.byteLength!=e.byteLength||!o(new Xo(t),new Xo(e)));case $u:case Qu:case ec:return ye(+t,+e);case Ju:return t.name==e.name&&t.message==e.message;case nc:case ic:return t==e+"";case tc:var s=qu;case rc:var u=r&Xu;if(s||(s=Zu),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=Ku,a.set(t,e);var l=zu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case oc:if(cc)return cc.call(t)==cc.call(e)}return!1}var hc=lc,fc=1,pc=Object.prototype,dc=pc.hasOwnProperty;function vc(t,e,n,r,i,o){var a=n&fc,s=bo(t),u=s.length,c=bo(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:dc.call(e,f)))return!1}var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var v=!0;o.set(t,e),o.set(e,t);var g=a;while(++h<u){f=s[h];var m=t[f],y=e[f];if(r)var _=a?r(y,m,f,e,t,o):r(m,y,f,t,e,o);if(!(void 0===_?m===y||i(m,y,n,r,o):_)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var b=t.constructor,O=e.constructor;b!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof O&&O instanceof O)&&(v=!1)}return o["delete"](t),o["delete"](e),v}var gc=vc,mc=1,yc="[object Arguments]",_c="[object Array]",bc="[object Object]",Oc=Object.prototype,wc=Oc.hasOwnProperty;function xc(t,e,n,r,i,o){var a=Cr(t),s=Cr(e),u=a?_c:Fo(t),c=s?_c:Fo(e);u=u==yc?bc:u,c=c==yc?bc:c;var l=u==bc,h=c==bc,f=u==c;if(f&&Object(Ar["a"])(t)){if(!Object(Ar["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new ir),a||vi(t)?zu(t,e,n,r,i,o):hc(t,e,u,n,r,i,o);if(!(n&mc)){var p=l&&wc.call(t,"__wrapped__"),d=h&&wc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new ir),i(v,g,n,r,o)}}return!!f&&(o||(o=new ir),gc(t,e,n,r,i,o))}var Ec=xc;function Tc(t,e,n,r,i){return t===e||(null==t||null==e||!Jt(t)&&!Jt(e)?t!==t&&e!==e:Ec(t,e,n,r,Tc,i))}var Sc=Tc,Mc=1,Cc=2;function Ac(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 ir;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?Sc(l,c,Mc|Cc,r,h):f))return!1}}return!0}var Pc=Ac;function Lc(t){return t===t&&!Tt(t)}var Dc=Lc;function kc(t){var e=Ri(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,Dc(i)]}return e}var Rc=kc;function Ic(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var jc=Ic;function Nc(t){var e=Rc(t);return 1==e.length&&e[0][2]?jc(e[0][0],e[0][1]):function(n){return n===t||Pc(n,t,e)}}var Bc=Nc,Vc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uc=/^\w*$/;function Hc(t,e){if(Cr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ne(t))||(Uc.test(t)||!Vc.test(t)||null!=e&&t in Object(e))}var Gc=Hc,Fc="Expected a function";function zc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Fc);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(zc.Cache||Jn),n}zc.Cache=Jn;var Wc=zc,qc=500;function Yc(t){var e=Wc(t,(function(t){return n.size===qc&&n.clear(),t})),n=e.cache;return e}var Zc=Yc,Xc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kc=/\\(\\)?/g,$c=Zc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Xc,(function(t,n,r,i){e.push(r?i.replace(Kc,"$1"):n||t)})),e})),Qc=$c;function Jc(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 tl=Jc,el=1/0,nl=jt?jt.prototype:void 0,rl=nl?nl.toString:void 0;function il(t){if("string"==typeof t)return t;if(Cr(t))return tl(t,il)+"";if(ne(t))return rl?rl.call(t):"";var e=t+"";return"0"==e&&1/t==-el?"-0":e}var ol=il;function al(t){return null==t?"":ol(t)}var sl=al;function ul(t,e){return Cr(t)?t:Gc(t,e)?[t]:Qc(sl(t))}var cl=ul,ll=1/0;function hl(t){if("string"==typeof t||ne(t))return t;var e=t+"";return"0"==e&&1/t==-ll?"-0":e}var fl=hl;function pl(t,e){e=cl(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[fl(e[n++])];return n&&n==r?t:void 0}var dl=pl;function vl(t,e,n){var r=null==t?void 0:dl(t,e);return void 0===r?n:r}var gl=vl;function ml(t,e){return null!=t&&e in Object(t)}var yl=ml;function _l(t,e,n){e=cl(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=fl(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&&jr(i)&&kr(a,i)&&(Cr(t)||Sr(t)))}var bl=_l;function Ol(t,e){return null!=t&&bl(t,e,yl)}var wl=Ol,xl=1,El=2;function Tl(t,e){return Gc(t)&&Dc(e)?jc(fl(t),e):function(n){var r=gl(n,t);return void 0===r&&r===e?wl(n,t):Sc(e,r,xl|El)}}var Sl=Tl;function Ml(t){return function(e){return null==e?void 0:e[t]}}var Cl=Ml;function Al(t){return function(e){return dl(e,t)}}var Pl=Al;function Ll(t){return Gc(t)?Cl(fl(t)):Pl(t)}var Dl=Ll;function kl(t){return"function"==typeof t?t:null==t?tu:"object"==typeof t?Cr(t)?Sl(t[0],t[1]):Bc(t):Dl(t)}var Rl=kl;function Il(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 jl=Il;function Nl(t){return t!==t}var Bl=Nl;function Vl(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Ul=Vl;function Hl(t,e,n){return e===e?Ul(t,e,n):jl(t,Bl,n)}var Gl=Hl;function Fl(t,e){var n=null==t?0:t.length;return!!n&&Gl(t,e,0)>-1}var zl=Fl;function Wl(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 ql=Wl;function Yl(){}var Zl=Yl,Xl=1/0,Kl=Co&&1/Zu(new Co([,-0]))[1]==Xl?function(t){return new Co(t)}:Zl,$l=Kl,Ql=200;function Jl(t,e,n){var r=-1,i=zl,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=ql;else if(o>=Ql){var c=e?null:$l(t);if(c)return Zu(c);a=!1,i=Uu,u=new ju}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 th=Jl;function eh(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var nh=eh,rh=yu((function(t){var e=nh(t);return js(e)&&(e=void 0),th(Au(t,1,js,!0),Rl(e,2))})),ih=rh;function oh(t){return t&&t.length?th(t):[]}var ah=oh;function sh(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var uh=sh;function ch(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=ce(n),n=n===n?n:0),void 0!==e&&(e=ce(e),e=e===e?e:0),uh(ce(t),e,n)}var lh=ch;function hh(t){var e=null==t?0:t.length;return e?Au(t,1):[]}var fh=hh;function ph(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var a=t[i];e(r,a,n(a),t)}return r}var dh=ph;function vh(t,e){return t&&Rs(t,e,Ri)}var gh=vh;function mh(t,e){return function(n,r){if(null==n)return n;if(!Di(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 yh=mh,_h=yh(gh),bh=_h;function Oh(t,e,n,r){return bh(t,(function(t,i,o){e(r,t,n(t),o)})),r}var wh=Oh;function xh(t,e){return function(n,r){var i=Cr(n)?dh:wh,o=e?e():{};return i(n,t,Rl(r,2),o)}}var Eh=xh,Th=Object.prototype,Sh=Th.hasOwnProperty,Mh=Eh((function(t,e,n){Sh.call(t,n)?t[n].push(e):lr(t,n,[e])})),Ch=Mh;function Ah(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 Ph=Ah;function Lh(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ph(t,e,n)}var Dh=Lh,kh="\\ud800-\\udfff",Rh="\\u0300-\\u036f",Ih="\\ufe20-\\ufe2f",jh="\\u20d0-\\u20ff",Nh=Rh+Ih+jh,Bh="\\ufe0e\\ufe0f",Vh="\\u200d",Uh=RegExp("["+Vh+kh+Nh+Bh+"]");function Hh(t){return Uh.test(t)}var Gh=Hh;function Fh(t){return t.split("")}var zh=Fh,Wh="\\ud800-\\udfff",qh="\\u0300-\\u036f",Yh="\\ufe20-\\ufe2f",Zh="\\u20d0-\\u20ff",Xh=qh+Yh+Zh,Kh="\\ufe0e\\ufe0f",$h="["+Wh+"]",Qh="["+Xh+"]",Jh="\\ud83c[\\udffb-\\udfff]",tf="(?:"+Qh+"|"+Jh+")",ef="[^"+Wh+"]",nf="(?:\\ud83c[\\udde6-\\uddff]){2}",rf="[\\ud800-\\udbff][\\udc00-\\udfff]",of="\\u200d",af=tf+"?",sf="["+Kh+"]?",uf="(?:"+of+"(?:"+[ef,nf,rf].join("|")+")"+sf+af+")*",cf=sf+af+uf,lf="(?:"+[ef+Qh+"?",Qh,nf,rf,$h].join("|")+")",hf=RegExp(Jh+"(?="+Jh+")|"+lf+cf,"g");function ff(t){return t.match(hf)||[]}var pf=ff;function df(t){return Gh(t)?pf(t):zh(t)}var vf=df;function gf(t){return function(e){e=sl(e);var n=Gh(e)?vf(e):void 0,r=n?n[0]:e.charAt(0),i=n?Dh(n,1).join(""):e.slice(1);return r[t]()+i}}var mf=gf,yf=mf("toUpperCase"),_f=yf;function bf(t){return _f(sl(t).toLowerCase())}var Of=bf;function wf(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 xf=wf;function Ef(t){return function(e){return null==t?void 0:t[e]}}var Tf=Ef,Sf={"À":"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"},Mf=Tf(Sf),Cf=Mf,Af=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pf="\\u0300-\\u036f",Lf="\\ufe20-\\ufe2f",Df="\\u20d0-\\u20ff",kf=Pf+Lf+Df,Rf="["+kf+"]",If=RegExp(Rf,"g");function jf(t){return t=sl(t),t&&t.replace(Af,Cf).replace(If,"")}var Nf=jf,Bf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Vf(t){return t.match(Bf)||[]}var Uf=Vf,Hf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Gf(t){return Hf.test(t)}var Ff=Gf,zf="\\ud800-\\udfff",Wf="\\u0300-\\u036f",qf="\\ufe20-\\ufe2f",Yf="\\u20d0-\\u20ff",Zf=Wf+qf+Yf,Xf="\\u2700-\\u27bf",Kf="a-z\\xdf-\\xf6\\xf8-\\xff",$f="\\xac\\xb1\\xd7\\xf7",Qf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jf="\\u2000-\\u206f",tp=" \\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",ep="A-Z\\xc0-\\xd6\\xd8-\\xde",np="\\ufe0e\\ufe0f",rp=$f+Qf+Jf+tp,ip="['’]",op="["+rp+"]",ap="["+Zf+"]",sp="\\d+",up="["+Xf+"]",cp="["+Kf+"]",lp="[^"+zf+rp+sp+Xf+Kf+ep+"]",hp="\\ud83c[\\udffb-\\udfff]",fp="(?:"+ap+"|"+hp+")",pp="[^"+zf+"]",dp="(?:\\ud83c[\\udde6-\\uddff]){2}",vp="[\\ud800-\\udbff][\\udc00-\\udfff]",gp="["+ep+"]",mp="\\u200d",yp="(?:"+cp+"|"+lp+")",_p="(?:"+gp+"|"+lp+")",bp="(?:"+ip+"(?:d|ll|m|re|s|t|ve))?",Op="(?:"+ip+"(?:D|LL|M|RE|S|T|VE))?",wp=fp+"?",xp="["+np+"]?",Ep="(?:"+mp+"(?:"+[pp,dp,vp].join("|")+")"+xp+wp+")*",Tp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mp=xp+wp+Ep,Cp="(?:"+[up,dp,vp].join("|")+")"+Mp,Ap=RegExp([gp+"?"+cp+"+"+bp+"(?="+[op,gp,"$"].join("|")+")",_p+"+"+Op+"(?="+[op,gp+yp,"$"].join("|")+")",gp+"?"+yp+"+"+bp,gp+"+"+Op,Sp,Tp,sp,Cp].join("|"),"g");function Pp(t){return t.match(Ap)||[]}var Lp=Pp;function Dp(t,e,n){return t=sl(t),e=n?void 0:e,void 0===e?Ff(t)?Lp(t):Uf(t):t.match(e)||[]}var kp=Dp,Rp="['’]",Ip=RegExp(Rp,"g");function jp(t){return function(e){return xf(kp(Nf(e).replace(Ip,"")),t,"")}}var Np=jp,Bp=Np((function(t,e,n){return e=e.toLowerCase(),t+(n?Of(e):e)})),Vp=Bp,Up="[object Map]",Hp="[object Set]",Gp=Object.prototype,Fp=Gp.hasOwnProperty;function zp(t){if(null==t)return!0;if(Di(t)&&(Cr(t)||"string"==typeof t||"function"==typeof t.splice||Object(Ar["a"])(t)||vi(t)||Sr(t)))return!t.length;var e=Fo(t);if(e==Up||e==Hp)return!t.size;if(wi(t))return!Pi(t).length;for(var n in t)if(Fp.call(t,n))return!1;return!0}var Wp=zp;function qp(t,e){return Sc(t,e)}var Yp=qp;function Zp(t,e){var n=-1,r=Di(t)?Array(t.length):[];return bh(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var Xp=Zp;function Kp(t,e){var n=Cr(t)?tl:Xp;return n(t,Rl(e,3))}var $p=Kp,Qp=1/0;function Jp(t,e){return Au($p(t,e),Qp)}var td=Jp,ed=Np((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),nd=ed;function rd(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 id=rd;function od(t,e){var n;return bh(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var ad=od;function sd(t,e,n){var r=Cr(t)?Bu:ad;return n&&bu(t,e,n)&&(e=void 0),r(t,Rl(e,3))}var ud,cd=sd,ld=function(t){let e;while(e=t.sourceEvent)t=e;return t},hd=function(t,e){if(t=ld(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=hd(o[0],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/docs-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===B.TIME?o["mapsTo"]="date":s===B.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return l(e,n),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===j.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===j.FRONT_LINE?"..."+t.substr(-n):e===j.END_LINE?t.substr(0,n)+"...":void 0}function l(e,n){var r=t.getProperty(e,"legend","additionalItems"),i=t.getProperty(n,"legend","additionalItems");if(r&&i){var o=i.map((function(t){return t.type})),a=r.map((function(t){return t.type})),s=xt.filter((function(t){return a.includes(t.type)&&!o.includes(t.type)}));e.legend.additionalItems=s,n.legend.additionalItems=t.unionBy(s,i,"name")}}function h(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 f(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 p(t){return t.each((function(){this.parentNode.appendChild(this)}))}function d(t,e,n){return n===N.VERTICAL?[t,e]:[e,t]}t.debounce=de,t.clone=Cs,t.merge=Eu,t.unionBy=ih,t.removeArrayDuplicates=ah,t.clamp=lh,t.flatten=fh,t.groupBy=Ch,t.camelCase=Vp,t.isEmpty=Wp,t.isEqual=Yp,t.flatMapDeep=td,t.kebabCase=nd,t.fromPairs=id,t.some=cd,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.updateLegendAdditionalItems=l,t.arrayDifferences=h,t.getDuplicateValues=f,t.moveToFront=p,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===N.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=d,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(ud||(ud={}));var fd=n("39ba"),pd=n.n(fd),dd=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},vd={type:j.END_LINE,threshold:16,numCharacter:14},gd={enabled:!0,position:V.BOTTOM,clickable:!0,truncation:vd,alignment:U.LEFT,order:null,additionalItems:[]},md={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},yd={enabled:!0},_d={enabled:!0,showTotal:!0,truncation:vd,groupLabel:"Group"},bd={top:{visible:!0,includeZero:!0,truncation:vd},bottom:{visible:!0,includeZero:!0,truncation:vd},left:{visible:!0,includeZero:!0,truncation:vd},right:{visible:!0,includeZero:!0,truncation:vd}},Od={addSpaceOnEdges:1,showDayName:!1,localeObject:pd.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"}}},wd="undefined"!==typeof document&&(document["fullscreenEnabled"]||document["webkitFullscreenEnabled"]||document["mozFullScreenEnabled"]||document["msFullscreenEnabled"]),xd={width:null,height:null,resizable:!0,tooltip:_d,legend:gd,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:dd([{type:tt.SHOW_AS_DATATABLE}],wd?[{type:tt.MAKE_FULLSCREEN}]:[],[{type:tt.EXPORT_CSV},{type:tt.EXPORT_PNG},{type:tt.EXPORT_JPG}])}},Ed=ud.merge({},xd,{axes:bd,timeScale:Od,grid:md,ruler:yd,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:I.GRAPH_VIEW}}}),Td=ud.merge({},Ed,{bars:{maxWidth:16},timeScale:ud.merge(Od,{addSpaceOnEdges:1})}),Sd=ud.merge({},Td,{}),Md=ud.merge({},Td,{}),Cd=ud.merge({},Td,{bars:ud.merge({},Td.bars,{dividerSize:1.5})}),Ad=ud.merge({},Td,{}),Pd=ud.merge({},Ed,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),Ld=Pd,Dd=ud.merge({},Pd,{points:{radius:3,filled:!1,enabled:!0}}),kd=ud.merge({},Dd,{timeScale:ud.merge(Od,{addSpaceOnEdges:0})}),Rd=kd,Id=ud.merge({},Ed,{bubble:{radiusMapsTo:"radius",radiusLabel:"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},legend:{additionalItems:[{type:nt.RADIUS,name:"Radius"}]}}),jd=ud.merge({},Ed,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:nt.AREA,name:"Poor area"},{type:nt.AREA,name:"Satisfactory area"},{type:nt.AREA,name:"Great area"},{type:nt.QUARTILE,name:"Quartiles"}]}}),Nd=ud.merge({},Td,{bars:{dividerSize:1.5},timeScale:ud.merge(Od,{addSpaceOnEdges:0})}),Bd=ud.merge({},xd,{tooltip:ud.merge({},_d,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:function(t,e){var n=Math.min(t.width,t.height);return[20*n/400,75*n/400]},wordMapsTo:"word"}}),Vd=ud.merge({},xd,{pie:{labels:{formatter:null,enabled:!0},alignment:U.LEFT,sortFunction:null}}),Ud=ud.merge({},xd,{legend:{enabled:!1},gauge:{type:X.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},showPercentageSymbol:!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:U.LEFT}}),Hd=ud.merge({},Vd,{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:U.LEFT}}),Gd=ud.merge({},xd,{legend:{enabled:!1},meter:{height:8,statusBar:{percentageIndicator:{enabled:!0}}}}),Fd=ud.merge({},xd,{radar:{axes:{angle:"key",value:"value"},alignment:U.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),zd=ud.merge({},Td,{comboChartTypes:[]}),Wd=ud.merge({},xd,{data:ud.merge(xd.data,{groupMapsTo:"name"})}),qd=ud.merge({},xd,ct,{data:ud.merge(xd.data,{groupMapsTo:"name"})}),Yd={chart:xd,axisChart:Ed,simpleBarChart:Sd,groupedBarChart:Md,stackedBarChart:Cd,boxplotChart:Ad,bubbleChart:Id,bulletChart:jd,histogramChart:Nd,lineChart:Dd,areaChart:kd,stackedAreaChart:Rd,scatterChart:Pd,lollipopChart:Ld,pieChart:Vd,donutChart:Hd,meterChart:Gd,radarChart:Fd,gaugeChart:Ud,comboChart:zd,treemapChart:Wd,circlePackChart:qd,wordCloudChart:Bd};class Zd extends Map{constructor(t,e=Qd){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(Xd(this,t))}has(t){return super.has(Xd(this,t))}set(t,e){return super.set(Kd(this,t),e)}delete(t){return super.delete($d(this,t))}}Set;function Xd({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Kd({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function $d({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function Qd(t){return null!==t&&"object"===typeof t?t.valueOf():t}function Jd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const tv=Symbol("implicit");function ev(){var t=new Zd,e=[],n=[],r=tv;function i(i){let o=t.get(i);if(void 0===o){if(r!==tv)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Zd;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ev(e,n).unknown(r)},Jd.apply(i,arguments),i}Array.prototype.slice;var nv=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)},rv=function(t){return function(){return t}},iv=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]},ov=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function av(t,e){return t[e]}function sv(t){const e=[];return e.key=t,e}var uv=function(){var t=rv([]),e=ov,n=iv,r=av;function i(i){var o,a,s=Array.from(t.apply(this,arguments),sv),u=s.length,c=-1;for(const t of i)for(o=0,++c;o<u;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=nv(e(s));o<u;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:rv(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:rv(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?ov:"function"===typeof t?t:rv(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?iv:t,i):n},i},cv=Array.prototype,lv=cv.slice,hv=(cv.map,function(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}),fv=function(t){let e=t,n=t;function r(t,e,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}function i(t,e,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}function o(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a}return 1===t.length&&(e=(e,n)=>t(e)-n,n=pv(t)),{left:r,center:o,right:i}};function pv(t){return(e,n)=>hv(t(e),n)}var dv=function(t){return null===t?NaN:+t};function*vv(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}const gv=fv(hv),mv=gv.right;gv.left,fv(dv).center;var yv=mv,_v=function(t){return function(){return t}},bv=function(t,e){let n,r;if(void 0===e)for(const i of t)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]},Ov=function(t){return t},wv=Math.sqrt(50),xv=Math.sqrt(10),Ev=Math.sqrt(2),Tv=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=Sv(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);n*a<t&&++n,r*a>e&&--r,o=new Array(i=r-n+1);while(++s<i)o[s]=(n+s)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);n/a<t&&++n,r/a>e&&--r,o=new Array(i=r-n+1);while(++s<i)o[s]=(n+s)/a}return r&&o.reverse(),o};function Sv(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>=wv?10:o>=xv?5:o>=Ev?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=wv?10:o>=xv?5:o>=Ev?2:1)}function Mv(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>=wv?i*=10:o>=xv?i*=5:o>=Ev&&(i*=2),e<t?-i:i}function Cv(t,e,n){let r;while(1){const i=Sv(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function Av(t,e){let n=0;if(void 0===e)for(let r of t)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}var Pv=function(t){return Math.ceil(Math.log(Av(t))/Math.LN2)+1},Lv=function(){var t=Ov,e=bv,n=Pv;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=t(r[i],i,r);var u=e(s),c=u[0],l=u[1],h=n(s,c,l);if(!Array.isArray(h)){const t=l,n=+h;if(e===bv&&([c,l]=Cv(c,l,n)),h=Tv(c,l,n),h[h.length-1]>=l)if(t>=l&&e===bv){const t=Sv(c,l,n);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}var f=h.length;while(h[0]<=c)h.shift(),--f;while(h[f-1]>l)h.pop(),--f;var p,d=new Array(f+1);for(i=0;i<=f;++i)p=d[i]=[],p.x0=i>0?h[i-1]:c,p.x1=i<f?h[i]:l;for(i=0;i<a;++i)o=s[i],null!=o&&c<=o&&o<=l&&d[yv(h,o,0,f)].push(r[i]);return d}return r.value=function(e){return arguments.length?(t="function"===typeof e?e:_v(e),r):t},r.domain=function(t){return arguments.length?(e="function"===typeof t?t:_v([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?_v(lv.call(t)):_v(t),r):n},r},Dv=function(){return Dv=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},Dv.apply(this,arguments)},kv=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=ud.getProperty(e,"data").groupMapsTo,o=ud.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!==B.LINEAR&&r!==B.LOG||(n=n.map((function(t){var n;return Dv(Dv({},t),(n={},n[e]=null===t[e]?t[e]:Number(t[e]),n))}))),e&&o[t].domain)if(r===B.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!(e in t)||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=pt.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(ud.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=ud.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=pt.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.aggregateBinDataByGroup=function(t){return ud.groupBy(t,"group")},t.prototype.getBinConfigurations=function(){var t=this,e=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),o=n.axes[r],a=n.data.groupMapsTo,s=o.bins,u=void 0===s?ft.defaultBins:s,c=Array.isArray(u),l=Lv().value((function(t){return t[i]})).thresholds(u)(e);if(c)l[l.length-1].x1=u[u.length-1];else{var h=l[0].x1-l[0].x0;l[l.length-1].x1=+l[l.length-1].x0+h}var f=c?[u[0],u[u.length-1]]:[l[0].x0,l[l.length-1].x1],p=Array.from(new Set(e.map((function(t){return t[a]})))),d=[];return l.forEach((function(e){var n=e.x0+"-"+e.x1,r=t.aggregateBinDataByGroup(e);p.forEach((function(t){d.push({group:t,key:n,value:r[t]||0,bin:e.x0})}))})),{bins:l,binsDomain:f}},t.prototype.getBinnedStackedData=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getActiveDataGroupNames(),r=this.getBinConfigurations().bins,i=this.getDataValuesGroupedByKeys({bins:r});return uv().keys(n)(i).map((function(t,r){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(i){var o=t[i];return o[e]=n[r],o}))}))},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.getStackKeys=function(t){var e,n=this,r=t.bins,i=void 0===r?null:r,o=t.groups,a=void 0===o?null:o,s=this.getOptions(),u=this.getDisplayData(a);e=i?i.map((function(t){return t.x0+"-"+t.x1})):ud.removeArrayDuplicates(u.map((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return t[e]&&"function"===typeof t[e].toString?t[e].toString():t[e]})));var c=this.services.cartesianScales.domainAxisPosition,l=s.axes[c].scaleType;return l===B.TIME?e.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):l!==B.LOG&&l!==B.LINEAR||e.sort((function(t,e){return t-e})),e},t.prototype.getDataValuesGroupedByKeys=function(t){var e=this,n=t.bins,r=void 0===n?null:n,i=t.groups,o=void 0===i?null:i,a=this.getOptions(),s=a.data.groupMapsTo,u=this.getDisplayData(o),c=this.getDataGroupNames(),l=this.getStackKeys({bins:r,groups:o});return r?l.map((function(t){var e=t.split("-"),n=e[0],i=e[1],o={x0:n,x1:i},a=r.find((function(t){return t.x0.toString()===n.toString()}));return c.forEach((function(t){o[t]=a.filter((function(e){return e[s]===t})).length})),o})):l.map((function(t){var n={sharedStackKey:t};return c.forEach((function(r){var i=u.find((function(n){var i=e.services.cartesianScales.getDomainIdentifier(n);return n[s]===r&&n.hasOwnProperty(i)&&n[i].toString()===t})),o=e.services.cartesianScales.getRangeIdentifier(n);n[r]=i?i[o]: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({groups:i});if(n){var c=ud.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 uv().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){var e=this.getOptions();ud.updateLegendAdditionalItems(e,t),this.set({options:ud.merge(e,t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(it.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=pt.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(it.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=ud.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=ud.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=ud.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/docs-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=ud.getProperty(t,"label");if(null===a){var s=ud.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=pt.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=ud.removeArrayDuplicates(t.map((function(t){return t[e]})));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=ud.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=ud.getProperty(this.getOptions(),"color","pairing"),e=ud.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=ud.getProperty(t,"option"),r=lt.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=ev().range(o).domain(this.allDataGroups)},t}(),Rv=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 Iv(){}var jv=function(t){return null==t?Iv:function(){return this.querySelector(t)}},Nv=function(t){"function"!==typeof t&&(t=jv(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 Lm(r,this._parents)};function Bv(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Vv(){return[]}var Uv=function(t){return null==t?Vv:function(){return this.querySelectorAll(t)}};function Hv(t){return function(){return Bv(t.apply(this,arguments))}}var Gv=function(t){t="function"===typeof t?Hv(t):Uv(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new Lm(r,i)},Fv=function(t){return function(){return this.matches(t)}};function zv(t){return function(e){return e.matches(t)}}var Wv=Array.prototype.find;function qv(t){return function(){return Wv.call(this.children,t)}}function Yv(){return this.firstElementChild}var Zv=function(t){return this.select(null==t?Yv:qv("function"===typeof t?t:zv(t)))},Xv=Array.prototype.filter;function Kv(){return Array.from(this.children)}function $v(t){return function(){return Xv.call(this.children,t)}}var Qv=function(t){return this.selectAll(null==t?Kv:$v("function"===typeof t?t:zv(t)))},Jv=function(t){"function"!==typeof t&&(t=Fv(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 Lm(r,this._parents)},tg=function(t){return new Array(t.length)},eg=function(){return new Lm(this._enter||this._groups.map(tg),this._parents)};function ng(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ng.prototype={constructor:ng,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 rg=function(t){return function(){return t}};function ig(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 ng(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function og(t,e,n,r,i,o,a){var s,u,c,l=new Map,h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=a.call(u,u.__data__,s,e)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<f;++s)c=a.call(t,o[s],s,o)+"",(u=l.get(c))?(r[s]=u,u.__data__=o[s],l.delete(c)):n[s]=new ng(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(p[s])===u&&(i[s]=u)}function ag(t){return t.__data__}var sg=function(t,e){if(!arguments.length)return Array.from(this,ag);var n=e?og:ig,r=this._parents,i=this._groups;"function"!==typeof t&&(t=rg(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=ug(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,O=0;b<d;++b)if(y=v[b]){b>=O&&(O=b+1);while(!(_=g[O])&&++O<d);y._next=_||null}}return a=new Lm(a,r),a._enter=s,a._exit=u,a};function ug(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}var cg=function(){return new Lm(this._exit||this._groups.map(tg),this._parents)},lg=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof t?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),null!=e&&(i=e(i),i&&(i=i.selection())),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},hg=function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var c,l=n[u],h=r[u],f=l.length,p=s[u]=new Array(f),d=0;d<f;++d)(c=l[d]||h[d])&&(p[d]=c);for(;u<i;++u)s[u]=n[u];return new Lm(s,this._parents)},fg=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},pg=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=dg);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 Lm(i,this._parents).order()};function dg(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var vg=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},gg=function(){return Array.from(this)},mg=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},yg=function(){let t=0;for(const e of this)++t;return t},_g=function(){return!this.node()},bg=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},Og="http://www.w3.org/1999/xhtml",wg={svg:"http://www.w3.org/2000/svg",xhtml:Og,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},xg=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),wg.hasOwnProperty(e)?{space:wg[e],local:t}:t};function Eg(t){return function(){this.removeAttribute(t)}}function Tg(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sg(t,e){return function(){this.setAttribute(t,e)}}function Mg(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Cg(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ag(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 Pg=function(t,e){var n=xg(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?Tg:Eg:"function"===typeof e?n.local?Ag:Cg:n.local?Mg:Sg)(n,e))},Lg=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Dg(t){return function(){this.style.removeProperty(t)}}function kg(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Rg(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var Ig=function(t,e,n){return arguments.length>1?this.each((null==e?Dg:"function"===typeof e?Rg:kg)(t,e,null==n?"":n)):jg(this.node(),t)};function jg(t,e){return t.style.getPropertyValue(e)||Lg(t).getComputedStyle(t,null).getPropertyValue(e)}function Ng(t){return function(){delete this[t]}}function Bg(t,e){return function(){this[t]=e}}function Vg(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var Ug=function(t,e){return arguments.length>1?this.each((null==e?Ng:"function"===typeof e?Vg:Bg)(t,e)):this.node()[t]};function Hg(t){return t.trim().split(/^|\s+/)}function Gg(t){return t.classList||new Fg(t)}function Fg(t){this._node=t,this._names=Hg(t.getAttribute("class")||"")}function zg(t,e){var n=Gg(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function Wg(t,e){var n=Gg(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function qg(t){return function(){zg(this,t)}}function Yg(t){return function(){Wg(this,t)}}function Zg(t,e){return function(){(e.apply(this,arguments)?zg:Wg)(this,t)}}Fg.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 Xg=function(t,e){var n=Hg(t+"");if(arguments.length<2){var r=Gg(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?Zg:e?qg:Yg)(n,e))};function Kg(){this.textContent=""}function $g(t){return function(){this.textContent=t}}function Qg(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var Jg=function(t){return arguments.length?this.each(null==t?Kg:("function"===typeof t?Qg:$g)(t)):this.node().textContent};function tm(){this.innerHTML=""}function em(t){return function(){this.innerHTML=t}}function nm(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var rm=function(t){return arguments.length?this.each(null==t?tm:("function"===typeof t?nm:em)(t)):this.node().innerHTML};function im(){this.nextSibling&&this.parentNode.appendChild(this)}var om=function(){return this.each(im)};function am(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var sm=function(){return this.each(am)};function um(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Og&&e.documentElement.namespaceURI===Og?e.createElement(t):e.createElementNS(n,t)}}function cm(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var lm=function(t){var e=xg(t);return(e.local?cm:um)(e)},hm=function(t){var e="function"===typeof t?t:lm(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function fm(){return null}var pm=function(t,e){var n="function"===typeof t?t:lm(t),r=null==e?fm:"function"===typeof e?e:jv(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function dm(){var t=this.parentNode;t&&t.removeChild(this)}var vm=function(){return this.each(dm)};function gm(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function mm(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var ym=function(t){return this.select(t?mm:gm)},_m=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function bm(t){return function(e){t.call(this,e,this.__data__)}}function Om(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 wm(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function xm(t,e,n){return function(){var r,i=this.__on,o=bm(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}var Em=function(t,e,n){var r,i,o=Om(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?xm:wm,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 Tm(t,e,n){var r=Lg(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 Sm(t,e){return function(){return Tm(this,t,e)}}function Mm(t,e){return function(){return Tm(this,t,e.apply(this,arguments))}}var Cm=function(t,e){return this.each(("function"===typeof e?Mm:Sm)(t,e))},Am=function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)},Pm=[null];function Lm(t,e){this._groups=t,this._parents=e}function Dm(){return new Lm([[document.documentElement]],Pm)}function km(){return this}Lm.prototype=Dm.prototype={constructor:Lm,select:Nv,selectAll:Gv,selectChild:Zv,selectChildren:Qv,filter:Jv,data:sg,enter:eg,exit:cg,join:lg,merge:hg,selection:km,order:fg,sort:pg,call:vg,nodes:gg,node:mg,size:yg,empty:_g,each:bg,attr:Pg,style:Ig,property:Ug,classed:Xg,text:Jg,html:rm,raise:om,lower:sm,append:hm,insert:pm,remove:vm,clone:ym,datum:_m,on:Em,dispatch:Cm,[Symbol.iterator]:Am};var Rm=Dm,Im=function(t){return"string"===typeof t?new Lm([[document.querySelector(t)]],[document.documentElement]):new Lm([[t]],Pm)},jm={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 ",selectorFocusable:"\n a[href], area[href], input:not([disabled]),\n button:not([disabled]),select:not([disabled]),\n textarea:not([disabled]),\n iframe, object, embed, *[tabindex], *[contenteditable=true]\n "},Nm=jm,Bm=Nm,Vm=n("2da1"),Um=n("eeea"),Hm=n.n(Um),Gm=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="DONT_STYLE_ME_css_styles_verifier",zm=function(t){function e(e,n){return t.call(this,e,n)||this}return Gm(e,t),e.getHTMLElementSize=function(t){return{width:t.clientWidth,height:t.clientHeight}},e.getSVGElementSize=function(t,e){t.attr||(t=Im(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:ud.getProperty(t.node(),"width","baseVal","value"),height:ud.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.prototype.init=function(){this.styleHolderElement(),this.addMainContainer(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()},e.prototype.addMainContainer=function(){var t=this.model.getOptions(),e=ud.getProperty(t,"style","prefix"),n=Im(this.getHolder()).append("div").classed(Bm.prefix+"--"+e+"--chart-wrapper",!0).style("height","100%").style("width","100%");n.append("g").attr("class",Fm),this.mainContainer=n.node()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();Im(this.getHolder()).classed(Bm.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.exportToJPG=function(){var t=this,e=this.getHolder(),n=Im(e);n.classed("filled",!0),Hm.a.toJpeg(this.getMainContainer(),{bgcolor:"undefined"!==typeof window?window.getComputedStyle(e).getPropertyValue("background-color"):void 0,quality:1,filter:function(t){return!t.classList||!t.classList.contains("bx--cc--toolbar")}}).then((function(e){t.services.files.downloadImage(e,"myChart.jpg"),n.classed("filled",!1)}))},e.prototype.exportToPNG=function(){var t=this,e=this.getHolder(),n=Im(e);n.classed("filled",!0),Hm.a.toPng(this.getMainContainer(),{bgcolor:"undefined"!==typeof window?window.getComputedStyle(e).getPropertyValue("background-color"):void 0,quality:1,filter:function(t){return!t.classList||!t.classList.contains("bx--cc--toolbar")}}).then((function(e){t.services.files.downloadImage(e,"myChart.png"),n.classed("filled",!1)})).catch((function(t){console.error("oops, something went wrong!",t)}))},e.prototype.toggleFullscreen=function(){var t=this.getHolder(),e=Im(t),n=e.classed("fullscreen");n&&(document.fullscreenElement||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["msFullscreenElement"])?document.exitFullscreen?document.exitFullscreen():document["webkitExitFullscreen"]?document["webkitExitFullscreen"]():document["mozCancelFullScreen"]?document["mozCancelFullScreen"]():document["msExitFullscreen"]&&document["msExitFullscreen"]():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},e.prototype.handleFullscreenChange=function(){var t=this;document.addEventListener("fullscreenchange",(function(){var e=Im(t.getHolder()),n=e.classed("fullscreen");e.classed("fullscreen",!n)}))},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=Im(t.mainContainer).select("g."+Fm).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(Im(this.mainContainer),{useBBox:!0}).height,n=Im(this.mainContainer).attr("class"),r=Im(this.mainContainer).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(Im(t),{useBBox:!0}).height)})),i<=t?Im(this.mainContainer).attr("height",i):Im(this.mainContainer).attr("height","100%")}},e.prototype.getMainContainer=function(){return this.mainContainer},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&Im(e).on("mouseover",(function(){t.services.events.dispatchEvent(it.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(it.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=ud.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(it.Chart.RESIZE))}),12.5),o=new Vm["a"](i);o.observe(e)}},e}(Rv),Wm=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)}}(),qm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wm(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}(Rv),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)}}(),Zm=function(t){function e(e,n){return t.call(this,e,n)||this}return Ym(e,t),e.prototype.downloadCSV=function(t,e,n){var r=document.createElement("a");if(n="text/csv;encoding:utf-8",navigator.msSaveBlob)navigator.msSaveBlob(new Blob([t],{type:n}),e);else if(URL&&"download"in r){var i=URL.createObjectURL(new Blob([t],{type:n}));r.href=i,r.setAttribute("download",e),document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(i)}else location.href="data:application/octet-stream,"+encodeURIComponent(t)},e.prototype.downloadImage=function(t,e){var n=document.createElement("a");n.download=e,n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e}(Rv),Xm={value:()=>{}};function Km(){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 $m(r)}function $m(t){this._=t}function Qm(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 Jm(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function ty(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Xm,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}$m.prototype=Km.prototype={constructor:$m,on:function(t,e){var n,r=this._,i=Qm(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]=ty(r[n],t.name,e);else if(null==e)for(n in r)r[n]=ty(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=Jm(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new $m(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 ey,ny,ry=Km,iy=0,oy=0,ay=0,sy=1e3,uy=0,cy=0,ly=0,hy="object"===typeof performance&&performance.now?performance:Date,fy="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function py(){return cy||(fy(dy),cy=hy.now()+ly)}function dy(){cy=0}function vy(){this._call=this._time=this._next=null}function gy(t,e,n){var r=new vy;return r.restart(t,e,n),r}function my(){py(),++iy;var t,e=ey;while(e)(t=cy-e._time)>=0&&e._call.call(void 0,t),e=e._next;--iy}function yy(){cy=(uy=hy.now())+ly,iy=oy=0;try{my()}finally{iy=0,by(),cy=0}}function _y(){var t=hy.now(),e=t-uy;e>sy&&(ly-=e,uy=t)}function by(){var t,e,n=ey,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:ey=e);ny=t,Oy(r)}function Oy(t){if(!iy){oy&&(oy=clearTimeout(oy));var e=t-cy;e>24?(t<1/0&&(oy=setTimeout(yy,t-hy.now()-ly)),ay&&(ay=clearInterval(ay))):(ay||(uy=hy.now(),ay=setInterval(_y,sy)),iy=1,fy(yy))}}vy.prototype=gy.prototype={constructor:vy,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?py():+n)+(null==e?0:+e),this._next||ny===this||(ny?ny._next=this:ey=this,ny=this),this._call=t,this._time=n,Oy()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oy())}};var wy=function(t,e,n){var r=new vy;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r},xy=ry("start","end","cancel","interrupt"),Ey=[],Ty=0,Sy=1,My=2,Cy=3,Ay=4,Py=5,Ly=6,Dy=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};jy(t,n,{name:e,index:r,group:i,on:xy,tween:Ey,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ty})};function ky(t,e){var n=Iy(t,e);if(n.state>Ty)throw new Error("too late; already scheduled");return n}function Ry(t,e){var n=Iy(t,e);if(n.state>Cy)throw new Error("too late; already running");return n}function Iy(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function jy(t,e,n){var r,i=t.__transition;function o(t){n.state=Sy,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!==Sy)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===Cy)return wy(a);f.state===Ay?(f.state=Ly,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=Ly,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(wy((function(){n.state===Cy&&(n.state=Ay,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=My,n.on.call("start",t,t.__data__,n.index,n.group),n.state===My){for(n.state=Cy,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=Py,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===Py&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=Ly,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=gy(o,0,n.time)}var Ny,By=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>My&&n.state<Py,n.state=Ly,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}},Vy=function(t){return this.each((function(){By(this,t)}))},Uy=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Hy=180/Math.PI,Gy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Fy=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)*Hy,skewX:Math.atan(u)*Hy,scaleX:a,scaleY:s}};function zy(t){const e=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Gy:Fy(e.a,e.b,e.c,e.d,e.e,e.f)}function Wy(t){return null==t?Gy:(Ny||(Ny=document.createElementNS("http://www.w3.org/2000/svg","g")),Ny.setAttribute("transform",t),(t=Ny.transform.baseVal.consolidate())?(t=t.matrix,Fy(t.a,t.b,t.c,t.d,t.e,t.f)):Gy)}function qy(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:Uy(t,i)},{i:u-2,x:Uy(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:Uy(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:Uy(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:Uy(t,n)},{i:s-2,x:Uy(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 Yy=qy(zy,"px, ","px)","deg)"),Zy=qy(Wy,", ",")",")");function Xy(t,e){var n,r;return function(){var i=Ry(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 Ky(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Ry(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 $y=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Iy(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?Xy:Ky)(n,t,e))};function Qy(t,e,n){var r=t._id;return t.each((function(){var t=Ry(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Iy(t,r).value[e]}}var Jy=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function t_(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function e_(){}var n_=.7,r_=1/n_,i_="\\s*([+-]?\\d+)\\s*",o_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",a_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s_=/^#([0-9a-f]{3,8})$/,u_=new RegExp("^rgb\\("+[i_,i_,i_]+"\\)$"),c_=new RegExp("^rgb\\("+[a_,a_,a_]+"\\)$"),l_=new RegExp("^rgba\\("+[i_,i_,i_,o_]+"\\)$"),h_=new RegExp("^rgba\\("+[a_,a_,a_,o_]+"\\)$"),f_=new RegExp("^hsl\\("+[o_,a_,a_]+"\\)$"),p_=new RegExp("^hsla\\("+[o_,a_,a_,o_]+"\\)$"),d_={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 v_(){return this.rgb().formatHex()}function g_(){return C_(this).formatHsl()}function m_(){return this.rgb().formatRgb()}function y_(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=s_.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?__(e):3===n?new x_(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?b_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?b_(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=u_.exec(t))?new x_(e[1],e[2],e[3],1):(e=c_.exec(t))?new x_(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=l_.exec(t))?b_(e[1],e[2],e[3],e[4]):(e=h_.exec(t))?b_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=f_.exec(t))?M_(e[1],e[2]/100,e[3]/100,1):(e=p_.exec(t))?M_(e[1],e[2]/100,e[3]/100,e[4]):d_.hasOwnProperty(t)?__(d_[t]):"transparent"===t?new x_(NaN,NaN,NaN,0):null}function __(t){return new x_(t>>16&255,t>>8&255,255&t,1)}function b_(t,e,n,r){return r<=0&&(t=e=n=NaN),new x_(t,e,n,r)}function O_(t){return t instanceof e_||(t=y_(t)),t?(t=t.rgb(),new x_(t.r,t.g,t.b,t.opacity)):new x_}function w_(t,e,n,r){return 1===arguments.length?O_(t):new x_(t,e,n,null==r?1:r)}function x_(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E_(){return"#"+S_(this.r)+S_(this.g)+S_(this.b)}function T_(){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 S_(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function M_(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new P_(t,e,n,r)}function C_(t){if(t instanceof P_)return new P_(t.h,t.s,t.l,t.opacity);if(t instanceof e_||(t=y_(t)),!t)return new P_;if(t instanceof P_)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 P_(a,s,u,t.opacity)}function A_(t,e,n,r){return 1===arguments.length?C_(t):new P_(t,e,n,null==r?1:r)}function P_(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function L_(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 D_(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}Jy(e_,y_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:v_,formatHex:v_,formatHsl:g_,formatRgb:m_,toString:m_}),Jy(x_,w_,t_(e_,{brighter:function(t){return t=null==t?r_:Math.pow(r_,t),new x_(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?n_:Math.pow(n_,t),new x_(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:E_,formatHex:E_,formatRgb:T_,toString:T_})),Jy(P_,A_,t_(e_,{brighter:function(t){return t=null==t?r_:Math.pow(r_,t),new P_(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?n_:Math.pow(n_,t),new P_(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 x_(L_(t>=240?t-240:t+120,i,r),L_(t,i,r),L_(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 k_=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 D_((n-r/e)*e,a,i,o,s)}},R_=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 D_((n-r/e)*e,i,o,a,s)}},I_=t=>()=>t;function j_(t,e){return function(n){return t+n*e}}function N_(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 B_(t){return 1===(t=+t)?V_:function(e,n){return n-e?N_(e,n,t):I_(isNaN(e)?n:e)}}function V_(t,e){var n=e-t;return n?j_(t,n):I_(isNaN(t)?e:t)}var U_=function t(e){var n=B_(e);function r(t,e){var r=n((t=w_(t)).r,(e=w_(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=V_(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 H_(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=w_(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+""}}}H_(k_),H_(R_);var G_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,F_=new RegExp(G_.source,"g");function z_(t){return function(){return t}}function W_(t){return function(e){return t(e)+""}}var q_=function(t,e){var n,r,i,o=G_.lastIndex=F_.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=G_.exec(t))&&(r=F_.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:Uy(n,r)})),o=F_.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?W_(u[0].x):z_(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("")})},Y_=function(t,e){var n;return("number"===typeof e?Uy:e instanceof y_?U_:(n=y_(e))?(e=n,U_):q_)(t,e)};function Z_(t){return function(){this.removeAttribute(t)}}function X_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function K_(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 $_(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 Q_(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 J_(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 tb=function(t,e){var n=xg(t),r="transform"===n?Zy:Y_;return this.attrTween(t,"function"===typeof e?(n.local?J_:Q_)(n,r,Qy(this,"attr."+t,e)):null==e?(n.local?X_:Z_)(n):(n.local?$_:K_)(n,r,e))};function eb(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function nb(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function rb(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&nb(t,i)),n}return i._value=e,i}function ib(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&eb(t,i)),n}return i._value=e,i}var ob=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=xg(t);return this.tween(n,(r.local?rb:ib)(r,e))};function ab(t,e){return function(){ky(this,t).delay=+e.apply(this,arguments)}}function sb(t,e){return e=+e,function(){ky(this,t).delay=e}}var ub=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?ab:sb)(e,t)):Iy(this.node(),e).delay};function cb(t,e){return function(){Ry(this,t).duration=+e.apply(this,arguments)}}function lb(t,e){return e=+e,function(){Ry(this,t).duration=e}}var hb=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?cb:lb)(e,t)):Iy(this.node(),e).duration};function fb(t,e){if("function"!==typeof e)throw new Error;return function(){Ry(this,t).ease=e}}var pb=function(t){var e=this._id;return arguments.length?this.each(fb(e,t)):Iy(this.node(),e).ease};function db(t,e){return function(){var n=e.apply(this,arguments);if("function"!==typeof n)throw new Error;Ry(this,t).ease=n}}var vb=function(t){if("function"!==typeof t)throw new Error;return this.each(db(this._id,t))},gb=function(t){"function"!==typeof t&&(t=Fv(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 Wb(r,this._parents,this._name,this._id)},mb=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 Wb(a,this._parents,this._name,this._id)};function yb(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 _b(t,e,n){var r,i,o=yb(e)?ky:Ry;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var bb=function(t,e){var n=this._id;return arguments.length<2?Iy(this.node(),n).on.on(t):this.each(_b(n,t,e))};function Ob(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var wb=function(){return this.on("end.remove",Ob(this._id))},xb=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=jv(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,Dy(h[f],e,n,f,h,Iy(s,n)));return new Wb(o,this._parents,e,n)},Eb=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Uv(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,p=t.call(u,u.__data__,h,c),d=Iy(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&Dy(f,e,n,v,p,d);o.push(p),a.push(u)}return new Wb(o,a,e,n)},Tb=Rm.prototype.constructor,Sb=function(){return new Tb(this._groups,this._parents)};function Mb(t,e){var n,r,i;return function(){var o=jg(this,t),a=(this.style.removeProperty(t),jg(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Cb(t){return function(){this.style.removeProperty(t)}}function Ab(t,e,n){var r,i,o=n+"";return function(){var a=jg(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function Pb(t,e,n){var r,i,o;return function(){var a=jg(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=jg(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function Lb(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=Ry(this,t),c=u.on,l=null==u.value[a]?o||(o=Cb(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var Db=function(t,e,n){var r="transform"===(t+="")?Yy:Y_;return null==e?this.styleTween(t,Mb(t,r)).on("end.style."+t,Cb(t)):"function"===typeof e?this.styleTween(t,Pb(t,r,Qy(this,"style."+t,e))).each(Lb(this._id,t)):this.styleTween(t,Ab(t,r,e),n).on("end.style."+t,null)};function kb(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Rb(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&kb(t,o,n)),r}return o._value=e,o}var Ib=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,Rb(t,e,null==n?"":n))};function jb(t){return function(){this.textContent=t}}function Nb(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var Bb=function(t){return this.tween("text","function"===typeof t?Nb(Qy(this,"text",t)):jb(null==t?"":t+""))};function Vb(t){return function(e){this.textContent=t.call(this,e)}}function Ub(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Vb(r)),e}return r._value=t,r}var Hb=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,Ub(t))},Gb=function(){for(var t=this._name,e=this._id,n=Yb(),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=Iy(a,e);Dy(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Wb(r,this._parents,t,n)},Fb=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=Ry(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})),0===i&&o()}))},zb=0;function Wb(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function qb(t){return Rm().transition(t)}function Yb(){return++zb}var Zb=Rm.prototype;Wb.prototype=qb.prototype={constructor:Wb,select:xb,selectAll:Eb,selectChild:Zb.selectChild,selectChildren:Zb.selectChildren,filter:gb,merge:mb,selection:Sb,transition:Gb,call:Zb.call,nodes:Zb.nodes,node:Zb.node,size:Zb.size,empty:Zb.empty,each:Zb.each,on:bb,attr:tb,attrTween:ob,style:Db,styleTween:Ib,text:Bb,textTween:Hb,remove:wb,tween:$y,delay:ub,duration:hb,ease:pb,easeVarying:vb,end:Fb,[Symbol.iterator]:Zb[Symbol.iterator]};var Xb={time:null,delay:0,duration:250,ease:ot};function Kb(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}var $b=function(t){var e,n;t instanceof Wb?(e=t._id,t=t._name):(e=Yb(),(n=Xb).time=py(),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])&&Dy(a,t,e,c,s,n||Kb(a,e));return new Wb(r,this._parents,t,e)};Rm.prototype.interrupt=Vy,Rm.prototype.transition=$b;var Qb=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)}}(),Jb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Qb(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(it.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=qb(t).duration(ud.getProperty(bt,t,"duration")||bt.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=qb(t).duration(0);return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),n},e.prototype.setupTransition=function(t){var e=this,n=t.transition,r=t.name,i=t.animate;return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),!0!==i?n.duration(0):n.duration(ud.getProperty(bt,r,"duration")||bt.default.duration)},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(Rv),tO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tO(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").remove(),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}(Rv);const nO=1e3,rO=60*nO,iO=60*rO,oO=24*iO,aO=7*oO,sO=30*oO,uO=365*oO;var cO=new Date,lO=new Date;function hO(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 hO((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 cO.setTime(+e),lO.setTime(+r),t(cO),t(lO),Math.floor(n(cO,lO))},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 fO=hO((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));fO.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?hO((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):fO:null};var pO=fO,dO=(fO.range,hO((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*nO)}),(function(t,e){return(e-t)/nO}),(function(t){return t.getUTCSeconds()}))),vO=dO,gO=(dO.range,hO((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nO)}),(function(t,e){t.setTime(+t+e*rO)}),(function(t,e){return(e-t)/rO}),(function(t){return t.getMinutes()}))),mO=gO,yO=(gO.range,hO((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nO-t.getMinutes()*rO)}),(function(t,e){t.setTime(+t+e*iO)}),(function(t,e){return(e-t)/iO}),(function(t){return t.getHours()}))),_O=yO,bO=(yO.range,hO(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rO)/oO,t=>t.getDate()-1)),OO=bO;bO.range;function wO(t){return hO((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())*rO)/aO}))}var xO=wO(0),EO=wO(1),TO=wO(2),SO=wO(3),MO=wO(4),CO=wO(5),AO=wO(6),PO=(xO.range,EO.range,TO.range,SO.range,MO.range,CO.range,AO.range,hO((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()}))),LO=PO,DO=(PO.range,hO((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()})));DO.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hO((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 kO=DO,RO=(DO.range,hO((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*rO)}),(function(t,e){return(e-t)/rO}),(function(t){return t.getUTCMinutes()}))),IO=RO,jO=(RO.range,hO((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*iO)}),(function(t,e){return(e-t)/iO}),(function(t){return t.getUTCHours()}))),NO=jO,BO=(jO.range,hO((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/oO}),(function(t){return t.getUTCDate()-1}))),VO=BO;BO.range;function UO(t){return hO((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)/aO}))}var HO=UO(0),GO=UO(1),FO=UO(2),zO=UO(3),WO=UO(4),qO=UO(5),YO=UO(6),ZO=(HO.range,GO.range,FO.range,zO.range,WO.range,qO.range,YO.range,hO((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()}))),XO=ZO,KO=(ZO.range,hO((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()})));KO.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hO((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 $O=KO;KO.range;function QO(t,e,n,r,i,o){const a=[[vO,1,nO],[vO,5,5*nO],[vO,15,15*nO],[vO,30,30*nO],[o,1,rO],[o,5,5*rO],[o,15,15*rO],[o,30,30*rO],[i,1,iO],[i,3,3*iO],[i,6,6*iO],[i,12,12*iO],[r,1,oO],[r,2,2*oO],[n,1,aO],[e,1,sO],[e,3,3*sO],[t,1,uO]];function s(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"===typeof n.range?n:u(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o}function u(e,n,r){const i=Math.abs(n-e)/r,o=fv(([,,t])=>t).right(a,i);if(o===a.length)return t.every(Mv(e/uO,n/uO,r));if(0===o)return pO.every(Math.max(Mv(e,n,r),1));const[s,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(u)}return[s,u]}const[JO,tw]=QO($O,XO,HO,VO,NO,IO),[ew,nw]=QO(kO,LO,xO,OO,_O,mO);function rw(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 iw(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 ow(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function aw(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=vw(i),l=gw(i),h=vw(o),f=gw(o),p=vw(a),d=gw(a),v=vw(s),g=gw(s),m=vw(u),y=gw(u),_={a:k,A:R,b:I,B:j,c:null,d:Nw,e:Nw,f:Gw,g:Jw,G:ex,H:Bw,I:Vw,j:Uw,L:Hw,m:Fw,M:zw,p:N,q:B,Q:Ex,s:Tx,S:Ww,u:qw,U:Yw,V:Xw,w:Kw,W:$w,x:null,X:null,y:Qw,Y:tx,Z:nx,"%":xx},b={a:V,A:U,b:H,B:G,c:null,d:rx,e:rx,f:ux,g:_x,G:Ox,H:ix,I:ox,j:ax,L:sx,m:cx,M:lx,p:F,q:z,Q:Ex,s:Tx,S:hx,u:fx,U:px,V:vx,w:gx,W:mx,x:null,X:null,y:yx,Y:bx,Z:wx,"%":xx},O={a:S,A:M,b:C,B:A,c:P,d:Mw,e:Mw,f:kw,g:xw,G:ww,H:Aw,I:Aw,j:Cw,L:Dw,m:Sw,M:Pw,p:T,q:Tw,Q:Iw,s:jw,S:Lw,u:yw,U:_w,V:bw,w:mw,W:Ow,x:L,X:D,y:xw,Y:ww,Z:Ew,"%":Rw};function w(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=cw[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=ow(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=iw(ow(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?GO.ceil(r):GO(r),r=VO.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=rw(ow(o.y,0,1)),i=r.getDay(),r=i>4||0===i?EO.ceil(r):EO(r),r=OO.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?iw(ow(o.y,0,1)).getUTCDay():rw(ow(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,iw(o)):rw(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=O[i in cw?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function T(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1}function S(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d.get(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.get(r[0].toLowerCase()),n+r[0].length):-1}function C(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function P(t,n,r){return E(t,e,n,r)}function L(t,e,r){return E(t,n,e,r)}function D(t,e,n){return E(t,r,e,n)}function k(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 V(t){return a[t.getUTCDay()]}function U(t){return o[t.getUTCDay()]}function H(t){return u[t.getUTCMonth()]}function G(t){return s[t.getUTCMonth()]}function F(t){return i[+(t.getUTCHours()>=12)]}function z(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(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=w(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 sw,uw,cw={"-":"",_:" ",0:"0"},lw=/^\s*\d+/,hw=/^%/,fw=/[\\^$*+?|[\]().{}]/g;function pw(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 dw(t){return t.replace(fw,"\\$&")}function vw(t){return new RegExp("^(?:"+t.map(dw).join("|")+")","i")}function gw(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function mw(t,e,n){var r=lw.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function yw(t,e,n){var r=lw.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function _w(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function bw(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ow(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ww(t,e,n){var r=lw.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function xw(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ew(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 Tw(t,e,n){var r=lw.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Sw(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Mw(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Cw(t,e,n){var r=lw.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Aw(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Pw(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lw(t,e,n){var r=lw.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Dw(t,e,n){var r=lw.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function kw(t,e,n){var r=lw.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rw(t,e,n){var r=hw.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Iw(t,e,n){var r=lw.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function jw(t,e,n){var r=lw.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Nw(t,e){return pw(t.getDate(),e,2)}function Bw(t,e){return pw(t.getHours(),e,2)}function Vw(t,e){return pw(t.getHours()%12||12,e,2)}function Uw(t,e){return pw(1+OO.count(kO(t),t),e,3)}function Hw(t,e){return pw(t.getMilliseconds(),e,3)}function Gw(t,e){return Hw(t,e)+"000"}function Fw(t,e){return pw(t.getMonth()+1,e,2)}function zw(t,e){return pw(t.getMinutes(),e,2)}function Ww(t,e){return pw(t.getSeconds(),e,2)}function qw(t){var e=t.getDay();return 0===e?7:e}function Yw(t,e){return pw(xO.count(kO(t)-1,t),e,2)}function Zw(t){var e=t.getDay();return e>=4||0===e?MO(t):MO.ceil(t)}function Xw(t,e){return t=Zw(t),pw(MO.count(kO(t),t)+(4===kO(t).getDay()),e,2)}function Kw(t){return t.getDay()}function $w(t,e){return pw(EO.count(kO(t)-1,t),e,2)}function Qw(t,e){return pw(t.getFullYear()%100,e,2)}function Jw(t,e){return t=Zw(t),pw(t.getFullYear()%100,e,2)}function tx(t,e){return pw(t.getFullYear()%1e4,e,4)}function ex(t,e){var n=t.getDay();return t=n>=4||0===n?MO(t):MO.ceil(t),pw(t.getFullYear()%1e4,e,4)}function nx(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pw(e/60|0,"0",2)+pw(e%60,"0",2)}function rx(t,e){return pw(t.getUTCDate(),e,2)}function ix(t,e){return pw(t.getUTCHours(),e,2)}function ox(t,e){return pw(t.getUTCHours()%12||12,e,2)}function ax(t,e){return pw(1+VO.count($O(t),t),e,3)}function sx(t,e){return pw(t.getUTCMilliseconds(),e,3)}function ux(t,e){return sx(t,e)+"000"}function cx(t,e){return pw(t.getUTCMonth()+1,e,2)}function lx(t,e){return pw(t.getUTCMinutes(),e,2)}function hx(t,e){return pw(t.getUTCSeconds(),e,2)}function fx(t){var e=t.getUTCDay();return 0===e?7:e}function px(t,e){return pw(HO.count($O(t)-1,t),e,2)}function dx(t){var e=t.getUTCDay();return e>=4||0===e?WO(t):WO.ceil(t)}function vx(t,e){return t=dx(t),pw(WO.count($O(t),t)+(4===$O(t).getUTCDay()),e,2)}function gx(t){return t.getUTCDay()}function mx(t,e){return pw(GO.count($O(t)-1,t),e,2)}function yx(t,e){return pw(t.getUTCFullYear()%100,e,2)}function _x(t,e){return t=dx(t),pw(t.getUTCFullYear()%100,e,2)}function bx(t,e){return pw(t.getUTCFullYear()%1e4,e,4)}function Ox(t,e){var n=t.getUTCDay();return t=n>=4||0===n?WO(t):WO.ceil(t),pw(t.getUTCFullYear()%1e4,e,4)}function wx(){return"+0000"}function xx(){return"%"}function Ex(t){return+t}function Tx(t){return Math.floor(+t/1e3)}function Sx(t){return sw=aw(t),uw=sw.format,sw.parse,sw.utcFormat,sw.utcParse,sw}Sx({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 Mx=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 Cx(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ax(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]=Dx(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 Px=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},Lx=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]=Dx(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Dx=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?I_(e):("number"===r?Uy:"string"===r?(n=y_(e))?(e=n,U_):q_:e instanceof y_?U_:e instanceof Date?Px:Cx(e)?Mx:Array.isArray(e)?Ax:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Lx:Uy)(t,e)},kx=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function Rx(t){return function(){return t}}function Ix(t){return+t}var jx=[0,1];function Nx(t){return t}function Bx(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Rx(isNaN(e)?NaN:.5)}function Vx(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function Ux(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Bx(i,r),o=n(a,o)):(r=Bx(r,i),o=n(o,a)),function(t){return o(r(t))}}function Hx(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]=Bx(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=yv(t,e,1,r)-1;return o[n](i[n](e))}}function Gx(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Fx(){var t,e,n,r,i,o,a=jx,s=jx,u=Dx,c=Nx;function l(){var t=Math.min(a.length,s.length);return c!==Nx&&(c=Vx(a[0],a[t-1])),r=t>2?Hx:Ux,i=o=null,h}function h(e){return null==e||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),Uy)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Ix),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=kx,l()},h.clamp=function(t){return arguments.length?(c=!!t||Nx,l()):c!==Nx},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 zx(){return Fx()(Nx,Nx)}function Wx(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 qx(t){return new Date(t)}function Yx(t){return t instanceof Date?+t:+new Date(+t)}function Zx(t,e,n,r,i,o,a,s,u,c){var l=zx(),h=l.invert,f=l.domain,p=c(".%L"),d=c(":%S"),v=c("%I:%M"),g=c("%I %p"),m=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y");function O(t){return(u(t)<t?p:s(t)<t?d:a(t)<t?v:o(t)<t?g:r(t)<t?i(t)<t?m:y:n(t)<t?_:b)(t)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?f(Array.from(t,Yx)):f().map(qx)},l.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?O:c(e)},l.nice=function(t){var n=f();return t&&"function"===typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(Wx(n,t)):l},l.copy=function(){return Gx(l,Zx(t,e,n,r,i,o,a,s,u,c))},l}function Xx(){return Jd.apply(Zx(ew,nw,kO,LO,xO,OO,_O,mO,vO,uw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Kx=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)};function $x(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)]}var Qx=function(t){return t=$x(Math.abs(t)),t?t[1]:NaN},Jx=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)}},tE=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},eE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nE(t){if(!(e=eE.exec(t)))throw new Error("invalid format: "+t);var e;return new rE({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 rE(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+""}nE.prototype=rE.prototype,rE.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 iE,oE,aE,sE,uE=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},cE=function(t,e){var n=$x(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(iE=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")+$x(t,Math.max(0,e+o-1))[0]},lE=function(t,e){var n=$x(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")},hE={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Kx,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>lE(100*t,e),r:lE,s:cE,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},fE=function(t){return t},pE=Array.prototype.map,dE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],vE=function(t){var e=void 0===t.grouping||void 0===t.thousands?fE:Jx(pE.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?fE:tE(pE.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=nE(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"):hE[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:"",O=hE[y],w=/[defgprs%]/.test(y);function x(t){var n,r,a,f=_,x=b;if("c"===y)x=O(t)+x,t="";else{t=+t;var E=t<0||1/t<0;if(t=isNaN(t)?u:O(Math.abs(t),g),m&&(t=uE(t)),E&&0===+t&&"+"!==h&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,x=("s"===y?dE[8+iE/3]:"")+x+(E&&"("===h?")":""),w){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 T=f.length+t.length+x.length,S=T<d?new Array(d-T+1).join(c):"";switch(v&&p&&(t=e(S+t,S.length?d-x.length:1/0),S=""),l){case"<":t=f+t+x+S;break;case"=":t=f+S+t+x;break;case"^":t=S.slice(0,T=S.length>>1)+f+t+x+S.slice(T);break;default:t=S+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=nE(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Qx(e)/3))),i=Math.pow(10,-r),o=dE[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function gE(t){return oE=vE(t),aE=oE.format,sE=oE.formatPrefix,oE}function mE(t){return Math.log(t)}function yE(t){return Math.exp(t)}function _E(t){return-Math.log(-t)}function bE(t){return-Math.exp(-t)}function OE(t){return isFinite(t)?+("1e"+t):t<0?0:t}function wE(t){return 10===t?OE:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function xE(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 EE(t){return function(e){return-t(-e)}}function TE(t){var e,n,r=t(mE,yE),i=r.domain,o=10;function a(){return e=xE(o),n=wE(o),i()[0]<0?(e=EE(e),n=EE(n),t(_E,bE)):t(mE,yE),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.floor(f),p=Math.ceil(p),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)}2*v.length<d&&(v=Tv(s,u,d))}else v=Tv(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=aE(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(Wx(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function SE(){var t=TE(Fx()).domain([1,10]);return t.copy=function(){return Gx(t,SE()).base(t.base())},Jd.apply(t,arguments),t}gE({thousands:",",grouping:[3],currency:["$",""]});var ME=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};function CE(){var t,e,n=ev().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,u=0,c=0,l=.5;function h(){var n=r().length,h=a<o,f=h?a:o,p=h?o:a;t=(p-f)/Math.max(1,n-u+2*c),s&&(t=Math.floor(t)),f+=(p-f-t*(n-u))*l,e=t*(1-u),s&&(f=Math.round(f),e=Math.round(e));var d=ME(n).map((function(e){return f+t*e}));return i(h?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),h()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,h()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,h()):s},n.padding=function(t){return arguments.length?(u=Math.min(1,c=+t),h()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),h()):u},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),h()):l},n.copy=function(){return CE(r(),[o,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},Jd.apply(h(),arguments)}var AE=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Qx(e)/3)))-Qx(Math.abs(t)))},PE=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Qx(e)-Qx(t))+1},LE=function(t){return Math.max(0,-Qx(Math.abs(t)))};function DE(t,e,n,r){var i,o=Mv(t,e,n);switch(r=nE(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=AE(o,a))||(r.precision=i),sE(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=PE(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=LE(o))||(r.precision=i-2*("%"===r.type));break}return aE(r)}function kE(t){var e=t.domain;return t.ticks=function(t){var n=e();return Tv(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return DE(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,u=o[a],c=o[s],l=10;c<u&&(i=u,u=c,c=i,i=a,a=s,s=i);while(l-- >0){if(i=Sv(u,c,n),i===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function RE(){var t=zx();return t.copy=function(){return Gx(t,RE())},Jd.apply(t,arguments),kE(t)}function IE(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function jE(t,e){let n=0;if(void 0===e)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function NE(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 BE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=NE(e);return n.getFullYear()-r.getFullYear()}function VE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=NE(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function UE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=NE(e),i=VE(n,r),o=Math.abs(BE(n,r));n.setFullYear(n.getFullYear()-i*o);var a=VE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function HE(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 GE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=NE(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 FE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=HE(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=GE(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function zE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return FE(t,12*n)}function WE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return zE(t,-n)}function qE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=NE(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function YE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=NE(e),i=VE(n,r),o=Math.abs(qE(n,r));n.setMonth(n.getMonth()-i*o);var a=VE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function ZE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return FE(t,-n)}var XE=6e4;function KE(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%XE;return n*XE+r}function $E(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=NE(t);return e.setHours(0,0,0,0),e}var QE=864e5;function JE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=$E(t),r=$E(e),i=n.getTime()-KE(n),o=r.getTime()-KE(r);return Math.round((i-o)/QE)}function tT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=NE(e),i=VE(n,r),o=Math.abs(JE(n,r));n.setDate(n.getDate()-i*o);var a=VE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function eT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=HE(e);return n.setDate(n.getDate()+r),n}function nT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return eT(t,-n)}function rT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t),r=NE(e);return n.getTime()-r.getTime()}var iT=36e5;function oT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=rT(t,e)/iT;return n>0?Math.floor(n):Math.ceil(n)}function aT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=NE(t).getTime(),r=HE(e);return new Date(n+r)}var sT=36e5;function uT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return aT(t,n*sT)}function cT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return uT(t,-n)}var lT=6e4;function hT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=rT(t,e)/lT;return n>0?Math.floor(n):Math.ceil(n)}var fT=6e4;function pT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return aT(t,n*fT)}function dT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return pT(t,-n)}function vT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=rT(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function gT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return aT(t,1e3*n)}function mT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return gT(t,-n)}var yT=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)}}(),_T=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},bT=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},OT=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 yT(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=ud.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=ud.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 ud.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.getScaleLabel=function(t){var e=this.getAxisOptions(t),n=e.title;return n||(t===R.BOTTOM||t===R.TOP?"x-value":"y-value")},e.prototype.getDomainLabel=function(){return this.getScaleLabel(this.getDomainAxisPosition())},e.prototype.getRangeLabel=function(){return this.getScaleLabel(this.getRangeAxisPosition())},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(R).map((function(t){return R[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!==R.LEFT&&this.rangeAxisPosition!==R.RIGHT||this.domainAxisPosition!==R.BOTTOM&&this.domainAxisPosition!==R.TOP?this.orientation=N.HORIZONTAL:this.orientation=N.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=ud.getProperty(i,"axes");((null===(t=o[R.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[R.RIGHT]||(null===(e=o[R.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[R.LEFT]||(null===(n=o[R.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[R.BOTTOM]||(null===(r=o[R.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[R.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=[R.BOTTOM,R.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[R.LEFT,R.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=ud.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=null!==ud.getProperty(r,c)?r[c]:r;switch(e){case B.LABELS:o=t(l)+t.step()/2;break;case B.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=ud.getProperty(i,"axes"),a=o[this.rangeAxisPosition],s=a.mapsTo,u=void 0!==t[s]?t[s]:t,c=[r(null!==ud.getProperty(t,n.upperBoundMapsTo)?t[n.upperBoundMapsTo]:u),r(null!==ud.getProperty(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 ud.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return ud.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=ud.getProperty(n,"axes",t);if(r.scaleType===B.TIME){var i=ud.getProperty(n,"timeScale","addSpaceOnEdges");return wT(e,i)}return xT(e,st.paddingRatio,r.scaleType)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=ud.getProperty(t,"axes"),n=this.isDualAxes();return null===ud.getProperty(e,R.LEFT)&&null!==ud.getProperty(e,R.RIGHT)||!0===ud.getProperty(e,R.RIGHT,"main")||n&&ud.getProperty(e,R.LEFT,"correspondingDatasets")?{primary:R.RIGHT,secondary:R.LEFT}:{primary:R.LEFT,secondary:R.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=ud.getProperty(t,"axes"),n=this.isDualAxes();return null===ud.getProperty(e,R.BOTTOM)&&null!==ud.getProperty(e,R.TOP)||!0===ud.getProperty(e,R.TOP,"main")||n&&ud.getProperty(e,R.BOTTOM,"correspondingDatasets")?{primary:R.TOP,secondary:R.BOTTOM}:{primary:R.BOTTOM,secondary:R.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=ud.getProperty(n,"axes",t.primary),i=ud.getProperty(n,"axes",e.primary),o=r.scaleType||B.LINEAR,a=i.scaleType||B.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!==B.LABELS&&a!==B.TIME&&o===B.LABELS||o===B.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=ud.getProperty(e,"axes",t),r=ud.getProperty(e,"bounds"),i=n.includeZero,o=ud.getProperty(n,"scaleType")||B.LINEAR;if(this.model.isDataEmpty())return[];if(n.binned){var a=this.model.getBinConfigurations().bins;return[0,IE(a,(function(t){return t.length}))]}if(n.limitDomainToBins){a=this.model.getBinConfigurations().bins;var s=this.model.getStackKeys({bins:a});return[s[0].split("-")[0],s[s.length-1].split("-")[1]]}var u,c,l=this.model.getDisplayData(),h=n.extendLinearDomainBy,f=n.mapsTo,p=n.percentage,d=n.thresholds,v=st.ratio,g=v.reference,m=v.compareTo;if(n.domain)return o===B.LABELS?n.domain:(o===B.TIME&&(n.domain=n.domain.map((function(t){return void 0===t.getTime?new Date(t):t}))),this.extendsDomain(t,n.domain));if(p)return[0,100];if(n&&o===B.LABELS)return ud.removeArrayDuplicates(l.map((function(t){return t[f]})));var y=this.model.getDataGroupNames();if(o===B.LABELS_RATIO)return l.map((function(t){return t[g]+"/"+t[m]}));if(o===B.TIME)c=l.map((function(t){return+new Date(t[f])}));else if(r&&e.axes)c=[],l.forEach((function(t){c.push(t[f]),t[r.upperBoundMapsTo]&&c.push(t[r.upperBoundMapsTo]),t[r.lowerBoundMapsTo]&&c.push(t[r.lowerBoundMapsTo])}));else if(!0===n.stacked&&y&&t===this.getRangeAxisPosition()){var _=e.data.groupMapsTo,b=this.model.getDataValuesGroupedByKeys({groups:y}),O=l.filter((function(t){return!y.includes(t[_])})),w=b.map((function(t){t.sharedStackKey;var e=_T(t,["sharedStackKey"]);return jE(Object.values(e))}));c=bT(w,O.map((function(t){return t[f]})))}else c=[],l.forEach((function(t){var e=t[f];Array.isArray(e)&&2===e.length?(c.push(e[0]),c.push(e[1])):(h&&c.push(Math.max(t[f],t[h])),c.push(e))}));return o!==B.TIME&&o!==B.LOG&&i&&c.push(0),d&&d.length>0&&d.forEach((function(t){var e=ud.getProperty(t,"value");null!==e&&c.push(e)})),u=bv(c),u=this.extendsDomain(t,u),u},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=ud.getProperty(e,"axes",t);if(!n)return null;var r,i=ud.getProperty(n,"scaleType")||B.LINEAR;return this.scaleTypes[t]=i,r=i===B.TIME?Xx():i===B.LOG?SE().base(n.base||10):i===B.LABELS||i===B.LABELS_RATIO?CE():RE(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=ud.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!==B.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=ud.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}(Rv);function wT(t,e){var n=new Date(t[0]),r=new Date(t[1]);return UE(r,n)>1?[WE(n,e),zE(r,e)]:YE(r,n)>1?[ZE(n,e),FE(r,e)]:tT(r,n)>1?[nT(n,e),eT(r,e)]:oT(r,n)>1?[cT(n,e),uT(r,e)]:hT(r,n)>30?[dT(n,30*e),pT(r,30*e)]:hT(r,n)>1?[dT(n,e),pT(r,e)]:vT(r,n)>15?[mT(n,15*e),gT(r,15*e)]:vT(r,n)>1?[mT(n,e),gT(r,e)]:[n,r]}function xT(t,e,n){var r=t[0],i=t[1],o=i-r,a=o*e,s=i<=0&&i+a>0?0:i+a,u=r>=0&&r-a<0?0:r-a;if(n===B.LOG&&u<=0){if(r<=0)throw Error("Data must have values greater than 0 if log scale type is used.");u=r}return[u,s]}function ET(t){this._context=t}ET.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 TT=function(t){return new ET(t)},ST=function(){};function MT(t){this._context=t}MT.prototype={areaStart:ST,areaEnd:ST,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 CT=function(t){return new MT(t)};function AT(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 PT(t){this._context=t}PT.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:AT(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:AT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var LT=function(t){return new PT(t)};function DT(t){this._context=t}DT.prototype={areaStart:ST,areaEnd:ST,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:AT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var kT=function(t){return new DT(t)};function RT(t){this._context=t}RT.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:AT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var IT=function(t){return new RT(t)};function jT(t,e){this._basis=new PT(t),this._beta=e}jT.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 NT=function t(e){function n(t){return 1===e?new PT(t):new jT(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function BT(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 VT(t,e){this._context=t,this._k=(1-e)/6}VT.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:BT(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:BT(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 UT=function t(e){function n(t){return new VT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function HT(t,e){this._context=t,this._k=(1-e)/6}HT.prototype={areaStart:ST,areaEnd:ST,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:BT(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 GT=function t(e){function n(t){return new HT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function FT(t,e){this._context=t,this._k=(1-e)/6}FT.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:BT(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 zT=function t(e){function n(t){return new FT(t,e)}return n.tension=function(e){return t(+e)},n}(0),WT=Math.abs,qT=Math.atan2,YT=Math.cos,ZT=Math.max,XT=Math.min,KT=Math.sin,$T=Math.sqrt,QT=1e-12,JT=Math.PI,tS=JT/2,eS=2*JT;function nS(t){return t>1?0:t<-1?JT:Math.acos(t)}function rS(t){return t>=1?tS:t<=-1?-tS:Math.asin(t)}function iS(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>QT){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>QT){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 oS(t,e){this._context=t,this._alpha=e}oS.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:iS(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 aS=function t(e){function n(t){return e?new oS(t,e):new VT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function sS(t,e){this._context=t,this._alpha=e}sS.prototype={areaStart:ST,areaEnd:ST,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:iS(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 uS=function t(e){function n(t){return e?new sS(t,e):new HT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function cS(t,e){this._context=t,this._alpha=e}cS.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:iS(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 lS=function t(e){function n(t){return e?new cS(t,e):new FT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function hS(t){return t<0?-1:1}function fS(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(hS(o)+hS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function pS(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function dS(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 vS(t){this._context=t}function gS(t){this._context=new mS(t)}function mS(t){this._context=t}function yS(t){return new vS(t)}function _S(t){return new gS(t)}function bS(t){this._context=t}function OS(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]}vS.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:dS(this,this._t0,pS(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,dS(this,pS(this,n=fS(this,t,e)),n);break;default:dS(this,this._t0,n=fS(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(gS.prototype=Object.create(vS.prototype)).point=function(t,e){vS.prototype.point.call(this,e,t)},mS.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)}},bS.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=OS(t),i=OS(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 wS=function(t){return new bS(t)};function xS(t,e){this._context=t,this._t=e}xS.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 ES=function(t){return new xS(t,.5)};function TS(t){return new xS(t,0)}function SS(t){return new xS(t,1)}var MS=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)}}(),CS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:TT,curveLinearClosed:CT,curveBasis:LT,curveBasisClosed:kT,curveBasisOpen:IT,curveBundle:NT,curveCardinal:UT,curveCardinalClosed:GT,curveCardinalOpen:zT,curveCatmullRom:aS,curveCatmullRomClosed:uS,curveCatmullRomOpen:lS,curveMonotoneX:yS,curveMonotoneY:_S,curveNatural:wS,curveStep:ES,curveStepAfter:SS,curveStepBefore:TS},e}return MS(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}(Rv),AS=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)}}(),PS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return AS(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!ud.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=ud.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===R.BOTTOM&&e===B.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,bv(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(it.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return ud.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=ud.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=wt.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=ud.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 ud.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return ud.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(Rv),LS=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)}}(),DS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LS(e,t),e.prototype.zoomIn=function(t,e,n){var r,i,o,a=n||ut;t&&(r=t.x,i=t.y,o=2);var s=zm.getSVGElementSize(this.services.domUtils.getHolder(),{useClientDimensions:!0}),u=s.width,c=s.height;e.transition().duration(a.duration).ease(a.ease).attr("transform","translate("+u/2+", "+c/2+") scale("+o+") translate("+-r+","+-i+")"),this.services.events.dispatchEvent(it.CanvasZoom.CANVAS_ZOOM_IN,{element:Im(t)})},e.prototype.zoomOut=function(t,e){var n=e||ut;t.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(it.CanvasZoom.CANVAS_ZOOM_OUT)},e}(Rv),kS=function(){function t(t,e,n){if(this.renderType=L.HTML,this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=ud.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(Im(this.services.domUtils.getMainContainer()))}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=ud.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(Bm.prefix+"--"+n+"--"+this.type,!0).attr("id",this.id),e&&e.classed(Bm.prefix+"--"+n+"--"+this.type,!1).attr("id",this.id)}},t.prototype.getParent=function(){return this.parent},t.prototype.getComponentContainer=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=ud.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=zm.appendOrSelect(this.parent,(this.renderType===L.SVG?"svg":"div")+n+"."+Bm.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");if(i){var o=Im("#"+i),a=o.select("rect");0!==a.size()&&parseFloat(a.attr("height"))>0&&r.attr("clip-path","url(#"+i+")")}}return r.attr("width","100%").attr("height","100%")}return this.parent},t.prototype.getOptions=function(){if(this.configs.options){var t=ud.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),RS=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)}}(),IS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e.renderType=L.HTML,e}return RS(e,t),e.prototype.render=function(){var t=this,e=this.getOptions(),n=ud.getProperty(e,"legend"),r=ud.getProperty(n,"alignment"),i=ud.getProperty(e,"legend","orientation"),o=this.model.getDataGroups(),s=pt.items.status.DISABLED,u=o.some((function(t){return t.status===s})),c=ud.getProperty(n,"order"),l=this.getComponentContainer().classed("center-aligned",r===U.CENTER).classed(i,!0).classed("has-deactivated-items",u).attr("role",a.GROUP).attr("data-name","legend-items");c&&(o=this.sortDataGroups(o,c));var h=l.selectAll("div.legend-item").data(o,(function(t){return t.name})),f=h.enter().append("div").attr("class","legend-item");f.merge(l.selectAll("div.legend-item")).classed("active",(function(t,e){return t.status===pt.items.status.ACTIVE}));var p=ud.getProperty(this.getOptions(),"legend","clickable");l.classed("clickable",p&&o.length>1);var d=pt.checkbox.radius,v=f.append("div").classed("checkbox",!0);v.merge(h.select("div.checkbox")).attr("role",a.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===pt.items.status.ACTIVE})).attr("width",2*d).attr("height",2*d).attr("rx",1).attr("ry",1).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[k.BACKGROUND],dataGroupName:e.name,originalClassName:"checkbox"})})).style("background",(function(e){return e.status===pt.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===pt.items.status.ACTIVE}));v.append("svg").attr("focusable",!1).attr("preserveAspectRatio","xMidYMid meet").attr("xmlns","http://www.w3.org/2000/svg").attr("width","11").attr("height","11").attr("viewBox","0 0 31 28").attr("aria-hidden",!0).style("will-change","transform").append("path").attr("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");var g=f.append("p").merge(h.select("p"));this.truncateLegendText(g);var m=ud.getProperty(e,"legend","additionalItems");if(m&&o.length){var y=this,_=l.selectAll("div.additional-item").data(m);_.exit().remove();var b,O=_.enter().append("div").merge(_).classed("legend-item",!0).classed("additional",!0);O.selectAll("*").remove();var w=1;O.append("svg").classed("icon",!0).each((function(t,e){var n=Im(this);b&&b==t.type?w++:(b=t.type,w=1),y.addAdditionalItem(n,t,w)}));var x=O.append("p").merge(O.select("p"));this.truncateLegendText(x)}h.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),p&&f.size()>1&&this.addEventListeners()},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.addAdditionalItem=function(t,e,n){var r=pt.area,i=r.width,s=r.height;if(e.type===nt.RADIUS?t.style("width",s+"px").style("height",s+"px"):t.style("width",i+"px").style("height",s+"px"),e.type===nt.RADIUS){var u=pt.radius,c=u.iconData,l=u.fill,h=u.stroke,f=t.attr("fill","none").selectAll("circle").data(c).enter();f.append("circle").classed("radius",!0).attr("role",a.IMG).attr("aria-label","radius").attr("cx",(function(t){return t.cx})).attr("cy",(function(t){return t.cy})).attr("r",(function(t){return t.r})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h)}else if(e.type===nt.LINE){var p=pt.line;t.select("line.line").empty()&&t.append("line").classed("line-"+n,!0).attr("role",a.IMG).attr("aria-label","line").attr("x1",0).attr("y1",p.yPosition).attr("x2",i).attr("y2",p.yPosition).style("stroke",e.stroke?e.stroke:p.stroke).style("stroke-width",p.strokeWidth)}else if(e.type===nt.AREA)t.select("rect.area").empty()&&t.append("rect").classed("area-"+n,!0).attr("role",a.IMG).attr("aria-label","area").attr("width",i).attr("height",s).style("fill",n>3&&!e.fill?pt.area.fill:e.fill).style("stroke",e.stroke);else if(e.type===nt.SIZE){var d=pt.size,v=(c=d.iconData,l=d.fill,h=d.stroke,t.attr("fill","none").attr("role",a.IMG).attr("aria-label","size").selectAll("rect").data(c).enter());v.append("rect").classed("size",!0).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return 0})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h).style("stroke-width",1)}else if(e.type===nt.QUARTILE){c=pt.quartile.iconData;var g=t.selectAll("rect").attr("role",a.IMG).attr("aria-label","quartile").data(c).enter();g.append("rect").attr("class",(function(t,e){return"quartile-"+(0===e?"wrapper":"line")})).attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height}))}else if(e.type===nt.ZOOM){var m=ud.getProperty(o,"legend","zoom"),y=(c=m.iconData,m.color),_=t.attr("role",a.IMG).attr("aria-label","zoom").selectAll("g.icon").data(c).enter();_.append("g").attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).append("polygon").attr("points","7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82").attr("fill",(function(t){return e.color?e.color:y})),_.append("path").attr("d","M9.36,8.67A5.22,5.22,0,0,0,10.59,5.3,5.3,5.3,0,1,0,5.3,10.59,5.22,5.22,0,0,0,8.67,9.36L12.32,13l.68-.68Zm-4.06,1A4.34,4.34,0,1,1,9.63,5.3,4.33,4.33,0,0,1,5.3,9.63Z").attr("fill",(function(t){return e.color?e.color:y}))}},e.prototype.truncateLegendText=function(t){var e=ud.getProperty(this.getOptions(),"legend","truncation"),n=ud.getProperty(e,"type"),r=ud.getProperty(e,"threshold"),i=ud.getProperty(e,"numCharacter");n!==j.NONE?t.html((function(t){return t.name.length>r?ud.truncateLabel(t.name,n,i):t.name})):t.html((function(t){return t.name}))},e.prototype.addEventListeners=function(){var t=this,e=this.getComponentContainer(),n=this.getOptions(),r=ud.getProperty(n,"legend"),i=ud.getProperty(r,"truncation","threshold");e.selectAll("div.legend-item").on("mouseover",(function(e){t.services.events.dispatchEvent(it.Legend.ITEM_HOVER,{hoveredElement:Im(this)});var n=Im(this);n.select("div.checkbox").classed("hovered",!0);var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})})).on("mousemove",(function(e){t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(){t.services.events.dispatchEvent(it.Legend.ITEM_CLICK,{clickedElement:Im(this)});var e=Im(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=Im(this);e.select("div.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(it.Tooltip.HIDE),t.services.events.dispatchEvent(it.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("div.legend-item div.checkbox").on("keyup",(function(e,n){!e.key||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.model.toggleDataLabel(n.name))})),e.selectAll("g.additional-item").on("mouseover",(function(e){var n=Im(this),r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})}))},e}(kS);n("9b04");function jS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NS(t){return HS(t)||US(t)||VS(t)||BS()}function BS(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function VS(t,e){if(t){if("string"===typeof t)return GS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GS(t,e):void 0}}function US(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function HS(t){if(Array.isArray(t))return GS(t)}function GS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function FS(t){return t.reduce((function(t,e){return Array.isArray(e)?t.push.apply(t,NS(FS(e))):t.push(e),t}),[])}function zS(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return FS(e).reduce((function(t,e){return e(t)}),function(){function t(){jS(this,t)}return t}())}function WS(t){return WS="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WS(t)}function qS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ZS(t,e,n){return e&&YS(t.prototype,e),n&&YS(t,n),t}function XS(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&KS(t,e)}function KS(t,e){return KS=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},KS(t,e)}function $S(t){var e=tM();return function(){var n,r=eM(t);if(e){var i=eM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return QS(this,n)}}function QS(t,e){return!e||"object"!==WS(e)&&"function"!==typeof e?JS(t):e}function JS(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function eM(t){return eM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},eM(t)}var nM=function(t){var e=function(t){XS(n,t);var e=$S(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(qS(this,n),r=e.call(this,t,i),r.children=[],!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");return r.element=t,r.options=Object.assign(Object.create(r.constructor.options),i),r.constructor.components.set(r.element,JS(r)),r}return ZS(n,[{key:"release",value:function(){for(var t=this.children.pop();t;t=this.children.pop())t.release();return this.constructor.components.delete(this.element),null}}],[{key:"create",value:function(t,e){return this.components.get(t)||new this(t,e)}}]),n}(t);return e};function rM(t,e){var n=t.target,r=t.currentTarget;if("function"===typeof n.matches){if(n.matches(e))return n;if(n.matches("".concat(e," *"))){var i=n.closest(e);if((r.nodeType===Node.DOCUMENT_NODE?r.documentElement:r).contains(i))return i}}}function iM(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.addEventListener.apply(t,n),{release:function(){return t.removeEventListener.apply(t,n),null}}}function oM(t){return oM="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oM(t)}function aM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uM(t,e,n){return e&&sM(t.prototype,e),n&&sM(t,n),t}function cM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&lM(t,e)}function lM(t,e){return lM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},lM(t,e)}function hM(t){var e=dM();return function(){var n,r=vM(t);if(e){var i=vM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fM(this,n)}}function fM(t,e){return!e||"object"!==oM(e)&&"function"!==typeof e?pM(t):e}function pM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function vM(t){return vM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},vM(t)}var gM=function(t){var e=function(t){cM(n,t);var e=hM(n);function n(){return aM(this,n),e.apply(this,arguments)}return uM(n,null,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign(Object.create(this.options),n);if(!e||e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)throw new TypeError("DOM document or DOM element should be given to search for and initialize this widget.");if(e.nodeType!==Node.ELEMENT_NODE||!e.matches(r.selectorInit)){var i=r.initEventNames.map((function(i){return iM(e,i,(function(e){var i=rM(e,"[".concat(r.attribInitTarget,"]"));if(i){e.delegateTarget=i;var o=i.ownerDocument.querySelectorAll(i.getAttribute(r.attribInitTarget));if(o.length>1)throw new Error("Target widget must be unique.");if(1===o.length){"A"===i.tagName&&e.preventDefault();var a=t.create(o[0],n);"function"===typeof a.createdByLauncher&&a.createdByLauncher(e)}}}))}));return{release:function(){for(var t=i.pop();t;t=i.pop())t.release()}}}return this.create(e,n),""}}]),n.forLazyInit=!0,n}(t);return e};function mM(t){return mM="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mM(t)}function yM(t){return wM(t)||OM(t)||bM(t)||_M()}function _M(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bM(t,e){if(t){if("string"===typeof t)return xM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xM(t,e):void 0}}function OM(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function wM(t){if(Array.isArray(t))return xM(t)}function xM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function EM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function SM(t,e,n){return e&&TM(t.prototype,e),n&&TM(t,n),t}function MM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&CM(t,e)}function CM(t,e){return CM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},CM(t,e)}function AM(t){var e=DM();return function(){var n,r=kM(t);if(e){var i=kM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return PM(this,n)}}function PM(t,e){return!e||"object"!==mM(e)&&"function"!==typeof e?LM(t):e}function LM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function kM(t){return kM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},kM(t)}var RM=function(t){var e=function(t){MM(n,t);var e=AM(n);function n(){return EM(this,n),e.apply(this,arguments)}return SM(n,[{key:"_changeState",value:function(){throw new Error("_changeState() should be overriden to perform actual change in state.")}},{key:"changeState",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i="string"===typeof n[0]?n.shift():void 0,o=Object(n[0])===n[0]&&"function"!==typeof n[0]?n.shift():void 0,a="function"===typeof n[0]?n.shift():void 0;if("function"!==typeof this.shouldStateBeChanged||this.shouldStateBeChanged(i,o)){var s={group:o&&o.group,state:i},u=[s.group,i].filter(Boolean).join("-").split("-").map((function(t){return t[0].toUpperCase()+t.substr(1)})).join(""),c=new CustomEvent(this.options["eventBefore".concat(u)],{bubbles:!0,cancelable:!0,detail:o}),l=o&&o.delegatorNode||this.element,h=!l.dispatchEvent(c);if(h){if(a){var f=new Error("Changing state (".concat(JSON.stringify(s),") has been canceled."));f.canceled=!0,a(f)}}else{var p=[i,o].filter(Boolean);this._changeState.apply(this,yM(p).concat([function(){l.dispatchEvent(new CustomEvent(t.options["eventAfter".concat(u)],{bubbles:!0,cancelable:!0,detail:o})),a&&a()}]))}}else a&&a(null,!0)}}]),n}(t);return e};function IM(t){if(!t||"function"===typeof t)return{launchingElement:null,launchingEvent:null};var e=t.delegateTarget||t.currentTarget||t,n=t.currentTarget&&t;if(e&&!e.nodeType)throw new TypeError("DOM Node should be given for launching element.");if(n&&!n.type)throw new TypeError("DOM event should be given for launching event.");return{launchingElement:e,launchingEvent:n}}function jM(t){return jM="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jM(t)}function NM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function VM(t,e,n){return e&&BM(t.prototype,e),n&&BM(t,n),t}function UM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&HM(t,e)}function HM(t,e){return HM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},HM(t,e)}function GM(t){var e=WM();return function(){var n,r=qM(t);if(e){var i=qM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return FM(this,n)}}function FM(t,e){return!e||"object"!==jM(e)&&"function"!==typeof e?zM(t):e}function zM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function qM(t){return qM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},qM(t)}function YM(t){var e=function(t){UM(n,t);var e=GM(n);function n(){return NM(this,n),e.apply(this,arguments)}return VM(n,[{key:"show",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("shown",IM(t),e)}},{key:"hide",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("hidden",IM(t),e)}}]),n}(t);return e}var ZM=[RM,YM],XM=ZM;function KM(t){return KM="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},KM(t)}function $M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function JM(t,e,n){return e&&QM(t.prototype,e),n&&QM(t,n),t}function tC(t,e,n){return tC="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=eC(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},tC(t,e,n||t)}function eC(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=uC(t),null===t)break;return t}function nC(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rC(t,e)}function rC(t,e){return rC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},rC(t,e)}function iC(t){var e=sC();return function(){var n,r=uC(t);if(e){var i=uC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oC(this,n)}}function oC(t,e){return!e||"object"!==KM(e)&&"function"!==typeof e?aC(t):e}function aC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sC(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function uC(t){return uC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},uC(t)}var cC=function(t){var e=function(t){nC(n,t);var e=iC(n);function n(){var t;$M(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),t.handles=new Set,t}return JM(n,[{key:"manage",value:function(t){return this.handles.add(t),t}},{key:"unmanage",value:function(t){return this.handles.delete(t),t}},{key:"release",value:function(){var t=this;return this.handles.forEach((function(e){e.release(),t.handles.delete(e)})),tC(uC(n.prototype),"release",this).call(this)}}]),n}(t);return e};function lC(t){return lC="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lC(t)}function hC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pC(t,e,n){return e&&fC(t.prototype,e),n&&fC(t,n),t}function dC(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vC(t,e)}function vC(t,e){return vC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},vC(t,e)}function gC(t){var e=_C();return function(){var n,r=bC(t);if(e){var i=bC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mC(this,n)}}function mC(t,e){return!e||"object"!==lC(e)&&"function"!==typeof e?yC(t):e}function yC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function bC(t){return bC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},bC(t)}var OC,wC,xC=function(t){dC(n,t);var e=gC(n);function n(t,r){var i;return hC(this,n),i=e.call(this,t,r),i._handleFocusinListener=void 0,i._handleKeydownListener=void 0,i._handleFocusin=function(t){var e=i.element.querySelector(i.options.selectorModalContainer)||i.element;i.element.classList.contains(i.options.classVisible)&&!e.contains(t.target)&&i.options.selectorsFloatingMenus.every((function(e){return!rM(t,e)}))&&i.element.querySelector(Bm.selectorTabbable).focus()},i._hookCloseActions(),i}return pC(n,[{key:"createdByLauncher",value:function(t){this.show(t)}},{key:"shouldStateBeChanged",value:function(t){return"shown"===t?!this.element.classList.contains(this.options.classVisible):this.element.classList.contains(this.options.classVisible)}},{key:"_changeState",value:function(t,e,n){var r,i=this,o=function(){if(r&&(r=i.unmanage(r).release()),"shown"===t&&i.element.offsetWidth>0&&i.element.offsetHeight>0){i.previouslyFocusedNode=i.element.ownerDocument.activeElement;var e=i.element.querySelector(i.options.selectorPrimaryFocus)||i.element.querySelector(Bm.selectorTabbable);e.focus()}n()};if(this._handleFocusinListener&&(this._handleFocusinListener=this.unmanage(this._handleFocusinListener).release()),"shown"===t){var a="onfocusin"in this.element.ownerDocument.defaultView,s=a?"focusin":"focus";this._handleFocusinListener=this.manage(iM(this.element.ownerDocument,s,this._handleFocusin,!a))}"hidden"===t?(this.element.classList.toggle(this.options.classVisible,!1),this.element.ownerDocument.body.classList.toggle(this.options.classBody,!1),(this.options.selectorFocusOnClose||this.previouslyFocusedNode)&&(this.element.ownerDocument.querySelector(this.options.selectorFocusOnClose)||this.previouslyFocusedNode).focus()):"shown"===t&&(this.element.classList.toggle(this.options.classVisible,!0),this.element.ownerDocument.body.classList.toggle(this.options.classBody,!0)),r=this.manage(iM(this.element,"transitionend",o))}},{key:"_hookCloseActions",value:function(){var t=this;this.manage(iM(this.element,"click",(function(e){var n=rM(e,t.options.selectorModalClose);n&&(e.delegateTarget=n),(n||e.target===t.element)&&t.hide(e)}))),this._handleKeydownListener&&(this._handleKeydownListener=this.unmanage(this._handleKeydownListener).release()),this._handleKeydownListener=this.manage(iM(this.element.ownerDocument.body,"keydown",(function(e){27===e.which&&t.shouldStateBeChanged("hidden")&&(e.stopPropagation(),t.hide(e))})))}}],[{key:"options",get:function(){var t=Bm.prefix;return{selectorInit:"[data-modal]",selectorModalClose:"[data-modal-close]",selectorPrimaryFocus:"[data-modal-primary-focus]",selectorsFloatingMenus:[".".concat(t,"--overflow-menu-options"),".".concat(t,"--tooltip"),".flatpickr-calendar"],selectorModalContainer:".".concat(t,"--modal-container"),classVisible:"is-visible",classBody:"".concat(t,"--body--with-modal-open"),attribInitTarget:"data-modal-target",initEventNames:["click"],eventBeforeShown:"modal-beingshown",eventAfterShown:"modal-shown",eventBeforeHidden:"modal-beinghidden",eventAfterHidden:"modal-hidden"}}}]),n.components=new WeakMap,n}(zS(nM,gM,XM,cC)),EC=xC,TC=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)}}(),SC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="modal",i.isEventListenerAdded=!1,i.handleShowModal=function(){i.modal.html(i.getModalHTML()),i.modal.select("div.bx--modal-footer button.bx--btn").on("click",(function(){return i.model.exportToCSV()}));var t=EC.create(i.modal.node());t.show()},i.handleHideModal=function(){},i.init(),i}return TC(e,t),e.prototype.addEventListeners=function(){this.services.events.addEventListener(it.Modal.SHOW,this.handleShowModal),this.services.events.addEventListener(it.Modal.HIDE,this.handleHideModal)},e.prototype.removeEventListeners=function(){this.services.events.removeEventListener(it.Modal.SHOW,this.handleShowModal),this.services.events.removeEventListener(it.Modal.HIDE,this.handleHideModal)},e.prototype.getModalHTML=function(){var t=this.model.getOptions(),e=ud.getProperty(t,"style","prefix"),n=this.model.getTabularDataArray();return'\n\t\t<div class="bx--modal-container">\n\t\t\t<div class="bx--modal-header">\n\t\t\t\t<p class="bx--modal-header__label bx--type-delta">Tabular representation</p>\n\t\t\t\t<p class="bx--modal-header__heading bx--type-beta">'+t.title+'</p>\n\t\t\t\t<button class="bx--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>\n\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="bx--modal-close__icon">\n\t\t\t\t\t\t<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path>\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<div class="bx--modal-content"><table class="bx--data-table bx--data-table--no-border">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t'+gl(n,0).map((function(t){return'<th scope="col">\n\t\t\t\t\t\t\t\t<div class="bx--table-header-label">'+t+"</div>\n\t\t\t\t\t\t\t</th>"})).join("")+"\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>"+n.slice(1).map((function(t){return"\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t"+t.map((function(t){return"<td>"+t+"</td>"})).join("")+"\n\t\t\t\t\t\t\t</tr>"})).join("")+'\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t\t<div class="bx--modal-footer">\n\t\t\t <div class="'+Bm.prefix+"--"+e+'-modal-footer-spacer"></div>\n\t\t\t <button class="bx--btn bx--btn--primary" type="button" data-modal-primary-focus>Download as CSV</button>\n\t\t\t</div>\n\t\t</div>'},e.prototype.render=function(){var t=this.model.getOptions();if(!this.isEventListenerAdded){var e=Im(this.services.domUtils.getHolder()),n=ud.getProperty(t,"style","prefix");this.modal=zm.appendOrSelect(e,"div."+Bm.prefix+"--"+n+"--modal"),this.addEventListeners(),this.isEventListenerAdded=!0,this.modal.attr("data-modal",!0).attr("class","bx--modal").attr("role","dialog").attr("aria-modal",!0).attr("aria-labelledby","modal-5ppouesvfhc-label").attr("aria-describedby","modal-5ppouesvfhc-heading").attr("tabindex",-1)}},e.prototype.destroy=function(){this.removeEventListeners(),this.isEventListenerAdded=!1},e}(kS);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(wC||(wC={}));var MC=(OC={},OC[wC.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)}},OC[wC.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)}},OC[wC.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)}},OC[wC.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)}},OC),CC="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},AC=function(){function t(t){void 0===t&&(t={}),this.positions=MC,this.positions=Object.assign({},MC,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:CC.innerHeight-CC.scrollY,height:CC.innerWidth-CC.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}(),PC=(new AC,AC);function LC(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=NE(t);return!isNaN(e)}var DC={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 kC(t,e,n){var r;return n=n||{},r="string"===typeof DC[t]?DC[t]:1===e?DC[t].one:DC[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function RC(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 IC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},NC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BC={date:RC({formats:IC,defaultWidth:"full"}),time:RC({formats:jC,defaultWidth:"full"}),dateTime:RC({formats:NC,defaultWidth:"full"})},VC=BC,UC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function HC(t,e,n,r){return UC[t]}function GC(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 FC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WC={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"]},qC={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"]},YC={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"}},ZC={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 XC(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 KC={ordinalNumber:XC,era:GC({values:FC,defaultWidth:"wide"}),quarter:GC({values:zC,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:GC({values:WC,defaultWidth:"wide"}),day:GC({values:qC,defaultWidth:"wide"}),dayPeriod:GC({values:YC,defaultWidth:"wide",formattingValues:ZC,defaultFormattingWidth:"wide"})},$C=KC;function QC(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 JC(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)?eA(l,(function(t){return t.test(r)})):tA(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 tA(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function eA(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var nA=/^(\d+)(th|st|nd|rd)?/i,rA=/\d+/i,iA={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},oA={any:[/^b/i,/^(a|c)/i]},aA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sA={any:[/1/i,/2/i,/3/i,/4/i]},uA={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},cA={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]},lA={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},hA={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]},fA={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},pA={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}},dA={ordinalNumber:QC({matchPattern:nA,parsePattern:rA,valueCallback:function(t){return parseInt(t,10)}}),era:JC({matchPatterns:iA,defaultMatchWidth:"wide",parsePatterns:oA,defaultParseWidth:"any"}),quarter:JC({matchPatterns:aA,defaultMatchWidth:"wide",parsePatterns:sA,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:JC({matchPatterns:uA,defaultMatchWidth:"wide",parsePatterns:cA,defaultParseWidth:"any"}),day:JC({matchPatterns:lA,defaultMatchWidth:"wide",parsePatterns:hA,defaultParseWidth:"any"}),dayPeriod:JC({matchPatterns:fA,defaultMatchWidth:"any",parsePatterns:pA,defaultParseWidth:"any"})},vA=dA,gA={code:"en-US",formatDistance:kC,formatLong:VC,formatRelative:HC,localize:$C,match:vA,options:{weekStartsOn:0,firstWeekContainsDate:1}},mA=gA;function yA(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return aT(t,-n)}function _A(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var bA={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return _A("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):_A(n+1,2)},d:function(t,e){return _A(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 _A(t.getUTCHours()%12||12,e.length)},H:function(t,e){return _A(t.getUTCHours(),e.length)},m:function(t,e){return _A(t.getUTCMinutes(),e.length)},s:function(t,e){return _A(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 _A(i,e.length)}},OA=bA,wA=864e5;function xA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=NE(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/wA)+1}function EA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=NE(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 TA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=NE(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=EA(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=EA(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function SA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=TA(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=EA(n);return r}var MA=6048e5;function CA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=NE(t),n=EA(e).getTime()-SA(e).getTime();return Math.round(n/MA)+1}function AA(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:HE(i),a=null==n.weekStartsOn?o:HE(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=NE(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 PA(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=NE(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:HE(a),u=null==i.firstWeekContainsDate?s:HE(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=AA(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=AA(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function LA(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:HE(i),a=null==n.firstWeekContainsDate?o:HE(n.firstWeekContainsDate),s=PA(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=AA(u,e);return c}var DA=6048e5;function kA(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=NE(t),r=AA(n,e).getTime()-LA(n,e).getTime();return Math.round(r/DA)+1}var RA={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},IA={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 OA.y(t,e)},Y:function(t,e,n,r){var i=PA(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return _A(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):_A(o,e.length)},R:function(t,e){var n=TA(t);return _A(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return _A(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 _A(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 _A(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 OA.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 _A(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=kA(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):_A(i,e.length)},I:function(t,e,n){var r=CA(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):_A(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):OA.d(t,e)},D:function(t,e,n){var r=xA(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):_A(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 _A(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 _A(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 _A(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?RA.noon:0===i?RA.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?RA.evening:i>=12?RA.afternoon:i>=4?RA.morning:RA.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 OA.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):OA.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):_A(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):_A(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):OA.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):OA.s(t,e)},S:function(t,e){return OA.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 NA(o);case"XXXX":case"XX":return BA(o);case"XXXXX":case"XXX":default:return BA(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return NA(o);case"xxxx":case"xx":return BA(o);case"xxxxx":case"xxx":default:return BA(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"+jA(o,":");case"OOOO":default:return"GMT"+BA(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"+jA(o,":");case"zzzz":default:return"GMT"+BA(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return _A(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return _A(o,e.length)}};function jA(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+_A(o,2)}function NA(t,e){if(t%60===0){var n=t>0?"-":"+";return n+_A(Math.abs(t)/60,2)}return BA(t,e)}function BA(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=_A(Math.floor(i/60),2),a=_A(i%60,2);return r+o+n+a}var VA=IA;function UA(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 HA(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 GA(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return UA(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}}",UA(i,e)).replace("{{time}}",HA(o,e))}var FA={p:HA,P:GA},zA=FA,WA=["D","DD"],qA=["YY","YYYY"];function YA(t){return-1!==WA.indexOf(t)}function ZA(t){return-1!==qA.indexOf(t)}function XA(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 KA=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QA=/^'([^]*?)'?$/,JA=/''/g,tP=/[a-zA-Z]/;function eP(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||mA,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:HE(a),u=null==i.firstWeekContainsDate?s:HE(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:HE(c),h=null==i.weekStartsOn?l:HE(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=NE(t);if(!LC(f))throw new RangeError("Invalid time value");var p=KE(f),d=yA(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match($A).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=zA[e];return n(t,o.formatLong,v)}return t})).join("").match(KA).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return nP(t);var n=VA[e];if(n)return!i.useAdditionalWeekYearTokens&&ZA(t)&&XA(t),!i.useAdditionalDayOfYearTokens&&YA(t)&&XA(t),n(d,t,o.localize,v);if(e.match(tP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function nP(t){return t.match(QA)[1].replace(JA,"'")}function rP(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}var iP=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function oP(t,e,n,r,i){var o=0===e,a=2===Number(eP(new Date(t),"c")),s=1===Number(eP(new Date(t),"q")),u=0!==e?n[e-1]:null;switch(r){case"15seconds":return o||hP(t)||fP(t,u)||pP(t);case"minute":return o||hP(t)||fP(t,u)||pP(t);case"30minutes":return o||hP(t)||fP(t,u)||pP(t);case"hourly":return o||hP(t)||fP(t,u)||pP(t);case"daily":return i?o||a||pP(t):o||fP(t,u)||pP(t);case"monthly":return o||pP(t);case"quarterly":return o||s;case"yearly":return!1;default:throw new Error(r+" is not a valid time interval.")}}function aP(t,e,n,r,i){var o=i.showDayName,a="daily"===r&&o?"weekly":r,s=new Date(t),u=ud.getProperty(i,"timeIntervalFormats")[a],c=ud.getProperty(u,"primary"),l=ud.getProperty(u,"secondary"),h=oP(t,e,n,r,o)?c:l,f=i.localeObject;return eP(s,h,{locale:f})}function sP(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function uP(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function cP(t){var e=iP.reduce((function(e,n,r){n[0];var i=n[1],o=iP[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return iP[e][0]}function lP(t){if(1===t.length)return"15seconds";var e=uP(t),n=rP(e);return cP(n)}function hP(t){var e=sP(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function fP(t,e){var n=sP(t).M,r=sP(e).M;return n!==r}function pP(t){var e=sP(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 dP=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)}}(),vP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="threshold",r.renderType=L.SVG,r.positionService=new PC,r}return dP(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=ud.getProperty(this.getOptions(),"axes"),r=[];Object.keys(n).forEach((function(t){if(Object.values(R).includes(t)){var e=n[t];e.thresholds&&e.thresholds.length>0&&r.push({axisPosition:t,thresholds:e.thresholds})}}));var i=this.getComponentContainer({withinChartClip:!0}),o=i.selectAll("g.axis-thresholds").data(r,(function(t){return t.axisPosition}));o.exit().attr("opacity",0).remove();var a=o.enter().append("g"),s=a.merge(o);s.attr("class",(function(t){return"axis-thresholds "+t.axisPosition}));var u=s.selectAll("g.threshold-group").data((function(t){return t.thresholds.map((function(e){return e.axisPosition=t.axisPosition,e}))}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g");c.append("line").attr("class","threshold-line"),c.append("rect").attr("class","threshold-hoverable-area");var l=c.merge(u);l.attr("class","threshold-group");var h=this;s.each((function(e){var n=e.axisPosition,r=h.services.cartesianScales.getScaleByPosition(n),i=h.services.cartesianScales.getScaleTypeByPosition(n),o=h.services.cartesianScales.getMainXScale(),a=h.services.cartesianScales.getMainYScale(),s=i===B.LABELS,u=o.range(),c=u[0],l=u[1],f=a.range(),p=f[0],d=f[1],v=h.services.cartesianScales,g=v.getOrientation(),m=function(t){return v.getDomainValue(t)},y=function(t){return v.getRangeValue(t)},_=ud.flipDomainAndRangeBasedOnOrientation(m,y,g),b=_[0],O=_[1],w=Im(this);n===R.TOP||n===R.BOTTOM?(w.selectAll("line.threshold-line").transition().call((function(e){return h.services.transitions.setupTransition({transition:e,name:"threshold-line-update",animate:t})})).attr("y1",d).attr("y2",p).attr("x1",(function(t){var e=t.value;return b(e)+(s?r.step()/2:0)})).attr("x2",(function(t){var e=t.value;return b(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),w.selectAll("rect.threshold-hoverable-area").attr("x",0).attr("y",(function(t){var e=t.value;return-b(e)})).attr("width",Math.abs(p-d)).classed("rotate",!0)):(w.selectAll("line.threshold-line").transition().call((function(e){return h.services.transitions.setupTransition({transition:e,name:"threshold-line-update",animate:t})})).attr("x1",c).attr("x2",l).attr("y1",(function(t){var e=t.value;return O(e)+(s?r.step()/2:0)})).attr("y2",(function(t){var e=t.value;return O(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),w.selectAll("rect.threshold-hoverable-area").attr("x",c).attr("y",(function(t){var e=t.value;return O(e)})).attr("width",Math.abs(l-c)).classed("rotate",!1))})),this.services.events.addEventListener(it.Threshold.SHOW,(function(t){e.setThresholdLabelPosition(t.detail),e.label.classed("hidden",!1)})),this.services.events.addEventListener(it.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(t){var e=t.value,n=t.axisPosition,r=this.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===B.TIME){var o=[R.LEFT,R.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=ud.getProperty(r,"timeScale"),l=lP(u.ticks());return aP(e,0,u.ticks(),l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=Im(this.services.domUtils.getHolder()),e=ud.getProperty(this.getOptions(),"style","prefix");this.label=zm.appendOrSelect(t,"div."+Bm.prefix+"--"+e+"--threshold--label").classed("hidden",!0)},e.prototype.setThresholdLabelPosition=function(t){var e=t.event,n=t.datum,r=this.services.domUtils.getHolder(),i=hd(e,r),o=n.valueFormatter?n.valueFormatter(n.value):this.getFormattedValue(n);this.label.html((n.label||"Threshold")+": "+o).style("background-color",n.fillColor);var a=this.label.node(),s=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},a,[wC.RIGHT,wC.LEFT,wC.TOP,wC.BOTTOM],(function(){return{width:r.offsetWidth,height:r.offsetHeight}})),u=this.positionService.findPositionAt({left:i[0],top:i[1]},a,s);this.positionService.setElement(a,u)},e.prototype.addEventListeners=function(){var t=this,e=this.getComponentContainer({withinChartClip:!0});e.selectAll("rect.threshold-hoverable-area").on("mouseover mousemove",(function(e){Im(this.parentNode).select("line.threshold-line").classed("active",!0),t.services.events.dispatchEvent(it.Threshold.SHOW,{event:e,hoveredElement:Im(this),datum:Im(this).datum()})})).on("mouseout",(function(e){Im(this.parentNode).select("line.threshold-line").classed("active",!1),t.services.events.dispatchEvent(it.Threshold.HIDE,{event:e,hoveredElement:Im(this),datum:Im(this).datum()})}))},e}(kS),gP=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)}}(),mP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e.renderType=L.HTML,e}return gP(e,t),e.prototype.render=function(){var t=this.getComponentContainer(),e=t.selectAll("p.title").data([this.getOptions().title]);if(e.enter().append("p").classed("title",!0).merge(e).attr("x",0).attr("y","1em").html((function(t){return t})),e.node()&&e.node().offsetWidth<e.node().scrollWidth){var n=this;e.on("mouseover",(function(t){n.services.events.dispatchEvent(it.Tooltip.SHOW,{event:t,hoveredElement:e,content:e.text()})})).on("mousemove",(function(t){n.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){n.services.events.dispatchEvent(it.Tooltip.HIDE)}))}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=zm.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(e){a.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:t,content:n})})).on("mousemove",(function(t){a.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){a.services.events.dispatchEvent(it.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return zm.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}(kS),yP=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)}}(),_P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e.renderType=L.SVG,e}return yP(e,t),e.prototype.render=function(){var t=this.model.getDisplayData(),e=this.getOptions(),n=this.getComponentContainer().attr("width","100%").attr("height","100%"),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=zm.appendOrSelect(n,"text.meter-title");o>0&&a.node().getComputedTextLength()>o&&this.truncateTitle(a,o)},e.prototype.displayStatus=function(){var t=this,e=this.getComponentContainer(),n=zm.getHTMLElementSize(this.services.domUtils.getMainContainer()),r=n.width?n.width:this.parent.node().getAttribute("width"),i=this.model.getStatus(),o=vt.status.indicatorSize/2,a=zm.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.getComponentContainer(),n=zm.appendOrSelect(e,"text.meter-title"),r=!0===ud.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=vt.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=zm.appendOrSelect(this.parent,"tspan"),i=vt.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=zm.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=zm.getHTMLElementSize(this.services.domUtils.getMainContainer()),e=t.width?t.width:this.parent.node().getAttribute("width"),n=zm.appendOrSelect(this.parent,"text.percent-value"),r=vt.statusBar.paddingRight,i=n.node().getComputedTextLength(),o=zm.appendOrSelect(this.parent,"g.status-indicator").node(),a=zm.getSVGElementSize(o,{useBBox:!0}).width+vt.status.paddingLeft;return e-i-r-a},e.prototype.getStatusIconPathString=function(t){switch(t){case $.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 $.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case $.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}(mP),bP=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)}}(),OP=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.renderType=L.HTML,i.isEventListenerAdded=!1,i.positionService=new PC,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=zm.appendOrSelect(i.tooltip,"div.content-box");if(ud.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 bP(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(it.Tooltip.MOVE,(function(e){!1===t.tooltip.classed("hidden")&&t.positionTooltip(e)})),this.services.events.addEventListener(it.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(it.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(it.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(it.Tooltip.MOVE,null),this.services.events.removeEventListener(it.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(it.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(it.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=ud.getProperty(n,"tooltip","truncation","type"),i=ud.getProperty(n,"tooltip","truncation","threshold"),o=ud.getProperty(n,"tooltip","truncation","numCharacter");return r!==j.NONE?t.map((function(t){var n=t.labelIcon?12:0;return t.value=t.value?e.valueFormatter(t.value,t.label):t.value,t.label&&t.label.length+n>i&&(t.label=ud.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=ud.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<div class="label">\n\t\t\t\t\t\t\t\t<p>'+(t.label||"")+"</p>\n\t\t\t\t\t\t\t\t"+(t.labelIcon?'<span class="label-icon"/>'+t.labelIcon+"</span>":"")+"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t"+(void 0===t.value||null===t.value?"":'<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,e){var n=this.getOptions(),r=ud.getProperty(n,"tooltip","valueFormatter");return r?r(t,e):"function"===typeof t.getTime?eP(t,"MMM d, yyyy"):t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=ud.getProperty(t,"tooltip","enabled");if(e){var n=Im(this.services.domUtils.getHolder()),r=ud.getProperty(t,"style","prefix");this.tooltip=zm.appendOrSelect(n,"div."+Bm.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=ud.getProperty(i,"zoomBar","top","enabled"),a=ud.getProperty(t,"detail","mousePosition");if(a){var s=ud.getProperty(i,"zoomBar","top","type"),u=wt.height[s];o&&(a[1]+=u+wt.spacerHeight)}else a=hd(ud.getProperty(t,"detail","event"),n);var c,l=n.offsetWidth,h=n.offsetHeight;c=a[0]/l>.9?wC.LEFT:a[0]/l<.1?wC.RIGHT:this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[wC.RIGHT,wC.LEFT,wC.TOP,wC.BOTTOM],(function(){return{width:l,height:h}}));var f=_t.horizontalOffset;c===wC.LEFT&&(f*=-1),e=this.positionService.findPositionAt({left:a[0]+f,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(kS),wP=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)}}(),xP=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},EP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wP(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,i=this.getOptions(),o=this.services.cartesianScales,a=o.getDomainIdentifier(),s=i.data.groupMapsTo,u=o.getDomainLabel(),c=o.getRangeLabel(),l=n[0][a];if(1===n.length){var h=n[0],f=o.getRangeIdentifier(h),p=h[f];r=xP([{label:u,value:l}],Array.isArray(p)&&2===p.length?[{label:"Start",value:p[0]},{label:"End",value:p[1]}]:[{label:c,value:h[f]}]),t.detail.additionalItems&&t.detail.additionalItems.forEach((function(t){return r.push({label:t.label,value:t.value})})),r.push({label:i.tooltip.groupLabel,value:h[s],color:this.model.getFillColor(h[s]),class:this.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:h[s]})})}else if(n.length>1){r=[{label:u,value:l}],r=r.concat(n.map((function(t){return{label:t[s],value:t[o.getRangeIdentifier(t)],color:e.model.getFillColor(t[s]),class:e.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:t[s]})}})).sort((function(t,e){return e.value-t.value})));var d=o.isDualAxes();if(!d&&!0===ud.getProperty(i,"tooltip","showTotal")){var v=o.getRangeIdentifier();r.push({label:gl(i,"tooltip.totalLabel")||"Total",value:n.reduce((function(t,e){return t+e[v]}),0),bold:!0})}}return r},e}(OP),TP=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)}}(),SP=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}TP(e,t),e.prototype.init=function(){var t=this,e=Im(this.services.domUtils.getHolder()),n=ud.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=zm.appendOrSelect(e,"div."+Bm.prefix+"--"+n+"--tooltip");var r=zm.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener(it.Tooltip.SHOW,(function(e){if(ud.getProperty(t.model.getOptions(),"tooltip","datapoint","enabled")){var n=e.detail.data;console.log("data1",n);var i=n.multidata,o=e.detail.hoveredElement.node(),a=i.length>1?t.getMultilineTooltipHTML(n):t.getTooltipHTML(n);ud.getProperty(t.model.getOptions(),"tooltip","customHTML")?r.html(t.model.getOptions().tooltip.customHTML(n,a)):r.html(a);var s=t.getTooltipPosition(o,n);t.positionTooltip(e.detail.multidata?void 0:s)}t.tooltip.classed("hidden",!1)})),this.services.events.addEventListener(it.Tooltip.HIDE,(function(){t.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipPosition=function(t,e){var n=e["group-id"],r=document.querySelectorAll('[group-id="'+n+'"]'),i=rP(Array.from(r).map((function(t){return t.getBoundingClientRect().top}))),o=Im(this.services.domUtils.getHolder()).node().getBoundingClientRect(),a=this.model.getOptions().tooltip.datapoint.verticalOffset,s=t.getBoundingClientRect(),u={left:s.left-o.left+s.width/2,top:i-o.top-a};return{placement:"top",position:u}},e.prototype.getTooltipHTML=function(t){var e=t.detail.data,n=this.model.getOptions(),r=e.bin;console.log("data",e);var i=e.multidata[0].value,o=this.services.cartesianScales,a=ud.getProperty(n,"axes",o.getDomainAxisPosition()).title,s=ud.getProperty(n,"axes",o.getRangeAxisPosition()).title,u=ud.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(i):i.toLocaleString("en");return"\n\t\t<ul class='multi-tooltip'>\n\t\t\t<li>\n\t\t\t\t<div class='title-val'>\n\t\t\t\t\t<p class='label'>"+a+"</p>\n\t\t\t\t\t<p class='value'>"+r.x0+"-"+(r.x1-1)+"</p>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<div class='title-val'>\n\t\t\t\t\t<p class='label'>"+s+"</p>\n\t\t\t\t\t<p class='value'>"+u+"</p>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t</ul>\n\t\t"},e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=t.multidata,r=this.model.getOptions();n.reverse(),this.services.cartesianScales.getOrientation()===N.VERTICAL&&n.reverse();var i=n.reduce((function(t,e){return t+e.value}),0);i=ud.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(i):i.toLocaleString("en");var o=this.model.getOptions().data.groupMapsTo,a=t.bin,s=this.services.cartesianScales,u=ud.getProperty(r,"axes",s.getDomainAxisPosition()).title,c="<li>\n\t\t\t<div class='title-val'>\n\t\t\t\t<p class='label'>"+u+"</p>\n\t\t\t\t<p class='value'>"+a.x0+"-"+(a.x1-1)+"</p>\n\t\t\t</div>\n\t\t</li>",l="<li>\n\t\t\t<div class='total-val'>\n\t\t\t\t<p class='label'>Total</p>\n\t\t\t\t<p class='value'>"+i+"</p>\n\t\t\t</div>\n\t\t</li>";return"<ul class='multi-tooltip'>"+c+n.map((function(t){var n=ud.getProperty(e.model.getOptions(),"tooltip","valueFormatter")?e.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en"),r=e.model.getStrokeColor(t[o]);return'\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t\t<a style="background-color:'+r+'" class="tooltip-color"></a>\n\t\t\t\t\t\t\t<p class="label">'+t[o]+'</p>\n\t\t\t\t\t\t\t<p class="value">'+n+"</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>"})).join("")+l+"</ul>"}}(EP),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)}}()),MP=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.renderType=L.SVG,i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return SP(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=zm.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=zm.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}(kS),CP=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)}}(),AP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="canvas-chart-clip",e.chartClipId="canvas-chart-clip-id-"+Math.floor(99999999999*Math.random()),e}return CP(e,t),e.prototype.createClipPath=function(){var t=this.parent,e=zm.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height;this.chartClipPath=zm.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var i=zm.appendOrSelect(this.chartClipPath,"rect."+this.type);i.attr("x",0).attr("y",0).attr("width",n).attr("height",r),this.chartClipPath.merge(i).lower()},e}(MP);const PP=Math.PI,LP=2*PP,DP=1e-6,kP=LP-DP;function RP(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function IP(){return new RP}RP.prototype=IP.prototype={constructor:RP,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>DP)if(Math.abs(l*s-u*c)>DP&&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((PP-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>DP&&(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)>DP||Math.abs(this._y1-c)>DP)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%LP+LP),h>kP?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>DP&&(this._+="A"+n+","+n+",0,"+ +(h>=PP)+","+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 jP=IP;function NP(t){return t[0]}function BP(t){return t[1]}var VP=function(t,e){var n=rv(!0),r=null,i=TT,o=null;function a(a){var s,u,c,l=(a=nv(a)).length,h=!1;for(null==r&&(o=i(c=jP())),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 t="function"===typeof t?t:void 0===t?NP:rv(t),e="function"===typeof e?e:void 0===e?BP:rv(e),a.x=function(e){return arguments.length?(t="function"===typeof e?e:rv(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:rv(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:rv(!!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},UP=function(t,e,n){var r=null,i=rv(!0),o=null,a=TT,s=null;function u(u){var c,l,h,f,p,d=(u=nv(u)).length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=jP())),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]=+e(f,c,u),s.point(r?+r(f,c,u):g[c],n?+n(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return VP().defined(i).curve(a).context(o)}return t="function"===typeof t?t:void 0===t?NP:rv(+t),e="function"===typeof e?e:rv(void 0===e?0:+e),n="function"===typeof n?n:void 0===n?BP:rv(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:rv(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:rv(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:rv(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:rv(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:rv(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:rv(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:rv(!!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},HP=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)}}(),GP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.renderType=L.SVG,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"]?at.opacity.unselected:at.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",at.opacity.selected)},e}return HP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=UP().curve(this.services.curves.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),s=this.model.getGroupedData(this.configs.groups),u=ud.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===N.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=ud.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,(function(t){return t.name})),v=Im(this.services.domUtils.getMainContainer());if(d.exit().attr("opacity",0).remove(),s.length){if(p){var g=v.select("path."+this.model.getColorClassName({classNameTypes:[k.STROKE],dataGroupName:s[0].name})).node(),m=void 0;if(g)m=getComputedStyle(g,null).getPropertyValue("stroke");else{var y=ud.getProperty(this.model.getOptions(),"color","scale");if(null!==y){var _=Object.keys(y);m=y[_[0]]}}eO.appendOrUpdateLinearGradient({svg:this.parent,id:s[0].name.replace(" ","")+"_"+this.gradient_id,x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:eO.getStops(r,m)})}else this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var b=this,O=d.enter().append("path");p?O.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:[k.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):(O.attr("opacity",0).merge(d).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return b.model.getFillColor(t.name)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",c?1:at.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)})),c&&O.attr("fill-opacity",at.opacity.selected).style("stroke",(function(t){return b.model.getStrokeColor(t.name)})).style("stroke-dasharray","2, 2").attr("stroke-width","0.7px"))}},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(kS),FP=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)}}(),zP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.renderType=L.SVG,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 ud.getProperty(t,0,i)!==n.datum().name?at.opacity.unselected:at.opacity.selected}))},e.handleLegendMouseOut=function(){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",at.opacity.selected)},e}return FP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this,i=this.getOptions(),o=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=ud.getProperty(u,0,0),l=this.services.cartesianScales.getDomainAxisPosition({firstDatum:c}),h=this.services.cartesianScales.getRangeAxisPosition({firstDatum:c}),f=this.services.cartesianScales.getScaleByPosition(h),p=n.selectAll("path.area").data(u,(function(t){return ud.getProperty(t,0,o)}));this.areaGenerator=UP().x((function(t,n){return e.services.cartesianScales.getValueThroughAxisPosition(l,t.data.sharedStackKey,n)})).y0((function(t){return f(t[0])})).y1((function(t){return f(t[1])})).curve(this.services.curves.getD3Curve()),p.exit().attr("opacity",0).remove();var d=p.enter().append("path").attr("opacity",0);d.merge(p).data(u,(function(t){return ud.getProperty(t,0,o)})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:ud.getProperty(t,0,o),originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(ud.getProperty(t,0,o))})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",at.opacity.selected).attr("d",this.areaGenerator)},e}(kS),WP=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)}}(),qP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return WP(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=zm.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}(kS),YP=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)}}(),ZP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.renderType=L.SVG,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 YP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getComponentContainer({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getOrientation(),u=i.selectAll("path.bar").data(o,(function(t){return t[r]}));u.exit().attr("opacity",0).remove();var c=u.enter().append("path").attr("opacity",0);c.merge(u).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r,i,o=e.services.cartesianScales.getRangeIdentifier(),a=e.getBarWidth(),u=t[o],c=e.services.cartesianScales.getDomainValue(t,n)-a/2,l=c+a;if(Array.isArray(u)&&2===u.length)r=e.services.cartesianScales.getRangeValue(u[0]),i=e.services.cartesianScales.getRangeValue(u[1],n);else{var h=e.services.cartesianScales.getRangeScale(),f=h.domain()[0];r=e.services.cartesianScales.getRangeValue(Math.max(0,f)),i=e.services.cartesianScales.getRangeValue(t,n)}var p=Math.abs(i-r);if(0!==p&&p<2&&(i=u>0&&s===N.VERTICAL||u<0&&s===N.HORIZONTAL?r-2:r+2),!e.isOutsideZoomedDomain(c,l))return ud.generateSVGPathString({x0:c,x1:l,y0:r,y1:i},s)})).attr("opacity",1).attr("role",a.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,n){var r=Im(this);r.classed("hovered",!0),r.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_MOUSEMOVE,{event:e,element:Im(this),datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this);r.classed("hovered",!1),r.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(qP),XP=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)}}(),KP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.renderType=L.SVG,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 XP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.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 o=this.getComponentContainer({withinChartClip:!0}),s=ud.removeArrayDuplicates(n.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]&&"function"===typeof t[n].toString?t[n].toString():t[n]}))),u=o.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",a.GROUP).attr("data-name","bars"),l=c.merge(u);l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-group-update-enter",animate:t})})).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===N.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().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.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 ud.generateSVGPathString({x0:o,x1:a,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.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,n){var r=Im(this);r.classed("hovered",!0),r.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Bar.BAR_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this);r.classed("hovered",!1),r.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.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=ud.getProperty(t,"bars","width"),n=ud.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=CE().domain(t).rangeRound([0,this.getGroupWidth()])},e}(qP),$P=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)}}(),QP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.renderType=L.SVG,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 $P(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getStackedData({groups:this.configs.groups}),s=n.selectAll("g.bars").data(o,(function(t){return ud.getProperty(t,0,i)}));s.exit().attr("opacity",0).remove(),s.enter().append("g").classed("bars",!0).attr("role",a.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().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.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()===N.VERTICAL?c+=1:c-=1),ud.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.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,r){var i,o=Im(this);o.classed("hovered",!0),o.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")),n.services.events.dispatchEvent(it.Bar.BAR_MOUSEOVER,{event:t,element:o,datum:r});var a=n.model.getDisplayData(n.configs.groups),s=a.find((function(t){var i=n.services.cartesianScales.getDomainIdentifier(t),o=n.services.cartesianScales.getRangeIdentifier(t);return t[o]===r.data[r.group]&&t[i].toString()===r.data.sharedStackKey&&t[e]===r.group}));if(void 0===s){var u=n.services.cartesianScales.getDomainIdentifier(),c=n.services.cartesianScales.getRangeIdentifier();i={},i[u]=r.data.sharedStackKey,i[c]=r.data[r.group],i[e]=r.group,s=i}n.services.events.dispatchEvent(it.Tooltip.SHOW,{event:t,hoveredElement:o,data:[s]})})).on("mousemove",(function(t,e){var r=Im(this);n.services.events.dispatchEvent(it.Bar.BAR_MOUSEMOVE,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(it.Bar.BAR_CLICK,{event:t,element:Im(this),datum:e})})).on("mouseout",(function(t,e){var r=Im(this);r.classed("hovered",!1),n.services.events.dispatchEvent(it.Bar.BAR_MOUSEOUT,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(qP),JP=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="boxplot",e.renderType=L.SVG,e}return JP(e,t),e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getDataGroupNames(),s=this.services.cartesianScales.getMainXScale(),u=this.services.cartesianScales.getMainYScale(),c=s.range(),l=c[0],h=c[1],f=u.range(),p=f[0],d=f[1],v=h-l,g=p-d;if(0!==v){var m=this.services.cartesianScales,y=m.getOrientation(),_=y===N.VERTICAL,b=ud.flipDomainAndRangeBasedOnOrientation((function(t,n){return e.services.cartesianScales.getDomainValue(t,n)}),(function(t,n){return e.services.cartesianScales.getRangeValue(t,n)}),y),O=b[0],w=b[1],x=Math.floor((_?v:g)/o.length),E=Math.min(x/2,16),T=this.model.getBoxplotData(),S=n.selectAll(".box-group").data(T);S.exit().remove();var M=S.enter().append("g").attr("class","box-group"),C=S.merge(M);M.append("path").merge(S.select("path.vertical-line.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"vertical-line start"})})).attr("stroke-width",ht.strokeWidth.default).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-verticalstartline",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.quartiles.q_25);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.vertical-line.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"vertical-line end"})})).attr("stroke-width",ht.strokeWidth.default).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-verticalendline",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.quartiles.q_75);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.box")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],originalClassName:"box"})})).attr("fill-opacity",ht.box.opacity.default).attr("stroke-width",ht.strokeWidth.default).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","box").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-quartiles",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(Math[_?"max":"min"](t.quartiles.q_75,t.quartiles.q_25)),o=r+Math.abs(m.getRangeValue(t.quartiles.q_75)-m.getRangeValue(t.quartiles.q_25));return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.highlight-area")).attr("class","highlight-area").attr("opacity",0).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.max);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.whisker.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"whisker start"})})).attr("stroke-width",ht.strokeWidth.thicker).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-startingwhisker",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.min);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.median")).attr("fill","none").attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"median"})})).attr("stroke-width",2).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-median",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.quartiles.q_50),o=r;return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.whisker.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"whisker end"})})).attr("stroke-width",ht.strokeWidth.thicker).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-endingwhisker",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.whiskers.max);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)}));var A=C.selectAll("circle.outlier").data((function(t){return t.outliers.map((function(e){var n;return n={min:t.whiskers.min,max:t.whiskers.max},n[i]=t[i],n.value=e,n}))}));A.exit().remove();var P=A.enter().append("circle");A.merge(P).attr("r",ht.circle.radius).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],originalClassName:"outlier"})})).attr("fill-opacity",ht.circle.opacity.default).attr("cx",O).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-circles",animate:t})})).attr("cy",w),this.addBoxEventListeners(),this.addCircleEventListeners()}},e.prototype.addBoxEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo;this.parent.selectAll("path.highlight-area").on("mouseover",(function(r,i){var o=Im(this),a=Im(this.parentNode);a.select("path.box").classed("hovered",!0).attr("fill-opacity",ht.box.opacity.hovered),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:e.tooltip.groupLabel,value:i[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP]})},{label:"Minimum",value:i.whiskers.min},{label:"Q1",value:i.quartiles.q_25},{label:"Median",value:i.quartiles.q_50},{label:"Q3",value:i.quartiles.q_75},{label:"Maximum",value:i.whiskers.max},{label:"IQR",value:i.quartiles.q_75-i.quartiles.q_25}]}),t.services.events.dispatchEvent(it.Boxplot.BOX_MOUSEOVER,{event:r,element:o,datum:i})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Boxplot.BOX_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Boxplot.BOX_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this),i=Im(this.parentNode);i.select("path.box").classed("hovered",!1).attr("fill-opacity",ht.box.opacity.default),t.services.events.dispatchEvent(it.Boxplot.BOX_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.addCircleEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("circle").on("mouseover",(function(i,o){var a=Im(this);a.classed("hovered",!0).attr("fill-opacity",ht.circle.opacity.hovered).classed("unfilled",!1),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel,value:o[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP]})},{label:"Outlier",value:o[r]}]}),t.services.events.dispatchEvent(it.Boxplot.OUTLIER_MOUSEOVER,{event:i,element:a,datum:o})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Boxplot.OUTLIER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Boxplot.OUTLIER_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this);r.classed("hovered",!1).attr("fill-opacity",ht.circle.opacity.default),t.services.events.dispatchEvent(it.Boxplot.OUTLIER_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},e}(kS),eL=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)}}(),nL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.renderType=L.SVG,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 eL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(it.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(it.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=ud.getProperty(this.getOptions(),"points","enabled")||ud.getProperty(this.getOptions(),"bubble","enabled");if(e){var n=this.getComponentContainer({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=ud.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=ud.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,o=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=(u.transitions,r.data.groupMapsTo),h=function(t,e){return c.getDomainValue(t,e)},f=function(t,e){return c.getRangeValue(t,e)},p=ud.flipDomainAndRangeBasedOnOrientation(h,f,c.getOrientation()),d=p[0],v=p[1],g=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=c.getDomainIdentifier(t),r=n.model.getIsFilled(t[l],t[e],t,o),i=r?[k.FILL,k.STROKE]:[k.STROKE];return n.model.getColorClassName({classNameTypes:i,dataGroupName:t[l],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[l],t[e],t,o)})).classed("unfilled",(function(t){var e=c.getDomainIdentifier(t);return!n.model.getIsFilled(t[l],t[e],t,o)})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"scatter-update-enter",animate:e})})).attr("cx",d).attr("cy",v).attr("r",r.points.radius).style("fill",(function(t){var e=c.getDomainIdentifier(t);if(n.model.getIsFilled(t[l],t[e],t,o))return n.model.getFillColor(t[l],t[e],t)})).style("stroke",(function(t){var e=c.getDomainIdentifier(t);return n.model.getStrokeColor(t[l],t[e],t)})).attr("fill-opacity",o?s:1).attr("opacity",g?0:1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){var e=c.getRangeIdentifier(t);return t[e]})),this.addEventListeners()},e.prototype.getTooltipAdditionalItems=function(t){return null},e.prototype.addEventListeners=function(){var t=this,e=t.getOptions().data.groupMapsTo;this.parent.selectAll("circle").on("mouseover",(function(n,r){var i=Im(this);i.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:n[e],originalClassName:i.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(it.Tooltip.SHOW,{event:n,hoveredElement:i,data:[r],additionalItems:t.getTooltipAdditionalItems(r)}),t.services.events.dispatchEvent(it.Scatter.SCATTER_MOUSEOVER,{event:n,element:i,datum:r})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Scatter.SCATTER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Scatter.SCATTER_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(n,r){var i=Im(this);if(i.classed("hovered",!1),!t.configs.filled){var o=t.getOptions().points.filled,a=t.services.cartesianScales.getDomainIdentifier(r),s=t.model.getIsFilled(r[e],r[a],r,o);i.classed("unfilled",!s).style("fill",(function(n){return s||o?t.model.getFillColor(n[e],n[a],n):null}))}t.services.events.dispatchEvent(it.Scatter.SCATTER_MOUSEOUT,{event:n,element:i,datum:r}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:i})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(it.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(it.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(kS),rL=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)}}(),iL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e.renderType=L.SVG,e}return rL(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=zm.getHTMLElementSize(this.services.domUtils.getMainContainer()),a=i.length>0,s=a?bv(i):[1,1];return RE().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,o=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales,c=function(t,e){return u.getDomainValue(t,e)},l=function(t,e){return u.getRangeValue(t,e)},h=ud.flipDomainAndRangeBasedOnOrientation(c,l,u.getOrientation()),f=h[0],p=h[1];t.raise().classed("dot",!0).attr("role",a.GRAPHICS_SYMBOL).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"bubble-update-enter",animate:e})})).attr("cx",f).attr("cy",p).attr("r",(function(t){return o(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[k.FILL,k.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.prototype.getTooltipAdditionalItems=function(t){var e=ud.getProperty(this.getOptions(),"bubble");return[{label:ud.getProperty(e,"radiusLabel"),value:t[ud.getProperty(e,"radiusMapsTo")]}]},e}(nL),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e.renderType=L.SVG,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 oL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getComponentContainer({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getRangeScale(),u=this.services.cartesianScales.getRangeIdentifier(),c=s.range(),l=c[0],h=c[1],f=s.domain(),p=(f[0],f[1]),d=function(){var n=[];o.forEach((function(t){t.ranges?t.ranges.forEach((function(e,r){null!==e&&void 0!==e&&e<p&&n.push({datum:t,value:e,order:r+1})})):n.push({datum:t,order:1})}));var a=zm.appendOrSelect(i,"g.range-boxes").selectAll("path.range-box").data(n,(function(t){return t[r]+"-"+t.order}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"range-box order-"+t.order})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-range-box-update-enter",animate:t})})).attr("d",(function(t,n){var r,i,o,a,s=16;return 1===t.order?(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=h-2,a=l+1):(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=e.services.cartesianScales.getRangeValue(t.value,n),a=h),ud.generateSVGPathString({x0:r,x1:i,y0:o,y1:a},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},v=function(){var n=zm.appendOrSelect(i,"g.bars").selectAll("path.bar").data(o,(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var s=n.enter().append("path").attr("opacity",0);s.merge(n).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=8,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0)+1,s=e.services.cartesianScales.getRangeValue(t,n);return ud.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value}))},g=function(){var n=zm.appendOrSelect(i,"g.markers").selectAll("path.marker").data(o.filter((function(t){return null!==ud.getProperty(t,"marker")})),(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var a=n.enter().append("path").attr("opacity",0);a.merge(n).classed("marker",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-marker-update-enter",animate:t})})).attr("d",(function(t,n){var r=24,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(t.marker,n),s=a;return ud.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},m=function(){var n=[];o.filter((function(t){return null!==ud.getProperty(t,"marker")})).forEach((function(t){var e=t.marker,r=t[u];n=n.concat([{datum:t,value:.25*e,barValue:r},{datum:t,value:.5*e,barValue:r},{datum:t,value:.75*e,barValue:r}])}));var a=zm.appendOrSelect(i,"g.quartiles").selectAll("path.quartile").data(n,(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"quartile "+(t.value<=t.barValue?"over-bar":"")})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-quartile-update-enter",animate:t})})).attr("d",(function(t,n){var r=t.datum,i=t.value,o=4;r.ranges&&-1!==r.ranges.indexOf(i)&&(o=8);var a=e.services.cartesianScales.getDomainValue(r,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(i,n),c=u;return ud.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1)};d(),v(),g(),m(),this.addEventListeners()},e.prototype.getMatchingRangeIndexForDatapoint=function(t){for(var e,n=t.ranges.length-1;n>0;n--){var r=t.ranges[n];if(t.value>=r)return e=n,e}return 0},e.prototype.addEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("path.bar").on("mouseover",(function(i,o){var a=Im(this);a.classed("hovered",!0),a.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOVER,{event:i,element:a,datum:o});var s=ud.getProperty(e,"bullet","performanceAreaTitles"),u=t.getMatchingRangeIndexForDatapoint(o);t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel||"Group",value:o[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:o[n]})},{label:"Value",value:o[r]},{label:"Target",value:o.marker},{label:"Percentage",value:Math.floor(o[r]/o.marker*100)+"%"},{label:"Performance",value:s[u]}]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_MOUSEMOVE,{event:e,element:Im(this),datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this);r.classed("hovered",!1),r.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(kS),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e.renderType=L.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[i]!==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 sL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer(),r=this.model.getOptions(),i=r.groupIdentifier,o=r.data.groupMapsTo,s=this.model.getBinnedStackedData(),u=this.services.cartesianScales.getMainXScale(),c=n.selectAll("g.bars").data(s,(function(t){return gl(t,"0."+o)}));c.exit().attr("opacity",0).remove(),c.enter().append("g").classed("bars",!0).attr("role",a.GROUP);var l=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}));l.exit().remove(),l.enter().append("path").merge(l).classed("bar",!0).attr(i,(function(t,e){return e})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"histogram-bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[o],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[o])})).attr("d",(function(t,n){var i=gl(t,"data");if(i){var o=u(i.x1)-u(i.x0)-1,a=e.services.cartesianScales.getDomainValue(i.x0,n),s=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);return Math.abs(l-c)>0&&Math.abs(l-c)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===N.VERTICAL?l+=1:l-=1),ud.generateSVGPathString({x0:a,x1:s,y0:c,y1:l},e.services.cartesianScales.getOrientation())}})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.model.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(r,i){var o=Im(this);o.classed("hovered",!0),o.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update"));var a=parseFloat(gl(i,"data.x0")),s=parseFloat(gl(i,"data.x1")),u=n.services.cartesianScales.getRangeAxisPosition(),c=n.services.cartesianScales.getScaleLabel(u);n.services.events.dispatchEvent(it.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:gl(t,"bins.rangeLabel")||"Range",value:a+" – "+s},{label:t.tooltip.groupLabel||"Group",value:i[e],class:n.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:i[e]})},{label:c,value:gl(i,"data."+i[e])}]})})).on("mousemove",(function(t,e){n.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("mouseout",(function(t,e){var r=Im(this);r.classed("hovered",!1),n.services.events.dispatchEvent(it.Tooltip.HIDE)}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(kS),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.renderType=L.SVG,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"]?dt.opacity.unselected:dt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",dt.opacity.selected)},e}return cL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this.services,i=r.cartesianScales,o=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=ud.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=VP().x(l).y(h).curve(o.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:ud.getProperty(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:!ud.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:[k.STROKE],dataGroupName:t.name,originalClassName:"line"})})).style("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("role",a.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().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"line-update-enter",animate: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(){var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(kS),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.renderType=L.SVG,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]?dt.weight.unselected:dt.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",dt.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"]?dt.opacity.unselected:dt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",dt.opacity.selected)},e}return hL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer({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=ud.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:[k.STROKE],dataGroupName:t[i],originalClassName:"line"})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"lollipop-line-update-enter",animate:t})})).style("stroke",(function(t){return e.model.getFillColor(t[i],t[u],t)})).attr("opacity",1);h===N.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(it.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(it.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(it.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(it.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(nL),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e.renderType=L.SVG,e}return pL(e,t),e.prototype.render=function(t){var e=this,n=ud.getProperty(this.getOptions(),"points","enabled");if(n){var r=this.getComponentContainer({withinChartClip:!0}),i=this.getOptions(),o=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 ud.getProperty(t,0,o)}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",a.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[o],i=e.services.cartesianScales.getDomainIdentifier(t),a=e.services.cartesianScales.getRangeIdentifier(t);return n={},n[o]=r,n[i]=t["data"]["sharedStackKey"],n[a]=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}(nL);function vL(t){return t.innerRadius}function gL(t){return t.outerRadius}function mL(t){return t.startAngle}function yL(t){return t.endAngle}function _L(t){return t&&t.padAngle}function bL(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<QT))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function OL(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/$T(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+_*_,O=i-o,w=f*v-d*p,x=(_<0?-1:1)*$T(ZT(0,O*O*b-w*w)),E=(w*_-y*x)/b,T=(-w*y-_*x)/b,S=(w*_+y*x)/b,M=(-w*y+_*x)/b,C=E-g,A=T-m,P=S-g,L=M-m;return C*C+A*A>P*P+L*L&&(E=S,T=M),{cx:E,cy:T,x01:-l,y01:-h,x11:E*(i/O-1),y11:T*(i/O-1)}}var wL=function(){var t=vL,e=gL,n=rv(0),r=null,i=mL,o=yL,a=_L,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-tS,p=o.apply(this,arguments)-tS,d=WT(p-f),v=p>f;if(s||(s=u=jP()),h<l&&(c=h,h=l,l=c),h>QT)if(d>eS-QT)s.moveTo(h*YT(f),h*KT(f)),s.arc(0,0,h,f,p,!v),l>QT&&(s.moveTo(l*YT(p),l*KT(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,O=p,w=d,x=d,E=a.apply(this,arguments)/2,T=E>QT&&(r?+r.apply(this,arguments):$T(l*l+h*h)),S=XT(WT(h-l)/2,+n.apply(this,arguments)),M=S,C=S;if(T>QT){var A=rS(T/l*KT(E)),P=rS(T/h*KT(E));(w-=2*A)>QT?(A*=v?1:-1,b+=A,O-=A):(w=0,b=O=(f+p)/2),(x-=2*P)>QT?(P*=v?1:-1,y+=P,_-=P):(x=0,y=_=(f+p)/2)}var L=h*YT(y),D=h*KT(y),k=l*YT(O),R=l*KT(O);if(S>QT){var I,j=h*YT(_),N=h*KT(_),B=l*YT(b),V=l*KT(b);if(d<JT&&(I=bL(L,D,B,V,j,N,k,R))){var U=L-I[0],H=D-I[1],G=j-I[0],F=N-I[1],z=1/KT(nS((U*G+H*F)/($T(U*U+H*H)*$T(G*G+F*F)))/2),W=$T(I[0]*I[0]+I[1]*I[1]);M=XT(S,(l-W)/(z-1)),C=XT(S,(h-W)/(z+1))}}x>QT?C>QT?(g=OL(B,V,L,D,h,C,v),m=OL(j,N,k,R,h,C,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),C<S?s.arc(g.cx,g.cy,C,qT(g.y01,g.x01),qT(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,C,qT(g.y01,g.x01),qT(g.y11,g.x11),!v),s.arc(0,0,h,qT(g.cy+g.y11,g.cx+g.x11),qT(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,C,qT(m.y11,m.x11),qT(m.y01,m.x01),!v))):(s.moveTo(L,D),s.arc(0,0,h,y,_,!v)):s.moveTo(L,D),l>QT&&w>QT?M>QT?(g=OL(k,R,j,N,l,-M,v),m=OL(L,D,B,V,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<S?s.arc(g.cx,g.cy,M,qT(g.y01,g.x01),qT(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,qT(g.y01,g.x01),qT(g.y11,g.x11),!v),s.arc(0,0,l,qT(g.cy+g.y11,g.cx+g.x11),qT(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,qT(m.y11,m.x11),qT(m.y01,m.x01),!v))):s.arc(0,0,l,O,b,v):s.lineTo(k,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-JT/2;return[YT(r)*n,KT(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:rv(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:rv(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:rv(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:rv(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:rv(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:rv(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:rv(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},xL=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},EL=function(t){return t},TL=function(){var t=EL,e=xL,n=null,r=rv(0),i=rv(eS),o=rv(0);function a(a){var s,u,c,l,h,f=(a=nv(a)).length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(eS,Math.max(-eS,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:rv(+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:rv(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:rv(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:rv(+t),a):o},a},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)}}();function ML(t,e){var n=this,r=Dx(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var CL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.renderType=L.SVG,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 SL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return gt.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getComponentContainer(),i=this.model.getDisplayData().filter((function(t){return t.value>0})),o=this.getOptions(),s=o.data.groupMapsTo,u=this.computeRadius();this.arc=wL().innerRadius(this.getInnerRadius()).outerRadius(u),this.hoverArc=wL().innerRadius(this.getInnerRadius()).outerRadius(u+gt.hoverArc.outerRadiusOffset);var c=TL().value((function(t){return t.value})).sort(ud.getProperty(o,"pie","sortFunction")).padAngle(gt.padAngle),l=c(i),h=zm.appendOrSelect(r,"g.slices").attr("role",a.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),d=p.merge(f).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t.data[s],originalClassName:"slice"})})).style("fill",(function(t){return n.model.getFillColor(t.data[s])})).attr("d",this.arc);d.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"pie_slice_enter_update",animate:t})})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+ud.convertValueToPercentage(t.data.value,i)+"%"})).attrTween("d",(function(t){return ML.bind(this)(t,n.arc)}));var v=o.pie.labels.enabled,g=v?l.filter((function(t){return t.value>0})):[],m=zm.appendOrSelect(r,"g.labels").attr("role",a.GROUP).attr("data-name","labels"),y=m.selectAll("text.pie-label").data(g,(function(t){return t.data[s]}));y.exit().attr("opacity",0).remove();var _=y.enter().append("text").classed("pie-label",!0),b=[];_.merge(y).style("text-anchor","middle").text((function(t){return o.pie.labels.formatter?o.pie.labels.formatter(t):ud.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=g.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<gt.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+gt.callout.offsetX+gt.callout.textMargin+t.textOffsetX,o=t.yPosition-gt.callout.offsetY,t.direction=W.RIGHT,b.push(t)):(i=t.xPosition-gt.callout.offsetX-t.textOffsetX-gt.callout.textMargin,o=t.yPosition-gt.callout.offsetY,t.direction=W.LEFT,b.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(b);var O=ud.getProperty(o,"donut")?"donut":"pie",w=ud.getProperty(o,O,"alignment"),x=zm.getSVGElementSize(this.getParent(),{useAttr:!0}).width,E=v?gt.xOffset:0,T=v?gt.yOffset:0,S=u+E;w===U.CENTER?S=x/2:w===U.RIGHT&&(S=x-u-gt.xOffset);var M=u+T;b.length>0&&(M+=gt.yOffsetCallout),r.attr("x",S+7).attr("y",M),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=zm.appendOrSelect(this.getComponentContainer(),"g.callouts").attr("role",a.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",a.GRAPHICS_SYMBOL+" "+a.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===W.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+gt.callout.offsetX,y:n-gt.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-gt.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-gt.callout.offsetX,y:n-gt.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+gt.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return Im(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 o=r.append("line").classed("horizontal-line",!0);o.merge(e.selectAll("line.horizontal-line")).datum((function(t){return Im(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,n){var r=Im(this);r.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(it.Pie.SLICE_MOUSEOVER,{event:e,element:Im(this),datum:n});var i=t.getOptions().data.groupMapsTo;t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{label:n.data[i],value:n.data.value}]})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Pie.SLICE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Pie.SLICE_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this);r.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(it.Pie.SLICE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.computeRadius=function(){var t=zm.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=this.getOptions(),i=Math.min(e,n)/2,o=r.pie.labels.enabled;return o?i+gt.radiusOffset:i},e}(kS),AL=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="4,10 8,6 12,10",LL="12,6 8,10 4,6",DL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e.renderType=L.SVG,e}return AL(e,t),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=ud.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=ud.getProperty(t,"gauge","type"),n=e===X.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=ud.getProperty(e,"gauge","deltaArrow","direction");switch(n){case K.UP:return PL;case K.DOWN:return LL;default:return t>0?PL:LL}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer().attr("width","100%").attr("height","100%"),r=this.getOptions(),i=this.getValue(),o=this.getValueRatio(),s=this.getArcSize(),u=this.getStartAngle(),c=o*s,l=u+c,h=u+s,f=this.computeRadius(),p=this.getInnerRadius();this.backgroundArc=wL().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=wL().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),zm.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",a.GROUP);var d=n.selectAll("path.arc-foreground").data([i]),v=d.enter().append("path");v.merge(d).attr("class",this.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return ud.getProperty(e.getOptions(),"color","scale","value")})).attr("d",this.arc).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),this.drawValueNumber(),this.drawDelta(),d.exit().remove();var g=ud.getProperty(r,"gauge","alignment"),m=zm.getSVGElementSize(this.getParent(),{useAttr:!0}).width,y=f;g===U.CENTER?y=m/2:g===U.RIGHT&&(y=m-f),n.attr("x",y).attr("y",f),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getComponentContainer(),e=this.getOptions(),n=ud.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=ud.getProperty(e,"gauge","valueFontSize"),s=ud.getProperty(e,"gauge","deltaFontSize"),u=ud.getProperty(e,"gauge","numberSpacing"),c=ud.getProperty(e,"gauge","showPercentageSymbol"),l=0;n!==X.FULL||i?n===X.SEMI&&i&&(l=-(s(o)+u)):l=s(o);var h=zm.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+l+")"),f=a(o),p=zm.appendOrSelect(h,"g.gauge-value-number"),d=ud.getProperty(e,"gauge","numberFormatter"),v=p.selectAll("text.gauge-value-number").data([r]);v.enter().append("text").attr("class","gauge-value-number").merge(v).style("font-size",f+"px").attr("text-anchor","middle").text((function(t){return d(t)}));var g=zm.getSVGElementSize(zm.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,m=f/2,y=c?"%":"",_=zm.appendOrSelect(p,"text.gauge-value-symbol").style("font-size",m+"px").attr("x",g/2).text(y),b=zm.getSVGElementSize(_,{useBBox:!0}),O=b.width,w=b.height;_.attr("y","-"+w/2+"px"),p.attr("transform","translate(-"+O/2+", 0)")},e.prototype.drawDelta=function(){var t=this,e=this.getComponentContainer(),n=this.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?ud.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?ud.getProperty(n,"gauge","numberFormatter"):function(){return null},s=ud.getProperty(n,"gauge","deltaArrow","size"),u=ud.getProperty(n,"gauge","numberSpacing"),c=ud.getProperty(n,"gauge","showPercentageSymbol"),l=zm.appendOrSelect(e,"g.gauge-numbers"),h=zm.appendOrSelect(l,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),f=zm.appendOrSelect(h,"text.gauge-delta-number"),p=c?"%":"";f.data(null===r?[]:[r]),f.enter().append("text").classed("gauge-delta-number",!0).merge(f).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return""+a(t)+p}));var d=zm.getSVGElementSize(zm.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,v=ud.getProperty(n,"gauge","deltaArrow","enabled"),g=h.selectAll("svg.gauge-delta-arrow").data(null!==r&&v?[r]:[]);g.enter().append("svg").merge(g).attr("class","gauge-delta-arrow").attr("x",-s(i)-d/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16").each((function(){var e=Im(this);zm.appendOrSelect(e,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var i=ud.getProperty(n,"gauge","status");zm.appendOrSelect(e,"polygon.gauge-delta-arrow").attr("class",null!==i?"gauge-delta-arrow status--"+i:"").attr("points",t.getArrow(r))})),g.exit().remove(),f.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=ud.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,n){t.services.events.dispatchEvent(it.Gauge.ARC_MOUSEOVER,{event:e,element:Im(this),datum:n})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Gauge.ARC_MOUSEMOVE,{event:e,element:r,datum:n})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Gauge.ARC_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Gauge.ARC_MOUSEOUT,{event:e,element:r,datum:n})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=ud.getProperty(t,"gauge","type"),n=zm.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===X.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(kS),kL=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e.renderType=L.SVG,e}return kL(e,t),e.prototype.render=function(e){var n=this;void 0===e&&(e=!0),t.prototype.render.call(this,e);var r=this;if(this.model.isDataEmpty())this.getComponentContainer().select("g.center").remove();else{var i=zm.appendOrSelect(this.getComponentContainer(),"g.center"),o=this.getOptions(),a=this.computeRadius();zm.appendOrSelect(i,"text.donut-figure").attr("text-anchor","middle").style("font-size",(function(){return o.donut.center.numberFontSize(a)})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"donut-figure-enter-update",animate:e})})).tween("text",(function(){return r.centerNumberTween(Im(this))})),zm.appendOrSelect(i,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return o.donut.center.titleFontSize(a)})).attr("y",o.donut.center.titleYPosition(a)).text(ud.getProperty(o,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.getOptions(),n=ud.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?kx:Uy;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(CL);const IL=t=>+t;var jL=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)}}(),NL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return jL(e,t),e.prototype.render=function(){var t=ud.getProperty(this.getOptions(),"data","loading");t?this.renderSkeleton(t):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===q.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===q.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===q.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==q.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===N.VERTICAL&&this.drawYGrid(t),e===N.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=RE().domain([0,1]).range(t),this.yScale=RE().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=zm.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;this.backdrop=zm.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",r).attr("height",i);var o=zm.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");o.attr("width","100%").attr("height","100%");var a=this.xScale.range(),s=a[0],u=(a[1],this.yScale.range()),c=(u[0],u[1]);this.backdrop.merge(o).attr("x",s).attr("y",c),o.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("width"),n=ud.getProperty(this.getOptions(),"grid","x","numberOfTicks"),r=this.xScale.ticks(n).map((function(t){return t*e})),i=zm.appendOrSelect(this.backdrop,"g.x.skeleton"),o=i.selectAll("line").data(r);o.enter().append("line").merge(o).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2","100%"),i.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=ud.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=zm.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=zm.getSVGElementSize(r,{useAttrs:!0}),o=i.width,a=i.height,s=zm.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=ud.getProperty(this.getOptions(),u,"alignment");zm.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=wL().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(gt.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=zm.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+gt.xOffset;c===U.CENTER?d=o/2:c===U.RIGHT&&(d=o-t-gt.xOffset);var v=t+gt.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=zm.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+gt.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=zm.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=zm.appendOrSelect(a,"defs").lower(),h=zm.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(IL).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}(kS),BL=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return BL(e,t),e.prototype.render=function(){var e=ud.getProperty(this.getOptions(),"data","loading"),n=!ud.getProperty(this.getOptions(),"grid","x","enabled")&&!ud.getProperty(this.getOptions(),"grid","y","enabled")&&!ud.getProperty(this.getOptions(),"axes","bottom","visible")&&!ud.getProperty(this.getOptions(),"axes","left","visible");e&&!n?t.prototype.renderGridSkeleton.call(this,e):e&&n?this.renderSparklineSkeleton(e):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=zm.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=zm.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=zm.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1),e.classed("shimmer-effect-sparkline",!0)},e}(NL);function UL(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 HL=function(){return this.eachAfter(UL)},GL=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},FL=function(t,e){var n,r,i=this,o=[i],a=-1;while(i=o.pop())if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},zL=function(t,e){var n,r,i,o=this,a=[o],s=[],u=-1;while(o=a.pop())if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);while(o=s.pop())t.call(e,o,++u,this);return this},WL=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},qL=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}))},YL=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},ZL=function(t){var e=this,n=XL(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 XL(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 KL=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},$L=function(){return Array.from(this)},QL=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},JL=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},tD=function*(){var t,e,n,r,i=this,o=[i];do{t=o.reverse(),o=[];while(i=t.pop())if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)};function eD(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=iD)):void 0===e&&(e=rD);var n,r,i,o,a,s=new sD(t),u=[s];while(n=u.pop())if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new sD(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(aD)}function nD(){return eD(this).eachBefore(oD)}function rD(t){return t.children}function iD(t){return Array.isArray(t)?t[1]:null}function oD(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function aD(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function sD(t){this.data=t,this.depth=this.height=0,this.parent=null}sD.prototype=eD.prototype={constructor:sD,count:HL,each:GL,eachAfter:zL,eachBefore:FL,find:WL,sum:qL,sort:YL,path:ZL,ancestors:KL,descendants:$L,leaves:QL,links:JL,copy:nD,[Symbol.iterator]:tD};var uD=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)},cD=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},lD=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},hD=(1+Math.sqrt(5))/2;function fD(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,O=y.length,w=e.value;while(_<O){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<O);for(h=f=l,v=Math.max(c/u,u/c)/(w*t),g=l*l*v,d=Math.max(f/g,g/h);b<O;++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?cD(a,n,r,i,w?r+=c*l/w:o):lD(a,n,r,w?n+=u*l/w:i,o),w-=l,_=b}return m}var pD=function t(e){function n(t,n,r,i,o){fD(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(hD);function dD(t){return null==t?null:vD(t)}function vD(t){if("function"!==typeof t)throw new Error;return t}function gD(){return 0}var mD=function(t){return function(){return t}},yD=function(){var t=pD,e=!1,n=1,r=1,i=[0],o=gD,a=gD,s=gD,u=gD,c=gD;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(uD),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=vD(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:mD(+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:mD(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:mD(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:mD(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:mD(+t),l):c},l},_D="#000000",bD="#ffffff",OD="#fcf4d6",wD="#fddc69",xD="#f1c21b",ED="#d2a106",TD="#b28600",SD="#8e6a00",MD="#684e00",CD="#483700",AD="#302400",PD="#1c1500",LD={10:OD,20:wD,30:xD,40:ED,50:TD,60:SD,70:MD,80:CD,90:AD,100:PD},DD="#fff2e8",kD="#ffd9be",RD="#ffb784",ID="#ff832b",jD="#eb6200",ND="#ba4e00",BD="#8a3800",VD="#5e2900",UD="#3e1a00",HD="#231000",GD={10:DD,20:kD,30:RD,40:ID,50:jD,60:ND,70:BD,80:VD,90:UD,100:HD},FD="#fff1f1",zD="#ffd7d9",WD="#ffb3b8",qD="#ff8389",YD="#fa4d56",ZD="#da1e28",XD="#a2191f",KD="#750e13",$D="#520408",QD="#2d0709",JD={10:FD,20:zD,30:WD,40:qD,50:YD,60:ZD,70:XD,80:KD,90:$D,100:QD},tk="#fff0f7",ek="#ffd6e8",nk="#ffafd2",rk="#ff7eb6",ik="#ee5396",ok="#d02670",ak="#9f1853",sk="#740937",uk="#510224",ck="#2a0a18",lk={10:tk,20:ek,30:nk,40:rk,50:ik,60:ok,70:ak,80:sk,90:uk,100:ck},hk="#f6f2ff",fk="#e8daff",pk="#d4bbff",dk="#be95ff",vk="#a56eff",gk="#8a3ffc",mk="#6929c4",yk="#491d8b",_k="#31135e",bk="#1c0f30",Ok={10:hk,20:fk,30:pk,40:dk,50:vk,60:gk,70:mk,80:yk,90:_k,100:bk},wk="#edf5ff",xk="#d0e2ff",Ek="#a6c8ff",Tk="#78a9ff",Sk="#4589ff",Mk="#0f62fe",Ck="#0043ce",Ak="#002d9c",Pk="#001d6c",Lk="#001141",Dk={10:wk,20:xk,30:Ek,40:Tk,50:Sk,60:Mk,70:Ck,80:Ak,90:Pk,100:Lk},kk="#e5f6ff",Rk="#bae6ff",Ik="#82cfff",jk="#33b1ff",Nk="#1192e8",Bk="#0072c3",Vk="#00539a",Uk="#003a6d",Hk="#012749",Gk="#061727",Fk={10:kk,20:Rk,30:Ik,40:jk,50:Nk,60:Bk,70:Vk,80:Uk,90:Hk,100:Gk},zk="#d9fbfb",Wk="#9ef0f0",qk="#3ddbd9",Yk="#08bdba",Zk="#009d9a",Xk="#007d79",Kk="#005d5d",$k="#004144",Qk="#022b30",Jk="#081a1c",tR={10:zk,20:Wk,30:qk,40:Yk,50:Zk,60:Xk,70:Kk,80:$k,90:Qk,100:Jk},eR="#defbe6",nR="#a7f0ba",rR="#6fdc8c",iR="#42be65",oR="#24a148",aR="#198038",sR="#0e6027",uR="#044317",cR="#022d0d",lR="#071908",hR={10:eR,20:nR,30:rR,40:iR,50:oR,60:aR,70:sR,80:uR,90:cR,100:lR},fR="#f2f4f8",pR="#dde1e6",dR="#c1c7cd",vR="#a2a9b0",gR="#878d96",mR="#697077",yR="#4d5358",_R="#343a3f",bR="#21272a",OR="#121619",wR={10:fR,20:pR,30:dR,40:vR,50:gR,60:mR,70:yR,80:_R,90:bR,100:OR},xR="#f4f4f4",ER="#e0e0e0",TR="#c6c6c6",SR="#a8a8a8",MR="#8d8d8d",CR="#6f6f6f",AR="#525252",PR="#393939",LR="#262626",DR="#161616",kR={10:xR,20:ER,30:TR,40:SR,50:MR,60:CR,70:AR,80:PR,90:LR,100:DR},RR="#f7f3f2",IR="#e5e0df",jR="#cac5c4",NR="#ada8a8",BR="#8f8b8b",VR="#726e6e",UR="#565151",HR="#3c3838",GR="#272525",FR="#171414",zR={10:RR,20:IR,30:jR,40:NR,50:BR,60:VR,70:UR,80:HR,90:GR,100:FR},WR={black:{100:_D},blue:Dk,coolGray:wR,cyan:Fk,gray:kR,green:hR,magenta:lk,orange:GD,purple:Ok,red:JD,teal:tR,warmGray:zR,white:{0:bD},yellow:LD};var qR=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)}}(),YR=function(t){if(!t)return null;for(var e=0,n=Object.keys(WR);e<n.length;e++)for(var r=n[e],i=WR[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},ZR=function(){var t,e=Im(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=y_(n);if(r&&(t=YR(r?r.hex():null)),null===t||void 0===t){var i=A_(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},XR=0,KR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.renderType=L.SVG,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 qR(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=this.model.getData(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=ud.getProperty(window,"location"),s=zm.getSVGElementSize(n,{useAttrs:!0}),u=s.width,c=s.height,l=eD({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(jE(r,(function(t){return jE(t.children,(function(t){return t.value}))})),yD().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=(this.services.transitions,n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name})));f.exit().attr("opacity",0).remove();var p=f.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return XR++})),d=p.merge(f);d.attr("data-name","leaf").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"treemap-group-update",animate:t})})).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var v=d.selectAll("rect.leaf").data((function(t){return[t]}));v.exit().attr("width",0).attr("height",0).remove();var g=v.enter().append("rect").classed("leaf",!0);g.merge(v).attr("width",0).attr("height",0).attr("id",(function(){var t=Im(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:[k.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"treemap-leaf-update-enter",animate: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)})),d.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=Im(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=Im(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()})),d.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=A_(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",ZR).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=Im(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",ZR)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e,n){var r=Im(this),i=getComputedStyle(this,null).getPropertyValue("fill"),o=n;while(o.depth>1)o=o.parent;r.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&&(i=n),y_(i).darker(.7).toString()})),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{color:i,label:o.data.name,bold:!0},{label:n.data.name,value:n.data.value}]}),t.services.events.dispatchEvent(it.Treemap.LEAF_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Treemap.LEAF_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Treemap.LEAF_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this);r.classed("hovered",!1);var i=n;while(i.depth>1)i=i.parent;r.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(it.Treemap.LEAF_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},e}(kS);function $R(t){var e=QR(tI(t),360);return JR(e,[0,10])||JR(e,[350,0])?{textAnchor:Y.START,dominantBaseline:Z.MIDDLE}:JR(e,[10,80])?{textAnchor:Y.START,dominantBaseline:Z.HANGING}:JR(e,[80,100])?{textAnchor:Y.MIDDLE,dominantBaseline:Z.HANGING}:JR(e,[100,170])?{textAnchor:Y.END,dominantBaseline:Z.HANGING}:JR(e,[170,190])?{textAnchor:Y.END,dominantBaseline:Z.MIDDLE}:JR(e,[190,260])?{textAnchor:Y.END,dominantBaseline:Z.BASELINE}:JR(e,[260,280])?{textAnchor:Y.MIDDLE,dominantBaseline:Z.BASELINE}:{textAnchor:Y.START,dominantBaseline:Z.BASELINE}}function QR(t,e){return(t%e+e)%e}function JR(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function tI(t){return t*(180/Math.PI)}function eI(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 nI(t,e){return e*Math.sin(t-Math.PI/2)}var rI=oI(TT);function iI(t){this._curve=t}function oI(t){function e(e){return new iI(t(e))}return e._curve=t,e}function aI(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(oI(t)):e()._curve},t}iI.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 sI=function(){return aI(VP().curve(rI))},uI=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)}}(),cI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.renderType=L.SVG,e.getLabelDimensions=function(t){var n=zm.appendOrSelect(e.getComponentContainer(),"g.tmp-tick"),r=zm.appendOrSelect(n,"text").text(t),i=zm.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=ud.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=ud.getProperty(n,"data","groupMapsTo"),s=ud.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 ud.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=ud.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=ud.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:ud.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?mt.opacity.unselected:mt.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?mt.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",mt.opacity.selected).style("stroke-opacity",1)},e}return uI(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=zm.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,s=this.model.getData(),u=this.model.getGroupedData(),c=this.getOptions(),l=ud.getProperty(c,"radar","axes"),h=l.angle,f=l.value,p=ud.getProperty(c,"data","groupMapsTo"),d=mt,v=d.xLabelPadding,g=d.yLabelPadding,m=d.yTicksNumber,y=d.minRange,_=d.xAxisRectHeight;this.uniqueKeys=Array.from(new Set(s.map((function(t){return t[h]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[p]})))),this.fullDataNormalized=this.normalizeFlatData(s),this.groupedDataNormalized=this.normalizeGroupedData(u);var b=this.getLabelDimensions(this.uniqueKeys[0]).height,O=2*(b+g),w=Math.min(i,o),x=w-O,E=x/2;if(!(E<=0)){var T=CE().domain(this.fullDataNormalized.map((function(t){return t[h]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),S=rP(this.fullDataNormalized.map((function(t){return t[f]}))),M=RE().domain([S>=0?0:S,IE(this.fullDataNormalized.map((function(t){return t[f]})))]).range([y,E]).nice(m),C=M.ticks(m),A=function(t){return e.model.getFillColor(t)},P=sI().angle((function(t){return T(t[h])+Math.PI/2})).radius((function(t){return M(t[f])})).curve(CT),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=nI(T(t),E);return n+r})),D=IE(L),R={x:D+v,y:o/2},I=zm.appendOrSelect(n,"g.y-axes").attr("role",a.GROUP),j=I.selectAll("path").data(C,(function(t){return t})),N=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[h]=e,n[f]=t,n}))};j.join((function(n){return n.append("path").attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill","none").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return P(N(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("+R.x+", "+R.y+")").attr("d",(function(t){return P(N(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 P(N(t))})).attr("opacity",0).remove()}))}));var B=zm.appendOrSelect(n,"g.x-axes").attr("role",a.GROUP),V=B.selectAll("line").data(this.uniqueKeys,(function(t){return t}));V.join((function(n){return n.append("line").attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+ud.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return eI(T(t),0,R).x})).attr("y1",(function(t){return eI(T(t),0,R).y})).attr("x2",(function(t){return eI(T(t),0,R).x})).attr("y2",(function(t){return eI(T(t),0,R).y})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_enter",t)).attr("opacity",1).attr("x1",(function(t){return eI(T(t),M.range()[0],R).x})).attr("y1",(function(t){return eI(T(t),M.range()[0],R).y})).attr("x2",(function(t){return eI(T(t),M.range()[1],R).x})).attr("y2",(function(t){return eI(T(t),M.range()[1],R).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 eI(T(t),M.range()[0],R).x})).attr("y1",(function(t){return eI(T(t),M.range()[0],R).y})).attr("x2",(function(t){return eI(T(t),M.range()[1],R).x})).attr("y2",(function(t){return eI(T(t),M.range()[1],R).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=zm.appendOrSelect(n,"g.x-labels").attr("role",a.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 eI(T(t),M.range()[1]+v,R).x})).attr("y",(function(t){return eI(T(t),M.range()[1]+v,R).y})).style("text-anchor",(function(t){return $R(T(t)).textAnchor})).style("dominant-baseline",(function(t){return $R(T(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 eI(T(t),M.range()[1]+v,R).x})).attr("y",(function(t){return eI(T(t),M.range()[1]+v,R).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 G=zm.appendOrSelect(n,"g.blobs").attr("role",a.GROUP),F=G.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:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform",t?function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"}:"translate("+R.x+", "+R.y+")").style("fill",(function(t){return A(t.name)})).style("fill-opacity",mt.opacity.selected).style("stroke",(function(t){return A(t.name)})).call((function(n){var r=n.transition(e.services.transitions.getTransition("radar_blobs_enter",t));t&&r.delay((function(){return 30*Math.random()})).attr("transform","translate("+R.x+", "+R.y+")"),r.attr("opacity",1).attr("d",(function(t){return P(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).style("fill",(function(t){return A(t.name)})).style("stroke",(function(t){return A(t.name)})),n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_update",t)).attr("opacity",1).attr("transform","translate("+R.x+", "+R.y+")").attr("d",(function(t){return P(t.data)}))}))}),(function(n){return n.call((function(n){var r=n.transition(e.services.transitions.getTransition("radar_blobs_exit",t));t&&r.delay((function(){return 30*Math.random()})).attr("transform",(function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"})),r.attr("opacity",0).remove()}))}));var z=zm.appendOrSelect(n,"g.dots").attr("role",a.GROUP),W=z.selectAll("circle").data(this.fullDataNormalized);W.join((function(t){return t.append("circle").attr("role",a.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[p],originalClassName:ud.kebabCase(t[h])})})).attr("cx",(function(t){return eI(T(t[h]),M(t[f]),R).x})).attr("cy",(function(t){return eI(T(t[h]),M(t[f]),R).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return A(t[p])}));var q=zm.appendOrSelect(n,"g.x-axes-rect").attr("role",a.GROUP),Y=q.selectAll("rect").data(this.uniqueKeys);Y.join((function(t){return t.append("rect").attr("role",a.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("x",R.x).attr("y",R.y-_/2).attr("width",M.range()[1]).attr("height",_).style("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+tI(T(t))+", "+R.x+", "+R.y+")"}));var Z=zm.appendOrSelect(n,"g.y-labels").attr("role",a.GROUP),X=Z.selectAll("text").data(bv(C));X.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return eI(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return eI(-Math.PI/2,M(t),R).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 eI(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return eI(-Math.PI/2,M(t),R).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 K=ud.getProperty(c,"radar","alignment"),$=this.getAlignmentXOffset(K,n,this.getParent());n.attr("x",$),this.addEventListeners()}},e.prototype.getAlignmentXOffset=function(t,e,n){var r=zm.getSVGElementSize(e,{useBBox:!0}),i=zm.getSVGElementSize(n,{useAttr:!0}).width,o=0;return t===U.CENTER?o=Math.floor((i-r.width)/2):t===U.RIGHT&&(o=i-r.width),o},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=ud.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n,r){var i=Im(this);t.services.events.dispatchEvent(it.Radar.X_AXIS_MOUSEOVER,{event:n,element:i,datum:r});var o=t.parent.select(".x-axes .x-axis-"+ud.kebabCase(r)),a=t.parent.selectAll(".dots circle."+ud.kebabCase(r));o.classed("hovered",!0).attr("stroke-dasharray","4 4"),a.classed("hovered",!0).attr("opacity",1).attr("r",mt.dotsRadius);var s=t.fullDataNormalized.filter((function(t){return t[e]===r})),u=t.getOptions(),c=u.data.groupMapsTo,l=ud.getProperty(u,"radar","axes","value");t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:n,hoveredElement:i,items:s.filter((function(t){return"number"===typeof t[l]})).map((function(e){return{label:e[c],value:e[l],color:t.model.getFillColor(e[c]),class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:e[c]})}}))})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.Radar.X_AXIS_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Radar.X_AXIS_CLICK,{event:e,element:Im(this),datum:n})})).on("mouseout",(function(e,n){var r=Im(this),i=t.parent.select(".x-axes .x-axis-"+ud.kebabCase(n)),o=t.parent.selectAll(".dots circle."+ud.kebabCase(n));i.classed("hovered",!1).attr("stroke-dasharray","0"),o.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(it.Radar.X_AXIS_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE)}))},e}(kS),lI=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)};function hI(t){var e,n,r=t.length;while(r)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}var fI=function(t){var e,n,r=0,i=(t=hI(Array.from(t))).length,o=[];while(r<i)e=t[r],n&&vI(n,e)?++r:(n=mI(o=pI(o,e)),r=0);return n};function pI(t,e){var n,r;if(gI(e,t))return[e];for(n=0;n<t.length;++n)if(dI(e,t[n])&&gI(_I(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(dI(_I(t[n],t[r]),e)&&dI(_I(t[n],e),t[r])&&dI(_I(t[r],e),t[n])&&gI(bI(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function dI(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function vI(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function gI(t,e){for(var n=0;n<e.length;++n)if(!vI(t,e[n]))return!1;return!0}function mI(t){switch(t.length){case 1:return yI(t[0]);case 2:return _I(t[0],t[1]);case 3:return bI(t[0],t[1],t[2])}}function yI(t){return{x:t.x,y:t.y,r:t.r}}function _I(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,c=a-r,l=s-i,h=Math.sqrt(u*u+c*c);return{x:(n+o+u/h*l)/2,y:(r+a+c/h*l)/2,r:(h+i+s)/2}}function bI(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,c=n.x,l=n.y,h=n.r,f=r-a,p=r-c,d=i-s,v=i-l,g=u-o,m=h-o,y=r*r+i*i-o*o,_=y-a*a-s*s+u*u,b=y-c*c-l*l+h*h,O=p*d-f*v,w=(d*b-v*_)/(2*O)-r,x=(v*g-d*m)/O,E=(p*_-f*b)/(2*O)-i,T=(f*m-p*g)/O,S=x*x+T*T-1,M=2*(o+w*x+E*T),C=w*w+E*E-o*o,A=-(S?(M+Math.sqrt(M*M-4*S*C))/(2*S):C/M);return{x:r+w+x*A,y:i+E+T*A,r:A}}function OI(t,e,n){var r,i,o,a,s=t.x-e.x,u=t.y-e.y,c=s*s+u*u;c?(i=e.r+n.r,i*=i,a=t.r+n.r,a*=a,i>a?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function wI(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function xI(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function EI(t){this._=t,this.next=null,this.previous=null}function TI(t){if(!(i=(t=lI(t)).length))return 0;var e,n,r,i,o,a,s,u,c,l,h;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;OI(n,e,r=t[2]),e=new EI(e),n=new EI(n),r=new EI(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){OI(e._,n._,r=t[s]),r=new EI(r),u=n.next,c=e.previous,l=n._.r,h=e._.r;do{if(l<=h){if(wI(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}l+=u._.r,u=u.next}else{if(wI(c._,r._)){e=c,e.next=n,n.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(u!==c.next);r.previous=e,r.next=n,e.next=n.previous=n=r,o=xI(e);while((r=r.next)!==n)(a=xI(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=fI(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function SI(t){return Math.sqrt(t.value)}var MI=function(){var t=null,e=1,n=1,r=gD;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(CI(t)).eachAfter(AI(r,.5)).eachBefore(PI(1)):i.eachBefore(CI(SI)).eachAfter(AI(gD,1)).eachAfter(AI(r,i.r/Math.min(e,n))).eachBefore(PI(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=dD(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:mD(+t),i):r},i};function CI(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function AI(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=TI(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function PI(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var LI=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)}}(),DI=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},kI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-pack",e.renderType=L.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("circle.node").transition(e.services.transitions.getTransition("legend-hover-circlepack")).attr("opacity",(function(t){return t.data.dataGroupName===n.datum()["name"]?1:ct.circles.fillOpacity}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.node").transition(e.services.transitions.getTransition("legend-mouseout-circlepack")).attr("opacity",1)},e}return LI(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=zm.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getDisplayData(),s=this.model.hasParentNode(),u=this.model.getHierarchyLevel(),c=this.getOptions(),l=ud.getProperty(c,"canvasZoom","enabled");s&&ud.getProperty(a,0,"children")&&(a=ud.getProperty(a,0,"children"));var h=eD({children:a}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),f=MI().size([i,o]).padding((function(t){return t.depth>=1?ct.padding.children+3:ct.padding.mainGroup+3})),p=f(h).descendants().splice(1).filter((function(t){return t.depth<=u})),d=n.selectAll("circle.node").data(p);d.exit().attr("width",0).attr("height",0).remove();var v=d.enter().append("circle").classed("node",!0);v.merge(d).attr("class",(function(t){var n=l&&3===u?e.getZoomClass(t):"";return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.data.dataGroupName,originalClassName:t.children?"node "+n:"node node-leaf "+n})})).style("fill",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).attr("cx",(function(t){return t.x})).attr("cy",(function(t){return t.y})).transition(this.services.transitions.getTransition("circlepack-leaf-update-enter",t)).attr("r",(function(t){return t.r})).attr("opacity",1).attr("fill-opacity",ct.circles.fillOpacity),!0===l&&this.focal&&(this.services.canvasZoom.zoomIn(this.focal,v,ut),this.setBackgroundListeners()),s||this.addLegendListeners(),this.addEventListeners()}},e.prototype.unhighlightChildren=function(t){var e=this,n=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return n.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)}))},e.prototype.highlightChildren=function(t){var e=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return e.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",ct.circles.hover.stroke)},e.prototype.getZoomClass=function(t){return 3===this.model.getHierarchyLevel()&&this.focal&&(t.data===this.focal.data||this.focal.children.some((function(e){return e.data===t.data})))?"focal":"non-focal"},e.prototype.addLegendListeners=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.removeBackgroundListeners=function(){var t=Im(this.services.domUtils.getMainContainer());t.on("click",(function(){return null}))},e.prototype.setBackgroundListeners=function(){var t=Im(this.services.domUtils.getMainContainer()),e=this,n=this.parent.selectAll("circle.node"),r=ud.getProperty(o,"canvasZoomSettings");t.on("click",(function(){e.focal=null,e.model.updateHierarchyLevel(2),t.classed("zoomed-in",!1),e.services.canvasZoom.zoomOut(n,r)}))},e.prototype.getZoomIcon=function(){return'\n\t\t<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10">\n\t\t\t<polygon points="5.93 3.71 4.45 3.71 4.45 2.23 3.71 2.23 3.71 3.71 2.23 3.71 2.23 4.45 3.71 4.45 3.71 5.93 4.45 5.93 4.45 4.45 5.93 4.45 5.93 3.71"/>\n\t\t\t<path d="M7.2,6.67a4,4,0,0,0,1-2.59A4.08,4.08,0,1,0,4.07,8.15h0a4,4,0,0,0,2.59-1L9.48,10,10,9.48Zm-3.12.77A3.34,3.34,0,1,1,7.41,4.08,3.34,3.34,0,0,1,4.08,7.44Z"/>\n\t\t</svg>'},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("circle.node").on("mouseover",(function(e,n){var r=Im(this);r.classed("hovered",!0);var i=t.model.getHierarchyLevel(),o=i>2&&!r.classed("focal"),a=ud.getProperty(t.model.getOptions(),"canvasZoom","enabled"),s=!1;if(!o){var u=[],c=[],l=null;if(n.children){n.depth>1&&a&&(s=!0,r.classed("clickable",!0)),u=n.children.map((function(e){if(null!==e)return"number"===typeof e.data.value?{label:e.data.name,value:e.data.value}:{label:e.data.name,labelIcon:a&&i<=2?t.getZoomIcon():null,value:e.value}}));var h=t.model.getOptions();c=[{label:gl(h,"tooltip.totalLabel")||"Total",value:n.value,bold:!0}],t.highlightChildren(n.children)}else l=n.value;var f=getComputedStyle(this,null).getPropertyValue("fill");t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,items:DI([{color:f,label:n.data.name,labelIcon:s&&a&&i<=2?t.getZoomIcon():null,value:l}],u,c)})}t.services.events.dispatchEvent(it.CirclePack.CIRCLE_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=Im(this);t.services.events.dispatchEvent(it.CirclePack.CIRCLE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("mouseout",(function(e,n){var r=Im(this);r.classed("hovered",!1),n.children&&t.unhighlightChildren(n.children),t.services.events.dispatchEvent(it.CirclePack.CIRCLE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})})).on("click",(function(e,n){var r=Im(this),i=r.classed("non-focal"),o=ud.getProperty(t.getOptions(),"canvasZoom","enabled")&&t.model.getHierarchyLevel()>2;if(o){var a=t.parent.selectAll("circle.node"),s=Im(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!1),t.focal=null,t.model.updateHierarchyLevel(2),t.services.canvasZoom.zoomOut(a,ut)}else if(2===n.depth&&n.children&&!i){a=t.parent.selectAll("circle.node"),s=Im(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!0),t.focal=n,t.model.updateHierarchyLevel(3),t.services.canvasZoom.zoomIn(n,a,ut),e.stopPropagation()}t.services.events.dispatchEvent(it.CirclePack.CIRCLE_CLICK,{event:e,element:r,datum:n})}))},e.prototype.destroy=function(){this.parent.selectAll("circle.node").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("click",null);var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),this.removeBackgroundListeners()},e}(kS),RI=n("2a60"),II=n.n(RI),jI=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)}}(),NI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="wordcloud",e.renderType=L.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("text.word").transition(e.services.transitions.getTransition("legend-hover-wordcloud")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("text.word").transition(e.services.transitions.getTransition("legend-mouseout-wordcloud")).attr("opacity",1)},e}return jI(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getComponentContainer().attr("width","100%").attr("height","100%"),r=this.model.getDisplayData(),i=this.getFontSizeScale(r),o=this.getOptions(),a=o.wordCloud,s=a.fontSizeMapsTo,u=a.wordMapsTo,c=o.data.groupMapsTo,l=zm.getSVGElementSize(n,{useAttrs:!0}),h=l.width,f=l.height;if(0!==h&&0!==f){var p=II()().size([h,f]).words(r.map((function(t){var e;return e={},e[c]=t[c],e.text=t[u],e.size=t[s],e.value=t[s],e}))).padding(5).rotate(0).fontSize((function(t){return i(t.size)})).on("end",d);p.start(),this.addEventListeners()}function d(r){var i=zm.appendOrSelect(n,"g.words");i.attr("transform","translate("+p.size()[0]/2+", "+p.size()[1]/2+")");var o=i.selectAll("text").data(r,(function(t){return t[c]+"-"+t.text}));o.exit().attr("opacity",0).remove();var a=o.enter().append("text").attr("opacity",0);a.merge(o).style("font-size",(function(t){return t.size+"px"})).text((function(t){return t.text})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[c],originalClassName:"word "+(t.size>32?"light":"")})})).style("fill",(function(t){return e.model.getFillColor(t[c],t.text,t)})).attr("text-anchor","middle").transition(e.services.transitions.getTransition("wordcloud-text-update-enter",t)).attr("transform",(function(t){return"translate("+t.x+", "+t.y+")"})).attr("opacity",1)}},e.prototype.getFontSizeScale=function(t){var e=this.getOptions(),n=e.wordCloud.fontSizeMapsTo,r=t.map((function(t){return t[n]})).filter((function(t){return t})),i=zm.getHTMLElementSize(this.services.domUtils.getMainContainer()),o=r.length>0,a=o?bv(r):[1,1];return RE().domain(a).range(o?e.wordCloud.fontSizeRange(i,t):[4,4])},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=ud.debounce((function(t){var e=r.parent.selectAll("text.word").transition(r.services.transitions.getTransition("wordcloud-word-mouse-highlight"));null===t?e.attr("opacity",1):e.attr("opacity",(function(){return t===this?1:.3}))}),6),r=this;this.parent.selectAll("text.word").on("mouseover",(function(i,o){var a=this;n(a),r.services.events.dispatchEvent(it.WordCloud.WORD_MOUSEOVER,{event:i,element:Im(this),datum:o}),r.services.events.dispatchEvent(it.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:t.tooltip.wordLabel,value:o.text},{label:t.tooltip.valueLabel,value:o.value},{label:t.tooltip.groupLabel,value:o[e],class:r.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:o[e]})}]})})).on("mousemove",(function(t,e){var n=Im(this);r.services.events.dispatchEvent(it.WordCloud.WORD_MOUSEMOVE,{element:n,datum:e}),r.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){r.services.events.dispatchEvent(it.WordCloud.WORD_CLICK,{event:t,element:Im(this),datum:e})})).on("mouseout",(function(t,e){var i=Im(this);n(null),r.services.events.dispatchEvent(it.WordCloud.WORD_MOUSEOUT,{event:t,element:i,datum:e}),r.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:i})}))},e}(kS),BI=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)}}(),VI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return BI(e,t),e.prototype.render=function(){this.getComponentContainer().style("width",(this.configs.size||yt.default.size)+"px").style("height",(this.configs.size||yt.default.size)+"px").attr("opacity",0)},e}(kS),UI=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)}}(),HI=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;return a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++,a.init(),a}return UI(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("div.layout-child-"+this._instanceID).filter((function(t){var e=ud.getProperty(t,"growth");return e===F.PREFERRED||e===F.FIXED})).each((function(t){e+=t.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("div.layout-child-"+this._instanceID).filter((function(t){return ud.getProperty(t,"growth")===F.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=zm.getHTMLElementSize(n.node()),i=r.width,o=r.height,a=this.configs.direction===G.ROW||this.configs.direction===G.ROW_REVERSE,s=ud.getProperty(this.model.getOptions(),"style","prefix"),u=n.classed(Bm.prefix+"--"+s+"--layout-row",this.configs.direction===G.ROW).classed(Bm.prefix+"--"+s+"--layout-row-reverse",this.configs.direction===G.ROW_REVERSE).classed(Bm.prefix+"--"+s+"--layout-column",this.configs.direction===G.COLUMN).classed(Bm.prefix+"--"+s+"--layout-column-reverse",this.configs.direction===G.COLUMN_REVERSE).classed(Bm.prefix+"--"+s+"--layout-alignitems-center",this.configs.alignItems===z.CENTER).selectAll("div.layout-child-"+this._instanceID).data(this.children,(function(t){return t.id})),c=u.enter().append("div");c.merge(n.selectAll("div.layout-child-"+this._instanceID)).attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.id})).each((function(e){var n=this;e.components.forEach((function(r){var i=Im(n),o=ud.getProperty(e,"renderType"),a=o===L.SVG;r.setParent(a?zm.appendOrSelect(i,"svg.layout-svg-wrapper").attr("width","100%").attr("height","100%"):i);var s=ud.getProperty(e,"growth");s!==F.PREFERRED&&s!==F.FIXED||r.render(t)}))})),n.selectAll("div.layout-child-"+this._instanceID).style("height",null).style("width",null).each((function(t){var e=ud.getProperty(t,"growth"),n=ud.getProperty(t,"renderType"),r=n===L.SVG?zm.getSVGElementSize(Im(this).select("svg.layout-svg-wrapper"),{useBBox:!0}):zm.getHTMLElementSize(this);if(e===F.PREFERRED){var s=a?r.width:r.height,u=a?i:o;t.size=s/u*100}})),u.exit().remove(),this.children.filter((function(t){var e=ud.getProperty(t,"growth");return e===F.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()}));var l=n.selectAll("div.layout-child-"+this._instanceID).data(this.children,(function(t){return t.id}));a?l.style("width",(function(t){return t.size/100*i+"px"})).style("height","100%"):l.style("height",(function(t){return t.size/100*o+"px"})).style("width","100%"),l.each((function(e,n){e.components.forEach((function(n){var r=ud.getProperty(e,"growth");r===F.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}(kS),GI=function(t){return t},FI=1,zI=2,WI=3,qI=4,YI=1e-6;function ZI(t){return"translate("+t+",0)"}function XI(t){return"translate(0,"+t+")"}function KI(t){return e=>+t(e)}function $I(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function QI(){return!this.__axis}function JI(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,c=t===FI||t===qI?-1:1,l=t===qI||t===zI?"x":"y",h=t===FI||t===WI?ZI:XI;function f(f){var p=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,d=null==i?e.tickFormat?e.tickFormat.apply(e,n):GI:i,v=Math.max(o,0)+s,g=e.range(),m=+g[0]+u,y=+g[g.length-1]+u,_=(e.bandwidth?$I:KI)(e.copy(),u),b=f.selection?f.selection():f,O=b.selectAll(".domain").data([null]),w=b.selectAll(".tick").data(p,e).order(),x=w.exit(),E=w.enter().append("g").attr("class","tick"),T=w.select("line"),S=w.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),T=T.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),S=S.merge(E.append("text").attr("fill","currentColor").attr(l,c*v).attr("dy",t===FI?"0em":t===WI?"0.71em":"0.32em")),f!==b&&(O=O.transition(f),w=w.transition(f),T=T.transition(f),S=S.transition(f),x=x.transition(f).attr("opacity",YI).attr("transform",(function(t){return isFinite(t=_(t))?h(t+u):this.getAttribute("transform")})),E.attr("opacity",YI).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:_(t))+u)}))),x.remove(),O.attr("d",t===qI||t===zI?a?"M"+c*a+","+m+"H"+u+"V"+y+"H"+c*a:"M"+u+","+m+"V"+y:a?"M"+m+","+c*a+"V"+u+"H"+y+"V"+c*a:"M"+m+","+u+"H"+y),w.attr("opacity",1).attr("transform",(function(t){return h(_(t)+u)})),T.attr(l+"2",c*o),S.attr(l,c*v).text(d),b.filter(QI).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===zI?"start":t===qI?"end":"middle"),b.each((function(){this.__axis=_}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(o=a=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(a=+t,f):a},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(u=+t,f):u},f}function tj(t){return JI(FI,t)}function ej(t){return JI(zI,t)}function nj(t){return JI(WI,t)}function rj(t){return JI(qI,t)}var ij=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)}}(),oj=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",i.renderType=L.SVG,r&&(i.configs=r),i.margins=i.configs.margins,i}return ij(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n,r,i=this.configs.position,o=this.getOptions(),s=ud.getProperty(o,"axes",i,"visible"),u=this.getComponentContainer(),c=zm.getSVGElementSize(u,{useAttrs:!0}),l=c.width,h=c.height,f=zm.appendOrSelect(u,"g.axis."+i);i===R.BOTTOM||i===R.TOP?(n=this.configs.axes[R.LEFT]?this.margins.left:0,r=this.configs.axes[R.RIGHT]?l-this.margins.right:l):(n=h-this.margins.bottom,r=this.margins.top);var p,d=this.services.cartesianScales.getScaleByPosition(i);switch(this.scaleType===B.LABELS||this.scaleType===B.LABELS_RATIO?d.rangeRound([n,r]):d.range([n,r]),i){case R.LEFT:p=rj;break;case R.BOTTOM:p=nj;break;case R.RIGHT:p=ej;break;case R.TOP:p=tj;break}f.attr("aria-label",i+" axis");var v=!f.select("g.ticks").empty(),g=zm.appendOrSelect(f,"g.ticks");v||(g.attr("role",a.GRAPHICS_OBJECT+" "+a.GROUP),g.attr("aria-label",i+" ticks"));var m=zm.appendOrSelect(f,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+i+" ticks"),y=ud.getProperty(o,"axes",i),_=this.scaleType===B.TIME||y.scaleType===B.TIME,b=i===R.LEFT||i===R.RIGHT,O=this.model.get("zoomDomain");if(O&&_&&!b&&d.domain(O),s){var w=ud.getProperty(y,"scaleType"),x=ud.getProperty(o,"data","loading"),E=ud.getProperty(y,"ticks","number"),T=ud.getProperty(y,"ticks","values"),S=ud.getProperty(y,"truncation","type"),M=ud.getProperty(y,"truncation","threshold"),C=ud.getProperty(y,"truncation","numCharacter"),A=null!==E,P=ud.getProperty(o,"timeScale"),L=zm.appendOrSelect(m,"g.tick"),D=zm.appendOrSelect(L,"text").text("0"),k=zm.getSVGElementSize(D.node(),{useBBox:!0}).height;L.remove();var I,N=this.scaleType||y.scaleType||B.LINEAR,V=p(d).tickSizeOuter(0);if(d.ticks){var U=void 0;if(A?U=E:(U=st.ticks.number,b&&(U=this.getNumberOfFittingTicks(h,k,st.ticks.verticalSpaceRatio))),1===d.ticks().length&&0===d.ticks()[0]&&(U=0),V.ticks(U),_)if(d.ticks(U).length){var H=ud.getProperty(o,"timeScale","addSpaceOnEdges"),G=ud.getProperty(o,"axes",i,"domain"),F=void 0,z=d.copy();H&&!G&&z.nice(U),F=z.ticks(U),H&&F.length>2&&!G&&(F.splice(F.length-1,1),F.splice(0,1)),V.tickValues(F)}else V.tickValues([])}var W=ud.getProperty(y,"ticks","formatter");if(_){var q=lP(V.tickValues());I=null===W?function(t,e){return aP(t,e,V.tickValues(),q,P)}:function(t,e){var n=aP(t,e,V.tickValues(),q,P);return W(t,e,n)}}else null===W?N===B.LINEAR&&(I=function(t){return t.toLocaleString()}):I=W;V.tickFormat(I);var Y,Z=this.services.cartesianScales.getScaleByPosition(i).domain(),X=Z[0],K=Z[1];if(T){if(_)T.forEach((function(t,e){void 0===t.getTime&&(T[e]=new Date(t))})),Y=T.filter((function(t){var e=t.getTime();return e>=new Date(X).getTime()&&e<=new Date(K).getTime()}));else if(w===B.LABELS){var $=this.services.cartesianScales.getScaleByPosition(i).domain();Y=T.filter((function(t){return $.includes(t)}))}else Y=T.filter((function(t){return t>=X&&t<=K}));V.tickValues(Y)}switch(i){case R.LEFT:g.attr("transform","translate("+this.margins.left+", 0)");break;case R.BOTTOM:g.attr("transform","translate(0, "+(h-this.margins.bottom)+")");break;case R.RIGHT:g.attr("transform","translate("+(l-this.margins.right)+", 0)");break;case R.TOP:g.attr("transform","translate(0, "+this.margins.top+")");break}var J=this.model.isDataEmpty();if(y.title){var tt=zm.appendOrSelect(f,"text.axis-title").html(J||x?"":y.title),nt=ud.getProperty(y,"titleOrientation");switch(i){case R.LEFT:nt===et.RIGHT?tt.attr("transform","rotate(90)").attr("y",0).attr("x",d.range()[0]/2).attr("dy","-0.5em").style("text-anchor","middle"):tt.attr("transform","rotate(-90)").attr("y",0).attr("x",-d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case R.BOTTOM:tt.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+(h+4)+")").style("text-anchor","middle");break;case R.RIGHT:nt===et.LEFT?tt.attr("transform","rotate(-90)").attr("y",l).attr("x",-d.range()[0]/2).style("text-anchor","middle"):tt.attr("transform","rotate(90)").attr("y",-l).attr("x",d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case R.TOP:var rt=zm.getSVGElementSize(tt,{useBBox:!0}).height;tt.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+rt/2+")").style("text-anchor","middle");break}}if(_){var it=lP(V.tickValues()),ot=P.showDayName,at=g;t&&(g=g.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"axis-update",animate:t})}))),g=g.call(V);var ut=at.selectAll(".tick").data(V.tickValues(),d).order().select("text");ut.style("font-weight",(function(t,e){return oP(t,e,V.tickValues(),it,ot)?"bold":"normal"}))}else g=t&&v?g.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"axis-update",animate:t})})).call(V):g.call(V);if(m.call(V),i===R.BOTTOM||i===R.TOP){var ct=!1,lt=ud.getProperty(y,"ticks","rotation");if(lt===Q.ALWAYS)ct=!0;else if(lt===Q.NEVER)ct=!1;else if(!lt||lt===Q.AUTO)if(d.step){var ht=m.selectAll("g.tick text").nodes();ct=ht.some((function(t){return zm.getSVGElementSize(t,{useBBox:!0}).width>=d.step()}))}else{ct=!1;var ft,pt=m.append("text").text("A"),dt=pt.node().getBBox().width;m.selectAll("g.tick").each((function(){var t=Im(this),e=parseFloat(ud.getProperty(ud.getTranslationValues(this),"tx"));null!==e&&ft+t.text().length*dt*.8>=e&&(ct=!0),ft=e}))}ct?(A||(V.ticks(this.getNumberOfFittingTicks(l,k,st.ticks.horizontalSpaceRatio)),m.call(V),g.call(V)),f.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",i===R.TOP?"start":"end")):f.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(x?f.attr("opacity",0):f.attr("opacity",1),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),m.selectAll("g.tick").attr("aria-label",(function(t){return t})),S!==j.NONE&&w===B.LABELS&&!T){var vt=this.services.cartesianScales.getScaleDomain(i);if(vt.length>0){var gt=u.select("g.axis."+i+" g.ticks g.tick").html();f.selectAll("g.ticks g.tick").html(gt),f.selectAll("g.tick text").data(vt).text((function(t){return t.length>M?ud.truncateLabel(t,S,C):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(vt).text((function(t){return t.length>M?ud.truncateLabel(t,S,C):t})),f.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),f.selectAll("g.tick text").data(vt)}}this.addEventListeners()}else g.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getComponentContainer(),e=this.configs.position,n=zm.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=ud.getProperty(r,"axes",e),o=ud.getProperty(i,"scaleType"),a=ud.getProperty(i,"truncation","threshold"),s=(this.scaleType===B.TIME||(i.scaleType,B.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t,e){s.services.events.dispatchEvent(it.Axis.LABEL_MOUSEOVER,{event:t,element:Im(this),datum:e}),o===B.LABELS&&e.length>a&&s.services.events.dispatchEvent(it.Tooltip.SHOW,{event:t,hoveredElement:Im(this),content:e})})).on("mousemove",(function(t,e){s.services.events.dispatchEvent(it.Axis.LABEL_MOUSEMOVE,{event:t,element:Im(this),datum:e}),o===B.LABELS&&e.length>a&&s.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){s.services.events.dispatchEvent(it.Axis.LABEL_CLICK,{event:t,element:Im(this),datum:e})})).on("mouseout",(function(t,e){s.services.events.dispatchEvent(it.Axis.LABEL_MOUSEOUT,{event:t,element:Im(this),datum:e}),o===B.LABELS&&s.services.events.dispatchEvent(it.Tooltip.HIDE)}))},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getComponentContainer().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getComponentContainer().select("g.axis."+t+" text.axis-title")},e.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return ud.clamp(r,2,st.ticks.number)},e.prototype.destroy=function(){var t=this.getComponentContainer(),e=this.configs.position,n=zm.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(kS),aj=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)}}(),sj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.renderType=L.SVG,e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return aj(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(R),i=ud.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[R[t]];e&&(n[R[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=R[t];if(e.configs.axes[n]&&!e.children[n]){var r=new oj(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,a=r.getInvisibleAxisRef(),s=zm.getSVGElementSize(a,{useBBox:!0}),u=s.width,c=s.height;switch(r.getTitleRef().empty()?n=0:(n=zm.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i!==R.LEFT&&i!==R.RIGHT||(n+=5)),i){case R.TOP:o.top=c+n;break;case R.BOTTOM:o.bottom=c+n;break;case R.LEFT:o.left=u+n;break;case R.RIGHT:o.right=u+n;break}}));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(it.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(kS);const uj={capture:!0,passive:!1};var cj=function(t){t.preventDefault(),t.stopImmediatePropagation()},lj=function(t){var e=t.document.documentElement,n=Im(t).on("dragstart.drag",cj,uj);"onselectstart"in e?n.on("selectstart.drag",cj,uj):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function hj(t,e){var n=t.document.documentElement,r=Im(t).on("dragstart.drag",null);e&&(r.on("click.drag",cj,uj),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 fj=t=>()=>t;function pj(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function dj(t){t.stopImmediatePropagation()}var vj=function(t){t.preventDefault(),t.stopImmediatePropagation()},gj={name:"drag"},mj={name:"space"},yj={name:"handle"},_j={name:"center"};const{abs:bj,max:Oj,min:wj}=Math;function xj(t){return[+t[0],+t[1]]}function Ej(t){return[xj(t[0]),xj(t[1])]}var Tj={name:"x",handles:["w","e"].map(Dj),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]]}},Sj={name:"y",handles:["n","s"].map(Dj),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]]}},Mj=(["n","w","e","s","nw","ne","sw","se"].map(Dj),{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"}),Cj={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Aj={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Pj={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Lj={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Dj(t){return{type:t}}function kj(t){return!t.ctrlKey&&!t.button}function Rj(){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 Ij(){return navigator.maxTouchPoints||"ontouchstart"in this}function jj(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function Nj(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Bj(){return Vj(Tj)}function Vj(t){var e,n=Rj,r=kj,i=Ij,o=!0,a=ry("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([Dj("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Mj.overlay).merge(n).each((function(){var t=jj(this).extent;Im(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([Dj("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Mj.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 Mj[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=Im(this),e=jj(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){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,s,u,h,f,p,d,v,g,m,y=this,_=n.target.__data__.type,b="selection"===(o&&n.metaKey?_="overlay":_)?gj:o&&n.altKey?_j:yj,O=t===Sj?null:Pj[_],w=t===Tj?null:Lj[_],x=jj(y),E=x.extent,T=x.selection,S=E[0][0],M=E[0][1],C=E[1][0],A=E[1][1],P=0,L=0,D=O&&w&&o&&n.shiftKey,k=Array.from(n.touches||[n],t=>{const e=t.identifier;return t=hd(t,y),t.point0=t.slice(),t.identifier=e,t});By(y);var R=l(y,arguments,!0).beforestart();if("overlay"===_){T&&(v=!0);const e=[k[0],k[1]||k[0]];x.selection=T=[[i=t===Sj?S:wj(e[0][0],e[1][0]),s=t===Tj?M:wj(e[0][1],e[1][1])],[h=t===Sj?C:Oj(e[0][0],e[1][0]),p=t===Tj?A:Oj(e[0][1],e[1][1])]],k.length>1&&V(n)}else i=T[0][0],s=T[0][1],h=T[1][0],p=T[1][1];a=i,u=s,f=h,d=p;var I=Im(y).attr("pointer-events","none"),j=I.selectAll(".overlay").attr("cursor",Mj[_]);if(n.touches)R.moved=B,R.ended=U;else{var N=Im(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",U,!0);o&&N.on("keydown.brush",H,!0).on("keyup.brush",G,!0),lj(n.view)}c.call(y),R.start(n,b.name)}function B(t){for(const e of t.changedTouches||[t])for(const t of k)t.identifier===e.identifier&&(t.cur=hd(e,y));if(D&&!g&&!m&&1===k.length){const t=k[0];bj(t.cur[0]-t[0])>bj(t.cur[1]-t[1])?m=!0:g=!0}for(const e of k)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);v=!0,vj(t),V(t)}function V(t){const e=k[0],n=e.point0;var r;switch(P=e[0]-n[0],L=e[1]-n[1],b){case mj:case gj:O&&(P=Oj(S-i,wj(C-h,P)),a=i+P,f=h+P),w&&(L=Oj(M-s,wj(A-p,L)),u=s+L,d=p+L);break;case yj:k[1]?(O&&(a=Oj(S,wj(C,k[0][0])),f=Oj(S,wj(C,k[1][0])),O=1),w&&(u=Oj(M,wj(A,k[0][1])),d=Oj(M,wj(A,k[1][1])),w=1)):(O<0?(P=Oj(S-i,wj(C-i,P)),a=i+P,f=h):O>0&&(P=Oj(S-h,wj(C-h,P)),a=i,f=h+P),w<0?(L=Oj(M-s,wj(A-s,L)),u=s+L,d=p):w>0&&(L=Oj(M-p,wj(A-p,L)),u=s,d=p+L));break;case _j:O&&(a=Oj(S,wj(C,i-P*O)),f=Oj(S,wj(C,h+P*O))),w&&(u=Oj(M,wj(A,s-L*w)),d=Oj(M,wj(A,p+L*w)));break}f<a&&(O*=-1,r=i,i=h,h=r,r=a,a=f,f=r,_ in Cj&&j.attr("cursor",Mj[_=Cj[_]])),d<u&&(w*=-1,r=s,s=p,p=r,r=u,u=d,d=r,_ in Aj&&j.attr("cursor",Mj[_=Aj[_]])),x.selection&&(T=x.selection),g&&(a=T[0][0],f=T[1][0]),m&&(u=T[0][1],d=T[1][1]),T[0][0]===a&&T[0][1]===u&&T[1][0]===f&&T[1][1]===d||(x.selection=[[a,u],[f,d]],c.call(y),R.brush(t,b.name))}function U(t){if(dj(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else hj(t.view,v),N.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);I.attr("pointer-events","all"),j.attr("cursor",Mj.overlay),x.selection&&(T=x.selection),Nj(T)&&(x.selection=null,c.call(y)),R.end(t,b.name)}function H(t){switch(t.keyCode){case 16:D=O&&w;break;case 18:b===yj&&(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=_j,V(t));break;case 32:b!==yj&&b!==_j||(O<0?h=f-P:O>0&&(i=a-P),w<0?p=d-L:w>0&&(s=u-L),b=mj,j.attr("cursor",Mj.selection),V(t));break;default:return}vj(t)}function G(t){switch(t.keyCode){case 16:D&&(g=m=D=!1,V(t));break;case 18:b===_j&&(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=yj,V(t));break;case 32:b===mj&&(t.altKey?(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=_j):(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=yj),j.attr("cursor",Mj[_]),V(t));break;default:return}vj(t)}}function p(t){l(this,arguments).moved(t)}function d(t){l(this,arguments).ended(t)}function v(){var e=this.__brush||{selection:null};return e.extent=Ej(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).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=Dx(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,i=arguments,o=e.__brush,a=t.input("function"===typeof n?n.apply(e,i):n,o.extent),s=l(e,i).beforestart();By(e),o.selection=null===a?null:a,c.call(e),s.start(r).brush(r).end(r)}))},u.clear=function(t,e){u.move(t,null,e)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0===--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=Im(this.that).datum();a.call(e,this.that,new pj(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:fj(Ej(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:fj(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:fj(!!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 Uj=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)}}(),Hj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.renderType=L.SVG,e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return Uj(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getComponentContainer(),o=zm.appendOrSelect(r,"svg.chart-grid-backdrop"),a=zm.appendOrSelect(o,"g."+this.type),s=zm.appendOrSelect(a,this.selectionSelector),u=zm.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=zm.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===B.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(t){var e=t.selection;null!==e&&e[0]!==e[1]&&(g.attr("x",parseFloat(s.attr("x"))+parseFloat(o.attr("x"))).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(e))},b=function(t,e){var r=Xx().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)},O=function(t){var e=t.selection;null!==e&&(b(e[0],e[1]),a.call(w.move,null),g.style("display","none"))},w=Bj().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",O);a.call(w);var x=this.services.zoom.getZoomRatio();o.on("click",(function(t){if(t.shiftKey){var e=this.services.domUtils.getHolder(),n=hd(a.node(),e)[0],r=n-c*x/2;r<0&&(r=0);var i=n+c*x/2;i>c&&(i=c),b(r,i)}}))}},e.DASH_LENGTH=4,e}(kS),Gj=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)}}(),Fj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e.renderType=L.SVG,e}return Gj(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=ud.getProperty(this.getOptions(),"grid","x","enabled"),n=ud.getProperty(this.getOptions(),"grid","y","enabled");this.drawBackdrop(e,n),(e||n)&&(e&&(zm.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(zm.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this,n=this.parent,r=this.backdrop.attr("height"),i=this.services.cartesianScales.getMainXScale(),o=nj(i).tickSizeInner(-r).tickSizeOuter(0),a=ud.getProperty(this.getOptions(),"grid","x","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getDomainAxisPosition(),u=ud.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=ud.getProperty(this.getOptions(),"grid","x","numberOfTicks");o.ticks(c)}var l=n.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+r+")");t?l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"grid-update",animate:t})})).call(o):l.call(o),this.cleanGrid(l)},e.prototype.drawYGrid=function(t){var e=this,n=this.parent,r=this.backdrop.attr("width"),i=this.services.cartesianScales.getMainYScale(),o=rj(i).tickSizeInner(-r).tickSizeOuter(0),a=ud.getProperty(this.getOptions(),"grid","y","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getRangeAxisPosition(),u=ud.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=ud.getProperty(this.getOptions(),"grid","y","numberOfTicks");o.ticks(c)}var l=n.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");t?l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"grid-update",animate:t})})).call(o):l.call(o),this.cleanGrid(l)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(ud.getTranslationValues(t).tx)-Number(ud.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+ud.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=+ud.getTranslationValues(s).tx-+ud.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=zm.getSVGElementSize(u).width;o=c-+ud.getTranslationValues(a).tx}else o=+ud.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=ud.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=ud.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=zm.appendOrSelect(n,"svg.chart-grid-backdrop");var h=zm.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}(kS),zj=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)}}(),Wj=5;function qj(t,e){return t>e-Wj&&t<e+Wj}var Yj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.renderType=L.SVG,e.isXGridEnabled=ud.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=ud.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return zj(e,t),e.prototype.render=function(){var t=ud.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,e){var n=this,r=e[0],i=e[1],o=this.parent,a=this.services.cartesianScales.getOrientation(),s=this.model.getDisplayData(),u=this.services.cartesianScales.getRangeScale(),c=u.range(),l=c[0],h=c[1],f=a===N.HORIZONTAL?i:r,p=zm.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),d=zm.appendOrSelect(p,"line.ruler-line"),v=o.selectAll("[role=graphics-symbol]"),g=s.map((function(t){return{domainValue:n.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return qj(t.domainValue,f)}));if(this.pointsWithinLine&&g.length===this.pointsWithinLine.length&&g.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=g,this.services.events.dispatchEvent(it.Tooltip.MOVE,{mousePosition:[r,i]});this.pointsWithinLine=g;var m=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(f-e.domainValue),i=Math.abs(f-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(m.length>0){var y=m.map((function(t){return t.originalData})).filter((function(t){var e=n.services.cartesianScales.getRangeIdentifier(t),r=t[e];return null!==r&&void 0!==r})),_=m.map((function(t){return t.domainValue})),b=v.filter((function(t){var e=n.services.cartesianScales.getDomainValue(t);return _.includes(e)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!ud.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent(it.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:d,data:this.formatTooltipData(y)}),p.attr("opacity",1);var O=m[0];"horizontal"===a?d.attr("x1",h).attr("x2",l).attr("y1",O.domainValue).attr("y2",O.domainValue):d.attr("y1",h).attr("y2",l).attr("x1",O.domainValue).attr("x2",O.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=zm.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(it.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.services.domUtils.getHolder(),n=this.model.getDisplayData(),r=function(e){var n=hd(e,t.parent.node());t.showRuler(e,n)};if(n.length>100){var i=n.length%50*12.5;r=ud.debounceWithD3MousePosition((function(e){var n=this.mousePosition;t.showRuler(e,n)}),i,e)}this.backdrop.on("mousemove mouseover",r).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent;this.backdrop=zm.appendOrSelect(t,"svg.chart-grid-backdrop")},e}(kS),Zj=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)}}(),Xj=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},Kj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler-binned",e.renderType=L.SVG,e}return Zj(e,t),e.prototype.showRuler=function(t,e){var n=this,r=e[0],i=e[1],o=this.parent,a=this.model.getOptions(),s=this.services.cartesianScales.getOrientation(),u=this.services.cartesianScales.getRangeScale(),c=u.range(),l=c[0],h=c[1],f=this.services.cartesianScales.getDomainScale(),p=f.invert(s===N.VERTICAL?r:i),d=zm.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),v=zm.appendOrSelect(d,"line.ruler-line"),g=o.selectAll("[role=graphics-symbol]"),m=g.filter((function(t){if(parseFloat(gl(t,"data.x0"))<=p&&parseFloat(gl(t,"data.x1"))>=p)return!0}));if(m.size()>0){this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!ud.isEqual(this.elementsToHighlight,m)&&this.hideRuler(),m.dispatch("mouseover"),this.elementsToHighlight=m;var y=Im(m.nodes()[0]).datum(),_=parseFloat(gl(y,"data.x0")),b=parseFloat(gl(y,"data.x1")),O=this.model.getActiveDataGroupNames(),w=O.reverse().map((function(t){return{label:"Group",value:gl(y,"data."+t),class:n.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:t})}})).filter((function(t){return 0!==t.value})),x=w.length>0;if(x){this.services.events.dispatchEvent(it.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:v,items:Xj([{label:gl(a,"bins.rangeLabel")||"Range",value:_+" – "+b}],w,!0===ud.getProperty(a,"tooltip","showTotal")?[{label:gl(a,"tooltip.totalLabel")||"Total",value:O.reduce((function(t,e){return t+parseFloat(gl(y,"data."+e))}),0)}]:[])}),d.attr("opacity",1);var E=f((_+b)/2);"horizontal"===s?v.attr("x1",h).attr("x2",l).attr("y1",E).attr("y2",E):v.attr("y1",h).attr("y2",l).attr("x1",E).attr("x2",E)}else this.hideRuler()}else this.hideRuler()},e}(Yj),$j=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)}}(),Qj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $j(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e}(Yj),Jj=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)}}(),tN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.renderType=L.HTML,e}return Jj(e,t),e.prototype.init=function(){var t=this,e=function(){return t.updateOverflowMenu(!1)};this.services.events.addEventListener(it.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.renderOverflowMenu(),document.body.addEventListener("click",e)})),this.services.events.addEventListener(it.Toolbar.HIDE_OVERFLOW_MENU,(function(){document.body.removeEventListener("click",e)}))},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this.getComponentContainer();this.overflowMenu||(this.overflowMenu=e.append("div").attr("class","bx--overflow-menu-options bx--overflow-menu--flip").attr("tabindex",-1).attr("role","menu").html("<ul></ul>"));var n=this.getControlConfigs(),r=n.buttonList,i=n.overflowMenuItemList;i&&r.push(this.getOverflowButtonConfig());var o=e.selectAll("div.toolbar-control").data(r,(function(t){return t.id}));o.exit().remove();var a=o.enter().append("div").attr("class","toolbar-control bx--overflow-menu");a.merge(o).classed("disabled",(function(t){return!!t.shouldBeDisabled&&t.shouldBeDisabled()})).html((function(t){return'\n\t\t\t<button\n\t\t\t\tclass="bx--overflow-menu__trigger"\n\t\t\t\taria-haspopup="true" aria-expanded="false" id="'+t.id+'">\n\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform; width: '+(void 0!==t.iconWidth?t.iconWidth:"20px")+"; height: "+(void 0!==t.iconWidth?t.iconHeight:"20px")+'" xmlns="http://www.w3.org/2000/svg" class="bx--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">\n\t\t\t\t\t'+t.iconSVGContent+"\n\t\t\t\t</svg>\n\t\t\t</button>"})).each((function(t){Im(this).select("button").on("click",t.clickFunction).on("keyup",(function(e){(e.key&&"Enter"===e.key||" "===e.key)&&(e.preventDefault(),t.clickFunction())}))}));this.overflowButton=this.getComponentContainer().select("button.bx--overflow-menu__trigger#toolbar-overflow-menu")},e.prototype.renderOverflowMenu=function(){var t=this.getControlConfigs().overflowMenuItemList,e=this.overflowMenu.select("ul").selectAll("li.bx--overflow-menu-options__option").data(t,(function(t){return ud.getProperty(t,"id")}));e.exit().remove();var n=e.enter().append("li").attr("id",(function(t){return t.id})).attr("class","bx--overflow-menu-options__option");n.append("button").attr("class","bx--overflow-menu-options__btn").attr("role","menuitem"),n.merge(e).classed("bx--overflow-menu-options__option--disabled",(function(t){return t.shouldBeDisabled()})).attr("aria-disabled",(function(t){return t.shouldBeDisabled()})).selectAll("button").text((function(t){return t.text}))},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.classed("is-open")},e.prototype.updateOverflowMenu=function(t){this.overflowMenu.classed("is-open",t),this.overflowButton&&(this.overflowButton.attr("aria-expanded",t),Im(this.overflowButton.node().parentNode).classed("bx--overflow-menu--open",t)),t?this.services.events.dispatchEvent(it.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(it.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=Im("#"+e[n].id+" button").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=Im("#"+e[n].id+" button").node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(t){if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var e=this,n=this.getOverflowMenuItems();n.forEach((function(n,r){var i=Im("#"+n.id);null!==i&&(i.on("click",(function(){n.clickFunction(),e.updateOverflowMenu(!1)})),i.on("keyup",(function(){"Enter"===t.key?n.clickFunction():"ArrowUp"===t.key?e.focusOnPreviousEnabledMenuItem(r):"ArrowDown"===t.key&&e.focusOnNextEnabledMenuItem(r)})))})),e.focusOnNextEnabledMenuItem(-1)}t.stopImmediatePropagation()},e.prototype.getControlConfigs=function(){var t=this,e=ud.getProperty(this.getOptions(),"toolbar","numberOfIcons"),n=ud.getProperty(this.getOptions(),"toolbar","controls"),r=[],i=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,-1!==n.id.indexOf("toolbar-export")?i.push(n):r.push(n))})),r.length<=e&&0===i.length?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r.concat(i)}},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(e){return t.toggleOverflowMenu(e)}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom&&this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState();switch(t){case tt.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 tt.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 tt.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;case tt.MAKE_FULLSCREEN:e={id:"toolbar-makefullscreen",iconSVGContent:this.getControlIconByType(t),iconWidth:"15px",iconHight:"15px",shouldBeDisabled:function(){return!1},clickFunction:function(){n.services.domUtils.toggleFullscreen()}};break;case tt.SHOW_AS_DATATABLE:e={id:"toolbar-showasdatatable",iconSVGContent:this.getControlIconByType(t),shouldBeDisabled:!1,clickFunction:function(){return n.services.events.dispatchEvent(it.Modal.SHOW)}};break;case tt.EXPORT_CSV:e={id:"toolbar-export-CSV",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.model.exportToCSV()}};break;case tt.EXPORT_PNG:e={id:"toolbar-export-PNG",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.domUtils.exportToPNG()}};break;case tt.EXPORT_JPG:e={id:"toolbar-export-JPG",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.domUtils.exportToJPG()}};break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case tt.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\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 tt.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 tt.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"/>';case tt.MAKE_FULLSCREEN:return'<polygon points="21 2 21 4 26.59 4 17 13.58 18.41 15 28 5.41 28 11 30 11 30 2 21 2"/><polygon points="15 18.42 13.59 17 4 26.59 4 21 2 21 2 30 11 30 11 28 5.41 28 15 18.42"/>';case tt.SHOW_AS_DATATABLE:return'<rect x="4" y="6" width="18" height="2"/><rect x="4" y="12" width="18" height="2"/><rect x="4" y="18" width="18" height="2"/><rect x="4" y="24" width="18" height="2"/><rect x="26" y="6" width="2" height="2"/><rect x="26" y="12" width="2" height="2"/><rect x="26" y="18" width="2" height="2"/><rect x="26" y="24" width="2" height="2"/>';case tt.EXPORT_CSV: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"/>';case tt.EXPORT_JPG: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"/>';case tt.EXPORT_PNG: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}(kS),eN=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)}}(),nN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e.renderType=L.SVG,e}return eN(e,t),e.prototype.render=function(t){var e=this,n=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),r=this.services.cartesianScales.getScaleByPosition(n),i=r.domain(),o=i[0],a=i[1],s=o>0&&a<0||o<0&&a>0,u=this.getComponentContainer();if(s){var c=this.services.cartesianScales.getDomainScale().range(),l=c[0],h=c[1],f=+r(0)+.5;f||(f=r.range()[0]);var p=ud.flipSVGCoordinatesBasedOnOrientation({x0:l,x1:h,y0:f,y1:f},this.services.cartesianScales.getOrientation()),d=zm.appendOrSelect(u,"line.domain");d.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"zero-line-update",animate:t})})).attr("y1",p.y0).attr("y2",p.y1).attr("x1",p.x0).attr("x2",p.x1)}else u.selectAll("line.domain").remove()},e}(kS),rN=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)}}(),iN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.renderType=L.SVG,e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=Bj(),e}return rN(e,t),e.prototype.init=function(){this.services.events.addEventListener(it.ZoomBar.UPDATE,this.render.bind(this));var t=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=this.services.zoom.isZoomBarLoading(R.TOP),i=this.services.zoom.isZoomBarLocked(R.TOP),o=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),a=wt.height[o],s=zm.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=zm.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",a).attr("opacity",1);zm.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",a).attr("width","100%").attr("height",wt.spacerHeight).attr("opacity",1).attr("fill","none");if(o===I.GRAPH_VIEW?zm.appendOrSelect(l,"rect.zoom-bg").attr("x",u).attr("y",0).attr("width",s-u).attr("height","100%").classed("zoom-bg-skeleton",r):o===I.SLIDER_VIEW&&zm.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===B.TIME){var v=this.services.zoom.getZoomBarData();if(ud.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=ud.getProperty(this.getOptions(),"zoomBar",R.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()?null===y&&null!=m&&this.model.set({initialZoomDomain:null,zoomDomain:ud.merge([],g)},{skipUpdate:!0}):this.model.set({initialZoomDomain:ud.merge([],y),zoomDomain:y?ud.merge([],y):g},{skipUpdate:!0}),this.xScale.range([u,s]).domain(g),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,a-6]).domain(bv(v,(function(t){return t.value})));var _=this.model.get("zoomDomain");o===I.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=zm.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.getComponentContainer(),this.xScale.range(),this.xScale.domain());else{var O=_.map((function(t){return e.xScale(t)}));O[1]-O[0]<this.MIN_SELECTION_DIFF||(b.call(this.brush.move,O),this.updateBrushHandle(this.getComponentContainer(),O,_))}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(e){var n=e.selection;null===n?r.handleBrushedEvent(e,t,r.xScale,r.xScale.range()):n[0]===n[1]||r.handleBrushedEvent(e,t,r.xScale,n)},o=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),a=wt.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,r){var i=[n.invert(r[0]),n.invert(r[1])];if(this.updateBrushHandle(this.getComponentContainer(),r,i),null!=t.sourceEvent&&("mousemove"===t.sourceEvent.type||"mouseup"===t.sourceEvent.type||"mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type||"touchmove"===t.sourceEvent.type||"touchend"===t.sourceEvent.type)){void 0!==e&&e[0]===i[0]&&e[1]===i[1]||this.services.zoom.handleDomainChange(i,{dispatchEvent:!1});var o=void 0;"start"===t.type?o=it.ZoomBar.SELECTION_START:"brush"===t.type?o=it.ZoomBar.SELECTION_IN_PROGRESS:"end"===t.type&&(o=it.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(it.ZoomDomain.CHANGE,{newDomain:i})),this.services.events.dispatchEvent(o,{selection:r,newDomain:i})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=wt.handleWidth,o=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),a=wt.height[o],s=-i/2,u=wt.handleBarWidth,c=o===I.GRAPH_VIEW?wt.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===I.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=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),n=wt.height[e],r=(zm.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getComponentContainer(),o=i.select("svg.zoom-container");zm.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=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),p=wt.height[f],d=UP().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=zm.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=zm.appendOrSelect(t,"clipPath").attr("id",e);zm.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=ud.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=ud.getProperty(this.model.getOptions(),"zoomBar",R.TOP,"type"),o=wt.height[i],a=VP()([[e,o],[n,o]]);zm.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),zm.appendOrSelect(this.getComponentContainer(),this.brushSelector).html(null);var r=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type");r===I.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(it.ZoomBar.UPDATE,this.render.bind(this))},e}(kS),oN=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},aN=function(){function t(t,e){this.services={domUtils:zm,files:Zm,events:qm,gradientUtils:eO,transitions:Jb,canvasZoom:DS},this.model=new kv(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(it.Model.UPDATE,(function(t){var e=!!ud.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(it.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(it.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,e){void 0===e&&(e=L.SVG);var n={id:"title",components:[new mP(this.model,this.services)],growth:F.PREFERRED},r={id:"legend",components:[new IS(this.model,this.services)],growth:F.PREFERRED},i=ud.getProperty(this.model.getOptions(),"canvasZoom","enabled");i&&!0===i&&t.push(new AP(this.model,this.services));var o={id:"graph-frame",components:t,growth:F.STRETCH,renderType:e},a=!1!==this.model.getOptions().legend.enabled,s=G.COLUMN;if(a){var u=ud.getProperty(this.model.getOptions(),"legend","position");"left"===u?(s=G.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=H.VERTICAL)):"right"===u?(s=G.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=H.VERTICAL)):"bottom"===u&&(s=G.COLUMN_REVERSE)}var c={id:"spacer",components:[new VI(this.model,this.services)],growth:F.PREFERRED},l={id:"full-frame",components:[new HI(this.model,this.services,oN(a?[r]:[],a?[c]:[],[o]),{direction:s})],growth:F.STRETCH},h=[];if(this.model.getOptions().title){h.push(n);var f={id:"spacer",components:[new VI(this.model,this.services)],growth:F.PREFERRED};h.push(f)}return h.push(l),[new OP(this.model,this.services),new SC(this.model,this.services),new HI(this.model,this.services,h,{direction:G.COLUMN})]},t}(),sN=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)}}(),uN=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},cN=function(t){function e(e){return t.call(this,e)||this}return sN(e,t),e.prototype.assignRangeAndDomains=function(){var t=this.services.cartesianScales,e=this.getOptions(),n=t.isDualAxes(),r={primaryDomain:t.domainAxisPosition,primaryRange:t.rangeAxisPosition,secondaryDomain:null,secondaryRange:null};return n&&(r.secondaryDomain=t.secondaryDomainAxisPosition,r.secondaryRange=t.secondaryRangeAxisPosition),Object.keys(r).forEach((function(n){var i=r[n];t.scales[i]?r[n]={position:i,label:t.getScaleLabel(i),identifier:ud.getProperty(e,"axes",i,"mapsTo")}:r[n]=null})),r},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.services.cartesianScales,o=this.assignRangeAndDomains(),a=o.primaryDomain,s=o.primaryRange,u=o.secondaryDomain,c=o.secondaryRange,l=i.getDomainAxisScaleType();l===B.TIME&&(t=function(t){return eP(t,"MMM d, yyyy")});var h=uN([uN(["Group",a.label,s.label],u?[u.label]:[],c?[c.label]:[])],e.map((function(e){return uN([e[r],null===e[a.identifier]?"&ndash;":t?t(e[a.identifier]):e[a.identifier],null===e[s.identifier]||isNaN(e[s.identifier])?"&ndash;":e[s.identifier].toLocaleString()],u?[null===e[u.identifier]?"&ndash;":e[u.identifier]]:[],c?[null===e[c.identifier]||isNaN(e[c.identifier])?"&ndash;":e[c.identifier]]:[])})));return h},e.prototype.exportToCSV=function(){var t=this.getTabularDataArray().map((function(t){return t.map((function(t){return'"'+t+'"'}))})),e="",n="";t.forEach((function(r,i){n=r.join(","),e+=i<t.length?n+"\n":n})),this.services.files.downloadCSV(e,"myChart.csv")},e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"enabled"))){var r=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(ud.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=ud.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(R).forEach((function(t){var r=R[t],i=e.axes[r];if(i&&i.scaleType===B.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===ud.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}(kv),lN=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)}}(),hN=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},fN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:OT,curves:CS,zoom:PS}),r.model=new cN(r.services),r}return lN(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=ud.getProperty(n,"zoomBar",R.TOP,"enabled"),i=ud.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var o=this.services.cartesianScales.getMainXAxisPosition(),a=ud.getProperty(n,"axes",o,"scaleType"),s=r&&o===R.BOTTOM&&a===B.TIME,u=this.services.zoom.isZoomBarLocked(R.TOP),c=!!this.model.getOptions().title,l={id:"title",components:[new mP(this.model,this.services)],growth:F.STRETCH},h={id:"toolbar",components:[new tN(this.model,this.services)],growth:F.PREFERRED},f={id:"header",components:[new HI(this.model,this.services,hN([l],i?[h]:[]),{direction:G.ROW,alignItems:z.CENTER})],growth:F.PREFERRED},p={id:"legend",components:[new IS(this.model,this.services)],growth:F.PREFERRED};s&&!u&&t.push(new MP(this.model,this.services),new Hj(this.model,this.services)),t.push(new vP(this.model,this.services));var d={id:"graph-frame",components:t,growth:F.STRETCH,renderType:L.SVG},v=!1!==ud.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,g=G.COLUMN;if(v){var m=ud.getProperty(this.model.getOptions(),"legend","position");m===V.LEFT?(g=G.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=H.VERTICAL)):m===V.RIGHT?(g=G.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=H.VERTICAL)):m===V.BOTTOM&&(g=G.COLUMN_REVERSE)}var y={id:"spacer",components:[new VI(this.model,this.services)],growth:F.PREFERRED},_={id:"full-frame",components:[new HI(this.model,this.services,hN(v?[p]:[],v?[y]:[],[d]),{direction:g})],growth:F.STRETCH},b={id:"zoom-bar",components:[new iN(this.model,this.services)],growth:F.PREFERRED,renderType:L.SVG},O=[];if(c||i){O.push(f);var w={id:"spacer",components:[new VI(this.model,this.services,i?{size:15}:void 0)],growth:F.PREFERRED};O.push(w)}return s&&O.push(b),O.push(_),[new EP(this.model,this.services),new SC(this.model,this.services),new HI(this.model,this.services,O,{direction:G.COLUMN})]},e}(aN),pN=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)}}(),dN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(ud.clone(Yd.areaChart),n.options)),r.init(e,n),r}return pN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new Yj(this.model,this.services),new lL(this.model,this.services),new GP(this.model,this.services),new nL(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new NL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(fN),vN=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)}}(),gN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.stackedAreaChart,n.options)),r.init(e,n),r}return vN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new Qj(this.model,this.services),new zP(this.model,this.services),new lL(this.model,this.services,{stacked:!0}),new dL(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new NL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(fN),mN=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)}}(),yN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.simpleBarChart,n.options)),r.init(e,n),r}return mN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new ZP(this.model,this.services),new nN(this.model,this.services),new NL(this.model,this.services,{skeleton:q.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(fN),_N=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)}}(),bN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.groupedBarChart,n.options)),r.init(e,n),r}return _N(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new KP(this.model,this.services),new nN(this.model,this.services),new NL(this.model,this.services,{skeleton:q.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(fN),ON=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)}}(),wN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.stackedBarChart,n.options)),r.init(e,n),r}return ON(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new Qj(this.model,this.services),new QP(this.model,this.services),new NL(this.model,this.services,{skeleton:q.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(fN);function xN(t,e,n=0,r=t.length-1,i=hv){while(r>n){if(r-n>600){const o=r-n+1,a=e-n+1,s=Math.log(o),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(o-u)/o)*(a-o/2<0?-1:1),l=Math.max(n,Math.floor(e-a*u/o+c)),h=Math.min(r,Math.floor(e+(o-a)*u/o+c));xN(t,e,l,h,i)}const o=t[e];let a=n,s=r;EN(t,n,e),i(t[r],o)>0&&EN(t,n,r);while(a<s){EN(t,a,s),++a,--s;while(i(t[a],o)<0)++a;while(i(t[s],o)>0)--s}0===i(t[n],o)?EN(t,n,s):(++s,EN(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function EN(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function TN(t,e,n){if(t=Float64Array.from(vv(t,n)),r=t.length){if((e=+e)<=0||r<2)return rP(t);if(e>=1)return IE(t);var r,i=(r-1)*e,o=Math.floor(i),a=IE(xN(t,o).subarray(0,o+1)),s=rP(t.subarray(o+1));return a+(s-a)*(i-o)}}var SN,MN,CN,AN=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)}}(),PN=function(t){function e(e){return t.call(this,e)||this}return AN(e,t),e.prototype.getBoxQuartiles=function(t){return{q_25:TN(t,.25),q_50:TN(t,.5),q_75:TN(t,.75)}},e.prototype.getBoxplotData=function(){for(var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getGroupedData(),r=[],i=function(t,n){for(var i,a=o.services.cartesianScales.getRangeIdentifier(),s=n.map((function(t){return t[a]})).sort(hv),u=(i={},i[e]=t,i.counts=s,i.quartiles=o.getBoxQuartiles(s),i.outliers=null,i.whiskers=null,i),c=u.quartiles.q_25,l=u.quartiles.q_75,h=1.5*(l-c),f=c-h,p=l+h,d=[],v=[],g=0,m=s;g<m.length;g++){var y=m[g];y<f?d.push(y):y>p?d.push(y):v.push(y)}u.outliers=d;var _=rP(v),b=IE(v);u.whiskers={min:_||rP([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75]),max:b||IE([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75])},r.push(u)},o=this,a=0,s=n;a<s.length;a++){var u=s[a],c=u.name,l=u.data;i(c,l)}return r},e.prototype.setColorClassNames=function(){var t=1,e=ud.getProperty(this.getOptions(),"color","pairing"),n=ud.getProperty(e,"option"),r=lt.pairingOptions;n=n<=r[t+"-color"]?n:1;var i=this.allDataGroups.map((function(e,r){return t+"-"+n+"-1"}));this.colorClassNames=ev().range(i).domain(this.allDataGroups)},e}(cN),LN=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)}}(),DN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new PN(r.services),r.model.setOptions(ud.mergeDefaultChartOptions(Yd.boxplotChart,n.options)),r.init(e,n),r}return LN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new tL(this.model,this.services),new nN(this.model,this.services),new NL(this.model,this.services,{skeleton:q.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t,{legend:{enabled:!1}});return e},e}(fN),kN=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)}}(),RN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.bubbleChart,n.options)),r.init(e,n),r}return kN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new Yj(this.model,this.services),new iL(this.model,this.services),new NL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(fN),IN=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)}}(),jN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.bulletChart,n.options)),r.init(e,n),r}return IN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new aL(this.model,this.services),new NL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(fN),NN=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)}}(),BN=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},VN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return NN(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getBinnedStackedData(),r=BN([BN([gl(t,"bins.rangeLabel")||"Range"],n.map((function(t){return gl(t,"0."+e)})))],gl(n,0).map((function(t,r){return BN([gl(t,"data.x0")+" – "+gl(t,"data.x1")],n.map((function(t){return gl(t[r],"data."+gl(t[r],e))})))})));return r},e}(cN),UN=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)}}(),HN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new VN(r.services),r.model.setOptions(ud.mergeDefaultChartOptions(Yd.histogramChart,n.options)),r.init(e,n),r.update(),r}return UN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new Kj(this.model,this.services),new uL(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(fN),GN=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)}}(),FN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.lineChart,n.options)),r.init(e,n),r}return GN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new Yj(this.model,this.services),new lL(this.model,this.services),new nL(this.model,this.services,{handleThresholds:!0}),new VL(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(fN),zN=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)}}(),WN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.lollipopChart,n.options)),r.init(e,n),r}return zN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new Yj(this.model,this.services),new fL(this.model,this.services),new nL(this.model,this.services),new NL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(fN),qN=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)}}(),YN=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.scatterChart,n.options)),r.init(e,n),r}return qN(e,t),e.prototype.getComponents=function(){var t=[new sj(this.model,this.services),new Fj(this.model,this.services),new Yj(this.model,this.services),new nL(this.model,this.services),new NL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(fN),ZN=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)}}(),XN=function(t){function e(e){return t.call(this,e)||this}return ZN(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}(kv),KN=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)}}(),$N=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new XN(i.services),r?i:(i.model.setOptions(ud.mergeDefaultChartOptions(Yd.pieChart,n.options)),i.init(e,n),i)}return KN(e,t),e.prototype.getComponents=function(){var t=[new CL(this.model,this.services),new NL(this.model,this.services,{skeleton:q.PIE})],e=this.getChartComponents(t);return e},e}(aN),QN=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)}}(),JN=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.donutChart,n.options)),r.init(e,n),r}return QN(e,t),e.prototype.getComponents=function(){var t=[new RL(this.model,this.services),new NL(this.model,this.services,{skeleton:q.DONUT})],e=this.getChartComponents(t);return e},e}($N),tB=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)}}(),eB=function(t){function e(e){return t.call(this,e)||this}return tB(e,t),e.prototype.generateDataLabels=function(t){var e={};return e[t.label]=pt.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=ud.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=ud.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}(kv),nB=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)}}(),rB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e.renderType=L.SVG,e}return nB(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getComponentContainer(),i=this.getOptions(),o=this.model.getDisplayData(),s=this.model.getStatus(),u=zm.getSVGElementSize(r,{useAttrs:!0}).width,c=i.data.groupMapsTo,l=RE().domain([0,100]).range([0,u]);zm.appendOrSelect(r,"rect.container").attr("x",0).attr("y",0).attr("width",u).attr("height",ud.getProperty(i,"meter","height"));var h=o.value>=100,f=r.selectAll("rect.value").data([o]),p=null==s||n.model.isUserProvidedColorScaleValid()?"value":"value status--"+s;f.enter().append("rect").classed("value",!0).merge(f).attr("x",0).attr("y",0).attr("height",ud.getProperty(i,"meter","height")).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[c],originalClassName:p})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"meter-bar-update",animate:t})})).attr("width",(function(t){return l(h?100:t.value)})).style("fill",(function(t){return n.model.getFillColor(t[c])})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value}));var d=ud.getProperty(i,"meter","peak"),v=null!==d&&d<o.value?o.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",ud.getProperty(i,"meter","height")).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"peak-line-update",animate:t})})).attr("x1",(function(t){return l(t)})).attr("x2",(function(t){return l(t)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),m.exit().remove(),this.services.domUtils.setSVGMaxHeight()},e}(kS),iB=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)}}(),oB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new eB(r.services),r.model.setOptions(ud.merge(ud.clone(Yd.meterChart),n.options)),r.init(e,n),r}return iB(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new rB(this.model,this.services)],growth:F.STRETCH,renderType:L.SVG},e={id:"meter-title",components:[new _P(this.model,this.services)],growth:F.PREFERRED,renderType:L.SVG},n={id:"spacer",components:[new VI(this.model,this.services,{size:8})],growth:F.PREFERRED},r=[new HI(this.model,this.services,[e,n,t],{direction:G.COLUMN})],i=this.getChartComponents(r,L.HTML);return i},e}(aN),aB=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)}}(),sB=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(ud.mergeDefaultChartOptions(Yd.radarChart,n.options)),i.init(e,n),i)}return aB(e,t),e.prototype.getComponents=function(){var t=[new cI(this.model,this.services)],e=this.getChartComponents(t);return e},e}(aN),uB=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)}}(),cB=function(t){function e(e){return t.call(this,e)||this}return uB(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e}(kv),lB=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)}}(),hB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new cB(r.services),r.model.setOptions(ud.mergeDefaultChartOptions(Yd.gaugeChart,n.options)),r.init(e,n),r}return lB(e,t),e.prototype.getComponents=function(){var t=[new DL(this.model,this.services)],e=this.getChartComponents(t);return e},e}(aN),fB=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)}}(),pB=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},dB=(SN={},SN[J.LINE]=[lL,nL],SN[J.SCATTER]=[nL],SN[J.AREA]=[GP,lL,nL],SN[J.STACKED_AREA]=[zP,lL,dL,Qj],SN[J.SIMPLE_BAR]=[ZP],SN[J.GROUPED_BAR]=[KP,nN],SN[J.STACKED_BAR]=[QP,Qj],SN),vB=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=ud.mergeDefaultChartOptions(Yd.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:J.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return fB(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(dB).includes(e.type)?(r=ud.merge({},Yd[ud.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===J.STACKED_AREA&&(i=!0),dB[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=ud.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 ud.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===J.STACKED_BAR||t.type===J.STACKED_AREA})),n=pB([new sj(this.model,this.services),new Fj(this.model,this.services),new NL(this.model,this.services,{skeleton:q.GRID})],e?[]:[new Yj(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(fN),gB=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)}}(),mB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.treemapChart,n.options)),r.init(e,n),r}return gB(e,t),e.prototype.getComponents=function(){var t=[new KR(this.model,this.services)],e=this.getChartComponents(t);return e},e}(aN),yB=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)}}(),_B=function(){return _B=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},_B.apply(this,arguments)},bB=function(t){function e(e){var n=t.call(this,e)||this;return n.parentNode=!1,n.set({depth:2},{skipUpdate:!0}),n}return yB(e,t),e.prototype.setData=function(e){t.prototype.setData.call(this,e),this.setDataGroups(),1===e.length&&(this.parentNode=!0),this.setZoom()},e.prototype.setOptions=function(t){var e=this.getOptions(),n=ud.merge({},t,this.getZoomOptions(t));ud.updateLegendAdditionalItems(e,n);var r=this.getHierarchyLevel(),i=ud.getProperty(e,"circlePack","hierarchyLevel");this.set({options:ud.merge(e,n),depth:i&&i<4?i:r})},e.prototype.getZoomOptions=function(t){if(!this.getDisplayData())return{};var e=this.getDisplayData(),n=t||this.getOptions(),r=1===e.length&&ud.getProperty(e,0,"children")?ud.getProperty(e,0,"children"):e,i=this.getHierarchyLevel();return r.some((function(t){if(t.children&&t.children.some((function(t){return t.children})))return i=3,!1})),!0===ud.getProperty(n,"canvasZoom","enabled")&&i>2?{legend:{additionalItems:[{type:nt.ZOOM,name:"Click to zoom"}]}}:null},e.prototype.setZoom=function(t){this.setOptions(this.getZoomOptions(t))},e.prototype.updateHierarchyLevel=function(t){this.set({depth:t})},e.prototype.getHierarchyLevel=function(){return this.get("depth")},e.prototype.hasParentNode=function(){return this.parentNode},e.prototype.setDataGroups=function(){var t=this,e=this.getData(),n=this.getOptions(),r=n.data.groupMapsTo,i=e.map((function(e){var n=e[r];return t.setChildrenDataGroup(e,n)}));this.set({data:i},{skipUpdate:!0})},e.prototype.setChildrenDataGroup=function(t,e){var n=this;return t.children?_B(_B({},t),{dataGroupName:e,children:t.children.map((function(t,r){return n.setChildrenDataGroup(t,e)}))}):_B(_B({},t),{dataGroupName:e})},e}(kv),OB=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)}}(),wB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new bB(r.services),r.model.setOptions(ud.mergeDefaultChartOptions(Yd.circlePackChart,n.options)),r.init(e,n),r}return OB(e,t),e.prototype.getComponents=function(){var t=[new kI(this.model,this.services)],e=this.getChartComponents(t);return e},e}(aN),xB=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)}}(),EB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.wordCloudChart,n.options)),r.init(e,n),r}return xB(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new NL(this.model,this.services,{skeleton:q.PIE})],e=this.getChartComponents(t);return e},e}(aN),TB={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}}},SB=TB;function MB(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 CB=MB(SB,MN,CN,!1,null,null,null),AB=CB.exports,PB={name:"CcvAreaChart",extends:AB,mounted:function(){this.coreChart=new dN(this.$el,{data:this.data,options:this.options})}},LB=PB,DB=MB(LB,A,P,!1,null,null,null),kB=DB.exports,RB=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},IB=[],jB={name:"CcvStackedAreaChart",extends:AB,mounted:function(){this.coreChart=new gN(this.$el,{data:this.data,options:this.options})}},NB=jB,BB=MB(NB,RB,IB,!1,null,null,null),VB=BB.exports,UB=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},HB=[],GB={name:"CcvSimpleBarChart",extends:AB,mounted:function(){this.coreChart=new yN(this.$el,{data:this.data,options:this.options})}},FB=GB,zB=MB(FB,UB,HB,!1,null,null,null),WB=zB.exports,qB=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},YB=[],ZB={name:"CcvGroupedBarChart",extends:AB,mounted:function(){this.coreChart=new bN(this.$el,{data:this.data,options:this.options})}},XB=ZB,KB=MB(XB,qB,YB,!1,null,null,null),$B=KB.exports,QB=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},JB=[],tV={name:"CcvStackedBarChart",extends:AB,mounted:function(){this.coreChart=new wN(this.$el,{data:this.data,options:this.options})}},eV=tV,nV=MB(eV,QB,JB,!1,null,null,null),rV=nV.exports,iV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-boxplot-chart"})},oV=[],aV={name:"CcvBoxplotChart",extends:AB,mounted:function(){this.coreChart=new DN(this.$el,{data:this.data,options:this.options})}},sV=aV,uV=MB(sV,iV,oV,!1,null,null,null),cV=uV.exports,lV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},hV=[],fV={name:"CcvBubbleChart",extends:AB,mounted:function(){this.coreChart=new RN(this.$el,{data:this.data,options:this.options})}},pV=fV,dV=MB(pV,lV,hV,!1,null,null,null),vV=dV.exports,gV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bullet-chart"})},mV=[],yV={name:"CcvBulletChart",extends:AB,mounted:function(){this.coreChart=new jN(this.$el,{data:this.data,options:this.options})}},_V=yV,bV=MB(_V,gV,mV,!1,null,null,null),OV=bV.exports,wV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},xV=[],EV={name:"CcvDonutChart",extends:AB,mounted:function(){this.coreChart=new JN(this.$el,{data:this.data,options:this.options})}},TV=EV,SV=MB(TV,wV,xV,!1,null,null,null),MV=SV.exports,CV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},AV=[],PV={name:"CcvGaugeChart",extends:AB,mounted:function(){this.coreChart=new hB(this.$el,{data:this.data,options:this.options})}},LV=PV,DV=MB(LV,CV,AV,!1,null,null,null),kV=DV.exports,RV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-histogram-chart"})},IV=[],jV={name:"CcvHistogramChart",extends:AB,mounted:function(){this.coreChart=new HN(this.$el,{data:this.data,options:this.options})}},NV=jV,BV=MB(NV,RV,IV,!1,null,null,null),VV=BV.exports,UV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},HV=[],GV={name:"CcvLineChart",extends:AB,mounted:function(){this.coreChart=new FN(this.$el,{data:this.data,options:this.options})}},FV=GV,zV=MB(FV,UV,HV,!1,null,null,null),WV=zV.exports,qV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},YV=[],ZV={name:"CcvLollipopChart",extends:AB,mounted:function(){this.coreChart=new WN(this.$el,{data:this.data,options:this.options})}},XV=ZV,KV=MB(XV,qV,YV,!1,null,null,null),$V=KV.exports,QV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},JV=[],tU={name:"CcvPieChart",extends:AB,mounted:function(){this.coreChart=new $N(this.$el,{data:this.data,options:this.options})}},eU=tU,nU=MB(eU,QV,JV,!1,null,null,null),rU=nU.exports,iU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},oU=[],aU={name:"CcvScatterChart",extends:AB,mounted:function(){this.coreChart=new YN(this.$el,{data:this.data,options:this.options})}},sU=aU,uU=MB(sU,iU,oU,!1,null,null,null),cU=uU.exports,lU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},hU=[],fU={name:"CcvMeterChart",extends:AB,mounted:function(){this.coreChart=new oB(this.$el,{data:this.data,options:this.options})}},pU=fU,dU=MB(pU,lU,hU,!1,null,null,null),vU=dU.exports,gU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},mU=[],yU={name:"CcvRadarChart",extends:AB,mounted:function(){this.coreChart=new sB(this.$el,{data:this.data,options:this.options})}},_U=yU,bU=MB(_U,gU,mU,!1,null,null,null),OU=bU.exports,wU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},xU=[],EU={name:"CcvComboChart",extends:AB,mounted:function(){this.coreChart=new vB(this.$el,{data:this.data,options:this.options})}},TU=EU,SU=MB(TU,wU,xU,!1,null,null,null),MU=SU.exports,CU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},AU=[],PU={name:"CcvTreemapChart",extends:AB,mounted:function(){this.coreChart=new mB(this.$el,{data:this.data,options:this.options})}},LU=PU,DU=MB(LU,CU,AU,!1,null,null,null),kU=DU.exports,RU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-circle-pack-chart"})},IU=[],jU={name:"CcvCirclePackChart",extends:AB,mounted:function(){this.coreChart=new wB(this.$el,{data:this.data,options:this.options})}},NU=jU,BU=MB(NU,RU,IU,!1,null,null,null),VU=BU.exports,UU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-wordcloud-chart"})},HU=[],GU={name:"CcvWordCloudChart",extends:AB,mounted:function(){this.coreChart=new EB(this.$el,{data:this.data,options:this.options})}},FU=GU,zU=MB(FU,UU,HU,!1,null,null,null),WU=zU.exports,qU=[kB,VB,WB,$B,rV,cV,vV,OV,MV,kV,VV,WV,$V,rU,cU,vU,OU,MU,kU,VU,WU],YU={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=qU[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=qU[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 kB})),n.d(e,"CcvStackedAreaChart",(function(){return VB})),n.d(e,"CcvSimpleBarChart",(function(){return WB})),n.d(e,"CcvGroupedBarChart",(function(){return $B})),n.d(e,"CcvStackedBarChart",(function(){return rV})),n.d(e,"CcvBoxplotChart",(function(){return cV})),n.d(e,"CcvBubbleChart",(function(){return vV})),n.d(e,"CcvBulletChart",(function(){return OV})),n.d(e,"CcvDonutChart",(function(){return MV})),n.d(e,"CcvGaugeChart",(function(){return kV})),n.d(e,"CcvHistogramChart",(function(){return VV})),n.d(e,"CcvLineChart",(function(){return WV})),n.d(e,"CcvLollipopChart",(function(){return $V})),n.d(e,"CcvPieChart",(function(){return rU})),n.d(e,"CcvScatterChart",(function(){return cU})),n.d(e,"CcvMeterChart",(function(){return vU})),n.d(e,"CcvRadarChart",(function(){return OU})),n.d(e,"CcvComboChart",(function(){return MU})),n.d(e,"CcvTreemapChart",(function(){return kU})),n.d(e,"CcvCirclePackChart",(function(){return VU})),n.d(e,"CcvWordCloudChart",(function(){return WU}));e["default"]=YU},"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},"2a60":function(t,e,n){var r=n("8320").dispatch,i=Math.PI/180,o=64,a=2048;function s(t){return t.text}function u(){return"serif"}function c(){return"normal"}function l(t){return Math.sqrt(t.value)}function h(){return 30*(~~(6*Math.random())-3)}function f(){return 1}function p(t,e,n,r){if(!e.sprite){var s=t.context,u=t.ratio;s.clearRect(0,0,(o<<5)/u,a/u);var c=0,l=0,h=0,f=n.length;--r;while(++r<f){e=n[r],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var p=s.measureText(e.text+"m").width*u,d=e.size<<1;if(e.rotate){var v=Math.sin(e.rotate*i),g=Math.cos(e.rotate*i),m=p*g,y=p*v,_=d*g,b=d*v;p=Math.max(Math.abs(m+b),Math.abs(m-b))+31>>5<<5,d=~~Math.max(Math.abs(y+_),Math.abs(y-_))}else p=p+31>>5<<5;if(d>h&&(h=d),c+p>=o<<5&&(c=0,l+=h,h=0),l+d>=a)break;s.translate((c+(p>>1))/u,(l+(d>>1))/u),e.rotate&&s.rotate(e.rotate*i),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=p,e.height=d,e.xoff=c,e.yoff=l,e.x1=p>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,c+=p}var O=s.getImageData(0,0,(o<<5)/u,a/u).data,w=[];while(--r>=0)if(e=n[r],e.hasText){p=e.width;for(var x=p>>5,E=(d=e.y1-e.y0,0);E<d*x;E++)w[E]=0;if(c=e.xoff,null==c)return;l=e.yoff;for(var T=0,S=-1,M=0;M<d;M++){for(E=0;E<p;E++){var C=x*M+(E>>5),A=O[(l+M)*(o<<5)+(c+E)<<2]?1<<31-E%32:0;w[C]|=A,T|=A}T?S=M:(e.y0++,d--,M--,l++)}e.y1=e.y0+S,e.sprite=w.slice(0,(e.y1-e.y0)*x)}}}function d(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,c=t.y1-t.y0,l=(t.y+t.y0)*n+(a>>5),h=0;h<c;h++){r=0;for(var f=0;f<=o;f++)if((r<<u|(f<o?(r=i[h*o+f])>>>s:0))&e[l+f])return!0;l+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function g(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e;break}return[r,i]}}function _(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function b(){return document.createElement("canvas")}function O(t){return"function"===typeof t?t:function(){return t}}t.exports=function(){var t=[256,256],e=s,n=u,i=l,y=c,x=c,E=h,T=f,S=m,M=[],C=1/0,A=r("word","end"),P=null,L=Math.random,D={},k=b;function R(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(o<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function I(e,n,r){t[0],t[1];var i,o,a,s=n.x,u=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=S(t),h=L()<.5?1:-1,f=-h;while(i=l(f+=h)){if(o=~~i[0],a=~~i[1],Math.min(Math.abs(o),Math.abs(a))>=c)break;if(n.x=s+o,n.y=u+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!d(n,e,t[0]))&&(!r||g(n,r))){for(var p,v=n.sprite,m=n.width>>5,y=t[0]>>5,_=n.x-(m<<4),b=127&_,O=32-b,w=n.y1-n.y0,x=(n.y+n.y0)*y+(_>>5),E=0;E<w;E++){p=0;for(var T=0;T<=m;T++)e[x+T]|=p<<O|(T<m?(p=v[E*m+T])>>>b:0);x+=y}return delete n.sprite,!0}}return!1}return D.canvas=function(t){return arguments.length?(k=O(t),D):k},D.start=function(){var r=R(k()),o=_((t[0]>>5)*t[1]),a=null,s=M.length,u=-1,c=[],l=M.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=y.call(this,t,r),t.weight=x.call(this,t,r),t.rotate=E.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=T.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return P&&clearInterval(P),P=setInterval(h,0),h(),D;function h(){var e=Date.now();while(Date.now()-e<C&&++u<s&&P){var n=l[u];n.x=t[0]*(L()+.5)>>1,n.y=t[1]*(L()+.5)>>1,p(r,n,l,u),n.hasText&&I(o,n,a)&&(c.push(n),A.call("word",D,n),a?v(a,n):a=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}u>=s&&(D.stop(),A.call("end",D,c,a))}},D.stop=function(){return P&&(clearInterval(P),P=null),D},D.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,D):C},D.words=function(t){return arguments.length?(M=t,D):M},D.size=function(e){return arguments.length?(t=[+e[0],+e[1]],D):t},D.font=function(t){return arguments.length?(n=O(t),D):n},D.fontStyle=function(t){return arguments.length?(y=O(t),D):y},D.fontWeight=function(t){return arguments.length?(x=O(t),D):x},D.rotate=function(t){return arguments.length?(E=O(t),D):E},D.text=function(t){return arguments.length?(e=O(t),D):e},D.spiral=function(t){return arguments.length?(S=w[t]||t,D):S},D.fontSize=function(t){return arguments.length?(i=O(t),D):i},D.padding=function(t){return arguments.length?(T=O(t),D):T},D.random=function(t){return arguments.length?(L=t,D):L},D.on=function(){var t=A.on.apply(A,arguments);return t===A?D:t},D};var w={archimedean:m,rectangular:y}},"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)),!O(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 O(t){return t===p(t).document.documentElement}function w(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 T=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};T.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},T.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var S=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 T(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 S(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 C="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(t){if(!(this instanceof A))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);C.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){A.prototype[t]=function(){return(e=C.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();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,O,w){i(n,e,l);var x,E,T,S=function(t){if(t===p&&L)return L;if(!v&&t in A)return A[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",C=!1,A=t.prototype,P=A[g]||A["@@iterator"]||p&&A[p],L=!v&&P||S(p),D="Array"==e&&A.entries||P;if(D&&(x=o(D.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&&(C=!0,L=function(){return P.call(this)}),h&&!w||A[g]===L||u(A,g,L),f[e]=L,p)if(E={values:S(y),keys:O?L:S(m),entries:S(_)},w)for(T in E)!v&&!C&&T in A||c(A,T,E[T]);else r({target:e,proto:!0,forced:v||C},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)}},8320:function(t,e,n){"use strict";n.r(e);var r={value:function(){}};function i(){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 o(r)}function o(t){this._=t}function a(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 s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,c=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<c)if(n=(t=i[o]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}while(++o<c)if((n=(t=i[o]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(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 c=i;n.d(e,"dispatch",(function(){return c}))},"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)}},"9b04":function(t,e,n){"use strict";var r=function(){};t.exports=r},"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(_),O=r(d,v,3),w=a(b.length),x=0,E=g||s,T=e?E(p,w):n?E(p,0):void 0;w>x;x++)if((f||x in b)&&(m=b[x],y=O(m,x,_),t))if(e)T[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(T,m)}else if(l)return!1;return h?-1:c||l?l:T}};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"),O=n("65d0"),w=n("ee58"),x=n("2402"),E=n("185a"),T=n("abdf"),S=n("e129"),M=n("5b12"),C=n("b8ba"),A=n("4cdd"),P=n("332c"),L=n("d687"),D=n("1d8a"),k=n("7d53"),R=n("4e41"),I=n("6a89"),j=n("fa46"),N=n("cdcd"),B=n("d054").forEach,V=P("hidden"),U="Symbol",H="prototype",G=k("toPrimitive"),F=N.set,z=N.getterFor(U),W=Object[H],q=i.Symbol,Y=o("JSON","stringify"),Z=E.f,X=T.f,K=w.f,$=S.f,Q=A("symbols"),J=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),nt=A("wks"),rt=i.QObject,it=!rt||!rt[H]||!rt[H].findChild,ot=s&&l((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Z(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=Q[t]=_(q[H]);return F(n,{type:U,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},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,V)&&t[V][r]&&(t[V][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,V)||X(t,V,y(1,{})),t[V][r]=!0),ot(t,r,n)):X(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,V)&&this[V][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=Z(n,r);return!i||!h(Q,r)||h(n,V)&&n[V][r]||(i.enumerable=!0),i}},pt=function(t){var e=K(g(t)),n=[];return B(e,(function(t){h(Q,t)||h(L,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||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),n=function(t){this===W&&n.call(J,t),h(this,V)&&h(this[V],e)&&(this[V][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},C(q[H],"toString",(function(){return z(this).tag})),C(q,"withoutSetter",(function(t){return at(D(t),t)})),S.f=ht,T.f=ut,E.f=ft,O.f=w.f=pt,x.f=dt,R.f=function(t){return at(k(t),t)},s&&(X(q[H],"description",{configurable:!0,get:function(){return z(this).description}}),a||C(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),B(b(nt),(function(t){I(t)})),r({target:U,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=q(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))}}),Y){var vt=!u||l((function(){var t=q();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(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,Y.apply(null,i)}})}q[H][G]||M(q[H],G,q[H].valueOf),j(q,U),L[V]=!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))}},eeea:function(t,e,n){(function(e){"use strict";var n=_(),r=b(),i=O(),o=w(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:u,toPng:l,toJpeg:h,toBlob:f,toPixelData:c,impl:{fontFaces:i,images:o,util:n,inliner:r,options:{}}};function u(t,e){return e=e||{},p(e),Promise.resolve(t).then((function(t){return v(t,e.filter,!0)})).then(g).then(m).then(r).then((function(r){return y(r,e.width||n.width(t),e.height||n.height(t))}));function r(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t}}function c(t,e){return d(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))}function l(t,e){return d(t,e||{}).then((function(t){return t.toDataURL()}))}function h(t,e){return e=e||{},d(t,e).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))}function f(t,e){return d(t,e||{}).then(n.canvasToBlob)}function p(t){"undefined"===typeof t.imagePlaceholder?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder,"undefined"===typeof t.cacheBust?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=t.cacheBust}function d(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(e){var n=r(t);return n.getContext("2d").drawImage(e,0,0),n}));function r(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}}function v(t,e,r){return r||!e||e(t)?Promise.resolve(t).then(i).then((function(n){return o(t,n,e)})).then((function(e){return a(t,e)})):Promise.resolve();function i(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)}function o(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):o(e,n.asArray(i),r).then((function(){return e}));function o(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return v(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}function a(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(o).then(a).then((function(){return e})):e;function r(){function r(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var a=n.uid();e.className=e.className+" "+a;var s=document.createElement("style");s.appendChild(u(a,r,i)),e.appendChild(s)}function u(t,e,r){var i="."+t+":"+e,o=r.cssText?a(r):s(r);return document.createTextNode(i+"{"+o+"}");function a(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){r(t)}))}function o(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function a(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}}function g(t){return i.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function m(t){return o.inlineAll(t).then((function(){return t}))}function y(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}function _(){return{escape:f,parseExtension:e,mimeType:n,dataAsUrl:h,isDataUrl:r,canvasToBlob:o,resolveUrl:a,getAndEncode:l,uid:u(),delay:p,asArray:d,escapeXhtml:v,makeImage:c,width:g,height:m};function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var r=e(n).toLowerCase();return t()[r]||""}function r(t){return-1!==t.search(/^(data:)/)}function i(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);e(new Blob([i],{type:"image/png"}))}))}function o(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):i(t)}function a(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href}function u(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function c(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))}function l(t){var e=3e4;return s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=a,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var o=s.impl.options.imagePlaceholder.split(/,/);o&&o[1]&&(r=o[1])}function a(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):c("timeout of "+e+"ms occured while fetching resource: "+t)}function c(t){console.error(t),n("")}}))}function h(t,e){return"data:"+e+";base64,"+t}function f(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function p(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}}function d(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}function v(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")}function g(t){var e=y(t,"border-left-width"),n=y(t,"border-right-width");return t.scrollWidth+e+n}function m(t){var e=y(t,"border-top-width"),n=y(t,"border-bottom-width");return t.scrollHeight+e+n}function y(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}function b(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:o,shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){var r,i=[];while(null!==(r=t.exec(e)))i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(n){return t.replace(o(e),"$1"+n+"$3")}));function o(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}}function o(t,n,o){return a()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,o)}))})),r}));function a(){return!e(t)}}}function O(){return{resolveAll:t,impl:{readAll:e}};function t(){return e(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))}function e(){return Promise.resolve(n.asArray(document.styleSheets)).then(e).then(t).then((function(t){return t.map(i)}));function t(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))}function e(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(r){console.log("Error while reading CSS rules from "+t.href,r.toString())}})),e}function i(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}function w(){return{inlineAll:e,impl:{newImage:t}};function t(t){return{inline:e};function e(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}function e(i){return i instanceof Element?o(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function o(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}}}t.exports=s})()},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={};n.r(r),n.d(r,"Chart",(function(){return s})),n.d(r,"Modal",(function(){return u})),n.d(r,"Model",(function(){return c})),n.d(r,"Toolbar",(function(){return l})),n.d(r,"ZoomBar",(function(){return h})),n.d(r,"ZoomDomain",(function(){return f})),n.d(r,"CanvasZoom",(function(){return p})),n.d(r,"Axis",(function(){return d})),n.d(r,"Area",(function(){return v})),n.d(r,"WordCloud",(function(){return g})),n.d(r,"Pie",(function(){return m})),n.d(r,"Gauge",(function(){return y})),n.d(r,"Bar",(function(){return _})),n.d(r,"Boxplot",(function(){return b})),n.d(r,"Scatter",(function(){return O})),n.d(r,"Line",(function(){return w})),n.d(r,"Radar",(function(){return x})),n.d(r,"Treemap",(function(){return E})),n.d(r,"Tooltip",(function(){return T})),n.d(r,"Threshold",(function(){return S})),n.d(r,"Legend",(function(){return M})),n.d(r,"CirclePack",(function(){return C}));var i,o={};(n.r(o),n.d(o,"grid",(function(){return md})),n.d(o,"ruler",(function(){return yd})),n.d(o,"baseTooltip",(function(){return _d})),n.d(o,"timeScale",(function(){return Od})),n.d(o,"options",(function(){return Yd})),n.d(o,"area",(function(){return at})),n.d(o,"axis",(function(){return st})),n.d(o,"canvasZoomSettings",(function(){return ut})),n.d(o,"circlePack",(function(){return ct})),n.d(o,"color",(function(){return lt})),n.d(o,"boxplot",(function(){return ht})),n.d(o,"histogram",(function(){return ft})),n.d(o,"legend",(function(){return pt})),n.d(o,"lines",(function(){return dt})),n.d(o,"meter",(function(){return vt})),n.d(o,"pie",(function(){return gt})),n.d(o,"radar",(function(){return mt})),n.d(o,"spacers",(function(){return yt})),n.d(o,"tooltips",(function(){return _t})),n.d(o,"transitions",(function(){return bt})),n.d(o,"toolbar",(function(){return Ot})),n.d(o,"zoomBar",(function(){return wt})),n.d(o,"defaultLegendAdditionalItems",(function(){return xt})),"undefined"!==typeof window)&&(n("4141"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,O,w,x,E,T,S,M,C,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},P=[];(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"})(a||(a={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(s||(s={})),function(t){t["SHOW"]="show-modal",t["HIDE"]="hide-modal"}(u||(u={})),function(t){t["UPDATE"]="model-update"}(c||(c={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu"}(l||(l={})),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"}(h||(h={})),function(t){t["CHANGE"]="zoom-domain-change"}(f||(f={})),function(t){t["CANVAS_ZOOM_IN"]="canvas-zoom-in",t["CANVAS_ZOOM_OUT"]="canvas-zoom-out"}(p||(p={})),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"}(d||(d={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(v||(v={})),function(t){t["WORD_MOUSEOVER"]="wordcloud-word-mouseover",t["WORD_MOUSEMOVE"]="wordcloud-word-mousemove",t["WORD_CLICK"]="wordcloud-word-click",t["WORD_MOUSEOUT"]="wordcloud-word-mouseout"}(g||(g={})),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"}(m||(m={})),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"}(y||(y={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(_||(_={})),function(t){t["BOX_MOUSEOVER"]="box-mouseover",t["BOX_MOUSEMOVE"]="box-mousemove",t["BOX_CLICK"]="box-click",t["BOX_MOUSEOUT"]="box-mouseout",t["OUTLIER_MOUSEOVER"]="outlier-mouseover",t["OUTLIER_MOUSEMOVE"]="outlier-mousemove",t["OUTLIER_CLICK"]="outlier-click",t["OUTLIER_MOUSEOUT"]="outlier-mouseout"}(b||(b={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(O||(O={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(w||(w={})),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"}(x||(x={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(E||(E={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(T||(T={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(S||(S={})),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"}(M||(M={})),function(t){t["CIRCLE_MOUSEOVER"]="circle-leaf-mouseover",t["CIRCLE_CLICK"]="circle-leaf-click",t["CIRCLE_MOUSEOUT"]="circle-leaf-mouseout",t["CIRCLE_MOUSEMOVE"]="circle-leaf-mousemove"}(C||(C={}));var L,D,k,R,I,N,j,B,V,U,H,G,F,z,W,q,Y,Z,X,K,$,Q,J,tt,et,nt,rt,it=r;function ot(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function(t){t["HTML"]="html",t["SVG"]="svg"})(L||(L={})),function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"}(D||(D={})),function(t){t["BACKGROUND"]="background",t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(k||(k={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(R||(R={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(I||(I={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(N||(N={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(j||(j={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels",t["LABELS_RATIO"]="labels-ratio"}(B||(B={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(V||(V={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(U||(U={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(H||(H={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(G||(G={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(F||(F={})),function(t){t["CENTER"]="center"}(z||(z={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(W||(W={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(q||(q={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(Y||(Y={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(Z||(Z={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(X||(X={})),function(t){t["UP"]="up",t["DOWN"]="down"}(K||(K={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}($||($={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(Q||(Q={})),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"}(J||(J={})),function(t){t["EXPORT_CSV"]="Export as CSV",t["EXPORT_PNG"]="Export as PNG",t["EXPORT_JPG"]="Export as JPG",t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom",t["MAKE_FULLSCREEN"]="Make fullscreen",t["SHOW_AS_DATATABLE"]="Show as data-table"}(tt||(tt={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(et||(et={})),function(t){t["CHECKBOX"]="checkbox",t["RADIUS"]="radius",t["AREA"]="area",t["SIZE"]="size",t["LINE"]="line",t["QUARTILE"]="quartile",t["ZOOM"]="zoom"}(nt||(nt={}));var at={opacity:{unselected:.05,selected:.4}},st={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1},ut={duration:1e3,ease:ot,zoomLevel:3},ct={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},lt={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},ht={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},ft={defaultBins:10},pt={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"}},dt={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},vt={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15}},gt={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}},mt={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},yt={default:{size:24}},_t={horizontalOffset:10},bt={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}},Ot={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},wt={height:(rt={},rt[I.GRAPH_VIEW]=32,rt[I.SLIDER_VIEW]=10,rt),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},xt=[{type:nt.RADIUS,name:"Radius"},{type:nt.AREA,name:"Poor area"},{type:nt.AREA,name:"Satisfactory area"},{type:nt.AREA,name:"Great area"},{type:nt.QUARTILE,name:"Quartiles"}];function Et(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Tt=Et,St=n("7f0d"),Mt=function(){return St["a"].Date.now()},Ct=Mt,At=/\s/;function Pt(t){var e=t.length;while(e--&&At.test(t.charAt(e)));return e}var Lt=Pt,Dt=/^\s+/;function kt(t){return t?t.slice(0,Lt(t)+1).replace(Dt,""):t}var Rt=kt,It=St["a"].Symbol,Nt=It,jt=Object.prototype,Bt=jt.hasOwnProperty,Vt=jt.toString,Ut=Nt?Nt.toStringTag:void 0;function Ht(t){var e=Bt.call(t,Ut),n=t[Ut];try{t[Ut]=void 0;var r=!0}catch(o){}var i=Vt.call(t);return r&&(e?t[Ut]=n:delete t[Ut]),i}var Gt=Ht,Ft=Object.prototype,zt=Ft.toString;function Wt(t){return zt.call(t)}var qt=Wt,Yt="[object Null]",Zt="[object Undefined]",Xt=Nt?Nt.toStringTag:void 0;function Kt(t){return null==t?void 0===t?Zt:Yt:Xt&&Xt in Object(t)?Gt(t):qt(t)}var $t=Kt;function Qt(t){return null!=t&&"object"==typeof t}var Jt=Qt,te="[object Symbol]";function ee(t){return"symbol"==typeof t||Jt(t)&&$t(t)==te}var ne=ee,re=NaN,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,se=parseInt;function ue(t){if("number"==typeof t)return t;if(ne(t))return re;if(Tt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Tt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Rt(t);var n=oe.test(t);return n||ae.test(t)?se(t.slice(2),n?2:8):ie.test(t)?re:+t}var ce=ue,le="Expected a function",he=Math.max,fe=Math.min;function pe(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(le);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?fe(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=Ct();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(Ct())}function O(){var t=Ct(),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=ce(e)||0,Tt(n)&&(l=!!n.leading,h="maxWait"in n,o=h?he(ce(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=_,O.flush=b,O}var de=pe;function ve(){this.__data__=[],this.size=0}var ge=ve;function me(t,e){return t===e||t!==t&&e!==e}var ye=me;function _e(t,e){var n=t.length;while(n--)if(ye(t[n][0],e))return n;return-1}var be=_e,Oe=Array.prototype,we=Oe.splice;function xe(t){var e=this.__data__,n=be(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():we.call(e,n,1),--this.size,!0}var Ee=xe;function Te(t){var e=this.__data__,n=be(e,t);return n<0?void 0:e[n][1]}var Se=Te;function Me(t){return be(this.__data__,t)>-1}var Ce=Me;function Ae(t,e){var n=this.__data__,r=be(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Pe=Ae;function Le(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])}}Le.prototype.clear=ge,Le.prototype["delete"]=Ee,Le.prototype.get=Se,Le.prototype.has=Ce,Le.prototype.set=Pe;var De=Le;function ke(){this.__data__=new De,this.size=0}var Re=ke;function Ie(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Ne=Ie;function je(t){return this.__data__.get(t)}var Be=je;function Ve(t){return this.__data__.has(t)}var Ue=Ve,He="[object AsyncFunction]",Ge="[object Function]",Fe="[object GeneratorFunction]",ze="[object Proxy]";function We(t){if(!Tt(t))return!1;var e=$t(t);return e==Ge||e==Fe||e==He||e==ze}var qe=We,Ye=St["a"]["__core-js_shared__"],Ze=Ye,Xe=function(){var t=/[^.]+$/.exec(Ze&&Ze.keys&&Ze.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Ke(t){return!!Xe&&Xe in t}var $e=Ke,Qe=Function.prototype,Je=Qe.toString;function tn(t){if(null!=t){try{return Je.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var en=tn,nn=/[\\^$.*+?()[\]{}|]/g,rn=/^\[object .+?Constructor\]$/,on=Function.prototype,an=Object.prototype,sn=on.toString,un=an.hasOwnProperty,cn=RegExp("^"+sn.call(un).replace(nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ln(t){if(!Tt(t)||$e(t))return!1;var e=qe(t)?cn:rn;return e.test(en(t))}var hn=ln;function fn(t,e){return null==t?void 0:t[e]}var pn=fn;function dn(t,e){var n=pn(t,e);return hn(n)?n:void 0}var vn=dn,gn=vn(St["a"],"Map"),mn=gn,yn=vn(Object,"create"),_n=yn;function bn(){this.__data__=_n?_n(null):{},this.size=0}var On=bn;function wn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var xn=wn,En="__lodash_hash_undefined__",Tn=Object.prototype,Sn=Tn.hasOwnProperty;function Mn(t){var e=this.__data__;if(_n){var n=e[t];return n===En?void 0:n}return Sn.call(e,t)?e[t]:void 0}var Cn=Mn,An=Object.prototype,Pn=An.hasOwnProperty;function Ln(t){var e=this.__data__;return _n?void 0!==e[t]:Pn.call(e,t)}var Dn=Ln,kn="__lodash_hash_undefined__";function Rn(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=_n&&void 0===e?kn:e,this}var In=Rn;function Nn(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])}}Nn.prototype.clear=On,Nn.prototype["delete"]=xn,Nn.prototype.get=Cn,Nn.prototype.has=Dn,Nn.prototype.set=In;var jn=Nn;function Bn(){this.size=0,this.__data__={hash:new jn,map:new(mn||De),string:new jn}}var Vn=Bn;function Un(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var Hn=Un;function Gn(t,e){var n=t.__data__;return Hn(e)?n["string"==typeof e?"string":"hash"]:n.map}var Fn=Gn;function zn(t){var e=Fn(this,t)["delete"](t);return this.size-=e?1:0,e}var Wn=zn;function qn(t){return Fn(this,t).get(t)}var Yn=qn;function Zn(t){return Fn(this,t).has(t)}var Xn=Zn;function Kn(t,e){var n=Fn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var $n=Kn;function Qn(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])}}Qn.prototype.clear=Vn,Qn.prototype["delete"]=Wn,Qn.prototype.get=Yn,Qn.prototype.has=Xn,Qn.prototype.set=$n;var Jn=Qn,tr=200;function er(t,e){var n=this.__data__;if(n instanceof De){var r=n.__data__;if(!mn||r.length<tr-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(t,e),this.size=n.size,this}var nr=er;function rr(t){var e=this.__data__=new De(t);this.size=e.size}rr.prototype.clear=Re,rr.prototype["delete"]=Ne,rr.prototype.get=Be,rr.prototype.has=Ue,rr.prototype.set=nr;var ir=rr;function or(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 ar=or,sr=function(){try{var t=vn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),ur=sr;function cr(t,e,n){"__proto__"==e&&ur?ur(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var lr=cr,hr=Object.prototype,fr=hr.hasOwnProperty;function pr(t,e,n){var r=t[e];fr.call(t,e)&&ye(r,n)&&(void 0!==n||e in t)||lr(t,e,n)}var dr=pr;function vr(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?lr(n,s,u):dr(n,s,u)}return n}var gr=vr;function mr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var yr=mr,_r="[object Arguments]";function br(t){return Jt(t)&&$t(t)==_r}var Or=br,wr=Object.prototype,xr=wr.hasOwnProperty,Er=wr.propertyIsEnumerable,Tr=Or(function(){return arguments}())?Or:function(t){return Jt(t)&&xr.call(t,"callee")&&!Er.call(t,"callee")},Sr=Tr,Mr=Array.isArray,Cr=Mr,Ar=n("4cf0"),Pr=9007199254740991,Lr=/^(?:0|[1-9]\d*)$/;function Dr(t,e){var n=typeof t;return e=null==e?Pr:e,!!e&&("number"==n||"symbol"!=n&&Lr.test(t))&&t>-1&&t%1==0&&t<e}var kr=Dr,Rr=9007199254740991;function Ir(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Rr}var Nr=Ir,jr="[object Arguments]",Br="[object Array]",Vr="[object Boolean]",Ur="[object Date]",Hr="[object Error]",Gr="[object Function]",Fr="[object Map]",zr="[object Number]",Wr="[object Object]",qr="[object RegExp]",Yr="[object Set]",Zr="[object String]",Xr="[object WeakMap]",Kr="[object ArrayBuffer]",$r="[object DataView]",Qr="[object Float32Array]",Jr="[object Float64Array]",ti="[object Int8Array]",ei="[object Int16Array]",ni="[object Int32Array]",ri="[object Uint8Array]",ii="[object Uint8ClampedArray]",oi="[object Uint16Array]",ai="[object Uint32Array]",si={};function ui(t){return Jt(t)&&Nr(t.length)&&!!si[$t(t)]}si[Qr]=si[Jr]=si[ti]=si[ei]=si[ni]=si[ri]=si[ii]=si[oi]=si[ai]=!0,si[jr]=si[Br]=si[Kr]=si[Vr]=si[$r]=si[Ur]=si[Hr]=si[Gr]=si[Fr]=si[zr]=si[Wr]=si[qr]=si[Yr]=si[Zr]=si[Xr]=!1;var ci=ui;function li(t){return function(e){return t(e)}}var hi=li,fi=n("01ff"),pi=fi["a"]&&fi["a"].isTypedArray,di=pi?hi(pi):ci,vi=di,gi=Object.prototype,mi=gi.hasOwnProperty;function yi(t,e){var n=Cr(t),r=!n&&Sr(t),i=!n&&!r&&Object(Ar["a"])(t),o=!n&&!r&&!i&&vi(t),a=n||r||i||o,s=a?yr(t.length,String):[],u=s.length;for(var c in t)!e&&!mi.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||kr(c,u))||s.push(c);return s}var _i=yi,bi=Object.prototype;function Oi(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||bi;return t===n}var wi=Oi;function xi(t,e){return function(n){return t(e(n))}}var Ei=xi,Ti=Ei(Object.keys,Object),Si=Ti,Mi=Object.prototype,Ci=Mi.hasOwnProperty;function Ai(t){if(!wi(t))return Si(t);var e=[];for(var n in Object(t))Ci.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Pi=Ai;function Li(t){return null!=t&&Nr(t.length)&&!qe(t)}var Di=Li;function ki(t){return Di(t)?_i(t):Pi(t)}var Ri=ki;function Ii(t,e){return t&&gr(e,Ri(e),t)}var Ni=Ii;function ji(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Bi=ji,Vi=Object.prototype,Ui=Vi.hasOwnProperty;function Hi(t){if(!Tt(t))return Bi(t);var e=wi(t),n=[];for(var r in t)("constructor"!=r||!e&&Ui.call(t,r))&&n.push(r);return n}var Gi=Hi;function Fi(t){return Di(t)?_i(t,!0):Gi(t)}var zi=Fi;function Wi(t,e){return t&&gr(e,zi(e),t)}var qi=Wi,Yi=n("d6f0");function Zi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var Xi=Zi;function Ki(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 $i=Ki;function Qi(){return[]}var Ji=Qi,to=Object.prototype,eo=to.propertyIsEnumerable,no=Object.getOwnPropertySymbols,ro=no?function(t){return null==t?[]:(t=Object(t),$i(no(t),(function(e){return eo.call(t,e)})))}:Ji,io=ro;function oo(t,e){return gr(t,io(t),e)}var ao=oo;function so(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var uo=so,co=Ei(Object.getPrototypeOf,Object),lo=co,ho=Object.getOwnPropertySymbols,fo=ho?function(t){var e=[];while(t)uo(e,io(t)),t=lo(t);return e}:Ji,po=fo;function vo(t,e){return gr(t,po(t),e)}var go=vo;function mo(t,e,n){var r=e(t);return Cr(t)?r:uo(r,n(t))}var yo=mo;function _o(t){return yo(t,Ri,io)}var bo=_o;function Oo(t){return yo(t,zi,po)}var wo=Oo,xo=vn(St["a"],"DataView"),Eo=xo,To=vn(St["a"],"Promise"),So=To,Mo=vn(St["a"],"Set"),Co=Mo,Ao=vn(St["a"],"WeakMap"),Po=Ao,Lo="[object Map]",Do="[object Object]",ko="[object Promise]",Ro="[object Set]",Io="[object WeakMap]",No="[object DataView]",jo=en(Eo),Bo=en(mn),Vo=en(So),Uo=en(Co),Ho=en(Po),Go=$t;(Eo&&Go(new Eo(new ArrayBuffer(1)))!=No||mn&&Go(new mn)!=Lo||So&&Go(So.resolve())!=ko||Co&&Go(new Co)!=Ro||Po&&Go(new Po)!=Io)&&(Go=function(t){var e=$t(t),n=e==Do?t.constructor:void 0,r=n?en(n):"";if(r)switch(r){case jo:return No;case Bo:return Lo;case Vo:return ko;case Uo:return Ro;case Ho:return Io}return e});var Fo=Go,zo=Object.prototype,Wo=zo.hasOwnProperty;function qo(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Wo.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Yo=qo,Zo=St["a"].Uint8Array,Xo=Zo;function Ko(t){var e=new t.constructor(t.byteLength);return new Xo(e).set(new Xo(t)),e}var $o=Ko;function Qo(t,e){var n=e?$o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Jo=Qo,ta=/\w*$/;function ea(t){var e=new t.constructor(t.source,ta.exec(t));return e.lastIndex=t.lastIndex,e}var na=ea,ra=Nt?Nt.prototype:void 0,ia=ra?ra.valueOf:void 0;function oa(t){return ia?Object(ia.call(t)):{}}var aa=oa;function sa(t,e){var n=e?$o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var ua=sa,ca="[object Boolean]",la="[object Date]",ha="[object Map]",fa="[object Number]",pa="[object RegExp]",da="[object Set]",va="[object String]",ga="[object Symbol]",ma="[object ArrayBuffer]",ya="[object DataView]",_a="[object Float32Array]",ba="[object Float64Array]",Oa="[object Int8Array]",wa="[object Int16Array]",xa="[object Int32Array]",Ea="[object Uint8Array]",Ta="[object Uint8ClampedArray]",Sa="[object Uint16Array]",Ma="[object Uint32Array]";function Ca(t,e,n){var r=t.constructor;switch(e){case ma:return $o(t);case ca:case la:return new r(+t);case ya:return Jo(t,n);case _a:case ba:case Oa:case wa:case xa:case Ea:case Ta:case Sa:case Ma:return ua(t,n);case ha:return new r;case fa:case va:return new r(t);case pa:return na(t);case da:return new r;case ga:return aa(t)}}var Aa=Ca,Pa=Object.create,La=function(){function t(){}return function(e){if(!Tt(e))return{};if(Pa)return Pa(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Da=La;function ka(t){return"function"!=typeof t.constructor||wi(t)?{}:Da(lo(t))}var Ra=ka,Ia="[object Map]";function Na(t){return Jt(t)&&Fo(t)==Ia}var ja=Na,Ba=fi["a"]&&fi["a"].isMap,Va=Ba?hi(Ba):ja,Ua=Va,Ha="[object Set]";function Ga(t){return Jt(t)&&Fo(t)==Ha}var Fa=Ga,za=fi["a"]&&fi["a"].isSet,Wa=za?hi(za):Fa,qa=Wa,Ya=1,Za=2,Xa=4,Ka="[object Arguments]",$a="[object Array]",Qa="[object Boolean]",Ja="[object Date]",ts="[object Error]",es="[object Function]",ns="[object GeneratorFunction]",rs="[object Map]",is="[object Number]",os="[object Object]",as="[object RegExp]",ss="[object Set]",us="[object String]",cs="[object Symbol]",ls="[object WeakMap]",hs="[object ArrayBuffer]",fs="[object DataView]",ps="[object Float32Array]",ds="[object Float64Array]",vs="[object Int8Array]",gs="[object Int16Array]",ms="[object Int32Array]",ys="[object Uint8Array]",_s="[object Uint8ClampedArray]",bs="[object Uint16Array]",Os="[object Uint32Array]",ws={};function xs(t,e,n,r,i,o){var a,s=e&Ya,u=e&Za,c=e&Xa;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Tt(t))return t;var l=Cr(t);if(l){if(a=Yo(t),!s)return Xi(t,a)}else{var h=Fo(t),f=h==es||h==ns;if(Object(Ar["a"])(t))return Object(Yi["a"])(t,s);if(h==os||h==Ka||f&&!i){if(a=u||f?{}:Ra(t),!s)return u?go(t,qi(a,t)):ao(t,Ni(a,t))}else{if(!ws[h])return i?t:{};a=Aa(t,h,s)}}o||(o=new ir);var p=o.get(t);if(p)return p;o.set(t,a),qa(t)?t.forEach((function(r){a.add(xs(r,e,n,r,t,o))})):Ua(t)&&t.forEach((function(r,i){a.set(i,xs(r,e,n,i,t,o))}));var d=c?u?wo:bo:u?zi:Ri,v=l?void 0:d(t);return ar(v||t,(function(r,i){v&&(i=r,r=t[i]),dr(a,i,xs(r,e,n,i,t,o))})),a}ws[Ka]=ws[$a]=ws[hs]=ws[fs]=ws[Qa]=ws[Ja]=ws[ps]=ws[ds]=ws[vs]=ws[gs]=ws[ms]=ws[rs]=ws[is]=ws[os]=ws[as]=ws[ss]=ws[us]=ws[cs]=ws[ys]=ws[_s]=ws[bs]=ws[Os]=!0,ws[ts]=ws[es]=ws[ls]=!1;var Es=xs,Ts=1,Ss=4;function Ms(t){return Es(t,Ts|Ss)}var Cs=Ms;function As(t,e,n){(void 0===n||ye(t[e],n))&&(void 0!==n||e in t)||lr(t,e,n)}var Ps=As;function Ls(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 Ds=Ls,ks=Ds(),Rs=ks;function Is(t){return Jt(t)&&Di(t)}var Ns=Is,js="[object Object]",Bs=Function.prototype,Vs=Object.prototype,Us=Bs.toString,Hs=Vs.hasOwnProperty,Gs=Us.call(Object);function Fs(t){if(!Jt(t)||$t(t)!=js)return!1;var e=lo(t);if(null===e)return!0;var n=Hs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Us.call(n)==Gs}var zs=Fs;function Ws(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var qs=Ws;function Ys(t){return gr(t,zi(t))}var Zs=Ys;function Xs(t,e,n,r,i,o,a){var s=qs(t,n),u=qs(e,n),c=a.get(u);if(c)Ps(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Cr(u),p=!f&&Object(Ar["a"])(u),d=!f&&!p&&vi(u);l=u,f||p||d?Cr(s)?l=s:Ns(s)?l=Xi(s):p?(h=!1,l=Object(Yi["a"])(u,!0)):d?(h=!1,l=ua(u,!0)):l=[]:zs(u)||Sr(u)?(l=s,Sr(s)?l=Zs(s):Tt(s)&&!qe(s)||(l=Ra(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Ps(t,n,l)}}var Ks=Xs;function $s(t,e,n,r,i){t!==e&&Rs(e,(function(o,a){if(i||(i=new ir),Tt(o))Ks(t,e,a,n,$s,r,i);else{var s=r?r(qs(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Ps(t,a,s)}}),zi)}var Qs=$s;function Js(t){return t}var tu=Js;function eu(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 nu=eu,ru=Math.max;function iu(t,e,n){return e=ru(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=ru(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),nu(t,this,s)}}var ou=iu;function au(t){return function(){return t}}var su=au,uu=ur?function(t,e){return ur(t,"toString",{configurable:!0,enumerable:!1,value:su(e),writable:!0})}:tu,cu=uu,lu=800,hu=16,fu=Date.now;function pu(t){var e=0,n=0;return function(){var r=fu(),i=hu-(r-n);if(n=r,i>0){if(++e>=lu)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var du=pu,vu=du(cu),gu=vu;function mu(t,e){return gu(ou(t,e,tu),t+"")}var yu=mu;function _u(t,e,n){if(!Tt(n))return!1;var r=typeof e;return!!("number"==r?Di(n)&&kr(e,n.length):"string"==r&&e in n)&&ye(n[e],t)}var bu=_u;function Ou(t){return yu((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&&bu(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 wu=Ou,xu=wu((function(t,e,n){Qs(t,e,n)})),Eu=xu,Tu=Nt?Nt.isConcatSpreadable:void 0;function Su(t){return Cr(t)||Sr(t)||!!(Tu&&t&&t[Tu])}var Mu=Su;function Cu(t,e,n,r,i){var o=-1,a=t.length;n||(n=Mu),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Cu(s,e-1,n,r,i):uo(i,s):r||(i[i.length]=s)}return i}var Au=Cu,Pu="__lodash_hash_undefined__";function Lu(t){return this.__data__.set(t,Pu),this}var Du=Lu;function ku(t){return this.__data__.has(t)}var Ru=ku;function Iu(t){var e=-1,n=null==t?0:t.length;this.__data__=new Jn;while(++e<n)this.add(t[e])}Iu.prototype.add=Iu.prototype.push=Du,Iu.prototype.has=Ru;var Nu=Iu;function ju(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 Bu=ju;function Vu(t,e){return t.has(e)}var Uu=Vu,Hu=1,Gu=2;function Fu(t,e,n,r,i,o){var a=n&Hu,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var h=-1,f=!0,p=n&Gu?new Nu:void 0;o.set(t,e),o.set(e,t);while(++h<s){var d=t[h],v=e[h];if(r)var g=a?r(v,d,h,e,t,o):r(d,v,h,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Bu(e,(function(t,e){if(!Uu(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){f=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}var zu=Fu;function Wu(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var qu=Wu;function Yu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Zu=Yu,Xu=1,Ku=2,$u="[object Boolean]",Qu="[object Date]",Ju="[object Error]",tc="[object Map]",ec="[object Number]",nc="[object RegExp]",rc="[object Set]",ic="[object String]",oc="[object Symbol]",ac="[object ArrayBuffer]",sc="[object DataView]",uc=Nt?Nt.prototype:void 0,cc=uc?uc.valueOf:void 0;function lc(t,e,n,r,i,o,a){switch(n){case sc:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ac:return!(t.byteLength!=e.byteLength||!o(new Xo(t),new Xo(e)));case $u:case Qu:case ec:return ye(+t,+e);case Ju:return t.name==e.name&&t.message==e.message;case nc:case ic:return t==e+"";case tc:var s=qu;case rc:var u=r&Xu;if(s||(s=Zu),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=Ku,a.set(t,e);var l=zu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case oc:if(cc)return cc.call(t)==cc.call(e)}return!1}var hc=lc,fc=1,pc=Object.prototype,dc=pc.hasOwnProperty;function vc(t,e,n,r,i,o){var a=n&fc,s=bo(t),u=s.length,c=bo(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:dc.call(e,f)))return!1}var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var v=!0;o.set(t,e),o.set(e,t);var g=a;while(++h<u){f=s[h];var m=t[f],y=e[f];if(r)var _=a?r(y,m,f,e,t,o):r(m,y,f,t,e,o);if(!(void 0===_?m===y||i(m,y,n,r,o):_)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var b=t.constructor,O=e.constructor;b!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof O&&O instanceof O)&&(v=!1)}return o["delete"](t),o["delete"](e),v}var gc=vc,mc=1,yc="[object Arguments]",_c="[object Array]",bc="[object Object]",Oc=Object.prototype,wc=Oc.hasOwnProperty;function xc(t,e,n,r,i,o){var a=Cr(t),s=Cr(e),u=a?_c:Fo(t),c=s?_c:Fo(e);u=u==yc?bc:u,c=c==yc?bc:c;var l=u==bc,h=c==bc,f=u==c;if(f&&Object(Ar["a"])(t)){if(!Object(Ar["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new ir),a||vi(t)?zu(t,e,n,r,i,o):hc(t,e,u,n,r,i,o);if(!(n&mc)){var p=l&&wc.call(t,"__wrapped__"),d=h&&wc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new ir),i(v,g,n,r,o)}}return!!f&&(o||(o=new ir),gc(t,e,n,r,i,o))}var Ec=xc;function Tc(t,e,n,r,i){return t===e||(null==t||null==e||!Jt(t)&&!Jt(e)?t!==t&&e!==e:Ec(t,e,n,r,Tc,i))}var Sc=Tc,Mc=1,Cc=2;function Ac(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 ir;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?Sc(l,c,Mc|Cc,r,h):f))return!1}}return!0}var Pc=Ac;function Lc(t){return t===t&&!Tt(t)}var Dc=Lc;function kc(t){var e=Ri(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,Dc(i)]}return e}var Rc=kc;function Ic(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Nc=Ic;function jc(t){var e=Rc(t);return 1==e.length&&e[0][2]?Nc(e[0][0],e[0][1]):function(n){return n===t||Pc(n,t,e)}}var Bc=jc,Vc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uc=/^\w*$/;function Hc(t,e){if(Cr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ne(t))||(Uc.test(t)||!Vc.test(t)||null!=e&&t in Object(e))}var Gc=Hc,Fc="Expected a function";function zc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Fc);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(zc.Cache||Jn),n}zc.Cache=Jn;var Wc=zc,qc=500;function Yc(t){var e=Wc(t,(function(t){return n.size===qc&&n.clear(),t})),n=e.cache;return e}var Zc=Yc,Xc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kc=/\\(\\)?/g,$c=Zc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Xc,(function(t,n,r,i){e.push(r?i.replace(Kc,"$1"):n||t)})),e})),Qc=$c;function Jc(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 tl=Jc,el=1/0,nl=Nt?Nt.prototype:void 0,rl=nl?nl.toString:void 0;function il(t){if("string"==typeof t)return t;if(Cr(t))return tl(t,il)+"";if(ne(t))return rl?rl.call(t):"";var e=t+"";return"0"==e&&1/t==-el?"-0":e}var ol=il;function al(t){return null==t?"":ol(t)}var sl=al;function ul(t,e){return Cr(t)?t:Gc(t,e)?[t]:Qc(sl(t))}var cl=ul,ll=1/0;function hl(t){if("string"==typeof t||ne(t))return t;var e=t+"";return"0"==e&&1/t==-ll?"-0":e}var fl=hl;function pl(t,e){e=cl(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[fl(e[n++])];return n&&n==r?t:void 0}var dl=pl;function vl(t,e,n){var r=null==t?void 0:dl(t,e);return void 0===r?n:r}var gl=vl;function ml(t,e){return null!=t&&e in Object(t)}var yl=ml;function _l(t,e,n){e=cl(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=fl(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&&Nr(i)&&kr(a,i)&&(Cr(t)||Sr(t)))}var bl=_l;function Ol(t,e){return null!=t&&bl(t,e,yl)}var wl=Ol,xl=1,El=2;function Tl(t,e){return Gc(t)&&Dc(e)?Nc(fl(t),e):function(n){var r=gl(n,t);return void 0===r&&r===e?wl(n,t):Sc(e,r,xl|El)}}var Sl=Tl;function Ml(t){return function(e){return null==e?void 0:e[t]}}var Cl=Ml;function Al(t){return function(e){return dl(e,t)}}var Pl=Al;function Ll(t){return Gc(t)?Cl(fl(t)):Pl(t)}var Dl=Ll;function kl(t){return"function"==typeof t?t:null==t?tu:"object"==typeof t?Cr(t)?Sl(t[0],t[1]):Bc(t):Dl(t)}var Rl=kl;function Il(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 Nl=Il;function jl(t){return t!==t}var Bl=jl;function Vl(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Ul=Vl;function Hl(t,e,n){return e===e?Ul(t,e,n):Nl(t,Bl,n)}var Gl=Hl;function Fl(t,e){var n=null==t?0:t.length;return!!n&&Gl(t,e,0)>-1}var zl=Fl;function Wl(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 ql=Wl;function Yl(){}var Zl=Yl,Xl=1/0,Kl=Co&&1/Zu(new Co([,-0]))[1]==Xl?function(t){return new Co(t)}:Zl,$l=Kl,Ql=200;function Jl(t,e,n){var r=-1,i=zl,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=ql;else if(o>=Ql){var c=e?null:$l(t);if(c)return Zu(c);a=!1,i=Uu,u=new Nu}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 th=Jl;function eh(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var nh=eh,rh=yu((function(t){var e=nh(t);return Ns(e)&&(e=void 0),th(Au(t,1,Ns,!0),Rl(e,2))})),ih=rh;function oh(t){return t&&t.length?th(t):[]}var ah=oh;function sh(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var uh=sh;function ch(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=ce(n),n=n===n?n:0),void 0!==e&&(e=ce(e),e=e===e?e:0),uh(ce(t),e,n)}var lh=ch;function hh(t){var e=null==t?0:t.length;return e?Au(t,1):[]}var fh=hh;function ph(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var a=t[i];e(r,a,n(a),t)}return r}var dh=ph;function vh(t,e){return t&&Rs(t,e,Ri)}var gh=vh;function mh(t,e){return function(n,r){if(null==n)return n;if(!Di(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 yh=mh,_h=yh(gh),bh=_h;function Oh(t,e,n,r){return bh(t,(function(t,i,o){e(r,t,n(t),o)})),r}var wh=Oh;function xh(t,e){return function(n,r){var i=Cr(n)?dh:wh,o=e?e():{};return i(n,t,Rl(r,2),o)}}var Eh=xh,Th=Object.prototype,Sh=Th.hasOwnProperty,Mh=Eh((function(t,e,n){Sh.call(t,n)?t[n].push(e):lr(t,n,[e])})),Ch=Mh;function Ah(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 Ph=Ah;function Lh(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ph(t,e,n)}var Dh=Lh,kh="\\ud800-\\udfff",Rh="\\u0300-\\u036f",Ih="\\ufe20-\\ufe2f",Nh="\\u20d0-\\u20ff",jh=Rh+Ih+Nh,Bh="\\ufe0e\\ufe0f",Vh="\\u200d",Uh=RegExp("["+Vh+kh+jh+Bh+"]");function Hh(t){return Uh.test(t)}var Gh=Hh;function Fh(t){return t.split("")}var zh=Fh,Wh="\\ud800-\\udfff",qh="\\u0300-\\u036f",Yh="\\ufe20-\\ufe2f",Zh="\\u20d0-\\u20ff",Xh=qh+Yh+Zh,Kh="\\ufe0e\\ufe0f",$h="["+Wh+"]",Qh="["+Xh+"]",Jh="\\ud83c[\\udffb-\\udfff]",tf="(?:"+Qh+"|"+Jh+")",ef="[^"+Wh+"]",nf="(?:\\ud83c[\\udde6-\\uddff]){2}",rf="[\\ud800-\\udbff][\\udc00-\\udfff]",of="\\u200d",af=tf+"?",sf="["+Kh+"]?",uf="(?:"+of+"(?:"+[ef,nf,rf].join("|")+")"+sf+af+")*",cf=sf+af+uf,lf="(?:"+[ef+Qh+"?",Qh,nf,rf,$h].join("|")+")",hf=RegExp(Jh+"(?="+Jh+")|"+lf+cf,"g");function ff(t){return t.match(hf)||[]}var pf=ff;function df(t){return Gh(t)?pf(t):zh(t)}var vf=df;function gf(t){return function(e){e=sl(e);var n=Gh(e)?vf(e):void 0,r=n?n[0]:e.charAt(0),i=n?Dh(n,1).join(""):e.slice(1);return r[t]()+i}}var mf=gf,yf=mf("toUpperCase"),_f=yf;function bf(t){return _f(sl(t).toLowerCase())}var Of=bf;function wf(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 xf=wf;function Ef(t){return function(e){return null==t?void 0:t[e]}}var Tf=Ef,Sf={"À":"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"},Mf=Tf(Sf),Cf=Mf,Af=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pf="\\u0300-\\u036f",Lf="\\ufe20-\\ufe2f",Df="\\u20d0-\\u20ff",kf=Pf+Lf+Df,Rf="["+kf+"]",If=RegExp(Rf,"g");function Nf(t){return t=sl(t),t&&t.replace(Af,Cf).replace(If,"")}var jf=Nf,Bf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Vf(t){return t.match(Bf)||[]}var Uf=Vf,Hf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Gf(t){return Hf.test(t)}var Ff=Gf,zf="\\ud800-\\udfff",Wf="\\u0300-\\u036f",qf="\\ufe20-\\ufe2f",Yf="\\u20d0-\\u20ff",Zf=Wf+qf+Yf,Xf="\\u2700-\\u27bf",Kf="a-z\\xdf-\\xf6\\xf8-\\xff",$f="\\xac\\xb1\\xd7\\xf7",Qf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jf="\\u2000-\\u206f",tp=" \\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",ep="A-Z\\xc0-\\xd6\\xd8-\\xde",np="\\ufe0e\\ufe0f",rp=$f+Qf+Jf+tp,ip="['’]",op="["+rp+"]",ap="["+Zf+"]",sp="\\d+",up="["+Xf+"]",cp="["+Kf+"]",lp="[^"+zf+rp+sp+Xf+Kf+ep+"]",hp="\\ud83c[\\udffb-\\udfff]",fp="(?:"+ap+"|"+hp+")",pp="[^"+zf+"]",dp="(?:\\ud83c[\\udde6-\\uddff]){2}",vp="[\\ud800-\\udbff][\\udc00-\\udfff]",gp="["+ep+"]",mp="\\u200d",yp="(?:"+cp+"|"+lp+")",_p="(?:"+gp+"|"+lp+")",bp="(?:"+ip+"(?:d|ll|m|re|s|t|ve))?",Op="(?:"+ip+"(?:D|LL|M|RE|S|T|VE))?",wp=fp+"?",xp="["+np+"]?",Ep="(?:"+mp+"(?:"+[pp,dp,vp].join("|")+")"+xp+wp+")*",Tp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mp=xp+wp+Ep,Cp="(?:"+[up,dp,vp].join("|")+")"+Mp,Ap=RegExp([gp+"?"+cp+"+"+bp+"(?="+[op,gp,"$"].join("|")+")",_p+"+"+Op+"(?="+[op,gp+yp,"$"].join("|")+")",gp+"?"+yp+"+"+bp,gp+"+"+Op,Sp,Tp,sp,Cp].join("|"),"g");function Pp(t){return t.match(Ap)||[]}var Lp=Pp;function Dp(t,e,n){return t=sl(t),e=n?void 0:e,void 0===e?Ff(t)?Lp(t):Uf(t):t.match(e)||[]}var kp=Dp,Rp="['’]",Ip=RegExp(Rp,"g");function Np(t){return function(e){return xf(kp(jf(e).replace(Ip,"")),t,"")}}var jp=Np,Bp=jp((function(t,e,n){return e=e.toLowerCase(),t+(n?Of(e):e)})),Vp=Bp,Up="[object Map]",Hp="[object Set]",Gp=Object.prototype,Fp=Gp.hasOwnProperty;function zp(t){if(null==t)return!0;if(Di(t)&&(Cr(t)||"string"==typeof t||"function"==typeof t.splice||Object(Ar["a"])(t)||vi(t)||Sr(t)))return!t.length;var e=Fo(t);if(e==Up||e==Hp)return!t.size;if(wi(t))return!Pi(t).length;for(var n in t)if(Fp.call(t,n))return!1;return!0}var Wp=zp;function qp(t,e){return Sc(t,e)}var Yp=qp;function Zp(t,e){var n=-1,r=Di(t)?Array(t.length):[];return bh(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var Xp=Zp;function Kp(t,e){var n=Cr(t)?tl:Xp;return n(t,Rl(e,3))}var $p=Kp,Qp=1/0;function Jp(t,e){return Au($p(t,e),Qp)}var td=Jp,ed=jp((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),nd=ed;function rd(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 id=rd;function od(t,e){var n;return bh(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var ad=od;function sd(t,e,n){var r=Cr(t)?Bu:ad;return n&&bu(t,e,n)&&(e=void 0),r(t,Rl(e,3))}var ud,cd=sd,ld=function(t){let e;while(e=t.sourceEvent)t=e;return t},hd=function(t,e){if(t=ld(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=hd(o[0],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/docs-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===B.TIME?o["mapsTo"]="date":s===B.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return l(e,n),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,n){void 0===n&&(n="value");var r=t/e.reduce((function(t,e){return t+e[n]}),0)*100;return r%1!==0?parseFloat(r.toFixed(1)):r}function c(t,e,n){return n>t.length?t:e===N.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===N.FRONT_LINE?"..."+t.substr(-n):e===N.END_LINE?t.substr(0,n)+"...":void 0}function l(e,n){var r=t.getProperty(e,"legend","additionalItems"),i=t.getProperty(n,"legend","additionalItems");if(r&&i){var o=i.map((function(t){return t.type})),a=r.map((function(t){return t.type})),s=xt.filter((function(t){return a.includes(t.type)&&!o.includes(t.type)}));e.legend.additionalItems=s,n.legend.additionalItems=t.unionBy(s,i,"name")}}function h(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 f(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 p(t){return t.each((function(){this.parentNode.appendChild(this)}))}function d(t,e,n){return n===j.VERTICAL?[t,e]:[e,t]}t.debounce=de,t.clone=Cs,t.merge=Eu,t.unionBy=ih,t.removeArrayDuplicates=ah,t.clamp=lh,t.flatten=fh,t.groupBy=Ch,t.camelCase=Vp,t.isEmpty=Wp,t.isEqual=Yp,t.flatMapDeep=td,t.kebabCase=nd,t.fromPairs=id,t.some=cd,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.updateLegendAdditionalItems=l,t.arrayDifferences=h,t.getDuplicateValues=f,t.moveToFront=p,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===j.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=d,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(ud||(ud={}));var fd=n("39ba"),pd=n.n(fd),dd=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},vd={type:N.END_LINE,threshold:16,numCharacter:14},gd={enabled:!0,position:V.BOTTOM,clickable:!0,truncation:vd,alignment:U.LEFT,order:null,additionalItems:[]},md={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},yd={enabled:!0},_d={enabled:!0,showTotal:!0,truncation:vd,groupLabel:"Group"},bd={top:{visible:!0,includeZero:!0,truncation:vd},bottom:{visible:!0,includeZero:!0,truncation:vd},left:{visible:!0,includeZero:!0,truncation:vd},right:{visible:!0,includeZero:!0,truncation:vd}},Od={addSpaceOnEdges:1,showDayName:!1,localeObject:pd.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"}}},wd="undefined"!==typeof document&&(document["fullscreenEnabled"]||document["webkitFullscreenEnabled"]||document["mozFullScreenEnabled"]||document["msFullscreenEnabled"]),xd={width:null,height:null,resizable:!0,tooltip:_d,legend:gd,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:dd([{type:tt.SHOW_AS_DATATABLE}],wd?[{type:tt.MAKE_FULLSCREEN}]:[],[{type:tt.EXPORT_CSV},{type:tt.EXPORT_PNG},{type:tt.EXPORT_JPG}])}},Ed=ud.merge({},xd,{axes:bd,timeScale:Od,grid:md,ruler:yd,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:I.GRAPH_VIEW}}}),Td=ud.merge({},Ed,{bars:{maxWidth:16},timeScale:ud.merge(Od,{addSpaceOnEdges:1})}),Sd=ud.merge({},Td,{}),Md=ud.merge({},Td,{}),Cd=ud.merge({},Td,{bars:ud.merge({},Td.bars,{dividerSize:1.5})}),Ad=ud.merge({},Td,{}),Pd=ud.merge({},Ed,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),Ld=Pd,Dd=ud.merge({},Pd,{points:{radius:3,filled:!1,enabled:!0}}),kd=ud.merge({},Dd,{timeScale:ud.merge(Od,{addSpaceOnEdges:0})}),Rd=kd,Id=ud.merge({},Ed,{bubble:{radiusMapsTo:"radius",radiusLabel:"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},legend:{additionalItems:[{type:nt.RADIUS,name:"Radius"}]}}),Nd=ud.merge({},Ed,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:nt.AREA,name:"Poor area"},{type:nt.AREA,name:"Satisfactory area"},{type:nt.AREA,name:"Great area"},{type:nt.QUARTILE,name:"Quartiles"}]}}),jd=ud.merge({},Td,{bars:{dividerSize:1.5},timeScale:ud.merge(Od,{addSpaceOnEdges:0})}),Bd=ud.merge({},xd,{tooltip:ud.merge({},_d,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:function(t,e){var n=Math.min(t.width,t.height);return[20*n/400,75*n/400]},wordMapsTo:"word"}}),Vd=ud.merge({},xd,{pie:{labels:{formatter:null,enabled:!0},alignment:U.LEFT,sortFunction:null,valueMapsTo:"value"}}),Ud=ud.merge({},xd,{legend:{enabled:!1},gauge:{type:X.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},showPercentageSymbol:!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:U.LEFT}}),Hd=ud.merge({},Vd,{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:U.LEFT}}),Gd=ud.merge({},xd,{legend:{enabled:!1},meter:{height:8,statusBar:{percentageIndicator:{enabled:!0}}}}),Fd=ud.merge({},xd,{radar:{axes:{angle:"key",value:"value"},alignment:U.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),zd=ud.merge({},Td,{comboChartTypes:[]}),Wd=ud.merge({},xd,{data:ud.merge(xd.data,{groupMapsTo:"name"})}),qd=ud.merge({},xd,ct,{data:ud.merge(xd.data,{groupMapsTo:"name"})}),Yd={chart:xd,axisChart:Ed,simpleBarChart:Sd,groupedBarChart:Md,stackedBarChart:Cd,boxplotChart:Ad,bubbleChart:Id,bulletChart:Nd,histogramChart:jd,lineChart:Dd,areaChart:kd,stackedAreaChart:Rd,scatterChart:Pd,lollipopChart:Ld,pieChart:Vd,donutChart:Hd,meterChart:Gd,radarChart:Fd,gaugeChart:Ud,comboChart:zd,treemapChart:Wd,circlePackChart:qd,wordCloudChart:Bd};class Zd extends Map{constructor(t,e=Qd){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(Xd(this,t))}has(t){return super.has(Xd(this,t))}set(t,e){return super.set(Kd(this,t),e)}delete(t){return super.delete($d(this,t))}}Set;function Xd({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Kd({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function $d({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function Qd(t){return null!==t&&"object"===typeof t?t.valueOf():t}function Jd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const tv=Symbol("implicit");function ev(){var t=new Zd,e=[],n=[],r=tv;function i(i){let o=t.get(i);if(void 0===o){if(r!==tv)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Zd;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ev(e,n).unknown(r)},Jd.apply(i,arguments),i}Array.prototype.slice;var nv=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)},rv=function(t){return function(){return t}},iv=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]},ov=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function av(t,e){return t[e]}function sv(t){const e=[];return e.key=t,e}var uv=function(){var t=rv([]),e=ov,n=iv,r=av;function i(i){var o,a,s=Array.from(t.apply(this,arguments),sv),u=s.length,c=-1;for(const t of i)for(o=0,++c;o<u;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=nv(e(s));o<u;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:rv(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:rv(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?ov:"function"===typeof t?t:rv(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?iv:t,i):n},i},cv=function(t,e){if((s=t.length)>0)for(var n,r,i,o,a,s,u=0,c=t[e[0]].length;u<c;++u)for(o=a=0,n=0;n<s;++n)(i=(r=t[e[n]][u])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},lv=Array.prototype,hv=lv.slice,fv=(lv.map,function(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}),pv=function(t){let e=t,n=t;function r(t,e,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}function i(t,e,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}function o(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a}return 1===t.length&&(e=(e,n)=>t(e)-n,n=dv(t)),{left:r,center:o,right:i}};function dv(t){return(e,n)=>fv(t(e),n)}var vv=function(t){return null===t?NaN:+t};function*gv(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}const mv=pv(fv),yv=mv.right;mv.left,pv(vv).center;var _v=yv,bv=function(t){return function(){return t}},Ov=function(t,e){let n,r;if(void 0===e)for(const i of t)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]},wv=function(t){return t},xv=Math.sqrt(50),Ev=Math.sqrt(10),Tv=Math.sqrt(2),Sv=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=Mv(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);n*a<t&&++n,r*a>e&&--r,o=new Array(i=r-n+1);while(++s<i)o[s]=(n+s)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);n/a<t&&++n,r/a>e&&--r,o=new Array(i=r-n+1);while(++s<i)o[s]=(n+s)/a}return r&&o.reverse(),o};function Mv(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>=xv?10:o>=Ev?5:o>=Tv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=xv?10:o>=Ev?5:o>=Tv?2:1)}function Cv(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>=xv?i*=10:o>=Ev?i*=5:o>=Tv&&(i*=2),e<t?-i:i}function Av(t,e,n){let r;while(1){const i=Mv(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function Pv(t,e){let n=0;if(void 0===e)for(let r of t)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}var Lv=function(t){return Math.ceil(Math.log(Pv(t))/Math.LN2)+1},Dv=function(){var t=wv,e=Ov,n=Lv;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=t(r[i],i,r);var u=e(s),c=u[0],l=u[1],h=n(s,c,l);if(!Array.isArray(h)){const t=l,n=+h;if(e===Ov&&([c,l]=Av(c,l,n)),h=Sv(c,l,n),h[h.length-1]>=l)if(t>=l&&e===Ov){const t=Mv(c,l,n);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}var f=h.length;while(h[0]<=c)h.shift(),--f;while(h[f-1]>l)h.pop(),--f;var p,d=new Array(f+1);for(i=0;i<=f;++i)p=d[i]=[],p.x0=i>0?h[i-1]:c,p.x1=i<f?h[i]:l;for(i=0;i<a;++i)o=s[i],null!=o&&c<=o&&o<=l&&d[_v(h,o,0,f)].push(r[i]);return d}return r.value=function(e){return arguments.length?(t="function"===typeof e?e:bv(e),r):t},r.domain=function(t){return arguments.length?(e="function"===typeof t?t:bv([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?bv(hv.call(t)):bv(t),r):n},r},kv=function(){return kv=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},kv.apply(this,arguments)},Rv=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=ud.getProperty(e,"data").groupMapsTo,o=ud.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!==B.LINEAR&&r!==B.LOG||(n=n.map((function(t){var n;return kv(kv({},t),(n={},n[e]=null===t[e]?t[e]:Number(t[e]),n))}))),e&&o[t].domain)if(r===B.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!(e in t)||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=pt.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(ud.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=ud.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=pt.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.aggregateBinDataByGroup=function(t){return ud.groupBy(t,"group")},t.prototype.getBinConfigurations=function(){var t=this,e=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),o=n.axes[r],a=n.data.groupMapsTo,s=o.bins,u=void 0===s?ft.defaultBins:s,c=Array.isArray(u),l=Dv().value((function(t){return t[i]})).thresholds(u)(e);if(c)l[l.length-1].x1=u[u.length-1];else{var h=l[0].x1-l[0].x0;l[l.length-1].x1=+l[l.length-1].x0+h}var f=c?[u[0],u[u.length-1]]:[l[0].x0,l[l.length-1].x1],p=Array.from(new Set(e.map((function(t){return t[a]})))),d=[];return l.forEach((function(e){var n=e.x0+"-"+e.x1,r=t.aggregateBinDataByGroup(e);p.forEach((function(t){d.push({group:t,key:n,value:r[t]||0,bin:e.x0})}))})),{bins:l,binsDomain:f}},t.prototype.getBinnedStackedData=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getActiveDataGroupNames(),r=this.getBinConfigurations().bins,i=this.getDataValuesGroupedByKeys({bins:r});return uv().keys(n)(i).map((function(t,r){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(i){var o=t[i];return o[e]=n[r],o}))}))},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.getStackKeys=function(t){var e,n=this,r=t.bins,i=void 0===r?null:r,o=t.groups,a=void 0===o?null:o,s=this.getOptions(),u=this.getDisplayData(a);e=i?i.map((function(t){return t.x0+"-"+t.x1})):ud.removeArrayDuplicates(u.map((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return t[e]&&"function"===typeof t[e].toString?t[e].toString():t[e]})));var c=this.services.cartesianScales.domainAxisPosition,l=s.axes[c].scaleType;return l===B.TIME?e.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):l!==B.LOG&&l!==B.LINEAR||e.sort((function(t,e){return t-e})),e},t.prototype.getDataValuesGroupedByKeys=function(t){var e=this,n=t.bins,r=void 0===n?null:n,i=t.groups,o=void 0===i?null:i,a=this.getOptions(),s=a.data.groupMapsTo,u=this.getDisplayData(o),c=this.getDataGroupNames(),l=this.getStackKeys({bins:r,groups:o});return r?l.map((function(t){var e=t.split("-"),n=e[0],i=e[1],o={x0:n,x1:i},a=r.find((function(t){return t.x0.toString()===n.toString()}));return c.forEach((function(t){o[t]=a.filter((function(e){return e[s]===t})).length})),o})):l.map((function(t){var n={sharedStackKey:t};return c.forEach((function(r){var i=u.find((function(n){var i=e.services.cartesianScales.getDomainIdentifier(n);return n[s]===r&&n.hasOwnProperty(i)&&n[i].toString()===t})),o=e.services.cartesianScales.getRangeIdentifier(n);n[r]=i?i[o]: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=t.divergent,a=void 0!==o&&o,s=this.getOptions(),u=s.data.groupMapsTo,c=this.getDataGroupNames(i),l=this.getDataValuesGroupedByKeys({groups:i});if(n){var h=ud.fromPairs(l.map((function(t){return[t.sharedStackKey,0]})));l.forEach((function(t){c.forEach((function(e){h[t.sharedStackKey]+=t[e]}))})),l.forEach((function(t){c.forEach((function(e){h[t.sharedStackKey]?t[e]=t[e]/h[t.sharedStackKey]*100:t[e]=0}))}))}var f=a?uv().offset(cv):uv();return f.keys(c)(l).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var r=t[n];return r[u]=c[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){var e=this.getOptions();ud.updateLegendAdditionalItems(e,t),this.set({options:ud.merge(e,t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(it.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=pt.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(it.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=ud.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=ud.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=ud.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/docs-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=ud.getProperty(t,"label");if(null===a){var s=ud.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=pt.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=ud.removeArrayDuplicates(t.map((function(t){return t[e]})));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=ud.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=ud.getProperty(this.getOptions(),"color","pairing"),e=ud.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=ud.getProperty(t,"option"),r=lt.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=ev().range(o).domain(this.allDataGroups)},t}(),Iv=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 Nv(){}var jv=function(t){return null==t?Nv:function(){return this.querySelector(t)}},Bv=function(t){"function"!==typeof t&&(t=jv(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 Dm(r,this._parents)};function Vv(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Uv(){return[]}var Hv=function(t){return null==t?Uv:function(){return this.querySelectorAll(t)}};function Gv(t){return function(){return Vv(t.apply(this,arguments))}}var Fv=function(t){t="function"===typeof t?Gv(t):Hv(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 Dm(r,i)},zv=function(t){return function(){return this.matches(t)}};function Wv(t){return function(e){return e.matches(t)}}var qv=Array.prototype.find;function Yv(t){return function(){return qv.call(this.children,t)}}function Zv(){return this.firstElementChild}var Xv=function(t){return this.select(null==t?Zv:Yv("function"===typeof t?t:Wv(t)))},Kv=Array.prototype.filter;function $v(){return Array.from(this.children)}function Qv(t){return function(){return Kv.call(this.children,t)}}var Jv=function(t){return this.selectAll(null==t?$v:Qv("function"===typeof t?t:Wv(t)))},tg=function(t){"function"!==typeof t&&(t=zv(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 Dm(r,this._parents)},eg=function(t){return new Array(t.length)},ng=function(){return new Dm(this._enter||this._groups.map(eg),this._parents)};function rg(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}rg.prototype={constructor:rg,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 ig=function(t){return function(){return t}};function og(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 rg(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function ag(t,e,n,r,i,o,a){var s,u,c,l=new Map,h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=a.call(u,u.__data__,s,e)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<f;++s)c=a.call(t,o[s],s,o)+"",(u=l.get(c))?(r[s]=u,u.__data__=o[s],l.delete(c)):n[s]=new rg(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(p[s])===u&&(i[s]=u)}function sg(t){return t.__data__}var ug=function(t,e){if(!arguments.length)return Array.from(this,sg);var n=e?ag:og,r=this._parents,i=this._groups;"function"!==typeof t&&(t=ig(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=cg(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,O=0;b<d;++b)if(y=v[b]){b>=O&&(O=b+1);while(!(_=g[O])&&++O<d);y._next=_||null}}return a=new Dm(a,r),a._enter=s,a._exit=u,a};function cg(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}var lg=function(){return new Dm(this._exit||this._groups.map(eg),this._parents)},hg=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof t?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),null!=e&&(i=e(i),i&&(i=i.selection())),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},fg=function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var c,l=n[u],h=r[u],f=l.length,p=s[u]=new Array(f),d=0;d<f;++d)(c=l[d]||h[d])&&(p[d]=c);for(;u<i;++u)s[u]=n[u];return new Dm(s,this._parents)},pg=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},dg=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=vg);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 Dm(i,this._parents).order()};function vg(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var gg=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},mg=function(){return Array.from(this)},yg=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},_g=function(){let t=0;for(const e of this)++t;return t},bg=function(){return!this.node()},Og=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},wg="http://www.w3.org/1999/xhtml",xg={svg:"http://www.w3.org/2000/svg",xhtml:wg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Eg=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),xg.hasOwnProperty(e)?{space:xg[e],local:t}:t};function Tg(t){return function(){this.removeAttribute(t)}}function Sg(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mg(t,e){return function(){this.setAttribute(t,e)}}function Cg(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ag(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Pg(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 Lg=function(t,e){var n=Eg(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?Sg:Tg:"function"===typeof e?n.local?Pg:Ag:n.local?Cg:Mg)(n,e))},Dg=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function kg(t){return function(){this.style.removeProperty(t)}}function Rg(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ig(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var Ng=function(t,e,n){return arguments.length>1?this.each((null==e?kg:"function"===typeof e?Ig:Rg)(t,e,null==n?"":n)):jg(this.node(),t)};function jg(t,e){return t.style.getPropertyValue(e)||Dg(t).getComputedStyle(t,null).getPropertyValue(e)}function Bg(t){return function(){delete this[t]}}function Vg(t,e){return function(){this[t]=e}}function Ug(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var Hg=function(t,e){return arguments.length>1?this.each((null==e?Bg:"function"===typeof e?Ug:Vg)(t,e)):this.node()[t]};function Gg(t){return t.trim().split(/^|\s+/)}function Fg(t){return t.classList||new zg(t)}function zg(t){this._node=t,this._names=Gg(t.getAttribute("class")||"")}function Wg(t,e){var n=Fg(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function qg(t,e){var n=Fg(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function Yg(t){return function(){Wg(this,t)}}function Zg(t){return function(){qg(this,t)}}function Xg(t,e){return function(){(e.apply(this,arguments)?Wg:qg)(this,t)}}zg.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 Kg=function(t,e){var n=Gg(t+"");if(arguments.length<2){var r=Fg(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?Xg:e?Yg:Zg)(n,e))};function $g(){this.textContent=""}function Qg(t){return function(){this.textContent=t}}function Jg(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var tm=function(t){return arguments.length?this.each(null==t?$g:("function"===typeof t?Jg:Qg)(t)):this.node().textContent};function em(){this.innerHTML=""}function nm(t){return function(){this.innerHTML=t}}function rm(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var im=function(t){return arguments.length?this.each(null==t?em:("function"===typeof t?rm:nm)(t)):this.node().innerHTML};function om(){this.nextSibling&&this.parentNode.appendChild(this)}var am=function(){return this.each(om)};function sm(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var um=function(){return this.each(sm)};function cm(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===wg&&e.documentElement.namespaceURI===wg?e.createElement(t):e.createElementNS(n,t)}}function lm(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var hm=function(t){var e=Eg(t);return(e.local?lm:cm)(e)},fm=function(t){var e="function"===typeof t?t:hm(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function pm(){return null}var dm=function(t,e){var n="function"===typeof t?t:hm(t),r=null==e?pm:"function"===typeof e?e:jv(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function vm(){var t=this.parentNode;t&&t.removeChild(this)}var gm=function(){return this.each(vm)};function mm(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ym(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var _m=function(t){return this.select(t?ym:mm)},bm=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function Om(t){return function(e){t.call(this,e,this.__data__)}}function wm(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 xm(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Em(t,e,n){return function(){var r,i=this.__on,o=Om(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}var Tm=function(t,e,n){var r,i,o=wm(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Em:xm,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 Sm(t,e,n){var r=Dg(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 Mm(t,e){return function(){return Sm(this,t,e)}}function Cm(t,e){return function(){return Sm(this,t,e.apply(this,arguments))}}var Am=function(t,e){return this.each(("function"===typeof e?Cm:Mm)(t,e))},Pm=function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)},Lm=[null];function Dm(t,e){this._groups=t,this._parents=e}function km(){return new Dm([[document.documentElement]],Lm)}function Rm(){return this}Dm.prototype=km.prototype={constructor:Dm,select:Bv,selectAll:Fv,selectChild:Xv,selectChildren:Jv,filter:tg,data:ug,enter:ng,exit:lg,join:hg,merge:fg,selection:Rm,order:pg,sort:dg,call:gg,nodes:mg,node:yg,size:_g,empty:bg,each:Og,attr:Lg,style:Ng,property:Hg,classed:Kg,text:tm,html:im,raise:am,lower:um,append:fm,insert:dm,remove:gm,clone:_m,datum:bm,on:Tm,dispatch:Am,[Symbol.iterator]:Pm};var Im=km,Nm=function(t){return"string"===typeof t?new Dm([[document.querySelector(t)]],[document.documentElement]):new Dm([[t]],Lm)},jm={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 ",selectorFocusable:"\n a[href], area[href], input:not([disabled]),\n button:not([disabled]),select:not([disabled]),\n textarea:not([disabled]),\n iframe, object, embed, *[tabindex], *[contenteditable=true]\n "},Bm=jm,Vm=Bm,Um=n("2da1"),Hm=n("eeea"),Gm=n.n(Hm),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)}}(),zm="DONT_STYLE_ME_css_styles_verifier",Wm=function(t){function e(e,n){return t.call(this,e,n)||this}return Fm(e,t),e.getHTMLElementSize=function(t){return{width:t.clientWidth,height:t.clientHeight}},e.getSVGElementSize=function(t,e){t.attr||(t=Nm(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:ud.getProperty(t.node(),"width","baseVal","value"),height:ud.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.prototype.init=function(){this.styleHolderElement(),this.addMainContainer(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()},e.prototype.addMainContainer=function(){var t=this.model.getOptions(),e=ud.getProperty(t,"style","prefix"),n=Nm(this.getHolder()).append("div").classed(Vm.prefix+"--"+e+"--chart-wrapper",!0).style("height","100%").style("width","100%");n.append("g").attr("class",zm),this.mainContainer=n.node()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();Nm(this.getHolder()).classed(Vm.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.exportToJPG=function(){var t=this,e=this.getHolder(),n=Nm(e);n.classed("filled",!0),Gm.a.toJpeg(this.getMainContainer(),{bgcolor:"undefined"!==typeof window?window.getComputedStyle(e).getPropertyValue("background-color"):void 0,quality:1,filter:function(t){return!t.classList||!t.classList.contains("bx--cc--toolbar")}}).then((function(e){t.services.files.downloadImage(e,"myChart.jpg"),n.classed("filled",!1)}))},e.prototype.exportToPNG=function(){var t=this,e=this.getHolder(),n=Nm(e);n.classed("filled",!0),Gm.a.toPng(this.getMainContainer(),{bgcolor:"undefined"!==typeof window?window.getComputedStyle(e).getPropertyValue("background-color"):void 0,quality:1,filter:function(t){return!t.classList||!t.classList.contains("bx--cc--toolbar")}}).then((function(e){t.services.files.downloadImage(e,"myChart.png"),n.classed("filled",!1)})).catch((function(t){console.error("oops, something went wrong!",t)}))},e.prototype.toggleFullscreen=function(){var t=this.getHolder(),e=Nm(t),n=e.classed("fullscreen");n&&(document.fullscreenElement||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["msFullscreenElement"])?document.exitFullscreen?document.exitFullscreen():document["webkitExitFullscreen"]?document["webkitExitFullscreen"]():document["mozCancelFullScreen"]?document["mozCancelFullScreen"]():document["msExitFullscreen"]&&document["msExitFullscreen"]():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},e.prototype.handleFullscreenChange=function(){var t=this;document.addEventListener("fullscreenchange",(function(){var e=Nm(t.getHolder()),n=e.classed("fullscreen");e.classed("fullscreen",!n)}))},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=Nm(t.mainContainer).select("g."+zm).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(Nm(this.mainContainer),{useBBox:!0}).height,n=Nm(this.mainContainer).attr("class"),r=Nm(this.mainContainer).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(Nm(t),{useBBox:!0}).height)})),i<=t?Nm(this.mainContainer).attr("height",i):Nm(this.mainContainer).attr("height","100%")}},e.prototype.getMainContainer=function(){return this.mainContainer},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&Nm(e).on("mouseover",(function(){t.services.events.dispatchEvent(it.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(it.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=ud.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(it.Chart.RESIZE))}),12.5),o=new Um["a"](i);o.observe(e)}},e}(Iv),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)}}(),Ym=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qm(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}(Iv),Zm=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(e,n){return t.call(this,e,n)||this}return Zm(e,t),e.prototype.downloadCSV=function(t,e,n){var r=document.createElement("a");if(n="text/csv;encoding:utf-8",navigator.msSaveBlob)navigator.msSaveBlob(new Blob([t],{type:n}),e);else if(URL&&"download"in r){var i=URL.createObjectURL(new Blob([t],{type:n}));r.href=i,r.setAttribute("download",e),document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(i)}else location.href="data:application/octet-stream,"+encodeURIComponent(t)},e.prototype.downloadImage=function(t,e){var n=document.createElement("a");n.download=e,n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e}(Iv),Km={value:()=>{}};function $m(){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 Qm(r)}function Qm(t){this._=t}function Jm(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 ty(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function ey(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Km,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Qm.prototype=$m.prototype={constructor:Qm,on:function(t,e){var n,r=this._,i=Jm(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]=ey(r[n],t.name,e);else if(null==e)for(n in r)r[n]=ey(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=ty(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Qm(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 ny,ry,iy=$m,oy=0,ay=0,sy=0,uy=1e3,cy=0,ly=0,hy=0,fy="object"===typeof performance&&performance.now?performance:Date,py="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function dy(){return ly||(py(vy),ly=fy.now()+hy)}function vy(){ly=0}function gy(){this._call=this._time=this._next=null}function my(t,e,n){var r=new gy;return r.restart(t,e,n),r}function yy(){dy(),++oy;var t,e=ny;while(e)(t=ly-e._time)>=0&&e._call.call(void 0,t),e=e._next;--oy}function _y(){ly=(cy=fy.now())+hy,oy=ay=0;try{yy()}finally{oy=0,Oy(),ly=0}}function by(){var t=fy.now(),e=t-cy;e>uy&&(hy-=e,cy=t)}function Oy(){var t,e,n=ny,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:ny=e);ry=t,wy(r)}function wy(t){if(!oy){ay&&(ay=clearTimeout(ay));var e=t-ly;e>24?(t<1/0&&(ay=setTimeout(_y,t-fy.now()-hy)),sy&&(sy=clearInterval(sy))):(sy||(cy=fy.now(),sy=setInterval(by,uy)),oy=1,py(_y))}}gy.prototype=my.prototype={constructor:gy,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?dy():+n)+(null==e?0:+e),this._next||ry===this||(ry?ry._next=this:ny=this,ry=this),this._call=t,this._time=n,wy()},stop:function(){this._call&&(this._call=null,this._time=1/0,wy())}};var xy=function(t,e,n){var r=new gy;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r},Ey=iy("start","end","cancel","interrupt"),Ty=[],Sy=0,My=1,Cy=2,Ay=3,Py=4,Ly=5,Dy=6,ky=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};jy(t,n,{name:e,index:r,group:i,on:Ey,tween:Ty,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Sy})};function Ry(t,e){var n=Ny(t,e);if(n.state>Sy)throw new Error("too late; already scheduled");return n}function Iy(t,e){var n=Ny(t,e);if(n.state>Ay)throw new Error("too late; already running");return n}function Ny(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function jy(t,e,n){var r,i=t.__transition;function o(t){n.state=My,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!==My)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===Ay)return xy(a);f.state===Py?(f.state=Dy,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=Dy,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(xy((function(){n.state===Ay&&(n.state=Py,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=Cy,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Cy){for(n.state=Ay,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=Ly,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===Ly&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=Dy,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=my(o,0,n.time)}var By,Vy=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>Cy&&n.state<Ly,n.state=Dy,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}},Uy=function(t){return this.each((function(){Vy(this,t)}))},Hy=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Gy=180/Math.PI,Fy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},zy=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)*Gy,skewX:Math.atan(u)*Gy,scaleX:a,scaleY:s}};function Wy(t){const e=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Fy:zy(e.a,e.b,e.c,e.d,e.e,e.f)}function qy(t){return null==t?Fy:(By||(By=document.createElementNS("http://www.w3.org/2000/svg","g")),By.setAttribute("transform",t),(t=By.transform.baseVal.consolidate())?(t=t.matrix,zy(t.a,t.b,t.c,t.d,t.e,t.f)):Fy)}function Yy(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:Hy(t,i)},{i:u-2,x:Hy(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:Hy(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:Hy(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:Hy(t,n)},{i:s-2,x:Hy(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 Zy=Yy(Wy,"px, ","px)","deg)"),Xy=Yy(qy,", ",")",")");function Ky(t,e){var n,r;return function(){var i=Iy(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 $y(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Iy(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 Qy=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Ny(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?Ky:$y)(n,t,e))};function Jy(t,e,n){var r=t._id;return t.each((function(){var t=Iy(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Ny(t,r).value[e]}}var t_=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function e_(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function n_(){}var r_=.7,i_=1/r_,o_="\\s*([+-]?\\d+)\\s*",a_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u_=/^#([0-9a-f]{3,8})$/,c_=new RegExp("^rgb\\("+[o_,o_,o_]+"\\)$"),l_=new RegExp("^rgb\\("+[s_,s_,s_]+"\\)$"),h_=new RegExp("^rgba\\("+[o_,o_,o_,a_]+"\\)$"),f_=new RegExp("^rgba\\("+[s_,s_,s_,a_]+"\\)$"),p_=new RegExp("^hsl\\("+[a_,s_,s_]+"\\)$"),d_=new RegExp("^hsla\\("+[a_,s_,s_,a_]+"\\)$"),v_={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 g_(){return this.rgb().formatHex()}function m_(){return A_(this).formatHsl()}function y_(){return this.rgb().formatRgb()}function __(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=u_.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?b_(e):3===n?new E_(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?O_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?O_(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=c_.exec(t))?new E_(e[1],e[2],e[3],1):(e=l_.exec(t))?new E_(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h_.exec(t))?O_(e[1],e[2],e[3],e[4]):(e=f_.exec(t))?O_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p_.exec(t))?C_(e[1],e[2]/100,e[3]/100,1):(e=d_.exec(t))?C_(e[1],e[2]/100,e[3]/100,e[4]):v_.hasOwnProperty(t)?b_(v_[t]):"transparent"===t?new E_(NaN,NaN,NaN,0):null}function b_(t){return new E_(t>>16&255,t>>8&255,255&t,1)}function O_(t,e,n,r){return r<=0&&(t=e=n=NaN),new E_(t,e,n,r)}function w_(t){return t instanceof n_||(t=__(t)),t?(t=t.rgb(),new E_(t.r,t.g,t.b,t.opacity)):new E_}function x_(t,e,n,r){return 1===arguments.length?w_(t):new E_(t,e,n,null==r?1:r)}function E_(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function T_(){return"#"+M_(this.r)+M_(this.g)+M_(this.b)}function S_(){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 M_(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function C_(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new L_(t,e,n,r)}function A_(t){if(t instanceof L_)return new L_(t.h,t.s,t.l,t.opacity);if(t instanceof n_||(t=__(t)),!t)return new L_;if(t instanceof L_)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 L_(a,s,u,t.opacity)}function P_(t,e,n,r){return 1===arguments.length?A_(t):new L_(t,e,n,null==r?1:r)}function L_(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function D_(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 k_(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}t_(n_,__,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g_,formatHex:g_,formatHsl:m_,formatRgb:y_,toString:y_}),t_(E_,x_,e_(n_,{brighter:function(t){return t=null==t?i_:Math.pow(i_,t),new E_(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?r_:Math.pow(r_,t),new E_(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:T_,formatHex:T_,formatRgb:S_,toString:S_})),t_(L_,P_,e_(n_,{brighter:function(t){return t=null==t?i_:Math.pow(i_,t),new L_(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?r_:Math.pow(r_,t),new L_(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 E_(D_(t>=240?t-240:t+120,i,r),D_(t,i,r),D_(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 R_=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 k_((n-r/e)*e,a,i,o,s)}},I_=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 k_((n-r/e)*e,i,o,a,s)}},N_=t=>()=>t;function j_(t,e){return function(n){return t+n*e}}function B_(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 V_(t){return 1===(t=+t)?U_:function(e,n){return n-e?B_(e,n,t):N_(isNaN(e)?n:e)}}function U_(t,e){var n=e-t;return n?j_(t,n):N_(isNaN(t)?e:t)}var H_=function t(e){var n=V_(e);function r(t,e){var r=n((t=x_(t)).r,(e=x_(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=U_(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 G_(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=x_(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+""}}}G_(R_),G_(I_);var F_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,z_=new RegExp(F_.source,"g");function W_(t){return function(){return t}}function q_(t){return function(e){return t(e)+""}}var Y_=function(t,e){var n,r,i,o=F_.lastIndex=z_.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=F_.exec(t))&&(r=z_.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:Hy(n,r)})),o=z_.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?q_(u[0].x):W_(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("")})},Z_=function(t,e){var n;return("number"===typeof e?Hy:e instanceof __?H_:(n=__(e))?(e=n,H_):Y_)(t,e)};function X_(t){return function(){this.removeAttribute(t)}}function K_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $_(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 Q_(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 J_(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 tb(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 eb=function(t,e){var n=Eg(t),r="transform"===n?Xy:Z_;return this.attrTween(t,"function"===typeof e?(n.local?tb:J_)(n,r,Jy(this,"attr."+t,e)):null==e?(n.local?K_:X_)(n):(n.local?Q_:$_)(n,r,e))};function nb(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function rb(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function ib(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&rb(t,i)),n}return i._value=e,i}function ob(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&nb(t,i)),n}return i._value=e,i}var ab=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=Eg(t);return this.tween(n,(r.local?ib:ob)(r,e))};function sb(t,e){return function(){Ry(this,t).delay=+e.apply(this,arguments)}}function ub(t,e){return e=+e,function(){Ry(this,t).delay=e}}var cb=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?sb:ub)(e,t)):Ny(this.node(),e).delay};function lb(t,e){return function(){Iy(this,t).duration=+e.apply(this,arguments)}}function hb(t,e){return e=+e,function(){Iy(this,t).duration=e}}var fb=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?lb:hb)(e,t)):Ny(this.node(),e).duration};function pb(t,e){if("function"!==typeof e)throw new Error;return function(){Iy(this,t).ease=e}}var db=function(t){var e=this._id;return arguments.length?this.each(pb(e,t)):Ny(this.node(),e).ease};function vb(t,e){return function(){var n=e.apply(this,arguments);if("function"!==typeof n)throw new Error;Iy(this,t).ease=n}}var gb=function(t){if("function"!==typeof t)throw new Error;return this.each(vb(this._id,t))},mb=function(t){"function"!==typeof t&&(t=zv(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 qb(r,this._parents,this._name,this._id)},yb=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 qb(a,this._parents,this._name,this._id)};function _b(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 bb(t,e,n){var r,i,o=_b(e)?Ry:Iy;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Ob=function(t,e){var n=this._id;return arguments.length<2?Ny(this.node(),n).on.on(t):this.each(bb(n,t,e))};function wb(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var xb=function(){return this.on("end.remove",wb(this._id))},Eb=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=jv(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,ky(h[f],e,n,f,h,Ny(s,n)));return new qb(o,this._parents,e,n)},Tb=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Hv(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=Ny(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&ky(f,e,n,v,p,d);o.push(p),a.push(u)}return new qb(o,a,e,n)},Sb=Im.prototype.constructor,Mb=function(){return new Sb(this._groups,this._parents)};function Cb(t,e){var n,r,i;return function(){var o=jg(this,t),a=(this.style.removeProperty(t),jg(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Ab(t){return function(){this.style.removeProperty(t)}}function Pb(t,e,n){var r,i,o=n+"";return function(){var a=jg(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function Lb(t,e,n){var r,i,o;return function(){var a=jg(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=jg(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function Db(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=Iy(this,t),c=u.on,l=null==u.value[a]?o||(o=Ab(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var kb=function(t,e,n){var r="transform"===(t+="")?Zy:Z_;return null==e?this.styleTween(t,Cb(t,r)).on("end.style."+t,Ab(t)):"function"===typeof e?this.styleTween(t,Lb(t,r,Jy(this,"style."+t,e))).each(Db(this._id,t)):this.styleTween(t,Pb(t,r,e),n).on("end.style."+t,null)};function Rb(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ib(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Rb(t,o,n)),r}return o._value=e,o}var Nb=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,Ib(t,e,null==n?"":n))};function jb(t){return function(){this.textContent=t}}function Bb(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var Vb=function(t){return this.tween("text","function"===typeof t?Bb(Jy(this,"text",t)):jb(null==t?"":t+""))};function Ub(t){return function(e){this.textContent=t.call(this,e)}}function Hb(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ub(r)),e}return r._value=t,r}var Gb=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,Hb(t))},Fb=function(){for(var t=this._name,e=this._id,n=Zb(),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=Ny(a,e);ky(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new qb(r,this._parents,t,n)},zb=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=Iy(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})),0===i&&o()}))},Wb=0;function qb(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Yb(t){return Im().transition(t)}function Zb(){return++Wb}var Xb=Im.prototype;qb.prototype=Yb.prototype={constructor:qb,select:Eb,selectAll:Tb,selectChild:Xb.selectChild,selectChildren:Xb.selectChildren,filter:mb,merge:yb,selection:Mb,transition:Fb,call:Xb.call,nodes:Xb.nodes,node:Xb.node,size:Xb.size,empty:Xb.empty,each:Xb.each,on:Ob,attr:eb,attrTween:ab,style:kb,styleTween:Nb,text:Vb,textTween:Gb,remove:xb,tween:Qy,delay:cb,duration:fb,ease:db,easeVarying:gb,end:zb,[Symbol.iterator]:Xb[Symbol.iterator]};var Kb={time:null,delay:0,duration:250,ease:ot};function $b(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}var Qb=function(t){var e,n;t instanceof qb?(e=t._id,t=t._name):(e=Zb(),(n=Kb).time=dy(),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])&&ky(a,t,e,c,s,n||$b(a,e));return new qb(r,this._parents,t,e)};Im.prototype.interrupt=Uy,Im.prototype.transition=Qb;var Jb=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)}}(),tO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Jb(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(it.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=Yb(t).duration(ud.getProperty(bt,t,"duration")||bt.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=Yb(t).duration(0);return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),n},e.prototype.setupTransition=function(t){var e=this,n=t.transition,r=t.name,i=t.animate;return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),!0!==i?n.duration(0):n.duration(ud.getProperty(bt,r,"duration")||bt.default.duration)},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(Iv),eO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eO(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").remove(),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}(Iv);const rO=1e3,iO=60*rO,oO=60*iO,aO=24*oO,sO=7*aO,uO=30*aO,cO=365*aO;var lO=new Date,hO=new Date;function fO(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 fO((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 lO.setTime(+e),hO.setTime(+r),t(lO),t(hO),Math.floor(n(lO,hO))},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 pO=fO((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));pO.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?fO((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):pO:null};var dO=pO,vO=(pO.range,fO((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*rO)}),(function(t,e){return(e-t)/rO}),(function(t){return t.getUTCSeconds()}))),gO=vO,mO=(vO.range,fO((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*rO)}),(function(t,e){t.setTime(+t+e*iO)}),(function(t,e){return(e-t)/iO}),(function(t){return t.getMinutes()}))),yO=mO,_O=(mO.range,fO((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*rO-t.getMinutes()*iO)}),(function(t,e){t.setTime(+t+e*oO)}),(function(t,e){return(e-t)/oO}),(function(t){return t.getHours()}))),bO=_O,OO=(_O.range,fO(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*iO)/aO,t=>t.getDate()-1)),wO=OO;OO.range;function xO(t){return fO((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())*iO)/sO}))}var EO=xO(0),TO=xO(1),SO=xO(2),MO=xO(3),CO=xO(4),AO=xO(5),PO=xO(6),LO=(EO.range,TO.range,SO.range,MO.range,CO.range,AO.range,PO.range,fO((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()}))),DO=LO,kO=(LO.range,fO((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()})));kO.every=function(t){return isFinite(t=Math.floor(t))&&t>0?fO((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 RO=kO,IO=(kO.range,fO((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*iO)}),(function(t,e){return(e-t)/iO}),(function(t){return t.getUTCMinutes()}))),NO=IO,jO=(IO.range,fO((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*oO)}),(function(t,e){return(e-t)/oO}),(function(t){return t.getUTCHours()}))),BO=jO,VO=(jO.range,fO((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/aO}),(function(t){return t.getUTCDate()-1}))),UO=VO;VO.range;function HO(t){return fO((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)/sO}))}var GO=HO(0),FO=HO(1),zO=HO(2),WO=HO(3),qO=HO(4),YO=HO(5),ZO=HO(6),XO=(GO.range,FO.range,zO.range,WO.range,qO.range,YO.range,ZO.range,fO((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()}))),KO=XO,$O=(XO.range,fO((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()})));$O.every=function(t){return isFinite(t=Math.floor(t))&&t>0?fO((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 QO=$O;$O.range;function JO(t,e,n,r,i,o){const a=[[gO,1,rO],[gO,5,5*rO],[gO,15,15*rO],[gO,30,30*rO],[o,1,iO],[o,5,5*iO],[o,15,15*iO],[o,30,30*iO],[i,1,oO],[i,3,3*oO],[i,6,6*oO],[i,12,12*oO],[r,1,aO],[r,2,2*aO],[n,1,sO],[e,1,uO],[e,3,3*uO],[t,1,cO]];function s(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"===typeof n.range?n:u(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o}function u(e,n,r){const i=Math.abs(n-e)/r,o=pv(([,,t])=>t).right(a,i);if(o===a.length)return t.every(Cv(e/cO,n/cO,r));if(0===o)return dO.every(Math.max(Cv(e,n,r),1));const[s,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(u)}return[s,u]}const[tw,ew]=JO(QO,KO,GO,UO,BO,NO),[nw,rw]=JO(RO,DO,EO,wO,bO,yO);function iw(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 ow(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 aw(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function sw(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=gw(i),l=mw(i),h=gw(o),f=mw(o),p=gw(a),d=mw(a),v=gw(s),g=mw(s),m=gw(u),y=mw(u),_={a:k,A:R,b:I,B:N,c:null,d:Bw,e:Bw,f:Fw,g:tx,G:nx,H:Vw,I:Uw,j:Hw,L:Gw,m:zw,M:Ww,p:j,q:B,Q:Tx,s:Sx,S:qw,u:Yw,U:Zw,V:Kw,w:$w,W:Qw,x:null,X:null,y:Jw,Y:ex,Z:rx,"%":Ex},b={a:V,A:U,b:H,B:G,c:null,d:ix,e:ix,f:cx,g:bx,G:wx,H:ox,I:ax,j:sx,L:ux,m:lx,M:hx,p:F,q:z,Q:Tx,s:Sx,S:fx,u:px,U:dx,V:gx,w:mx,W:yx,x:null,X:null,y:_x,Y:Ox,Z:xx,"%":Ex},O={a:S,A:M,b:C,B:A,c:P,d:Cw,e:Cw,f:Rw,g:Ew,G:xw,H:Pw,I:Pw,j:Aw,L:kw,m:Mw,M:Lw,p:T,q:Sw,Q:Nw,s:jw,S:Dw,u:_w,U:bw,V:Ow,w:yw,W:ww,x:L,X:D,y:Ew,Y:xw,Z:Tw,"%":Iw};function w(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=lw[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=aw(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=ow(aw(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?FO.ceil(r):FO(r),r=UO.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=iw(aw(o.y,0,1)),i=r.getDay(),r=i>4||0===i?TO.ceil(r):TO(r),r=wO.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?ow(aw(o.y,0,1)).getUTCDay():iw(aw(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,ow(o)):iw(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=O[i in lw?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function T(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1}function S(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d.get(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.get(r[0].toLowerCase()),n+r[0].length):-1}function C(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function P(t,n,r){return E(t,e,n,r)}function L(t,e,r){return E(t,n,e,r)}function D(t,e,n){return E(t,r,e,n)}function k(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function N(t){return s[t.getMonth()]}function j(t){return i[+(t.getHours()>=12)]}function B(t){return 1+~~(t.getMonth()/3)}function V(t){return a[t.getUTCDay()]}function U(t){return o[t.getUTCDay()]}function H(t){return u[t.getUTCMonth()]}function G(t){return s[t.getUTCMonth()]}function F(t){return i[+(t.getUTCHours()>=12)]}function z(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(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=w(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 uw,cw,lw={"-":"",_:" ",0:"0"},hw=/^\s*\d+/,fw=/^%/,pw=/[\\^$*+?|[\]().{}]/g;function dw(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 vw(t){return t.replace(pw,"\\$&")}function gw(t){return new RegExp("^(?:"+t.map(vw).join("|")+")","i")}function mw(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function yw(t,e,n){var r=hw.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function _w(t,e,n){var r=hw.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function bw(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ow(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function ww(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function xw(t,e,n){var r=hw.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ew(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Tw(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 Sw(t,e,n){var r=hw.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Mw(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Cw(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Aw(t,e,n){var r=hw.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pw(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Lw(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Dw(t,e,n){var r=hw.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function kw(t,e,n){var r=hw.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Rw(t,e,n){var r=hw.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Iw(t,e,n){var r=fw.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Nw(t,e,n){var r=hw.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function jw(t,e,n){var r=hw.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Bw(t,e){return dw(t.getDate(),e,2)}function Vw(t,e){return dw(t.getHours(),e,2)}function Uw(t,e){return dw(t.getHours()%12||12,e,2)}function Hw(t,e){return dw(1+wO.count(RO(t),t),e,3)}function Gw(t,e){return dw(t.getMilliseconds(),e,3)}function Fw(t,e){return Gw(t,e)+"000"}function zw(t,e){return dw(t.getMonth()+1,e,2)}function Ww(t,e){return dw(t.getMinutes(),e,2)}function qw(t,e){return dw(t.getSeconds(),e,2)}function Yw(t){var e=t.getDay();return 0===e?7:e}function Zw(t,e){return dw(EO.count(RO(t)-1,t),e,2)}function Xw(t){var e=t.getDay();return e>=4||0===e?CO(t):CO.ceil(t)}function Kw(t,e){return t=Xw(t),dw(CO.count(RO(t),t)+(4===RO(t).getDay()),e,2)}function $w(t){return t.getDay()}function Qw(t,e){return dw(TO.count(RO(t)-1,t),e,2)}function Jw(t,e){return dw(t.getFullYear()%100,e,2)}function tx(t,e){return t=Xw(t),dw(t.getFullYear()%100,e,2)}function ex(t,e){return dw(t.getFullYear()%1e4,e,4)}function nx(t,e){var n=t.getDay();return t=n>=4||0===n?CO(t):CO.ceil(t),dw(t.getFullYear()%1e4,e,4)}function rx(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+dw(e/60|0,"0",2)+dw(e%60,"0",2)}function ix(t,e){return dw(t.getUTCDate(),e,2)}function ox(t,e){return dw(t.getUTCHours(),e,2)}function ax(t,e){return dw(t.getUTCHours()%12||12,e,2)}function sx(t,e){return dw(1+UO.count(QO(t),t),e,3)}function ux(t,e){return dw(t.getUTCMilliseconds(),e,3)}function cx(t,e){return ux(t,e)+"000"}function lx(t,e){return dw(t.getUTCMonth()+1,e,2)}function hx(t,e){return dw(t.getUTCMinutes(),e,2)}function fx(t,e){return dw(t.getUTCSeconds(),e,2)}function px(t){var e=t.getUTCDay();return 0===e?7:e}function dx(t,e){return dw(GO.count(QO(t)-1,t),e,2)}function vx(t){var e=t.getUTCDay();return e>=4||0===e?qO(t):qO.ceil(t)}function gx(t,e){return t=vx(t),dw(qO.count(QO(t),t)+(4===QO(t).getUTCDay()),e,2)}function mx(t){return t.getUTCDay()}function yx(t,e){return dw(FO.count(QO(t)-1,t),e,2)}function _x(t,e){return dw(t.getUTCFullYear()%100,e,2)}function bx(t,e){return t=vx(t),dw(t.getUTCFullYear()%100,e,2)}function Ox(t,e){return dw(t.getUTCFullYear()%1e4,e,4)}function wx(t,e){var n=t.getUTCDay();return t=n>=4||0===n?qO(t):qO.ceil(t),dw(t.getUTCFullYear()%1e4,e,4)}function xx(){return"+0000"}function Ex(){return"%"}function Tx(t){return+t}function Sx(t){return Math.floor(+t/1e3)}function Mx(t){return uw=sw(t),cw=uw.format,uw.parse,uw.utcFormat,uw.utcParse,uw}Mx({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 Cx=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 Ax(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Px(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]=kx(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 Lx=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},Dx=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]=kx(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},kx=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?N_(e):("number"===r?Hy:"string"===r?(n=__(e))?(e=n,H_):Y_:e instanceof __?H_:e instanceof Date?Lx:Ax(e)?Cx:Array.isArray(e)?Px:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Dx:Hy)(t,e)},Rx=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function Ix(t){return function(){return t}}function Nx(t){return+t}var jx=[0,1];function Bx(t){return t}function Vx(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Ix(isNaN(e)?NaN:.5)}function Ux(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function Hx(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Vx(i,r),o=n(a,o)):(r=Vx(r,i),o=n(o,a)),function(t){return o(r(t))}}function Gx(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]=Vx(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=_v(t,e,1,r)-1;return o[n](i[n](e))}}function Fx(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function zx(){var t,e,n,r,i,o,a=jx,s=jx,u=kx,c=Bx;function l(){var t=Math.min(a.length,s.length);return c!==Bx&&(c=Ux(a[0],a[t-1])),r=t>2?Gx:Hx,i=o=null,h}function h(e){return null==e||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),Hy)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Nx),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Rx,l()},h.clamp=function(t){return arguments.length?(c=!!t||Bx,l()):c!==Bx},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 Wx(){return zx()(Bx,Bx)}function qx(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 Yx(t){return new Date(t)}function Zx(t){return t instanceof Date?+t:+new Date(+t)}function Xx(t,e,n,r,i,o,a,s,u,c){var l=Wx(),h=l.invert,f=l.domain,p=c(".%L"),d=c(":%S"),v=c("%I:%M"),g=c("%I %p"),m=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y");function O(t){return(u(t)<t?p:s(t)<t?d:a(t)<t?v:o(t)<t?g:r(t)<t?i(t)<t?m:y:n(t)<t?_:b)(t)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?f(Array.from(t,Zx)):f().map(Yx)},l.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?O:c(e)},l.nice=function(t){var n=f();return t&&"function"===typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(qx(n,t)):l},l.copy=function(){return Fx(l,Xx(t,e,n,r,i,o,a,s,u,c))},l}function Kx(){return Jd.apply(Xx(nw,rw,RO,DO,EO,wO,bO,yO,gO,cw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var $x=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)};function Qx(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)]}var Jx=function(t){return t=Qx(Math.abs(t)),t?t[1]:NaN},tE=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)}},eE=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},nE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rE(t){if(!(e=nE.exec(t)))throw new Error("invalid format: "+t);var e;return new iE({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 iE(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+""}rE.prototype=iE.prototype,iE.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 oE,aE,sE,uE,cE=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},lE=function(t,e){var n=Qx(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(oE=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")+Qx(t,Math.max(0,e+o-1))[0]},hE=function(t,e){var n=Qx(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")},fE={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:$x,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>hE(100*t,e),r:hE,s:lE,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},pE=function(t){return t},dE=Array.prototype.map,vE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],gE=function(t){var e=void 0===t.grouping||void 0===t.thousands?pE:tE(dE.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?pE:eE(dE.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=rE(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"):fE[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:"",O=fE[y],w=/[defgprs%]/.test(y);function x(t){var n,r,a,f=_,x=b;if("c"===y)x=O(t)+x,t="";else{t=+t;var E=t<0||1/t<0;if(t=isNaN(t)?u:O(Math.abs(t),g),m&&(t=cE(t)),E&&0===+t&&"+"!==h&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,x=("s"===y?vE[8+oE/3]:"")+x+(E&&"("===h?")":""),w){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 T=f.length+t.length+x.length,S=T<d?new Array(d-T+1).join(c):"";switch(v&&p&&(t=e(S+t,S.length?d-x.length:1/0),S=""),l){case"<":t=f+t+x+S;break;case"=":t=f+S+t+x;break;case"^":t=S.slice(0,T=S.length>>1)+f+t+x+S.slice(T);break;default:t=S+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=rE(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Jx(e)/3))),i=Math.pow(10,-r),o=vE[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function mE(t){return aE=gE(t),sE=aE.format,uE=aE.formatPrefix,aE}function yE(t){return Math.log(t)}function _E(t){return Math.exp(t)}function bE(t){return-Math.log(-t)}function OE(t){return-Math.exp(-t)}function wE(t){return isFinite(t)?+("1e"+t):t<0?0:t}function xE(t){return 10===t?wE:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function EE(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 TE(t){return function(e){return-t(-e)}}function SE(t){var e,n,r=t(yE,_E),i=r.domain,o=10;function a(){return e=EE(o),n=xE(o),i()[0]<0?(e=TE(e),n=TE(n),t(bE,OE)):t(yE,_E),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.floor(f),p=Math.ceil(p),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)}2*v.length<d&&(v=Sv(s,u,d))}else v=Sv(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=sE(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(qx(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function ME(){var t=SE(zx()).domain([1,10]);return t.copy=function(){return Fx(t,ME()).base(t.base())},Jd.apply(t,arguments),t}mE({thousands:",",grouping:[3],currency:["$",""]});var CE=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};function AE(){var t,e,n=ev().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,u=0,c=0,l=.5;function h(){var n=r().length,h=a<o,f=h?a:o,p=h?o:a;t=(p-f)/Math.max(1,n-u+2*c),s&&(t=Math.floor(t)),f+=(p-f-t*(n-u))*l,e=t*(1-u),s&&(f=Math.round(f),e=Math.round(e));var d=CE(n).map((function(e){return f+t*e}));return i(h?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),h()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,h()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,h()):s},n.padding=function(t){return arguments.length?(u=Math.min(1,c=+t),h()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),h()):u},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),h()):l},n.copy=function(){return AE(r(),[o,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},Jd.apply(h(),arguments)}var PE=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Jx(e)/3)))-Jx(Math.abs(t)))},LE=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Jx(e)-Jx(t))+1},DE=function(t){return Math.max(0,-Jx(Math.abs(t)))};function kE(t,e,n,r){var i,o=Cv(t,e,n);switch(r=rE(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=PE(o,a))||(r.precision=i),uE(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=LE(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=DE(o))||(r.precision=i-2*("%"===r.type));break}return sE(r)}function RE(t){var e=t.domain;return t.ticks=function(t){var n=e();return Sv(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return kE(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,u=o[a],c=o[s],l=10;c<u&&(i=u,u=c,c=i,i=a,a=s,s=i);while(l-- >0){if(i=Mv(u,c,n),i===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function IE(){var t=Wx();return t.copy=function(){return Fx(t,IE())},Jd.apply(t,arguments),RE(t)}function NE(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function jE(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 BE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=jE(e);return n.getFullYear()-r.getFullYear()}function VE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=jE(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function UE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=jE(e),i=VE(n,r),o=Math.abs(BE(n,r));n.setFullYear(n.getFullYear()-i*o);var a=VE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function HE(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 GE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=jE(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 FE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=HE(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=GE(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function zE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return FE(t,12*n)}function WE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return zE(t,-n)}function qE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=jE(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function YE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=jE(e),i=VE(n,r),o=Math.abs(qE(n,r));n.setMonth(n.getMonth()-i*o);var a=VE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function ZE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return FE(t,-n)}var XE=6e4;function KE(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%XE;return n*XE+r}function $E(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=jE(t);return e.setHours(0,0,0,0),e}var QE=864e5;function JE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=$E(t),r=$E(e),i=n.getTime()-KE(n),o=r.getTime()-KE(r);return Math.round((i-o)/QE)}function tT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=jE(e),i=VE(n,r),o=Math.abs(JE(n,r));n.setDate(n.getDate()-i*o);var a=VE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function eT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=HE(e);return n.setDate(n.getDate()+r),n}function nT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return eT(t,-n)}function rT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t),r=jE(e);return n.getTime()-r.getTime()}var iT=36e5;function oT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=rT(t,e)/iT;return n>0?Math.floor(n):Math.ceil(n)}function aT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jE(t).getTime(),r=HE(e);return new Date(n+r)}var sT=36e5;function uT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return aT(t,n*sT)}function cT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return uT(t,-n)}var lT=6e4;function hT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=rT(t,e)/lT;return n>0?Math.floor(n):Math.ceil(n)}var fT=6e4;function pT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return aT(t,n*fT)}function dT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return pT(t,-n)}function vT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=rT(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function gT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return aT(t,1e3*n)}function mT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return gT(t,-n)}var yT=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)}}(),_T=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},bT=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},OT=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 yT(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=ud.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=ud.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 ud.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.getScaleLabel=function(t){var e=this.getAxisOptions(t),n=e.title;return n||(t===R.BOTTOM||t===R.TOP?"x-value":"y-value")},e.prototype.getDomainLabel=function(){return this.getScaleLabel(this.getDomainAxisPosition())},e.prototype.getRangeLabel=function(){return this.getScaleLabel(this.getRangeAxisPosition())},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(R).map((function(t){return R[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!==R.LEFT&&this.rangeAxisPosition!==R.RIGHT||this.domainAxisPosition!==R.BOTTOM&&this.domainAxisPosition!==R.TOP?this.orientation=j.HORIZONTAL:this.orientation=j.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=ud.getProperty(i,"axes");((null===(t=o[R.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[R.RIGHT]||(null===(e=o[R.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[R.LEFT]||(null===(n=o[R.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[R.BOTTOM]||(null===(r=o[R.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[R.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=[R.BOTTOM,R.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[R.LEFT,R.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=ud.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=null!==ud.getProperty(r,c)?r[c]:r;switch(e){case B.LABELS:o=t(l)+t.step()/2;break;case B.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=ud.getProperty(i,"axes"),a=o[this.rangeAxisPosition],s=a.mapsTo,u=void 0!==t[s]?t[s]:t,c=[r(null!==ud.getProperty(t,n.upperBoundMapsTo)?t[n.upperBoundMapsTo]:u),r(null!==ud.getProperty(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 ud.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return ud.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=ud.getProperty(n,"axes",t);if(r.scaleType===B.TIME){var i=ud.getProperty(n,"timeScale","addSpaceOnEdges");return wT(e,i)}return xT(e,st.paddingRatio,r.scaleType)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=ud.getProperty(t,"axes"),n=this.isDualAxes();return null===ud.getProperty(e,R.LEFT)&&null!==ud.getProperty(e,R.RIGHT)||!0===ud.getProperty(e,R.RIGHT,"main")||n&&ud.getProperty(e,R.LEFT,"correspondingDatasets")?{primary:R.RIGHT,secondary:R.LEFT}:{primary:R.LEFT,secondary:R.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=ud.getProperty(t,"axes"),n=this.isDualAxes();return null===ud.getProperty(e,R.BOTTOM)&&null!==ud.getProperty(e,R.TOP)||!0===ud.getProperty(e,R.TOP,"main")||n&&ud.getProperty(e,R.BOTTOM,"correspondingDatasets")?{primary:R.TOP,secondary:R.BOTTOM}:{primary:R.BOTTOM,secondary:R.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=ud.getProperty(n,"axes",t.primary),i=ud.getProperty(n,"axes",e.primary),o=r.scaleType||B.LINEAR,a=i.scaleType||B.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!==B.LABELS&&a!==B.TIME&&o===B.LABELS||o===B.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=ud.getProperty(e,"axes",t),r=ud.getProperty(e,"bounds"),i=n.includeZero,o=ud.getProperty(n,"scaleType")||B.LINEAR;if(this.model.isDataEmpty())return[];if(n.binned){var a=this.model.getBinConfigurations().bins;return[0,NE(a,(function(t){return t.length}))]}if(n.limitDomainToBins){a=this.model.getBinConfigurations().bins;var s=this.model.getStackKeys({bins:a});return[s[0].split("-")[0],s[s.length-1].split("-")[1]]}var u,c,l=this.model.getDisplayData(),h=n.extendLinearDomainBy,f=n.mapsTo,p=n.percentage,d=n.thresholds,v=st.ratio,g=v.reference,m=v.compareTo;if(n.domain)return o===B.LABELS?n.domain:(o===B.TIME&&(n.domain=n.domain.map((function(t){return void 0===t.getTime?new Date(t):t}))),this.extendsDomain(t,n.domain));if(p)return[0,100];if(n&&o===B.LABELS)return ud.removeArrayDuplicates(l.map((function(t){return t[f]})));var y=this.model.getDataGroupNames();if(o===B.LABELS_RATIO)return l.map((function(t){return t[g]+"/"+t[m]}));if(o===B.TIME)c=l.map((function(t){return+new Date(t[f])}));else if(r&&e.axes)c=[],l.forEach((function(t){c.push(t[f]),t[r.upperBoundMapsTo]&&c.push(t[r.upperBoundMapsTo]),t[r.lowerBoundMapsTo]&&c.push(t[r.lowerBoundMapsTo])}));else if(!0===n.stacked&&y&&t===this.getRangeAxisPosition()){var _=e.data.groupMapsTo,b=this.model.getDataValuesGroupedByKeys({groups:y}),O=l.filter((function(t){return!y.includes(t[_])})),w=[];b.forEach((function(t){t.sharedStackKey;var e=_T(t,["sharedStackKey"]),n=0,r=0;Object.values(e).forEach((function(t){t<0?r+=t:n+=t})),w.push([r,n])})),c=bT(ud.flatten(w),O.map((function(t){return t[f]})))}else c=[],l.forEach((function(t){var e=t[f];Array.isArray(e)&&2===e.length?(c.push(e[0]),c.push(e[1])):(h&&c.push(Math.max(t[f],t[h])),c.push(e))}));return o!==B.TIME&&o!==B.LOG&&i&&c.push(0),d&&d.length>0&&d.forEach((function(t){var e=ud.getProperty(t,"value");null!==e&&c.push(e)})),u=Ov(c),u=this.extendsDomain(t,u),u},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=ud.getProperty(e,"axes",t);if(!n)return null;var r,i=ud.getProperty(n,"scaleType")||B.LINEAR;return this.scaleTypes[t]=i,r=i===B.TIME?Kx():i===B.LOG?ME().base(n.base||10):i===B.LABELS||i===B.LABELS_RATIO?AE():IE(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=ud.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!==B.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=ud.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}(Iv);function wT(t,e){var n=new Date(t[0]),r=new Date(t[1]);return UE(r,n)>1?[WE(n,e),zE(r,e)]:YE(r,n)>1?[ZE(n,e),FE(r,e)]:tT(r,n)>1?[nT(n,e),eT(r,e)]:oT(r,n)>1?[cT(n,e),uT(r,e)]:hT(r,n)>30?[dT(n,30*e),pT(r,30*e)]:hT(r,n)>1?[dT(n,e),pT(r,e)]:vT(r,n)>15?[mT(n,15*e),gT(r,15*e)]:vT(r,n)>1?[mT(n,e),gT(r,e)]:[n,r]}function xT(t,e,n){var r=t[0],i=t[1],o=i-r,a=o*e,s=i<=0&&i+a>0?0:i+a,u=r>=0&&r-a<0?0:r-a;if(n===B.LOG&&u<=0){if(r<=0)throw Error("Data must have values greater than 0 if log scale type is used.");u=r}return[u,s]}function ET(t){this._context=t}ET.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 TT=function(t){return new ET(t)},ST=function(){};function MT(t){this._context=t}MT.prototype={areaStart:ST,areaEnd:ST,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 CT=function(t){return new MT(t)};function AT(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 PT(t){this._context=t}PT.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:AT(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:AT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var LT=function(t){return new PT(t)};function DT(t){this._context=t}DT.prototype={areaStart:ST,areaEnd:ST,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:AT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var kT=function(t){return new DT(t)};function RT(t){this._context=t}RT.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:AT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var IT=function(t){return new RT(t)};function NT(t,e){this._basis=new PT(t),this._beta=e}NT.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 jT=function t(e){function n(t){return 1===e?new PT(t):new NT(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function BT(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 VT(t,e){this._context=t,this._k=(1-e)/6}VT.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:BT(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:BT(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 UT=function t(e){function n(t){return new VT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function HT(t,e){this._context=t,this._k=(1-e)/6}HT.prototype={areaStart:ST,areaEnd:ST,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:BT(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 GT=function t(e){function n(t){return new HT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function FT(t,e){this._context=t,this._k=(1-e)/6}FT.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:BT(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 zT=function t(e){function n(t){return new FT(t,e)}return n.tension=function(e){return t(+e)},n}(0),WT=Math.abs,qT=Math.atan2,YT=Math.cos,ZT=Math.max,XT=Math.min,KT=Math.sin,$T=Math.sqrt,QT=1e-12,JT=Math.PI,tS=JT/2,eS=2*JT;function nS(t){return t>1?0:t<-1?JT:Math.acos(t)}function rS(t){return t>=1?tS:t<=-1?-tS:Math.asin(t)}function iS(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>QT){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>QT){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 oS(t,e){this._context=t,this._alpha=e}oS.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:iS(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 aS=function t(e){function n(t){return e?new oS(t,e):new VT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function sS(t,e){this._context=t,this._alpha=e}sS.prototype={areaStart:ST,areaEnd:ST,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:iS(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 uS=function t(e){function n(t){return e?new sS(t,e):new HT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function cS(t,e){this._context=t,this._alpha=e}cS.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:iS(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 lS=function t(e){function n(t){return e?new cS(t,e):new FT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function hS(t){return t<0?-1:1}function fS(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(hS(o)+hS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function pS(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function dS(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 vS(t){this._context=t}function gS(t){this._context=new mS(t)}function mS(t){this._context=t}function yS(t){return new vS(t)}function _S(t){return new gS(t)}function bS(t){this._context=t}function OS(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]}vS.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:dS(this,this._t0,pS(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,dS(this,pS(this,n=fS(this,t,e)),n);break;default:dS(this,this._t0,n=fS(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(gS.prototype=Object.create(vS.prototype)).point=function(t,e){vS.prototype.point.call(this,e,t)},mS.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)}},bS.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=OS(t),i=OS(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 wS=function(t){return new bS(t)};function xS(t,e){this._context=t,this._t=e}xS.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 ES=function(t){return new xS(t,.5)};function TS(t){return new xS(t,0)}function SS(t){return new xS(t,1)}var MS=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)}}(),CS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:TT,curveLinearClosed:CT,curveBasis:LT,curveBasisClosed:kT,curveBasisOpen:IT,curveBundle:jT,curveCardinal:UT,curveCardinalClosed:GT,curveCardinalOpen:zT,curveCatmullRom:aS,curveCatmullRomClosed:uS,curveCatmullRomOpen:lS,curveMonotoneX:yS,curveMonotoneY:_S,curveNatural:wS,curveStep:ES,curveStepAfter:SS,curveStepBefore:TS},e}return MS(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}(Iv),AS=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)}}(),PS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return AS(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!ud.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=ud.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===R.BOTTOM&&e===B.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,Ov(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(it.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return ud.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=ud.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=wt.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=ud.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 ud.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return ud.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(Iv),LS=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)}}(),DS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LS(e,t),e.prototype.zoomIn=function(t,e,n){var r,i,o,a=n||ut;t&&(r=t.x,i=t.y,o=2);var s=Wm.getSVGElementSize(this.services.domUtils.getHolder(),{useClientDimensions:!0}),u=s.width,c=s.height;e.transition().duration(a.duration).ease(a.ease).attr("transform","translate("+u/2+", "+c/2+") scale("+o+") translate("+-r+","+-i+")"),this.services.events.dispatchEvent(it.CanvasZoom.CANVAS_ZOOM_IN,{element:Nm(t)})},e.prototype.zoomOut=function(t,e){var n=e||ut;t.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(it.CanvasZoom.CANVAS_ZOOM_OUT)},e}(Iv),kS=function(){function t(t,e,n){if(this.renderType=L.HTML,this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=ud.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(Nm(this.services.domUtils.getMainContainer()))}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=ud.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(Vm.prefix+"--"+n+"--"+this.type,!0).attr("id",this.id),e&&e.classed(Vm.prefix+"--"+n+"--"+this.type,!1).attr("id",this.id)}},t.prototype.getParent=function(){return this.parent},t.prototype.getComponentContainer=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=ud.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=Wm.appendOrSelect(this.parent,(this.renderType===L.SVG?"svg":"div")+n+"."+Vm.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");if(i){var o=Nm("#"+i),a=o.select("rect");0!==a.size()&&parseFloat(a.attr("height"))>0&&r.attr("clip-path","url(#"+i+")")}}return r.attr("width","100%").attr("height","100%")}return this.parent},t.prototype.getOptions=function(){if(this.configs.options){var t=ud.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),RS=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)}}(),IS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e.renderType=L.HTML,e}return RS(e,t),e.prototype.render=function(){var t=this,e=this.getOptions(),n=ud.getProperty(e,"legend"),r=ud.getProperty(n,"alignment"),i=ud.getProperty(e,"legend","orientation"),o=this.model.getDataGroups(),s=pt.items.status.DISABLED,u=o.some((function(t){return t.status===s})),c=ud.getProperty(n,"order"),l=this.getComponentContainer().classed("center-aligned",r===U.CENTER).classed(i,!0).classed("has-deactivated-items",u).attr("role",a.GROUP).attr("data-name","legend-items");c&&(o=this.sortDataGroups(o,c));var h=l.selectAll("div.legend-item").data(o,(function(t){return t.name})),f=h.enter().append("div").attr("class","legend-item");f.merge(l.selectAll("div.legend-item")).classed("active",(function(t,e){return t.status===pt.items.status.ACTIVE}));var p=ud.getProperty(this.getOptions(),"legend","clickable");l.classed("clickable",p&&o.length>1);var d=pt.checkbox.radius,v=f.append("div").classed("checkbox",!0);v.merge(h.select("div.checkbox")).attr("role",a.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===pt.items.status.ACTIVE})).attr("width",2*d).attr("height",2*d).attr("rx",1).attr("ry",1).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[k.BACKGROUND],dataGroupName:e.name,originalClassName:"checkbox"})})).style("background",(function(e){return e.status===pt.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===pt.items.status.ACTIVE}));v.append("svg").attr("focusable",!1).attr("preserveAspectRatio","xMidYMid meet").attr("xmlns","http://www.w3.org/2000/svg").attr("width","11").attr("height","11").attr("viewBox","0 0 31 28").attr("aria-hidden",!0).style("will-change","transform").append("path").attr("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");var g=f.append("p").merge(h.select("p"));this.truncateLegendText(g);var m=ud.getProperty(e,"legend","additionalItems");if(m&&o.length){var y=this,_=l.selectAll("div.additional-item").data(m);_.exit().remove();var b,O=_.enter().append("div").merge(_).classed("legend-item",!0).classed("additional",!0);O.selectAll("*").remove();var w=1;O.append("svg").classed("icon",!0).each((function(t,e){var n=Nm(this);b&&b==t.type?w++:(b=t.type,w=1),y.addAdditionalItem(n,t,w)}));var x=O.append("p").merge(O.select("p"));this.truncateLegendText(x)}h.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),p&&f.size()>1&&this.addEventListeners()},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.addAdditionalItem=function(t,e,n){var r=pt.area,i=r.width,s=r.height;if(e.type===nt.RADIUS?t.style("width",s+"px").style("height",s+"px"):t.style("width",i+"px").style("height",s+"px"),e.type===nt.RADIUS){var u=pt.radius,c=u.iconData,l=u.fill,h=u.stroke,f=t.attr("fill","none").selectAll("circle").data(c).enter();f.append("circle").classed("radius",!0).attr("role",a.IMG).attr("aria-label","radius").attr("cx",(function(t){return t.cx})).attr("cy",(function(t){return t.cy})).attr("r",(function(t){return t.r})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h)}else if(e.type===nt.LINE){var p=pt.line;t.select("line.line").empty()&&t.append("line").classed("line-"+n,!0).attr("role",a.IMG).attr("aria-label","line").attr("x1",0).attr("y1",p.yPosition).attr("x2",i).attr("y2",p.yPosition).style("stroke",e.stroke?e.stroke:p.stroke).style("stroke-width",p.strokeWidth)}else if(e.type===nt.AREA)t.select("rect.area").empty()&&t.append("rect").classed("area-"+n,!0).attr("role",a.IMG).attr("aria-label","area").attr("width",i).attr("height",s).style("fill",n>3&&!e.fill?pt.area.fill:e.fill).style("stroke",e.stroke);else if(e.type===nt.SIZE){var d=pt.size,v=(c=d.iconData,l=d.fill,h=d.stroke,t.attr("fill","none").attr("role",a.IMG).attr("aria-label","size").selectAll("rect").data(c).enter());v.append("rect").classed("size",!0).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return 0})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h).style("stroke-width",1)}else if(e.type===nt.QUARTILE){c=pt.quartile.iconData;var g=t.selectAll("rect").attr("role",a.IMG).attr("aria-label","quartile").data(c).enter();g.append("rect").attr("class",(function(t,e){return"quartile-"+(0===e?"wrapper":"line")})).attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height}))}else if(e.type===nt.ZOOM){var m=ud.getProperty(o,"legend","zoom"),y=(c=m.iconData,m.color),_=t.attr("role",a.IMG).attr("aria-label","zoom").selectAll("g.icon").data(c).enter();_.append("g").attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).append("polygon").attr("points","7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82").attr("fill",(function(t){return e.color?e.color:y})),_.append("path").attr("d","M9.36,8.67A5.22,5.22,0,0,0,10.59,5.3,5.3,5.3,0,1,0,5.3,10.59,5.22,5.22,0,0,0,8.67,9.36L12.32,13l.68-.68Zm-4.06,1A4.34,4.34,0,1,1,9.63,5.3,4.33,4.33,0,0,1,5.3,9.63Z").attr("fill",(function(t){return e.color?e.color:y}))}},e.prototype.truncateLegendText=function(t){var e=ud.getProperty(this.getOptions(),"legend","truncation"),n=ud.getProperty(e,"type"),r=ud.getProperty(e,"threshold"),i=ud.getProperty(e,"numCharacter");n!==N.NONE?t.html((function(t){return t.name.length>r?ud.truncateLabel(t.name,n,i):t.name})):t.html((function(t){return t.name}))},e.prototype.addEventListeners=function(){var t=this,e=this.getComponentContainer(),n=this.getOptions(),r=ud.getProperty(n,"legend"),i=ud.getProperty(r,"truncation","threshold");e.selectAll("div.legend-item").on("mouseover",(function(e){t.services.events.dispatchEvent(it.Legend.ITEM_HOVER,{hoveredElement:Nm(this)});var n=Nm(this);n.select("div.checkbox").classed("hovered",!0);var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})})).on("mousemove",(function(e){t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(){t.services.events.dispatchEvent(it.Legend.ITEM_CLICK,{clickedElement:Nm(this)});var e=Nm(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=Nm(this);e.select("div.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(it.Tooltip.HIDE),t.services.events.dispatchEvent(it.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("div.legend-item div.checkbox").on("keyup",(function(e,n){!e.key||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.model.toggleDataLabel(n.name))})),e.selectAll("g.additional-item").on("mouseover",(function(e){var n=Nm(this),r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})}))},e}(kS);n("9b04");function NS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jS(t){return HS(t)||US(t)||VS(t)||BS()}function BS(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function VS(t,e){if(t){if("string"===typeof t)return GS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GS(t,e):void 0}}function US(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function HS(t){if(Array.isArray(t))return GS(t)}function GS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function FS(t){return t.reduce((function(t,e){return Array.isArray(e)?t.push.apply(t,jS(FS(e))):t.push(e),t}),[])}function zS(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return FS(e).reduce((function(t,e){return e(t)}),function(){function t(){NS(this,t)}return t}())}function WS(t){return WS="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WS(t)}function qS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ZS(t,e,n){return e&&YS(t.prototype,e),n&&YS(t,n),t}function XS(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&KS(t,e)}function KS(t,e){return KS=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},KS(t,e)}function $S(t){var e=tM();return function(){var n,r=eM(t);if(e){var i=eM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return QS(this,n)}}function QS(t,e){return!e||"object"!==WS(e)&&"function"!==typeof e?JS(t):e}function JS(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function eM(t){return eM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},eM(t)}var nM=function(t){var e=function(t){XS(n,t);var e=$S(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(qS(this,n),r=e.call(this,t,i),r.children=[],!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");return r.element=t,r.options=Object.assign(Object.create(r.constructor.options),i),r.constructor.components.set(r.element,JS(r)),r}return ZS(n,[{key:"release",value:function(){for(var t=this.children.pop();t;t=this.children.pop())t.release();return this.constructor.components.delete(this.element),null}}],[{key:"create",value:function(t,e){return this.components.get(t)||new this(t,e)}}]),n}(t);return e};function rM(t,e){var n=t.target,r=t.currentTarget;if("function"===typeof n.matches){if(n.matches(e))return n;if(n.matches("".concat(e," *"))){var i=n.closest(e);if((r.nodeType===Node.DOCUMENT_NODE?r.documentElement:r).contains(i))return i}}}function iM(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.addEventListener.apply(t,n),{release:function(){return t.removeEventListener.apply(t,n),null}}}function oM(t){return oM="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oM(t)}function aM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uM(t,e,n){return e&&sM(t.prototype,e),n&&sM(t,n),t}function cM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&lM(t,e)}function lM(t,e){return lM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},lM(t,e)}function hM(t){var e=dM();return function(){var n,r=vM(t);if(e){var i=vM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fM(this,n)}}function fM(t,e){return!e||"object"!==oM(e)&&"function"!==typeof e?pM(t):e}function pM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function vM(t){return vM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},vM(t)}var gM=function(t){var e=function(t){cM(n,t);var e=hM(n);function n(){return aM(this,n),e.apply(this,arguments)}return uM(n,null,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign(Object.create(this.options),n);if(!e||e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)throw new TypeError("DOM document or DOM element should be given to search for and initialize this widget.");if(e.nodeType!==Node.ELEMENT_NODE||!e.matches(r.selectorInit)){var i=r.initEventNames.map((function(i){return iM(e,i,(function(e){var i=rM(e,"[".concat(r.attribInitTarget,"]"));if(i){e.delegateTarget=i;var o=i.ownerDocument.querySelectorAll(i.getAttribute(r.attribInitTarget));if(o.length>1)throw new Error("Target widget must be unique.");if(1===o.length){"A"===i.tagName&&e.preventDefault();var a=t.create(o[0],n);"function"===typeof a.createdByLauncher&&a.createdByLauncher(e)}}}))}));return{release:function(){for(var t=i.pop();t;t=i.pop())t.release()}}}return this.create(e,n),""}}]),n.forLazyInit=!0,n}(t);return e};function mM(t){return mM="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mM(t)}function yM(t){return wM(t)||OM(t)||bM(t)||_M()}function _M(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bM(t,e){if(t){if("string"===typeof t)return xM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xM(t,e):void 0}}function OM(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function wM(t){if(Array.isArray(t))return xM(t)}function xM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function EM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function SM(t,e,n){return e&&TM(t.prototype,e),n&&TM(t,n),t}function MM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&CM(t,e)}function CM(t,e){return CM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},CM(t,e)}function AM(t){var e=DM();return function(){var n,r=kM(t);if(e){var i=kM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return PM(this,n)}}function PM(t,e){return!e||"object"!==mM(e)&&"function"!==typeof e?LM(t):e}function LM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function kM(t){return kM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},kM(t)}var RM=function(t){var e=function(t){MM(n,t);var e=AM(n);function n(){return EM(this,n),e.apply(this,arguments)}return SM(n,[{key:"_changeState",value:function(){throw new Error("_changeState() should be overriden to perform actual change in state.")}},{key:"changeState",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i="string"===typeof n[0]?n.shift():void 0,o=Object(n[0])===n[0]&&"function"!==typeof n[0]?n.shift():void 0,a="function"===typeof n[0]?n.shift():void 0;if("function"!==typeof this.shouldStateBeChanged||this.shouldStateBeChanged(i,o)){var s={group:o&&o.group,state:i},u=[s.group,i].filter(Boolean).join("-").split("-").map((function(t){return t[0].toUpperCase()+t.substr(1)})).join(""),c=new CustomEvent(this.options["eventBefore".concat(u)],{bubbles:!0,cancelable:!0,detail:o}),l=o&&o.delegatorNode||this.element,h=!l.dispatchEvent(c);if(h){if(a){var f=new Error("Changing state (".concat(JSON.stringify(s),") has been canceled."));f.canceled=!0,a(f)}}else{var p=[i,o].filter(Boolean);this._changeState.apply(this,yM(p).concat([function(){l.dispatchEvent(new CustomEvent(t.options["eventAfter".concat(u)],{bubbles:!0,cancelable:!0,detail:o})),a&&a()}]))}}else a&&a(null,!0)}}]),n}(t);return e};function IM(t){if(!t||"function"===typeof t)return{launchingElement:null,launchingEvent:null};var e=t.delegateTarget||t.currentTarget||t,n=t.currentTarget&&t;if(e&&!e.nodeType)throw new TypeError("DOM Node should be given for launching element.");if(n&&!n.type)throw new TypeError("DOM event should be given for launching event.");return{launchingElement:e,launchingEvent:n}}function NM(t){return NM="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NM(t)}function jM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function VM(t,e,n){return e&&BM(t.prototype,e),n&&BM(t,n),t}function UM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&HM(t,e)}function HM(t,e){return HM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},HM(t,e)}function GM(t){var e=WM();return function(){var n,r=qM(t);if(e){var i=qM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return FM(this,n)}}function FM(t,e){return!e||"object"!==NM(e)&&"function"!==typeof e?zM(t):e}function zM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function qM(t){return qM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},qM(t)}function YM(t){var e=function(t){UM(n,t);var e=GM(n);function n(){return jM(this,n),e.apply(this,arguments)}return VM(n,[{key:"show",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("shown",IM(t),e)}},{key:"hide",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("hidden",IM(t),e)}}]),n}(t);return e}var ZM=[RM,YM],XM=ZM;function KM(t){return KM="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},KM(t)}function $M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function JM(t,e,n){return e&&QM(t.prototype,e),n&&QM(t,n),t}function tC(t,e,n){return tC="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=eC(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},tC(t,e,n||t)}function eC(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=uC(t),null===t)break;return t}function nC(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rC(t,e)}function rC(t,e){return rC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},rC(t,e)}function iC(t){var e=sC();return function(){var n,r=uC(t);if(e){var i=uC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oC(this,n)}}function oC(t,e){return!e||"object"!==KM(e)&&"function"!==typeof e?aC(t):e}function aC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sC(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function uC(t){return uC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},uC(t)}var cC=function(t){var e=function(t){nC(n,t);var e=iC(n);function n(){var t;$M(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),t.handles=new Set,t}return JM(n,[{key:"manage",value:function(t){return this.handles.add(t),t}},{key:"unmanage",value:function(t){return this.handles.delete(t),t}},{key:"release",value:function(){var t=this;return this.handles.forEach((function(e){e.release(),t.handles.delete(e)})),tC(uC(n.prototype),"release",this).call(this)}}]),n}(t);return e};function lC(t){return lC="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lC(t)}function hC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pC(t,e,n){return e&&fC(t.prototype,e),n&&fC(t,n),t}function dC(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vC(t,e)}function vC(t,e){return vC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},vC(t,e)}function gC(t){var e=_C();return function(){var n,r=bC(t);if(e){var i=bC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mC(this,n)}}function mC(t,e){return!e||"object"!==lC(e)&&"function"!==typeof e?yC(t):e}function yC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function bC(t){return bC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},bC(t)}var OC,wC,xC=function(t){dC(n,t);var e=gC(n);function n(t,r){var i;return hC(this,n),i=e.call(this,t,r),i._handleFocusinListener=void 0,i._handleKeydownListener=void 0,i._handleFocusin=function(t){var e=i.element.querySelector(i.options.selectorModalContainer)||i.element;i.element.classList.contains(i.options.classVisible)&&!e.contains(t.target)&&i.options.selectorsFloatingMenus.every((function(e){return!rM(t,e)}))&&i.element.querySelector(Vm.selectorTabbable).focus()},i._hookCloseActions(),i}return pC(n,[{key:"createdByLauncher",value:function(t){this.show(t)}},{key:"shouldStateBeChanged",value:function(t){return"shown"===t?!this.element.classList.contains(this.options.classVisible):this.element.classList.contains(this.options.classVisible)}},{key:"_changeState",value:function(t,e,n){var r,i=this,o=function(){if(r&&(r=i.unmanage(r).release()),"shown"===t&&i.element.offsetWidth>0&&i.element.offsetHeight>0){i.previouslyFocusedNode=i.element.ownerDocument.activeElement;var e=i.element.querySelector(i.options.selectorPrimaryFocus)||i.element.querySelector(Vm.selectorTabbable);e.focus()}n()};if(this._handleFocusinListener&&(this._handleFocusinListener=this.unmanage(this._handleFocusinListener).release()),"shown"===t){var a="onfocusin"in this.element.ownerDocument.defaultView,s=a?"focusin":"focus";this._handleFocusinListener=this.manage(iM(this.element.ownerDocument,s,this._handleFocusin,!a))}"hidden"===t?(this.element.classList.toggle(this.options.classVisible,!1),this.element.ownerDocument.body.classList.toggle(this.options.classBody,!1),(this.options.selectorFocusOnClose||this.previouslyFocusedNode)&&(this.element.ownerDocument.querySelector(this.options.selectorFocusOnClose)||this.previouslyFocusedNode).focus()):"shown"===t&&(this.element.classList.toggle(this.options.classVisible,!0),this.element.ownerDocument.body.classList.toggle(this.options.classBody,!0)),r=this.manage(iM(this.element,"transitionend",o))}},{key:"_hookCloseActions",value:function(){var t=this;this.manage(iM(this.element,"click",(function(e){var n=rM(e,t.options.selectorModalClose);n&&(e.delegateTarget=n),(n||e.target===t.element)&&t.hide(e)}))),this._handleKeydownListener&&(this._handleKeydownListener=this.unmanage(this._handleKeydownListener).release()),this._handleKeydownListener=this.manage(iM(this.element.ownerDocument.body,"keydown",(function(e){27===e.which&&t.shouldStateBeChanged("hidden")&&(e.stopPropagation(),t.hide(e))})))}}],[{key:"options",get:function(){var t=Vm.prefix;return{selectorInit:"[data-modal]",selectorModalClose:"[data-modal-close]",selectorPrimaryFocus:"[data-modal-primary-focus]",selectorsFloatingMenus:[".".concat(t,"--overflow-menu-options"),".".concat(t,"--tooltip"),".flatpickr-calendar"],selectorModalContainer:".".concat(t,"--modal-container"),classVisible:"is-visible",classBody:"".concat(t,"--body--with-modal-open"),attribInitTarget:"data-modal-target",initEventNames:["click"],eventBeforeShown:"modal-beingshown",eventAfterShown:"modal-shown",eventBeforeHidden:"modal-beinghidden",eventAfterHidden:"modal-hidden"}}}]),n.components=new WeakMap,n}(zS(nM,gM,XM,cC)),EC=xC,TC=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)}}(),SC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="modal",i.isEventListenerAdded=!1,i.handleShowModal=function(){i.modal.html(i.getModalHTML()),i.modal.select("div.bx--modal-footer button.bx--btn").on("click",(function(){return i.model.exportToCSV()}));var t=EC.create(i.modal.node());t.show()},i.handleHideModal=function(){},i.init(),i}return TC(e,t),e.prototype.addEventListeners=function(){this.services.events.addEventListener(it.Modal.SHOW,this.handleShowModal),this.services.events.addEventListener(it.Modal.HIDE,this.handleHideModal)},e.prototype.removeEventListeners=function(){this.services.events.removeEventListener(it.Modal.SHOW,this.handleShowModal),this.services.events.removeEventListener(it.Modal.HIDE,this.handleHideModal)},e.prototype.getModalHTML=function(){var t=this.model.getOptions(),e=ud.getProperty(t,"style","prefix"),n=this.model.getTabularDataArray();return'\n\t\t<div class="bx--modal-container">\n\t\t\t<div class="bx--modal-header">\n\t\t\t\t<p class="bx--modal-header__label bx--type-delta">Tabular representation</p>\n\t\t\t\t<p class="bx--modal-header__heading bx--type-beta">'+t.title+'</p>\n\t\t\t\t<button class="bx--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>\n\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="bx--modal-close__icon">\n\t\t\t\t\t\t<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path>\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<div class="bx--modal-content"><table class="bx--data-table bx--data-table--no-border">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t'+gl(n,0).map((function(t){return'<th scope="col">\n\t\t\t\t\t\t\t\t<div class="bx--table-header-label">'+t+"</div>\n\t\t\t\t\t\t\t</th>"})).join("")+"\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>"+n.slice(1).map((function(t){return"\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t"+t.map((function(t){return"<td>"+t+"</td>"})).join("")+"\n\t\t\t\t\t\t\t</tr>"})).join("")+'\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t\t<div class="bx--modal-footer">\n\t\t\t <div class="'+Vm.prefix+"--"+e+'-modal-footer-spacer"></div>\n\t\t\t <button class="bx--btn bx--btn--primary" type="button" data-modal-primary-focus>Download as CSV</button>\n\t\t\t</div>\n\t\t</div>'},e.prototype.render=function(){var t=this.model.getOptions();if(!this.isEventListenerAdded){var e=Nm(this.services.domUtils.getHolder()),n=ud.getProperty(t,"style","prefix");this.modal=Wm.appendOrSelect(e,"div."+Vm.prefix+"--"+n+"--modal"),this.addEventListeners(),this.isEventListenerAdded=!0,this.modal.attr("data-modal",!0).attr("class","bx--modal").attr("role","dialog").attr("aria-modal",!0).attr("aria-labelledby","modal-5ppouesvfhc-label").attr("aria-describedby","modal-5ppouesvfhc-heading").attr("tabindex",-1)}},e.prototype.destroy=function(){this.removeEventListeners(),this.isEventListenerAdded=!1},e}(kS);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(wC||(wC={}));var MC=(OC={},OC[wC.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)}},OC[wC.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)}},OC[wC.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)}},OC[wC.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)}},OC),CC="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},AC=function(){function t(t){void 0===t&&(t={}),this.positions=MC,this.positions=Object.assign({},MC,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:CC.innerHeight-CC.scrollY,height:CC.innerWidth-CC.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}(),PC=(new AC,AC);function LC(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=jE(t);return!isNaN(e)}var DC={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 kC(t,e,n){var r;return n=n||{},r="string"===typeof DC[t]?DC[t]:1===e?DC[t].one:DC[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function RC(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 IC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BC={date:RC({formats:IC,defaultWidth:"full"}),time:RC({formats:NC,defaultWidth:"full"}),dateTime:RC({formats:jC,defaultWidth:"full"})},VC=BC,UC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function HC(t,e,n,r){return UC[t]}function GC(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 FC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WC={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"]},qC={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"]},YC={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"}},ZC={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 XC(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 KC={ordinalNumber:XC,era:GC({values:FC,defaultWidth:"wide"}),quarter:GC({values:zC,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:GC({values:WC,defaultWidth:"wide"}),day:GC({values:qC,defaultWidth:"wide"}),dayPeriod:GC({values:YC,defaultWidth:"wide",formattingValues:ZC,defaultFormattingWidth:"wide"})},$C=KC;function QC(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 JC(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)?eA(l,(function(t){return t.test(r)})):tA(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 tA(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function eA(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var nA=/^(\d+)(th|st|nd|rd)?/i,rA=/\d+/i,iA={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},oA={any:[/^b/i,/^(a|c)/i]},aA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sA={any:[/1/i,/2/i,/3/i,/4/i]},uA={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},cA={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]},lA={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},hA={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]},fA={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},pA={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}},dA={ordinalNumber:QC({matchPattern:nA,parsePattern:rA,valueCallback:function(t){return parseInt(t,10)}}),era:JC({matchPatterns:iA,defaultMatchWidth:"wide",parsePatterns:oA,defaultParseWidth:"any"}),quarter:JC({matchPatterns:aA,defaultMatchWidth:"wide",parsePatterns:sA,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:JC({matchPatterns:uA,defaultMatchWidth:"wide",parsePatterns:cA,defaultParseWidth:"any"}),day:JC({matchPatterns:lA,defaultMatchWidth:"wide",parsePatterns:hA,defaultParseWidth:"any"}),dayPeriod:JC({matchPatterns:fA,defaultMatchWidth:"any",parsePatterns:pA,defaultParseWidth:"any"})},vA=dA,gA={code:"en-US",formatDistance:kC,formatLong:VC,formatRelative:HC,localize:$C,match:vA,options:{weekStartsOn:0,firstWeekContainsDate:1}},mA=gA;function yA(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HE(e);return aT(t,-n)}function _A(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var bA={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return _A("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):_A(n+1,2)},d:function(t,e){return _A(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 _A(t.getUTCHours()%12||12,e.length)},H:function(t,e){return _A(t.getUTCHours(),e.length)},m:function(t,e){return _A(t.getUTCMinutes(),e.length)},s:function(t,e){return _A(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 _A(i,e.length)}},OA=bA,wA=864e5;function xA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=jE(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/wA)+1}function EA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=jE(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 TA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=jE(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=EA(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=EA(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function SA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=TA(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=EA(n);return r}var MA=6048e5;function CA(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=jE(t),n=EA(e).getTime()-SA(e).getTime();return Math.round(n/MA)+1}function AA(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:HE(i),a=null==n.weekStartsOn?o:HE(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=jE(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 PA(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=jE(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:HE(a),u=null==i.firstWeekContainsDate?s:HE(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=AA(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=AA(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function LA(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:HE(i),a=null==n.firstWeekContainsDate?o:HE(n.firstWeekContainsDate),s=PA(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=AA(u,e);return c}var DA=6048e5;function kA(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=jE(t),r=AA(n,e).getTime()-LA(n,e).getTime();return Math.round(r/DA)+1}var RA={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},IA={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 OA.y(t,e)},Y:function(t,e,n,r){var i=PA(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return _A(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):_A(o,e.length)},R:function(t,e){var n=TA(t);return _A(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return _A(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 _A(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 _A(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 OA.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 _A(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=kA(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):_A(i,e.length)},I:function(t,e,n){var r=CA(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):_A(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):OA.d(t,e)},D:function(t,e,n){var r=xA(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):_A(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 _A(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 _A(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 _A(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?RA.noon:0===i?RA.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?RA.evening:i>=12?RA.afternoon:i>=4?RA.morning:RA.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 OA.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):OA.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):_A(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):_A(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):OA.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):OA.s(t,e)},S:function(t,e){return OA.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 jA(o);case"XXXX":case"XX":return BA(o);case"XXXXX":case"XXX":default:return BA(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return jA(o);case"xxxx":case"xx":return BA(o);case"xxxxx":case"xxx":default:return BA(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"+NA(o,":");case"OOOO":default:return"GMT"+BA(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"+NA(o,":");case"zzzz":default:return"GMT"+BA(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return _A(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return _A(o,e.length)}};function NA(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+_A(o,2)}function jA(t,e){if(t%60===0){var n=t>0?"-":"+";return n+_A(Math.abs(t)/60,2)}return BA(t,e)}function BA(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=_A(Math.floor(i/60),2),a=_A(i%60,2);return r+o+n+a}var VA=IA;function UA(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 HA(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 GA(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return UA(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}}",UA(i,e)).replace("{{time}}",HA(o,e))}var FA={p:HA,P:GA},zA=FA,WA=["D","DD"],qA=["YY","YYYY"];function YA(t){return-1!==WA.indexOf(t)}function ZA(t){return-1!==qA.indexOf(t)}function XA(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 KA=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QA=/^'([^]*?)'?$/,JA=/''/g,tP=/[a-zA-Z]/;function eP(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||mA,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:HE(a),u=null==i.firstWeekContainsDate?s:HE(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:HE(c),h=null==i.weekStartsOn?l:HE(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=jE(t);if(!LC(f))throw new RangeError("Invalid time value");var p=KE(f),d=yA(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match($A).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=zA[e];return n(t,o.formatLong,v)}return t})).join("").match(KA).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return nP(t);var n=VA[e];if(n)return!i.useAdditionalWeekYearTokens&&ZA(t)&&XA(t),!i.useAdditionalDayOfYearTokens&&YA(t)&&XA(t),n(d,t,o.localize,v);if(e.match(tP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function nP(t){return t.match(QA)[1].replace(JA,"'")}function rP(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}var iP=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function oP(t,e,n,r,i){var o=0===e,a=2===Number(eP(new Date(t),"c")),s=1===Number(eP(new Date(t),"q")),u=0!==e?n[e-1]:null;switch(r){case"15seconds":return o||hP(t)||fP(t,u)||pP(t);case"minute":return o||hP(t)||fP(t,u)||pP(t);case"30minutes":return o||hP(t)||fP(t,u)||pP(t);case"hourly":return o||hP(t)||fP(t,u)||pP(t);case"daily":return i?o||a||pP(t):o||fP(t,u)||pP(t);case"monthly":return o||pP(t);case"quarterly":return o||s;case"yearly":return!1;default:throw new Error(r+" is not a valid time interval.")}}function aP(t,e,n,r,i){var o=i.showDayName,a="daily"===r&&o?"weekly":r,s=new Date(t),u=ud.getProperty(i,"timeIntervalFormats")[a],c=ud.getProperty(u,"primary"),l=ud.getProperty(u,"secondary"),h=oP(t,e,n,r,o)?c:l,f=i.localeObject;return eP(s,h,{locale:f})}function sP(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function uP(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function cP(t){var e=iP.reduce((function(e,n,r){n[0];var i=n[1],o=iP[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return iP[e][0]}function lP(t){if(1===t.length)return"15seconds";var e=uP(t),n=rP(e);return cP(n)}function hP(t){var e=sP(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function fP(t,e){var n=sP(t).M,r=sP(e).M;return n!==r}function pP(t){var e=sP(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 dP=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)}}(),vP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="threshold",r.renderType=L.SVG,r.positionService=new PC,r}return dP(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=ud.getProperty(this.getOptions(),"axes"),r=[];Object.keys(n).forEach((function(t){if(Object.values(R).includes(t)){var e=n[t];e.thresholds&&e.thresholds.length>0&&r.push({axisPosition:t,thresholds:e.thresholds})}}));var i=this.getComponentContainer({withinChartClip:!0}),o=i.selectAll("g.axis-thresholds").data(r,(function(t){return t.axisPosition}));o.exit().attr("opacity",0).remove();var a=o.enter().append("g"),s=a.merge(o);s.attr("class",(function(t){return"axis-thresholds "+t.axisPosition}));var u=s.selectAll("g.threshold-group").data((function(t){return t.thresholds.map((function(e){return e.axisPosition=t.axisPosition,e}))}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g");c.append("line").attr("class","threshold-line"),c.append("rect").attr("class","threshold-hoverable-area");var l=c.merge(u);l.attr("class","threshold-group");var h=this;s.each((function(e){var n=e.axisPosition,r=h.services.cartesianScales.getScaleByPosition(n),i=h.services.cartesianScales.getScaleTypeByPosition(n),o=h.services.cartesianScales.getMainXScale(),a=h.services.cartesianScales.getMainYScale(),s=i===B.LABELS,u=o.range(),c=u[0],l=u[1],f=a.range(),p=f[0],d=f[1],v=h.services.cartesianScales,g=v.getOrientation(),m=function(t){return v.getDomainValue(t)},y=function(t){return v.getRangeValue(t)},_=ud.flipDomainAndRangeBasedOnOrientation(m,y,g),b=_[0],O=_[1],w=Nm(this);n===R.TOP||n===R.BOTTOM?(w.selectAll("line.threshold-line").transition().call((function(e){return h.services.transitions.setupTransition({transition:e,name:"threshold-line-update",animate:t})})).attr("y1",d).attr("y2",p).attr("x1",(function(t){var e=t.value;return b(e)+(s?r.step()/2:0)})).attr("x2",(function(t){var e=t.value;return b(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),w.selectAll("rect.threshold-hoverable-area").attr("x",0).attr("y",(function(t){var e=t.value;return-b(e)})).attr("width",Math.abs(p-d)).classed("rotate",!0)):(w.selectAll("line.threshold-line").transition().call((function(e){return h.services.transitions.setupTransition({transition:e,name:"threshold-line-update",animate:t})})).attr("x1",c).attr("x2",l).attr("y1",(function(t){var e=t.value;return O(e)+(s?r.step()/2:0)})).attr("y2",(function(t){var e=t.value;return O(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),w.selectAll("rect.threshold-hoverable-area").attr("x",c).attr("y",(function(t){var e=t.value;return O(e)})).attr("width",Math.abs(l-c)).classed("rotate",!1))})),this.services.events.addEventListener(it.Threshold.SHOW,(function(t){e.setThresholdLabelPosition(t.detail),e.label.classed("hidden",!1)})),this.services.events.addEventListener(it.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(t){var e=t.value,n=t.axisPosition,r=this.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===B.TIME){var o=[R.LEFT,R.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=ud.getProperty(r,"timeScale"),l=lP(u.ticks());return aP(e,0,u.ticks(),l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=Nm(this.services.domUtils.getHolder()),e=ud.getProperty(this.getOptions(),"style","prefix");this.label=Wm.appendOrSelect(t,"div."+Vm.prefix+"--"+e+"--threshold--label").classed("hidden",!0)},e.prototype.setThresholdLabelPosition=function(t){var e=t.event,n=t.datum,r=this.services.domUtils.getHolder(),i=hd(e,r),o=n.valueFormatter?n.valueFormatter(n.value):this.getFormattedValue(n);this.label.html((n.label||"Threshold")+": "+o).style("background-color",n.fillColor);var a=this.label.node(),s=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},a,[wC.RIGHT,wC.LEFT,wC.TOP,wC.BOTTOM],(function(){return{width:r.offsetWidth,height:r.offsetHeight}})),u=this.positionService.findPositionAt({left:i[0],top:i[1]},a,s);this.positionService.setElement(a,u)},e.prototype.addEventListeners=function(){var t=this,e=this.getComponentContainer({withinChartClip:!0});e.selectAll("rect.threshold-hoverable-area").on("mouseover mousemove",(function(e){Nm(this.parentNode).select("line.threshold-line").classed("active",!0),t.services.events.dispatchEvent(it.Threshold.SHOW,{event:e,hoveredElement:Nm(this),datum:Nm(this).datum()})})).on("mouseout",(function(e){Nm(this.parentNode).select("line.threshold-line").classed("active",!1),t.services.events.dispatchEvent(it.Threshold.HIDE,{event:e,hoveredElement:Nm(this),datum:Nm(this).datum()})}))},e}(kS),gP=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)}}(),mP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e.renderType=L.HTML,e}return gP(e,t),e.prototype.render=function(){var t=this.getComponentContainer(),e=t.selectAll("p.title").data([this.getOptions().title]);if(e.enter().append("p").classed("title",!0).merge(e).attr("x",0).attr("y","1em").html((function(t){return t})),e.node()&&e.node().offsetWidth<e.node().scrollWidth){var n=this;e.on("mouseover",(function(t){n.services.events.dispatchEvent(it.Tooltip.SHOW,{event:t,hoveredElement:e,content:e.text()})})).on("mousemove",(function(t){n.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){n.services.events.dispatchEvent(it.Tooltip.HIDE)}))}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=Wm.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(e){a.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:t,content:n})})).on("mousemove",(function(t){a.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){a.services.events.dispatchEvent(it.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return Wm.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}(kS),yP=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)}}(),_P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e.renderType=L.SVG,e}return yP(e,t),e.prototype.render=function(){var t=this.model.getDisplayData(),e=this.getOptions(),n=this.getComponentContainer().attr("width","100%").attr("height","100%"),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=Wm.appendOrSelect(n,"text.meter-title");o>0&&a.node().getComputedTextLength()>o&&this.truncateTitle(a,o)},e.prototype.displayStatus=function(){var t=this,e=this.getComponentContainer(),n=Wm.getHTMLElementSize(this.services.domUtils.getMainContainer()),r=n.width?n.width:this.parent.node().getAttribute("width"),i=this.model.getStatus(),o=vt.status.indicatorSize/2,a=Wm.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.getComponentContainer(),n=Wm.appendOrSelect(e,"text.meter-title"),r=!0===ud.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=vt.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=Wm.appendOrSelect(this.parent,"tspan"),i=vt.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=Wm.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=Wm.getHTMLElementSize(this.services.domUtils.getMainContainer()),e=t.width?t.width:this.parent.node().getAttribute("width"),n=Wm.appendOrSelect(this.parent,"text.percent-value"),r=vt.statusBar.paddingRight,i=n.node().getComputedTextLength(),o=Wm.appendOrSelect(this.parent,"g.status-indicator").node(),a=Wm.getSVGElementSize(o,{useBBox:!0}).width+vt.status.paddingLeft;return e-i-r-a},e.prototype.getStatusIconPathString=function(t){switch(t){case $.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 $.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case $.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}(mP),bP=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)}}(),OP=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.renderType=L.HTML,i.isEventListenerAdded=!1,i.positionService=new PC,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=Wm.appendOrSelect(i.tooltip,"div.content-box");if(ud.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 bP(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(it.Tooltip.MOVE,(function(e){!1===t.tooltip.classed("hidden")&&t.positionTooltip(e)})),this.services.events.addEventListener(it.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(it.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(it.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(it.Tooltip.MOVE,null),this.services.events.removeEventListener(it.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(it.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(it.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=ud.getProperty(n,"tooltip","truncation","type"),i=ud.getProperty(n,"tooltip","truncation","threshold"),o=ud.getProperty(n,"tooltip","truncation","numCharacter");return r!==N.NONE?t.map((function(t){var n=t.labelIcon?12:0;return t.value=t.value?e.valueFormatter(t.value,t.label):t.value,t.label&&t.label.length+n>i&&(t.label=ud.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=ud.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<div class="label">\n\t\t\t\t\t\t\t\t<p>'+(t.label||"")+"</p>\n\t\t\t\t\t\t\t\t"+(t.labelIcon?'<span class="label-icon"/>'+t.labelIcon+"</span>":"")+"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t"+(void 0===t.value||null===t.value?"":'<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,e){var n=this.getOptions(),r=ud.getProperty(n,"tooltip","valueFormatter");return r?r(t,e):"function"===typeof t.getTime?eP(t,"MMM d, yyyy"):t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=ud.getProperty(t,"tooltip","enabled");if(e){var n=Nm(this.services.domUtils.getHolder()),r=ud.getProperty(t,"style","prefix");this.tooltip=Wm.appendOrSelect(n,"div."+Vm.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=ud.getProperty(i,"zoomBar","top","enabled"),a=ud.getProperty(t,"detail","mousePosition");if(a){var s=ud.getProperty(i,"zoomBar","top","type"),u=wt.height[s];o&&(a[1]+=u+wt.spacerHeight)}else a=hd(ud.getProperty(t,"detail","event"),n);var c,l=n.offsetWidth,h=n.offsetHeight;c=a[0]/l>.9?wC.LEFT:a[0]/l<.1?wC.RIGHT:this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[wC.RIGHT,wC.LEFT,wC.TOP,wC.BOTTOM],(function(){return{width:l,height:h}}));var f=_t.horizontalOffset;c===wC.LEFT&&(f*=-1),e=this.positionService.findPositionAt({left:a[0]+f,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(kS),wP=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)}}(),xP=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},EP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wP(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,i=this.getOptions(),o=this.services.cartesianScales,a=o.getDomainIdentifier(),s=i.data.groupMapsTo,u=o.getDomainLabel(),c=o.getRangeLabel(),l=n[0][a];if(1===n.length){var h=n[0],f=o.getRangeIdentifier(h),p=h[f];r=xP([{label:u,value:l}],Array.isArray(p)&&2===p.length?[{label:"Start",value:p[0]},{label:"End",value:p[1]}]:[{label:c,value:h[f]}]),t.detail.additionalItems&&t.detail.additionalItems.forEach((function(t){return r.push({label:t.label,value:t.value})})),r.push({label:i.tooltip.groupLabel,value:h[s],color:this.model.getFillColor(h[s]),class:this.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:h[s]})})}else if(n.length>1){r=[{label:u,value:l}],r=r.concat(n.map((function(t){return{label:t[s],value:t[o.getRangeIdentifier(t)],color:e.model.getFillColor(t[s]),class:e.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:t[s]})}})).sort((function(t,e){return e.value-t.value})));var d=o.isDualAxes();if(!d&&!0===ud.getProperty(i,"tooltip","showTotal")){var v=o.getRangeIdentifier();r.push({label:gl(i,"tooltip.totalLabel")||"Total",value:n.reduce((function(t,e){return t+e[v]}),0),bold:!0})}}return r},e}(OP),TP=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)}}(),SP=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}TP(e,t),e.prototype.init=function(){var t=this,e=Nm(this.services.domUtils.getHolder()),n=ud.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=Wm.appendOrSelect(e,"div."+Vm.prefix+"--"+n+"--tooltip");var r=Wm.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener(it.Tooltip.SHOW,(function(e){if(ud.getProperty(t.model.getOptions(),"tooltip","datapoint","enabled")){var n=e.detail.data;console.log("data1",n);var i=n.multidata,o=e.detail.hoveredElement.node(),a=i.length>1?t.getMultilineTooltipHTML(n):t.getTooltipHTML(n);ud.getProperty(t.model.getOptions(),"tooltip","customHTML")?r.html(t.model.getOptions().tooltip.customHTML(n,a)):r.html(a);var s=t.getTooltipPosition(o,n);t.positionTooltip(e.detail.multidata?void 0:s)}t.tooltip.classed("hidden",!1)})),this.services.events.addEventListener(it.Tooltip.HIDE,(function(){t.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipPosition=function(t,e){var n=e["group-id"],r=document.querySelectorAll('[group-id="'+n+'"]'),i=rP(Array.from(r).map((function(t){return t.getBoundingClientRect().top}))),o=Nm(this.services.domUtils.getHolder()).node().getBoundingClientRect(),a=this.model.getOptions().tooltip.datapoint.verticalOffset,s=t.getBoundingClientRect(),u={left:s.left-o.left+s.width/2,top:i-o.top-a};return{placement:"top",position:u}},e.prototype.getTooltipHTML=function(t){var e=t.detail.data,n=this.model.getOptions(),r=e.bin;console.log("data",e);var i=e.multidata[0].value,o=this.services.cartesianScales,a=ud.getProperty(n,"axes",o.getDomainAxisPosition()).title,s=ud.getProperty(n,"axes",o.getRangeAxisPosition()).title,u=ud.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(i):i.toLocaleString("en");return"\n\t\t<ul class='multi-tooltip'>\n\t\t\t<li>\n\t\t\t\t<div class='title-val'>\n\t\t\t\t\t<p class='label'>"+a+"</p>\n\t\t\t\t\t<p class='value'>"+r.x0+"-"+(r.x1-1)+"</p>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<div class='title-val'>\n\t\t\t\t\t<p class='label'>"+s+"</p>\n\t\t\t\t\t<p class='value'>"+u+"</p>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t</ul>\n\t\t"},e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=t.multidata,r=this.model.getOptions();n.reverse(),this.services.cartesianScales.getOrientation()===j.VERTICAL&&n.reverse();var i=n.reduce((function(t,e){return t+e.value}),0);i=ud.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(i):i.toLocaleString("en");var o=this.model.getOptions().data.groupMapsTo,a=t.bin,s=this.services.cartesianScales,u=ud.getProperty(r,"axes",s.getDomainAxisPosition()).title,c="<li>\n\t\t\t<div class='title-val'>\n\t\t\t\t<p class='label'>"+u+"</p>\n\t\t\t\t<p class='value'>"+a.x0+"-"+(a.x1-1)+"</p>\n\t\t\t</div>\n\t\t</li>",l="<li>\n\t\t\t<div class='total-val'>\n\t\t\t\t<p class='label'>Total</p>\n\t\t\t\t<p class='value'>"+i+"</p>\n\t\t\t</div>\n\t\t</li>";return"<ul class='multi-tooltip'>"+c+n.map((function(t){var n=ud.getProperty(e.model.getOptions(),"tooltip","valueFormatter")?e.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en"),r=e.model.getStrokeColor(t[o]);return'\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t\t<a style="background-color:'+r+'" class="tooltip-color"></a>\n\t\t\t\t\t\t\t<p class="label">'+t[o]+'</p>\n\t\t\t\t\t\t\t<p class="value">'+n+"</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>"})).join("")+l+"</ul>"}}(EP),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)}}()),MP=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.renderType=L.SVG,i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return SP(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=Wm.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=Wm.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}(kS),CP=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)}}(),AP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="canvas-chart-clip",e.chartClipId="canvas-chart-clip-id-"+Math.floor(99999999999*Math.random()),e}return CP(e,t),e.prototype.createClipPath=function(){var t=this.parent,e=Wm.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height;this.chartClipPath=Wm.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var i=Wm.appendOrSelect(this.chartClipPath,"rect."+this.type);i.attr("x",0).attr("y",0).attr("width",n).attr("height",r),this.chartClipPath.merge(i).lower()},e}(MP);const PP=Math.PI,LP=2*PP,DP=1e-6,kP=LP-DP;function RP(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function IP(){return new RP}RP.prototype=IP.prototype={constructor:RP,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>DP)if(Math.abs(l*s-u*c)>DP&&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((PP-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>DP&&(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)>DP||Math.abs(this._y1-c)>DP)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%LP+LP),h>kP?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>DP&&(this._+="A"+n+","+n+",0,"+ +(h>=PP)+","+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 NP=IP;function jP(t){return t[0]}function BP(t){return t[1]}var VP=function(t,e){var n=rv(!0),r=null,i=TT,o=null;function a(a){var s,u,c,l=(a=nv(a)).length,h=!1;for(null==r&&(o=i(c=NP())),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 t="function"===typeof t?t:void 0===t?jP:rv(t),e="function"===typeof e?e:void 0===e?BP:rv(e),a.x=function(e){return arguments.length?(t="function"===typeof e?e:rv(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:rv(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:rv(!!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},UP=function(t,e,n){var r=null,i=rv(!0),o=null,a=TT,s=null;function u(u){var c,l,h,f,p,d=(u=nv(u)).length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=NP())),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]=+e(f,c,u),s.point(r?+r(f,c,u):g[c],n?+n(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return VP().defined(i).curve(a).context(o)}return t="function"===typeof t?t:void 0===t?jP:rv(+t),e="function"===typeof e?e:rv(void 0===e?0:+e),n="function"===typeof n?n:void 0===n?BP:rv(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:rv(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:rv(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:rv(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:rv(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:rv(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:rv(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:rv(!!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},HP=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)}}(),GP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.renderType=L.SVG,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"]?at.opacity.unselected:at.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",at.opacity.selected)},e}return HP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=UP().curve(this.services.curves.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),s=this.model.getGroupedData(this.configs.groups),u=ud.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===j.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=ud.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,(function(t){return t.name})),v=Nm(this.services.domUtils.getMainContainer());if(d.exit().attr("opacity",0).remove(),s.length){if(p){var g=v.select("path."+this.model.getColorClassName({classNameTypes:[k.STROKE],dataGroupName:s[0].name})).node(),m=void 0;if(g)m=getComputedStyle(g,null).getPropertyValue("stroke");else{var y=ud.getProperty(this.model.getOptions(),"color","scale");if(null!==y){var _=Object.keys(y);m=y[_[0]]}}nO.appendOrUpdateLinearGradient({svg:this.parent,id:s[0].name.replace(" ","")+"_"+this.gradient_id,x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:nO.getStops(r,m)})}else this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var b=this,O=d.enter().append("path");p?O.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:[k.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):(O.attr("opacity",0).merge(d).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return b.model.getFillColor(t.name)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",c?1:at.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)})),c&&O.attr("fill-opacity",at.opacity.selected).style("stroke",(function(t){return b.model.getStrokeColor(t.name)})).style("stroke-dasharray","2, 2").attr("stroke-width","0.7px"))}},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(kS),FP=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)}}(),zP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.renderType=L.SVG,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 ud.getProperty(t,0,i)!==n.datum().name?at.opacity.unselected:at.opacity.selected}))},e.handleLegendMouseOut=function(){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",at.opacity.selected)},e}return FP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this,i=this.getOptions(),o=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=ud.getProperty(u,0,0),l=this.services.cartesianScales.getDomainAxisPosition({firstDatum:c}),h=this.services.cartesianScales.getRangeAxisPosition({firstDatum:c}),f=this.services.cartesianScales.getScaleByPosition(h),p=n.selectAll("path.area").data(u,(function(t){return ud.getProperty(t,0,o)}));this.areaGenerator=UP().x((function(t,n){return e.services.cartesianScales.getValueThroughAxisPosition(l,t.data.sharedStackKey,n)})).y0((function(t){return f(t[0])})).y1((function(t){return f(t[1])})).curve(this.services.curves.getD3Curve()),p.exit().attr("opacity",0).remove();var d=p.enter().append("path").attr("opacity",0);d.merge(p).data(u,(function(t){return ud.getProperty(t,0,o)})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:ud.getProperty(t,0,o),originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(ud.getProperty(t,0,o))})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",at.opacity.selected).attr("d",this.areaGenerator)},e}(kS),WP=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)}}(),qP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return WP(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=Wm.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}(kS),YP=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)}}(),ZP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.renderType=L.SVG,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 YP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getComponentContainer({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getOrientation(),u=i.selectAll("path.bar").data(o,(function(t){return t[r]}));u.exit().attr("opacity",0).remove();var c=u.enter().append("path").attr("opacity",0);c.merge(u).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r,i,o=e.services.cartesianScales.getRangeIdentifier(),a=e.getBarWidth(),u=t[o],c=e.services.cartesianScales.getDomainValue(t,n)-a/2,l=c+a;if(Array.isArray(u)&&2===u.length)r=e.services.cartesianScales.getRangeValue(u[0]),i=e.services.cartesianScales.getRangeValue(u[1],n);else{var h=e.services.cartesianScales.getRangeScale(),f=h.domain()[0];r=e.services.cartesianScales.getRangeValue(Math.max(0,f)),i=e.services.cartesianScales.getRangeValue(t,n)}var p=Math.abs(i-r);if(0!==p&&p<2&&(i=u>0&&s===j.VERTICAL||u<0&&s===j.HORIZONTAL?r-2:r+2),!e.isOutsideZoomedDomain(c,l))return ud.generateSVGPathString({x0:c,x1:l,y0:r,y1:i},s)})).attr("opacity",1).attr("role",a.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,n){var r=Nm(this);r.classed("hovered",!0),r.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_MOUSEMOVE,{event:e,element:Nm(this),datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this);r.classed("hovered",!1),r.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(qP),XP=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)}}(),KP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.renderType=L.SVG,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 XP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.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 o=this.getComponentContainer({withinChartClip:!0}),s=ud.removeArrayDuplicates(n.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]&&"function"===typeof t[n].toString?t[n].toString():t[n]}))),u=o.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",a.GROUP).attr("data-name","bars"),l=c.merge(u);l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-group-update-enter",animate:t})})).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===j.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().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.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 ud.generateSVGPathString({x0:o,x1:a,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.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,n){var r=Nm(this);r.classed("hovered",!0),r.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Bar.BAR_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this);r.classed("hovered",!1),r.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.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=ud.getProperty(t,"bars","width"),n=ud.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=AE().domain(t).rangeRound([0,this.getGroupWidth()])},e}(qP),$P=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)}}(),QP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.renderType=L.SVG,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 $P(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getStackedData({groups:this.configs.groups,divergent:!0}),s=this.model.getActiveDataGroupNames(),u=n.selectAll("g.bars").data(o,(function(t){return ud.getProperty(t,0,i)}));u.exit().attr("opacity",0).remove(),u.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars");var c=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));c.exit().remove(),c.enter().append("path").merge(c).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.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,u=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,u)){if(Math.abs(l-c)>0&&Math.abs(l-c)>r.bars.dividerSize){var h=t[0]<0&&t[1]<=0;h&&s.length>1?e.services.cartesianScales.getOrientation()===j.VERTICAL?l+=0===t[1]?2:1:l-=(t[1],1):h||(e.services.cartesianScales.getOrientation()===j.VERTICAL?l+=1:l-=1)}return ud.generateSVGPathString({x0:a,x1:u,y0:c,y1:l},e.services.cartesianScales.getOrientation())}})).attr("opacity",1).attr("role",a.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,r){var i,o=Nm(this);o.classed("hovered",!0),o.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")),n.services.events.dispatchEvent(it.Bar.BAR_MOUSEOVER,{event:t,element:o,datum:r});var a=n.model.getDisplayData(n.configs.groups),s=a.find((function(t){var i=n.services.cartesianScales.getDomainIdentifier(t),o=n.services.cartesianScales.getRangeIdentifier(t);return t[o]===r.data[r.group]&&t[i].toString()===r.data.sharedStackKey&&t[e]===r.group}));if(void 0===s){var u=n.services.cartesianScales.getDomainIdentifier(),c=n.services.cartesianScales.getRangeIdentifier();i={},i[u]=r.data.sharedStackKey,i[c]=r.data[r.group],i[e]=r.group,s=i}n.services.events.dispatchEvent(it.Tooltip.SHOW,{event:t,hoveredElement:o,data:[s]})})).on("mousemove",(function(t,e){var r=Nm(this);n.services.events.dispatchEvent(it.Bar.BAR_MOUSEMOVE,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(it.Bar.BAR_CLICK,{event:t,element:Nm(this),datum:e})})).on("mouseout",(function(t,e){var r=Nm(this);r.classed("hovered",!1),n.services.events.dispatchEvent(it.Bar.BAR_MOUSEOUT,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(qP),JP=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="boxplot",e.renderType=L.SVG,e}return JP(e,t),e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getDataGroupNames(),s=this.services.cartesianScales.getMainXScale(),u=this.services.cartesianScales.getMainYScale(),c=s.range(),l=c[0],h=c[1],f=u.range(),p=f[0],d=f[1],v=h-l,g=p-d;if(0!==v){var m=this.services.cartesianScales,y=m.getOrientation(),_=y===j.VERTICAL,b=ud.flipDomainAndRangeBasedOnOrientation((function(t,n){return e.services.cartesianScales.getDomainValue(t,n)}),(function(t,n){return e.services.cartesianScales.getRangeValue(t,n)}),y),O=b[0],w=b[1],x=Math.floor((_?v:g)/o.length),E=Math.min(x/2,16),T=this.model.getBoxplotData(),S=n.selectAll(".box-group").data(T);S.exit().remove();var M=S.enter().append("g").attr("class","box-group"),C=S.merge(M);M.append("path").merge(S.select("path.vertical-line.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"vertical-line start"})})).attr("stroke-width",ht.strokeWidth.default).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-verticalstartline",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.quartiles.q_25);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.vertical-line.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"vertical-line end"})})).attr("stroke-width",ht.strokeWidth.default).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-verticalendline",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.quartiles.q_75);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.box")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],originalClassName:"box"})})).attr("fill-opacity",ht.box.opacity.default).attr("stroke-width",ht.strokeWidth.default).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","box").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-quartiles",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(Math[_?"max":"min"](t.quartiles.q_75,t.quartiles.q_25)),o=r+Math.abs(m.getRangeValue(t.quartiles.q_75)-m.getRangeValue(t.quartiles.q_25));return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.highlight-area")).attr("class","highlight-area").attr("opacity",0).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.max);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.whisker.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"whisker start"})})).attr("stroke-width",ht.strokeWidth.thicker).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-startingwhisker",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.min);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.median")).attr("fill","none").attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"median"})})).attr("stroke-width",2).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-median",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.quartiles.q_50),o=r;return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.whisker.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"whisker end"})})).attr("stroke-width",ht.strokeWidth.thicker).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-endingwhisker",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.whiskers.max);return ud.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)}));var A=C.selectAll("circle.outlier").data((function(t){return t.outliers.map((function(e){var n;return n={min:t.whiskers.min,max:t.whiskers.max},n[i]=t[i],n.value=e,n}))}));A.exit().remove();var P=A.enter().append("circle");A.merge(P).attr("r",ht.circle.radius).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],originalClassName:"outlier"})})).attr("fill-opacity",ht.circle.opacity.default).attr("cx",O).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-circles",animate:t})})).attr("cy",w),this.addBoxEventListeners(),this.addCircleEventListeners()}},e.prototype.addBoxEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo;this.parent.selectAll("path.highlight-area").on("mouseover",(function(r,i){var o=Nm(this),a=Nm(this.parentNode);a.select("path.box").classed("hovered",!0).attr("fill-opacity",ht.box.opacity.hovered),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:e.tooltip.groupLabel,value:i[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP]})},{label:"Minimum",value:i.whiskers.min},{label:"Q1",value:i.quartiles.q_25},{label:"Median",value:i.quartiles.q_50},{label:"Q3",value:i.quartiles.q_75},{label:"Maximum",value:i.whiskers.max},{label:"IQR",value:i.quartiles.q_75-i.quartiles.q_25}]}),t.services.events.dispatchEvent(it.Boxplot.BOX_MOUSEOVER,{event:r,element:o,datum:i})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Boxplot.BOX_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Boxplot.BOX_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this),i=Nm(this.parentNode);i.select("path.box").classed("hovered",!1).attr("fill-opacity",ht.box.opacity.default),t.services.events.dispatchEvent(it.Boxplot.BOX_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.addCircleEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("circle").on("mouseover",(function(i,o){var a=Nm(this);a.classed("hovered",!0).attr("fill-opacity",ht.circle.opacity.hovered).classed("unfilled",!1),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel,value:o[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP]})},{label:"Outlier",value:o[r]}]}),t.services.events.dispatchEvent(it.Boxplot.OUTLIER_MOUSEOVER,{event:i,element:a,datum:o})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Boxplot.OUTLIER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Boxplot.OUTLIER_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this);r.classed("hovered",!1).attr("fill-opacity",ht.circle.opacity.default),t.services.events.dispatchEvent(it.Boxplot.OUTLIER_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},e}(kS),eL=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)}}(),nL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.renderType=L.SVG,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 eL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(it.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(it.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=ud.getProperty(this.getOptions(),"points","enabled")||ud.getProperty(this.getOptions(),"bubble","enabled");if(e){var n=this.getComponentContainer({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=ud.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=ud.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,o=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=(u.transitions,r.data.groupMapsTo),h=function(t,e){return c.getDomainValue(t,e)},f=function(t,e){return c.getRangeValue(t,e)},p=ud.flipDomainAndRangeBasedOnOrientation(h,f,c.getOrientation()),d=p[0],v=p[1],g=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=c.getDomainIdentifier(t),r=n.model.getIsFilled(t[l],t[e],t,o),i=r?[k.FILL,k.STROKE]:[k.STROKE];return n.model.getColorClassName({classNameTypes:i,dataGroupName:t[l],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[l],t[e],t,o)})).classed("unfilled",(function(t){var e=c.getDomainIdentifier(t);return!n.model.getIsFilled(t[l],t[e],t,o)})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"scatter-update-enter",animate:e})})).attr("cx",d).attr("cy",v).attr("r",r.points.radius).style("fill",(function(t){var e=c.getDomainIdentifier(t);if(n.model.getIsFilled(t[l],t[e],t,o))return n.model.getFillColor(t[l],t[e],t)})).style("stroke",(function(t){var e=c.getDomainIdentifier(t);return n.model.getStrokeColor(t[l],t[e],t)})).attr("fill-opacity",o?s:1).attr("opacity",g?0:1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){var e=c.getRangeIdentifier(t);return t[e]})),this.addEventListeners()},e.prototype.getTooltipAdditionalItems=function(t){return null},e.prototype.addEventListeners=function(){var t=this,e=t.getOptions().data.groupMapsTo;this.parent.selectAll("circle").on("mouseover",(function(n,r){var i=Nm(this);i.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:n[e],originalClassName:i.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(it.Tooltip.SHOW,{event:n,hoveredElement:i,data:[r],additionalItems:t.getTooltipAdditionalItems(r)}),t.services.events.dispatchEvent(it.Scatter.SCATTER_MOUSEOVER,{event:n,element:i,datum:r})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Scatter.SCATTER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Scatter.SCATTER_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(n,r){var i=Nm(this);if(i.classed("hovered",!1),!t.configs.filled){var o=t.getOptions().points.filled,a=t.services.cartesianScales.getDomainIdentifier(r),s=t.model.getIsFilled(r[e],r[a],r,o);i.classed("unfilled",!s).style("fill",(function(n){return s||o?t.model.getFillColor(n[e],n[a],n):null}))}t.services.events.dispatchEvent(it.Scatter.SCATTER_MOUSEOUT,{event:n,element:i,datum:r}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:i})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(it.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(it.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(kS),rL=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)}}(),iL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e.renderType=L.SVG,e}return rL(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=Wm.getHTMLElementSize(this.services.domUtils.getMainContainer()),a=i.length>0,s=a?Ov(i):[1,1];return IE().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,o=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales,c=function(t,e){return u.getDomainValue(t,e)},l=function(t,e){return u.getRangeValue(t,e)},h=ud.flipDomainAndRangeBasedOnOrientation(c,l,u.getOrientation()),f=h[0],p=h[1];t.raise().classed("dot",!0).attr("role",a.GRAPHICS_SYMBOL).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"bubble-update-enter",animate:e})})).attr("cx",f).attr("cy",p).attr("r",(function(t){return o(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[k.FILL,k.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.prototype.getTooltipAdditionalItems=function(t){var e=ud.getProperty(this.getOptions(),"bubble");return[{label:ud.getProperty(e,"radiusLabel"),value:t[ud.getProperty(e,"radiusMapsTo")]}]},e}(nL),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e.renderType=L.SVG,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 oL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getComponentContainer({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getRangeScale(),u=this.services.cartesianScales.getRangeIdentifier(),c=s.range(),l=c[0],h=c[1],f=s.domain(),p=(f[0],f[1]),d=function(){var n=[];o.forEach((function(t){t.ranges?t.ranges.forEach((function(e,r){null!==e&&void 0!==e&&e<p&&n.push({datum:t,value:e,order:r+1})})):n.push({datum:t,order:1})}));var a=Wm.appendOrSelect(i,"g.range-boxes").selectAll("path.range-box").data(n,(function(t){return t[r]+"-"+t.order}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"range-box order-"+t.order})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-range-box-update-enter",animate:t})})).attr("d",(function(t,n){var r,i,o,a,s=16;return 1===t.order?(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=h-2,a=l+1):(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=e.services.cartesianScales.getRangeValue(t.value,n),a=h),ud.generateSVGPathString({x0:r,x1:i,y0:o,y1:a},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},v=function(){var n=Wm.appendOrSelect(i,"g.bars").selectAll("path.bar").data(o,(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var s=n.enter().append("path").attr("opacity",0);s.merge(n).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=8,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0)+1,s=e.services.cartesianScales.getRangeValue(t,n);return ud.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value}))},g=function(){var n=Wm.appendOrSelect(i,"g.markers").selectAll("path.marker").data(o.filter((function(t){return null!==ud.getProperty(t,"marker")})),(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var a=n.enter().append("path").attr("opacity",0);a.merge(n).classed("marker",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-marker-update-enter",animate:t})})).attr("d",(function(t,n){var r=24,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(t.marker,n),s=a;return ud.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},m=function(){var n=[];o.filter((function(t){return null!==ud.getProperty(t,"marker")})).forEach((function(t){var e=t.marker,r=t[u];n=n.concat([{datum:t,value:.25*e,barValue:r},{datum:t,value:.5*e,barValue:r},{datum:t,value:.75*e,barValue:r}])}));var a=Wm.appendOrSelect(i,"g.quartiles").selectAll("path.quartile").data(n,(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"quartile "+(t.value<=t.barValue?"over-bar":"")})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-quartile-update-enter",animate:t})})).attr("d",(function(t,n){var r=t.datum,i=t.value,o=4;r.ranges&&-1!==r.ranges.indexOf(i)&&(o=8);var a=e.services.cartesianScales.getDomainValue(r,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(i,n),c=u;return ud.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1)};d(),v(),g(),m(),this.addEventListeners()},e.prototype.getMatchingRangeIndexForDatapoint=function(t){for(var e,n=t.ranges.length-1;n>0;n--){var r=t.ranges[n];if(t.value>=r)return e=n,e}return 0},e.prototype.addEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("path.bar").on("mouseover",(function(i,o){var a=Nm(this);a.classed("hovered",!0),a.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOVER,{event:i,element:a,datum:o});var s=ud.getProperty(e,"bullet","performanceAreaTitles"),u=t.getMatchingRangeIndexForDatapoint(o);t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel||"Group",value:o[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:o[n]})},{label:"Value",value:o[r]},{label:"Target",value:o.marker},{label:"Percentage",value:Math.floor(o[r]/o.marker*100)+"%"},{label:"Performance",value:s[u]}]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_MOUSEMOVE,{event:e,element:Nm(this),datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Bar.BAR_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this);r.classed("hovered",!1),r.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(it.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(kS),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e.renderType=L.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[i]!==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 sL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer(),r=this.model.getOptions(),i=r.groupIdentifier,o=r.data.groupMapsTo,s=this.model.getBinnedStackedData(),u=this.services.cartesianScales.getMainXScale(),c=n.selectAll("g.bars").data(s,(function(t){return gl(t,"0."+o)}));c.exit().attr("opacity",0).remove(),c.enter().append("g").classed("bars",!0).attr("role",a.GROUP);var l=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}));l.exit().remove(),l.enter().append("path").merge(l).classed("bar",!0).attr(i,(function(t,e){return e})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"histogram-bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[o],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[o])})).attr("d",(function(t,n){var i=gl(t,"data");if(i){var o=u(i.x1)-u(i.x0)-1,a=e.services.cartesianScales.getDomainValue(i.x0,n),s=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);return Math.abs(l-c)>0&&Math.abs(l-c)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===j.VERTICAL?l+=1:l-=1),ud.generateSVGPathString({x0:a,x1:s,y0:c,y1:l},e.services.cartesianScales.getOrientation())}})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.model.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(r,i){var o=Nm(this);o.classed("hovered",!0),o.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update"));var a=parseFloat(gl(i,"data.x0")),s=parseFloat(gl(i,"data.x1")),u=n.services.cartesianScales.getRangeAxisPosition(),c=n.services.cartesianScales.getScaleLabel(u);n.services.events.dispatchEvent(it.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:gl(t,"bins.rangeLabel")||"Range",value:a+" – "+s},{label:t.tooltip.groupLabel||"Group",value:i[e],class:n.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:i[e]})},{label:c,value:gl(i,"data."+i[e])}]})})).on("mousemove",(function(t,e){n.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("mouseout",(function(t,e){var r=Nm(this);r.classed("hovered",!1),n.services.events.dispatchEvent(it.Tooltip.HIDE)}))},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(kS),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.renderType=L.SVG,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"]?dt.opacity.unselected:dt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",dt.opacity.selected)},e}return cL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this.services,i=r.cartesianScales,o=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=ud.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=VP().x(l).y(h).curve(o.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:ud.getProperty(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:!ud.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:[k.STROKE],dataGroupName:t.name,originalClassName:"line"})})).style("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("role",a.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().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"line-update-enter",animate: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(){var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(kS),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.renderType=L.SVG,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]?dt.weight.unselected:dt.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",dt.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"]?dt.opacity.unselected:dt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",dt.opacity.selected)},e}return hL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer({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=ud.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:[k.STROKE],dataGroupName:t[i],originalClassName:"line"})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"lollipop-line-update-enter",animate:t})})).style("stroke",(function(t){return e.model.getFillColor(t[i],t[u],t)})).attr("opacity",1);h===j.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(it.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(it.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(it.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(it.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(nL),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e.renderType=L.SVG,e}return pL(e,t),e.prototype.render=function(t){var e=this,n=ud.getProperty(this.getOptions(),"points","enabled");if(n){var r=this.getComponentContainer({withinChartClip:!0}),i=this.getOptions(),o=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 ud.getProperty(t,0,o)}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",a.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[o],i=e.services.cartesianScales.getDomainIdentifier(t),a=e.services.cartesianScales.getRangeIdentifier(t);return n={},n[o]=r,n[i]=t["data"]["sharedStackKey"],n[a]=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}(nL);function vL(t){return t.innerRadius}function gL(t){return t.outerRadius}function mL(t){return t.startAngle}function yL(t){return t.endAngle}function _L(t){return t&&t.padAngle}function bL(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<QT))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function OL(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/$T(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+_*_,O=i-o,w=f*v-d*p,x=(_<0?-1:1)*$T(ZT(0,O*O*b-w*w)),E=(w*_-y*x)/b,T=(-w*y-_*x)/b,S=(w*_+y*x)/b,M=(-w*y+_*x)/b,C=E-g,A=T-m,P=S-g,L=M-m;return C*C+A*A>P*P+L*L&&(E=S,T=M),{cx:E,cy:T,x01:-l,y01:-h,x11:E*(i/O-1),y11:T*(i/O-1)}}var wL=function(){var t=vL,e=gL,n=rv(0),r=null,i=mL,o=yL,a=_L,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-tS,p=o.apply(this,arguments)-tS,d=WT(p-f),v=p>f;if(s||(s=u=NP()),h<l&&(c=h,h=l,l=c),h>QT)if(d>eS-QT)s.moveTo(h*YT(f),h*KT(f)),s.arc(0,0,h,f,p,!v),l>QT&&(s.moveTo(l*YT(p),l*KT(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,O=p,w=d,x=d,E=a.apply(this,arguments)/2,T=E>QT&&(r?+r.apply(this,arguments):$T(l*l+h*h)),S=XT(WT(h-l)/2,+n.apply(this,arguments)),M=S,C=S;if(T>QT){var A=rS(T/l*KT(E)),P=rS(T/h*KT(E));(w-=2*A)>QT?(A*=v?1:-1,b+=A,O-=A):(w=0,b=O=(f+p)/2),(x-=2*P)>QT?(P*=v?1:-1,y+=P,_-=P):(x=0,y=_=(f+p)/2)}var L=h*YT(y),D=h*KT(y),k=l*YT(O),R=l*KT(O);if(S>QT){var I,N=h*YT(_),j=h*KT(_),B=l*YT(b),V=l*KT(b);if(d<JT&&(I=bL(L,D,B,V,N,j,k,R))){var U=L-I[0],H=D-I[1],G=N-I[0],F=j-I[1],z=1/KT(nS((U*G+H*F)/($T(U*U+H*H)*$T(G*G+F*F)))/2),W=$T(I[0]*I[0]+I[1]*I[1]);M=XT(S,(l-W)/(z-1)),C=XT(S,(h-W)/(z+1))}}x>QT?C>QT?(g=OL(B,V,L,D,h,C,v),m=OL(N,j,k,R,h,C,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),C<S?s.arc(g.cx,g.cy,C,qT(g.y01,g.x01),qT(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,C,qT(g.y01,g.x01),qT(g.y11,g.x11),!v),s.arc(0,0,h,qT(g.cy+g.y11,g.cx+g.x11),qT(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,C,qT(m.y11,m.x11),qT(m.y01,m.x01),!v))):(s.moveTo(L,D),s.arc(0,0,h,y,_,!v)):s.moveTo(L,D),l>QT&&w>QT?M>QT?(g=OL(k,R,N,j,l,-M,v),m=OL(L,D,B,V,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<S?s.arc(g.cx,g.cy,M,qT(g.y01,g.x01),qT(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,qT(g.y01,g.x01),qT(g.y11,g.x11),!v),s.arc(0,0,l,qT(g.cy+g.y11,g.cx+g.x11),qT(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,qT(m.y11,m.x11),qT(m.y01,m.x01),!v))):s.arc(0,0,l,O,b,v):s.lineTo(k,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-JT/2;return[YT(r)*n,KT(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:rv(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:rv(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:rv(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:rv(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:rv(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:rv(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:rv(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},xL=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},EL=function(t){return t},TL=function(){var t=EL,e=xL,n=null,r=rv(0),i=rv(eS),o=rv(0);function a(a){var s,u,c,l,h,f=(a=nv(a)).length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(eS,Math.max(-eS,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:rv(+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:rv(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:rv(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:rv(+t),a):o},a},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)}}();function ML(t,e){var n=this,r=kx(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var CL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.renderType=L.SVG,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 SL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return gt.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getComponentContainer(),i=this.getOptions(),o=i.data.groupMapsTo,s=i.pie.valueMapsTo,u=this.model.getDisplayData().filter((function(t){return t[s]>0})),c=this.computeRadius();this.arc=wL().innerRadius(this.getInnerRadius()).outerRadius(c),this.hoverArc=wL().innerRadius(this.getInnerRadius()).outerRadius(c+gt.hoverArc.outerRadiusOffset);var l=TL().value((function(t){return t[s]})).sort(ud.getProperty(i,"pie","sortFunction")).padAngle(gt.padAngle),h=l(u),f=Wm.appendOrSelect(r,"g.slices").attr("role",a.GROUP).attr("data-name","slices"),p=f.selectAll("path.slice").data(h,(function(t){return t.data[o]}));p.exit().attr("opacity",0).remove();var d=p.enter().append("path").classed("slice",!0).attr("opacity",0),v=d.merge(p).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t.data[o],originalClassName:"slice"})})).style("fill",(function(t){return n.model.getFillColor(t.data[o])})).attr("d",this.arc);v.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"pie_slice_enter_update",animate:t})})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t[s]+", "+ud.convertValueToPercentage(t.data[s],u,s)+"%"})).attrTween("d",(function(t){return ML.bind(this)(t,n.arc)}));var g=i.pie.labels.enabled,m=g?h.filter((function(t){return t.data[s]>0})):[],y=Wm.appendOrSelect(r,"g.labels").attr("role",a.GROUP).attr("data-name","labels"),_=y.selectAll("text.pie-label").data(m,(function(t){return t.data[o]}));_.exit().attr("opacity",0).remove();var b=_.enter().append("text").classed("pie-label",!0),O=[];b.merge(_).style("text-anchor","middle").text((function(t){return i.pie.labels.formatter?i.pie.labels.formatter(t):ud.convertValueToPercentage(t.data[s],u,s)+"%"})).datum((function(t){var e=c+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=m.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<gt.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+gt.callout.offsetX+gt.callout.textMargin+t.textOffsetX,o=t.yPosition-gt.callout.offsetY,t.direction=W.RIGHT,O.push(t)):(i=t.xPosition-gt.callout.offsetX-t.textOffsetX-gt.callout.textMargin,o=t.yPosition-gt.callout.offsetY,t.direction=W.LEFT,O.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(O);var w=ud.getProperty(i,"donut")?"donut":"pie",x=ud.getProperty(i,w,"alignment"),E=Wm.getSVGElementSize(this.getParent(),{useAttr:!0}).width,T=g?gt.xOffset:0,S=g?gt.yOffset:0,M=c+T;x===U.CENTER?M=E/2:x===U.RIGHT&&(M=E-c-gt.xOffset);var C=c+S;O.length>0&&(C+=gt.yOffsetCallout),r.attr("x",M+7).attr("y",C),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=Wm.appendOrSelect(this.getComponentContainer(),"g.callouts").attr("role",a.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",a.GRAPHICS_SYMBOL+" "+a.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===W.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+gt.callout.offsetX,y:n-gt.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-gt.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-gt.callout.offsetX,y:n-gt.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+gt.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return Nm(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 o=r.append("line").classed("horizontal-line",!0);o.merge(e.selectAll("line.horizontal-line")).datum((function(t){return Nm(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,n){var r=Nm(this);r.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(it.Pie.SLICE_MOUSEOVER,{event:e,element:Nm(this),datum:n});var i=t.getOptions().data.groupMapsTo,o=t.getOptions().pie.valueMapsTo;t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{label:n.data[i],value:n.data[o]}]})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Pie.SLICE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Pie.SLICE_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this);r.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(it.Pie.SLICE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.computeRadius=function(){var t=Wm.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=this.getOptions(),i=Math.min(e,n)/2,o=r.pie.labels.enabled;return o?i+gt.radiusOffset:i},e}(kS),AL=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="4,10 8,6 12,10",LL="12,6 8,10 4,6",DL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e.renderType=L.SVG,e}return AL(e,t),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=ud.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=ud.getProperty(t,"gauge","type"),n=e===X.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=ud.getProperty(e,"gauge","deltaArrow","direction");switch(n){case K.UP:return PL;case K.DOWN:return LL;default:return t>0?PL:LL}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer().attr("width","100%").attr("height","100%"),r=this.getOptions(),i=this.getValue(),o=this.getValueRatio(),s=this.getArcSize(),u=this.getStartAngle(),c=o*s,l=u+c,h=u+s,f=this.computeRadius(),p=this.getInnerRadius();this.backgroundArc=wL().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=wL().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),Wm.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",a.GROUP);var d=n.selectAll("path.arc-foreground").data([i]),v=d.enter().append("path");v.merge(d).attr("class",this.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return ud.getProperty(e.getOptions(),"color","scale","value")})).attr("d",this.arc).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),this.drawValueNumber(),this.drawDelta(),d.exit().remove();var g=ud.getProperty(r,"gauge","alignment"),m=Wm.getSVGElementSize(this.getParent(),{useAttr:!0}).width,y=f;g===U.CENTER?y=m/2:g===U.RIGHT&&(y=m-f),n.attr("x",y).attr("y",f),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getComponentContainer(),e=this.getOptions(),n=ud.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=ud.getProperty(e,"gauge","valueFontSize"),s=ud.getProperty(e,"gauge","deltaFontSize"),u=ud.getProperty(e,"gauge","numberSpacing"),c=ud.getProperty(e,"gauge","showPercentageSymbol"),l=0;n!==X.FULL||i?n===X.SEMI&&i&&(l=-(s(o)+u)):l=s(o);var h=Wm.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+l+")"),f=a(o),p=Wm.appendOrSelect(h,"g.gauge-value-number"),d=ud.getProperty(e,"gauge","numberFormatter"),v=p.selectAll("text.gauge-value-number").data([r]);v.enter().append("text").attr("class","gauge-value-number").merge(v).style("font-size",f+"px").attr("text-anchor","middle").text((function(t){return d(t)}));var g=Wm.getSVGElementSize(Wm.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,m=f/2,y=c?"%":"",_=Wm.appendOrSelect(p,"text.gauge-value-symbol").style("font-size",m+"px").attr("x",g/2).text(y),b=Wm.getSVGElementSize(_,{useBBox:!0}),O=b.width,w=b.height;_.attr("y","-"+w/2+"px"),p.attr("transform","translate(-"+O/2+", 0)")},e.prototype.drawDelta=function(){var t=this,e=this.getComponentContainer(),n=this.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?ud.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?ud.getProperty(n,"gauge","numberFormatter"):function(){return null},s=ud.getProperty(n,"gauge","deltaArrow","size"),u=ud.getProperty(n,"gauge","numberSpacing"),c=ud.getProperty(n,"gauge","showPercentageSymbol"),l=Wm.appendOrSelect(e,"g.gauge-numbers"),h=Wm.appendOrSelect(l,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),f=Wm.appendOrSelect(h,"text.gauge-delta-number"),p=c?"%":"";f.data(null===r?[]:[r]),f.enter().append("text").classed("gauge-delta-number",!0).merge(f).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return""+a(t)+p}));var d=Wm.getSVGElementSize(Wm.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,v=ud.getProperty(n,"gauge","deltaArrow","enabled"),g=h.selectAll("svg.gauge-delta-arrow").data(null!==r&&v?[r]:[]);g.enter().append("svg").merge(g).attr("class","gauge-delta-arrow").attr("x",-s(i)-d/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16").each((function(){var e=Nm(this);Wm.appendOrSelect(e,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var i=ud.getProperty(n,"gauge","status");Wm.appendOrSelect(e,"polygon.gauge-delta-arrow").attr("class",null!==i?"gauge-delta-arrow status--"+i:"").attr("points",t.getArrow(r))})),g.exit().remove(),f.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=ud.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,n){t.services.events.dispatchEvent(it.Gauge.ARC_MOUSEOVER,{event:e,element:Nm(this),datum:n})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Gauge.ARC_MOUSEMOVE,{event:e,element:r,datum:n})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Gauge.ARC_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Gauge.ARC_MOUSEOUT,{event:e,element:r,datum:n})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=ud.getProperty(t,"gauge","type"),n=Wm.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===X.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(kS),kL=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e.renderType=L.SVG,e}return kL(e,t),e.prototype.render=function(e){var n=this;void 0===e&&(e=!0),t.prototype.render.call(this,e);var r=this;if(this.model.isDataEmpty())this.getComponentContainer().select("g.center").remove();else{var i=Wm.appendOrSelect(this.getComponentContainer(),"g.center"),o=this.getOptions(),a=this.computeRadius();Wm.appendOrSelect(i,"text.donut-figure").attr("text-anchor","middle").style("font-size",(function(){return o.donut.center.numberFontSize(a)})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"donut-figure-enter-update",animate:e})})).tween("text",(function(){return r.centerNumberTween(Nm(this))})),Wm.appendOrSelect(i,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return o.donut.center.titleFontSize(a)})).attr("y",o.donut.center.titleYPosition(a)).text(ud.getProperty(o,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.getOptions(),n=ud.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,n){return t+n[e.pie.valueMapsTo]}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?Rx:Hy;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(CL);const IL=t=>+t;var 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)}}(),jL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return NL(e,t),e.prototype.render=function(){var t=ud.getProperty(this.getOptions(),"data","loading");t?this.renderSkeleton(t):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===q.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===q.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===q.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==q.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===j.VERTICAL&&this.drawYGrid(t),e===j.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=IE().domain([0,1]).range(t),this.yScale=IE().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=Wm.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;this.backdrop=Wm.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",r).attr("height",i);var o=Wm.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");o.attr("width","100%").attr("height","100%");var a=this.xScale.range(),s=a[0],u=(a[1],this.yScale.range()),c=(u[0],u[1]);this.backdrop.merge(o).attr("x",s).attr("y",c),o.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("width"),n=ud.getProperty(this.getOptions(),"grid","x","numberOfTicks"),r=this.xScale.ticks(n).map((function(t){return t*e})),i=Wm.appendOrSelect(this.backdrop,"g.x.skeleton"),o=i.selectAll("line").data(r);o.enter().append("line").merge(o).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2","100%"),i.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=ud.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=Wm.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=Wm.getSVGElementSize(r,{useAttrs:!0}),o=i.width,a=i.height,s=Wm.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=ud.getProperty(this.getOptions(),u,"alignment");Wm.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=wL().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(gt.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=Wm.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+gt.xOffset;c===U.CENTER?d=o/2:c===U.RIGHT&&(d=o-t-gt.xOffset);var v=t+gt.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=Wm.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+gt.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=Wm.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=Wm.appendOrSelect(a,"defs").lower(),h=Wm.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(IL).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}(kS),BL=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return BL(e,t),e.prototype.render=function(){var e=ud.getProperty(this.getOptions(),"data","loading"),n=!ud.getProperty(this.getOptions(),"grid","x","enabled")&&!ud.getProperty(this.getOptions(),"grid","y","enabled")&&!ud.getProperty(this.getOptions(),"axes","bottom","visible")&&!ud.getProperty(this.getOptions(),"axes","left","visible");e&&!n?t.prototype.renderGridSkeleton.call(this,e):e&&n?this.renderSparklineSkeleton(e):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=Wm.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=Wm.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=Wm.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1),e.classed("shimmer-effect-sparkline",!0)},e}(jL);function UL(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 HL=function(){return this.eachAfter(UL)},GL=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},FL=function(t,e){var n,r,i=this,o=[i],a=-1;while(i=o.pop())if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},zL=function(t,e){var n,r,i,o=this,a=[o],s=[],u=-1;while(o=a.pop())if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);while(o=s.pop())t.call(e,o,++u,this);return this},WL=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},qL=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}))},YL=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},ZL=function(t){var e=this,n=XL(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 XL(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 KL=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},$L=function(){return Array.from(this)},QL=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},JL=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},tD=function*(){var t,e,n,r,i=this,o=[i];do{t=o.reverse(),o=[];while(i=t.pop())if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)};function eD(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=iD)):void 0===e&&(e=rD);var n,r,i,o,a,s=new sD(t),u=[s];while(n=u.pop())if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new sD(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(aD)}function nD(){return eD(this).eachBefore(oD)}function rD(t){return t.children}function iD(t){return Array.isArray(t)?t[1]:null}function oD(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function aD(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function sD(t){this.data=t,this.depth=this.height=0,this.parent=null}sD.prototype=eD.prototype={constructor:sD,count:HL,each:GL,eachAfter:zL,eachBefore:FL,find:WL,sum:qL,sort:YL,path:ZL,ancestors:KL,descendants:$L,leaves:QL,links:JL,copy:nD,[Symbol.iterator]:tD};var uD=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)},cD=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},lD=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},hD=(1+Math.sqrt(5))/2;function fD(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,O=y.length,w=e.value;while(_<O){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<O);for(h=f=l,v=Math.max(c/u,u/c)/(w*t),g=l*l*v,d=Math.max(f/g,g/h);b<O;++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?cD(a,n,r,i,w?r+=c*l/w:o):lD(a,n,r,w?n+=u*l/w:i,o),w-=l,_=b}return m}var pD=function t(e){function n(t,n,r,i,o){fD(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(hD);function dD(t){return null==t?null:vD(t)}function vD(t){if("function"!==typeof t)throw new Error;return t}function gD(){return 0}var mD=function(t){return function(){return t}},yD=function(){var t=pD,e=!1,n=1,r=1,i=[0],o=gD,a=gD,s=gD,u=gD,c=gD;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(uD),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=vD(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:mD(+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:mD(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:mD(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:mD(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:mD(+t),l):c},l};function _D(t,e){let n=0;if(void 0===e)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}var bD="#000000",OD="#ffffff",wD="#fcf4d6",xD="#fddc69",ED="#f1c21b",TD="#d2a106",SD="#b28600",MD="#8e6a00",CD="#684e00",AD="#483700",PD="#302400",LD="#1c1500",DD={10:wD,20:xD,30:ED,40:TD,50:SD,60:MD,70:CD,80:AD,90:PD,100:LD},kD="#fff2e8",RD="#ffd9be",ID="#ffb784",ND="#ff832b",jD="#eb6200",BD="#ba4e00",VD="#8a3800",UD="#5e2900",HD="#3e1a00",GD="#231000",FD={10:kD,20:RD,30:ID,40:ND,50:jD,60:BD,70:VD,80:UD,90:HD,100:GD},zD="#fff1f1",WD="#ffd7d9",qD="#ffb3b8",YD="#ff8389",ZD="#fa4d56",XD="#da1e28",KD="#a2191f",$D="#750e13",QD="#520408",JD="#2d0709",tk={10:zD,20:WD,30:qD,40:YD,50:ZD,60:XD,70:KD,80:$D,90:QD,100:JD},ek="#fff0f7",nk="#ffd6e8",rk="#ffafd2",ik="#ff7eb6",ok="#ee5396",ak="#d02670",sk="#9f1853",uk="#740937",ck="#510224",lk="#2a0a18",hk={10:ek,20:nk,30:rk,40:ik,50:ok,60:ak,70:sk,80:uk,90:ck,100:lk},fk="#f6f2ff",pk="#e8daff",dk="#d4bbff",vk="#be95ff",gk="#a56eff",mk="#8a3ffc",yk="#6929c4",_k="#491d8b",bk="#31135e",Ok="#1c0f30",wk={10:fk,20:pk,30:dk,40:vk,50:gk,60:mk,70:yk,80:_k,90:bk,100:Ok},xk="#edf5ff",Ek="#d0e2ff",Tk="#a6c8ff",Sk="#78a9ff",Mk="#4589ff",Ck="#0f62fe",Ak="#0043ce",Pk="#002d9c",Lk="#001d6c",Dk="#001141",kk={10:xk,20:Ek,30:Tk,40:Sk,50:Mk,60:Ck,70:Ak,80:Pk,90:Lk,100:Dk},Rk="#e5f6ff",Ik="#bae6ff",Nk="#82cfff",jk="#33b1ff",Bk="#1192e8",Vk="#0072c3",Uk="#00539a",Hk="#003a6d",Gk="#012749",Fk="#061727",zk={10:Rk,20:Ik,30:Nk,40:jk,50:Bk,60:Vk,70:Uk,80:Hk,90:Gk,100:Fk},Wk="#d9fbfb",qk="#9ef0f0",Yk="#3ddbd9",Zk="#08bdba",Xk="#009d9a",Kk="#007d79",$k="#005d5d",Qk="#004144",Jk="#022b30",tR="#081a1c",eR={10:Wk,20:qk,30:Yk,40:Zk,50:Xk,60:Kk,70:$k,80:Qk,90:Jk,100:tR},nR="#defbe6",rR="#a7f0ba",iR="#6fdc8c",oR="#42be65",aR="#24a148",sR="#198038",uR="#0e6027",cR="#044317",lR="#022d0d",hR="#071908",fR={10:nR,20:rR,30:iR,40:oR,50:aR,60:sR,70:uR,80:cR,90:lR,100:hR},pR="#f2f4f8",dR="#dde1e6",vR="#c1c7cd",gR="#a2a9b0",mR="#878d96",yR="#697077",_R="#4d5358",bR="#343a3f",OR="#21272a",wR="#121619",xR={10:pR,20:dR,30:vR,40:gR,50:mR,60:yR,70:_R,80:bR,90:OR,100:wR},ER="#f4f4f4",TR="#e0e0e0",SR="#c6c6c6",MR="#a8a8a8",CR="#8d8d8d",AR="#6f6f6f",PR="#525252",LR="#393939",DR="#262626",kR="#161616",RR={10:ER,20:TR,30:SR,40:MR,50:CR,60:AR,70:PR,80:LR,90:DR,100:kR},IR="#f7f3f2",NR="#e5e0df",jR="#cac5c4",BR="#ada8a8",VR="#8f8b8b",UR="#726e6e",HR="#565151",GR="#3c3838",FR="#272525",zR="#171414",WR={10:IR,20:NR,30:jR,40:BR,50:VR,60:UR,70:HR,80:GR,90:FR,100:zR},qR={black:{100:bD},blue:kk,coolGray:xR,cyan:zk,gray:RR,green:fR,magenta:hk,orange:FD,purple:wk,red:tk,teal:eR,warmGray:WR,white:{0:OD},yellow:DD};var YR=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)}}(),ZR=function(t){if(!t)return null;for(var e=0,n=Object.keys(qR);e<n.length;e++)for(var r=n[e],i=qR[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},XR=function(){var t,e=Nm(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=__(n);if(r&&(t=ZR(r?r.hex():null)),null===t||void 0===t){var i=P_(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},KR=0,$R=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.renderType=L.SVG,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 YR(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=this.model.getData(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=ud.getProperty(window,"location"),s=Wm.getSVGElementSize(n,{useAttrs:!0}),u=s.width,c=s.height,l=eD({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(_D(r,(function(t){return _D(t.children,(function(t){return t.value}))})),yD().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=(this.services.transitions,n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name})));f.exit().attr("opacity",0).remove();var p=f.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return KR++})),d=p.merge(f);d.attr("data-name","leaf").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"treemap-group-update",animate:t})})).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var v=d.selectAll("rect.leaf").data((function(t){return[t]}));v.exit().attr("width",0).attr("height",0).remove();var g=v.enter().append("rect").classed("leaf",!0);g.merge(v).attr("width",0).attr("height",0).attr("id",(function(){var t=Nm(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:[k.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"treemap-leaf-update-enter",animate: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)})),d.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=Nm(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=Nm(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()})),d.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=P_(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",XR).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=Nm(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",XR)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e,n){var r=Nm(this),i=getComputedStyle(this,null).getPropertyValue("fill"),o=n;while(o.depth>1)o=o.parent;r.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&&(i=n),__(i).darker(.7).toString()})),t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{color:i,label:o.data.name,bold:!0},{label:n.data.name,value:n.data.value}]}),t.services.events.dispatchEvent(it.Treemap.LEAF_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Treemap.LEAF_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Treemap.LEAF_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this);r.classed("hovered",!1);var i=n;while(i.depth>1)i=i.parent;r.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(it.Treemap.LEAF_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})}))},e}(kS);function QR(t){var e=JR(eI(t),360);return tI(e,[0,10])||tI(e,[350,0])?{textAnchor:Y.START,dominantBaseline:Z.MIDDLE}:tI(e,[10,80])?{textAnchor:Y.START,dominantBaseline:Z.HANGING}:tI(e,[80,100])?{textAnchor:Y.MIDDLE,dominantBaseline:Z.HANGING}:tI(e,[100,170])?{textAnchor:Y.END,dominantBaseline:Z.HANGING}:tI(e,[170,190])?{textAnchor:Y.END,dominantBaseline:Z.MIDDLE}:tI(e,[190,260])?{textAnchor:Y.END,dominantBaseline:Z.BASELINE}:tI(e,[260,280])?{textAnchor:Y.MIDDLE,dominantBaseline:Z.BASELINE}:{textAnchor:Y.START,dominantBaseline:Z.BASELINE}}function JR(t,e){return(t%e+e)%e}function tI(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function eI(t){return t*(180/Math.PI)}function nI(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 rI(t,e){return e*Math.sin(t-Math.PI/2)}var iI=aI(TT);function oI(t){this._curve=t}function aI(t){function e(e){return new oI(t(e))}return e._curve=t,e}function sI(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(aI(t)):e()._curve},t}oI.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 uI=function(){return sI(VP().curve(iI))},cI=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)}}(),lI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.renderType=L.SVG,e.getLabelDimensions=function(t){var n=Wm.appendOrSelect(e.getComponentContainer(),"g.tmp-tick"),r=Wm.appendOrSelect(n,"text").text(t),i=Wm.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=ud.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=ud.getProperty(n,"data","groupMapsTo"),s=ud.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 ud.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=ud.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=ud.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:ud.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?mt.opacity.unselected:mt.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?mt.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",mt.opacity.selected).style("stroke-opacity",1)},e}return cI(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=Wm.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,s=this.model.getData(),u=this.model.getGroupedData(),c=this.getOptions(),l=ud.getProperty(c,"radar","axes"),h=l.angle,f=l.value,p=ud.getProperty(c,"data","groupMapsTo"),d=mt,v=d.xLabelPadding,g=d.yLabelPadding,m=d.yTicksNumber,y=d.minRange,_=d.xAxisRectHeight;this.uniqueKeys=Array.from(new Set(s.map((function(t){return t[h]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[p]})))),this.fullDataNormalized=this.normalizeFlatData(s),this.groupedDataNormalized=this.normalizeGroupedData(u);var b=this.getLabelDimensions(this.uniqueKeys[0]).height,O=2*(b+g),w=Math.min(i,o),x=w-O,E=x/2;if(!(E<=0)){var T=AE().domain(this.fullDataNormalized.map((function(t){return t[h]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),S=rP(this.fullDataNormalized.map((function(t){return t[f]}))),M=IE().domain([S>=0?0:S,NE(this.fullDataNormalized.map((function(t){return t[f]})))]).range([y,E]).nice(m),C=M.ticks(m),A=function(t){return e.model.getFillColor(t)},P=uI().angle((function(t){return T(t[h])+Math.PI/2})).radius((function(t){return M(t[f])})).curve(CT),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=rI(T(t),E);return n+r})),D=NE(L),R={x:D+v,y:o/2},I=Wm.appendOrSelect(n,"g.y-axes").attr("role",a.GROUP),N=I.selectAll("path").data(C,(function(t){return t})),j=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[h]=e,n[f]=t,n}))};N.join((function(n){return n.append("path").attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill","none").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return P(j(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("+R.x+", "+R.y+")").attr("d",(function(t){return P(j(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 P(j(t))})).attr("opacity",0).remove()}))}));var B=Wm.appendOrSelect(n,"g.x-axes").attr("role",a.GROUP),V=B.selectAll("line").data(this.uniqueKeys,(function(t){return t}));V.join((function(n){return n.append("line").attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+ud.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return nI(T(t),0,R).x})).attr("y1",(function(t){return nI(T(t),0,R).y})).attr("x2",(function(t){return nI(T(t),0,R).x})).attr("y2",(function(t){return nI(T(t),0,R).y})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_enter",t)).attr("opacity",1).attr("x1",(function(t){return nI(T(t),M.range()[0],R).x})).attr("y1",(function(t){return nI(T(t),M.range()[0],R).y})).attr("x2",(function(t){return nI(T(t),M.range()[1],R).x})).attr("y2",(function(t){return nI(T(t),M.range()[1],R).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 nI(T(t),M.range()[0],R).x})).attr("y1",(function(t){return nI(T(t),M.range()[0],R).y})).attr("x2",(function(t){return nI(T(t),M.range()[1],R).x})).attr("y2",(function(t){return nI(T(t),M.range()[1],R).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=Wm.appendOrSelect(n,"g.x-labels").attr("role",a.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 nI(T(t),M.range()[1]+v,R).x})).attr("y",(function(t){return nI(T(t),M.range()[1]+v,R).y})).style("text-anchor",(function(t){return QR(T(t)).textAnchor})).style("dominant-baseline",(function(t){return QR(T(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 nI(T(t),M.range()[1]+v,R).x})).attr("y",(function(t){return nI(T(t),M.range()[1]+v,R).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 G=Wm.appendOrSelect(n,"g.blobs").attr("role",a.GROUP),F=G.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:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform",t?function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"}:"translate("+R.x+", "+R.y+")").style("fill",(function(t){return A(t.name)})).style("fill-opacity",mt.opacity.selected).style("stroke",(function(t){return A(t.name)})).call((function(n){var r=n.transition(e.services.transitions.getTransition("radar_blobs_enter",t));t&&r.delay((function(){return 30*Math.random()})).attr("transform","translate("+R.x+", "+R.y+")"),r.attr("opacity",1).attr("d",(function(t){return P(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).style("fill",(function(t){return A(t.name)})).style("stroke",(function(t){return A(t.name)})),n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_update",t)).attr("opacity",1).attr("transform","translate("+R.x+", "+R.y+")").attr("d",(function(t){return P(t.data)}))}))}),(function(n){return n.call((function(n){var r=n.transition(e.services.transitions.getTransition("radar_blobs_exit",t));t&&r.delay((function(){return 30*Math.random()})).attr("transform",(function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"})),r.attr("opacity",0).remove()}))}));var z=Wm.appendOrSelect(n,"g.dots").attr("role",a.GROUP),W=z.selectAll("circle").data(this.fullDataNormalized);W.join((function(t){return t.append("circle").attr("role",a.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[p],originalClassName:ud.kebabCase(t[h])})})).attr("cx",(function(t){return nI(T(t[h]),M(t[f]),R).x})).attr("cy",(function(t){return nI(T(t[h]),M(t[f]),R).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return A(t[p])}));var q=Wm.appendOrSelect(n,"g.x-axes-rect").attr("role",a.GROUP),Y=q.selectAll("rect").data(this.uniqueKeys);Y.join((function(t){return t.append("rect").attr("role",a.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("x",R.x).attr("y",R.y-_/2).attr("width",M.range()[1]).attr("height",_).style("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+eI(T(t))+", "+R.x+", "+R.y+")"}));var Z=Wm.appendOrSelect(n,"g.y-labels").attr("role",a.GROUP),X=Z.selectAll("text").data(Ov(C));X.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return nI(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return nI(-Math.PI/2,M(t),R).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 nI(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return nI(-Math.PI/2,M(t),R).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 K=ud.getProperty(c,"radar","alignment"),$=this.getAlignmentXOffset(K,n,this.getParent());n.attr("x",$),this.addEventListeners()}},e.prototype.getAlignmentXOffset=function(t,e,n){var r=Wm.getSVGElementSize(e,{useBBox:!0}),i=Wm.getSVGElementSize(n,{useAttr:!0}).width,o=0;return t===U.CENTER?o=Math.floor((i-r.width)/2):t===U.RIGHT&&(o=i-r.width),o},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(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=ud.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n,r){var i=Nm(this);t.services.events.dispatchEvent(it.Radar.X_AXIS_MOUSEOVER,{event:n,element:i,datum:r});var o=t.parent.select(".x-axes .x-axis-"+ud.kebabCase(r)),a=t.parent.selectAll(".dots circle."+ud.kebabCase(r));o.classed("hovered",!0).attr("stroke-dasharray","4 4"),a.classed("hovered",!0).attr("opacity",1).attr("r",mt.dotsRadius);var s=t.fullDataNormalized.filter((function(t){return t[e]===r})),u=t.getOptions(),c=u.data.groupMapsTo,l=ud.getProperty(u,"radar","axes","value");t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:n,hoveredElement:i,items:s.filter((function(t){return"number"===typeof t[l]})).map((function(e){return{label:e[c],value:e[l],color:t.model.getFillColor(e[c]),class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:e[c]})}}))})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.Radar.X_AXIS_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(it.Radar.X_AXIS_CLICK,{event:e,element:Nm(this),datum:n})})).on("mouseout",(function(e,n){var r=Nm(this),i=t.parent.select(".x-axes .x-axis-"+ud.kebabCase(n)),o=t.parent.selectAll(".dots circle."+ud.kebabCase(n));i.classed("hovered",!1).attr("stroke-dasharray","0"),o.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(it.Radar.X_AXIS_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE)}))},e}(kS),hI=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)};function fI(t){var e,n,r=t.length;while(r)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}var pI=function(t){var e,n,r=0,i=(t=fI(Array.from(t))).length,o=[];while(r<i)e=t[r],n&&gI(n,e)?++r:(n=yI(o=dI(o,e)),r=0);return n};function dI(t,e){var n,r;if(mI(e,t))return[e];for(n=0;n<t.length;++n)if(vI(e,t[n])&&mI(bI(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(vI(bI(t[n],t[r]),e)&&vI(bI(t[n],e),t[r])&&vI(bI(t[r],e),t[n])&&mI(OI(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function vI(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function gI(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function mI(t,e){for(var n=0;n<e.length;++n)if(!gI(t,e[n]))return!1;return!0}function yI(t){switch(t.length){case 1:return _I(t[0]);case 2:return bI(t[0],t[1]);case 3:return OI(t[0],t[1],t[2])}}function _I(t){return{x:t.x,y:t.y,r:t.r}}function bI(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,c=a-r,l=s-i,h=Math.sqrt(u*u+c*c);return{x:(n+o+u/h*l)/2,y:(r+a+c/h*l)/2,r:(h+i+s)/2}}function OI(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,c=n.x,l=n.y,h=n.r,f=r-a,p=r-c,d=i-s,v=i-l,g=u-o,m=h-o,y=r*r+i*i-o*o,_=y-a*a-s*s+u*u,b=y-c*c-l*l+h*h,O=p*d-f*v,w=(d*b-v*_)/(2*O)-r,x=(v*g-d*m)/O,E=(p*_-f*b)/(2*O)-i,T=(f*m-p*g)/O,S=x*x+T*T-1,M=2*(o+w*x+E*T),C=w*w+E*E-o*o,A=-(S?(M+Math.sqrt(M*M-4*S*C))/(2*S):C/M);return{x:r+w+x*A,y:i+E+T*A,r:A}}function wI(t,e,n){var r,i,o,a,s=t.x-e.x,u=t.y-e.y,c=s*s+u*u;c?(i=e.r+n.r,i*=i,a=t.r+n.r,a*=a,i>a?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function xI(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function EI(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function TI(t){this._=t,this.next=null,this.previous=null}function SI(t){if(!(i=(t=hI(t)).length))return 0;var e,n,r,i,o,a,s,u,c,l,h;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;wI(n,e,r=t[2]),e=new TI(e),n=new TI(n),r=new TI(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){wI(e._,n._,r=t[s]),r=new TI(r),u=n.next,c=e.previous,l=n._.r,h=e._.r;do{if(l<=h){if(xI(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}l+=u._.r,u=u.next}else{if(xI(c._,r._)){e=c,e.next=n,n.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(u!==c.next);r.previous=e,r.next=n,e.next=n.previous=n=r,o=EI(e);while((r=r.next)!==n)(a=EI(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=pI(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function MI(t){return Math.sqrt(t.value)}var CI=function(){var t=null,e=1,n=1,r=gD;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(AI(t)).eachAfter(PI(r,.5)).eachBefore(LI(1)):i.eachBefore(AI(MI)).eachAfter(PI(gD,1)).eachAfter(PI(r,i.r/Math.min(e,n))).eachBefore(LI(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=dD(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:mD(+t),i):r},i};function AI(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function PI(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=SI(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function LI(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var DI=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)}}(),kI=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},RI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-pack",e.renderType=L.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("circle.node").transition(e.services.transitions.getTransition("legend-hover-circlepack")).attr("opacity",(function(t){return t.data.dataGroupName===n.datum()["name"]?1:ct.circles.fillOpacity}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.node").transition(e.services.transitions.getTransition("legend-mouseout-circlepack")).attr("opacity",1)},e}return DI(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=Wm.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getDisplayData(),s=this.model.hasParentNode(),u=this.model.getHierarchyLevel(),c=this.getOptions(),l=ud.getProperty(c,"canvasZoom","enabled");s&&ud.getProperty(a,0,"children")&&(a=ud.getProperty(a,0,"children"));var h=eD({children:a}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),f=CI().size([i,o]).padding((function(t){return t.depth>=1?ct.padding.children+3:ct.padding.mainGroup+3})),p=f(h).descendants().splice(1).filter((function(t){return t.depth<=u})),d=n.selectAll("circle.node").data(p);d.exit().attr("width",0).attr("height",0).remove();var v=d.enter().append("circle").classed("node",!0);v.merge(d).attr("class",(function(t){var n=l&&3===u?e.getZoomClass(t):"";return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.data.dataGroupName,originalClassName:t.children?"node "+n:"node node-leaf "+n})})).style("fill",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).attr("cx",(function(t){return t.x})).attr("cy",(function(t){return t.y})).transition(this.services.transitions.getTransition("circlepack-leaf-update-enter",t)).attr("r",(function(t){return t.r})).attr("opacity",1).attr("fill-opacity",ct.circles.fillOpacity),!0===l&&this.focal&&(this.services.canvasZoom.zoomIn(this.focal,v,ut),this.setBackgroundListeners()),s||this.addLegendListeners(),this.addEventListeners()}},e.prototype.unhighlightChildren=function(t){var e=this,n=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return n.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)}))},e.prototype.highlightChildren=function(t){var e=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return e.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",ct.circles.hover.stroke)},e.prototype.getZoomClass=function(t){return 3===this.model.getHierarchyLevel()&&this.focal&&(t.data===this.focal.data||this.focal.children.some((function(e){return e.data===t.data})))?"focal":"non-focal"},e.prototype.addLegendListeners=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.removeBackgroundListeners=function(){var t=Nm(this.services.domUtils.getMainContainer());t.on("click",(function(){return null}))},e.prototype.setBackgroundListeners=function(){var t=Nm(this.services.domUtils.getMainContainer()),e=this,n=this.parent.selectAll("circle.node"),r=ud.getProperty(o,"canvasZoomSettings");t.on("click",(function(){e.focal=null,e.model.updateHierarchyLevel(2),t.classed("zoomed-in",!1),e.services.canvasZoom.zoomOut(n,r)}))},e.prototype.getZoomIcon=function(){return'\n\t\t<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10">\n\t\t\t<polygon points="5.93 3.71 4.45 3.71 4.45 2.23 3.71 2.23 3.71 3.71 2.23 3.71 2.23 4.45 3.71 4.45 3.71 5.93 4.45 5.93 4.45 4.45 5.93 4.45 5.93 3.71"/>\n\t\t\t<path d="M7.2,6.67a4,4,0,0,0,1-2.59A4.08,4.08,0,1,0,4.07,8.15h0a4,4,0,0,0,2.59-1L9.48,10,10,9.48Zm-3.12.77A3.34,3.34,0,1,1,7.41,4.08,3.34,3.34,0,0,1,4.08,7.44Z"/>\n\t\t</svg>'},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("circle.node").on("mouseover",(function(e,n){var r=Nm(this);r.classed("hovered",!0);var i=t.model.getHierarchyLevel(),o=i>2&&!r.classed("focal"),a=ud.getProperty(t.model.getOptions(),"canvasZoom","enabled"),s=!1;if(!o){var u=[],c=[],l=null;if(n.children){n.depth>1&&a&&(s=!0,r.classed("clickable",!0)),u=n.children.map((function(e){if(null!==e)return"number"===typeof e.data.value?{label:e.data.name,value:e.data.value}:{label:e.data.name,labelIcon:a&&i<=2?t.getZoomIcon():null,value:e.value}}));var h=t.model.getOptions();c=[{label:gl(h,"tooltip.totalLabel")||"Total",value:n.value,bold:!0}],t.highlightChildren(n.children)}else l=n.value;var f=getComputedStyle(this,null).getPropertyValue("fill");t.services.events.dispatchEvent(it.Tooltip.SHOW,{event:e,hoveredElement:r,items:kI([{color:f,label:n.data.name,labelIcon:s&&a&&i<=2?t.getZoomIcon():null,value:l}],u,c)})}t.services.events.dispatchEvent(it.CirclePack.CIRCLE_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=Nm(this);t.services.events.dispatchEvent(it.CirclePack.CIRCLE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.MOVE,{event:e})})).on("mouseout",(function(e,n){var r=Nm(this);r.classed("hovered",!1),n.children&&t.unhighlightChildren(n.children),t.services.events.dispatchEvent(it.CirclePack.CIRCLE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:r})})).on("click",(function(e,n){var r=Nm(this),i=r.classed("non-focal"),o=ud.getProperty(t.getOptions(),"canvasZoom","enabled")&&t.model.getHierarchyLevel()>2;if(o){var a=t.parent.selectAll("circle.node"),s=Nm(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!1),t.focal=null,t.model.updateHierarchyLevel(2),t.services.canvasZoom.zoomOut(a,ut)}else if(2===n.depth&&n.children&&!i){a=t.parent.selectAll("circle.node"),s=Nm(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!0),t.focal=n,t.model.updateHierarchyLevel(3),t.services.canvasZoom.zoomIn(n,a,ut),e.stopPropagation()}t.services.events.dispatchEvent(it.CirclePack.CIRCLE_CLICK,{event:e,element:r,datum:n})}))},e.prototype.destroy=function(){this.parent.selectAll("circle.node").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("click",null);var t=this.services.events;t.removeEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),this.removeBackgroundListeners()},e}(kS),II=n("2a60"),NI=n.n(II),jI=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)}}(),BI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="wordcloud",e.renderType=L.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("text.word").transition(e.services.transitions.getTransition("legend-hover-wordcloud")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("text.word").transition(e.services.transitions.getTransition("legend-mouseout-wordcloud")).attr("opacity",1)},e}return jI(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(it.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(it.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getComponentContainer().attr("width","100%").attr("height","100%"),r=this.model.getDisplayData(),i=this.getFontSizeScale(r),o=this.getOptions(),a=o.wordCloud,s=a.fontSizeMapsTo,u=a.wordMapsTo,c=o.data.groupMapsTo,l=Wm.getSVGElementSize(n,{useAttrs:!0}),h=l.width,f=l.height;if(0!==h&&0!==f){var p=NI()().size([h,f]).words(r.map((function(t){var e;return e={},e[c]=t[c],e.text=t[u],e.size=t[s],e.value=t[s],e}))).padding(5).rotate(0).fontSize((function(t){return i(t.size)})).on("end",d);p.start(),this.addEventListeners()}function d(r){var i=Wm.appendOrSelect(n,"g.words");i.attr("transform","translate("+p.size()[0]/2+", "+p.size()[1]/2+")");var o=i.selectAll("text").data(r,(function(t){return t[c]+"-"+t.text}));o.exit().attr("opacity",0).remove();var a=o.enter().append("text").attr("opacity",0);a.merge(o).style("font-size",(function(t){return t.size+"px"})).text((function(t){return t.text})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[c],originalClassName:"word "+(t.size>32?"light":"")})})).style("fill",(function(t){return e.model.getFillColor(t[c],t.text,t)})).attr("text-anchor","middle").transition(e.services.transitions.getTransition("wordcloud-text-update-enter",t)).attr("transform",(function(t){return"translate("+t.x+", "+t.y+")"})).attr("opacity",1)}},e.prototype.getFontSizeScale=function(t){var e=this.getOptions(),n=e.wordCloud.fontSizeMapsTo,r=t.map((function(t){return t[n]})).filter((function(t){return t})),i=Wm.getHTMLElementSize(this.services.domUtils.getMainContainer()),o=r.length>0,a=o?Ov(r):[1,1];return IE().domain(a).range(o?e.wordCloud.fontSizeRange(i,t):[4,4])},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=ud.debounce((function(t){var e=r.parent.selectAll("text.word").transition(r.services.transitions.getTransition("wordcloud-word-mouse-highlight"));null===t?e.attr("opacity",1):e.attr("opacity",(function(){return t===this?1:.3}))}),6),r=this;this.parent.selectAll("text.word").on("mouseover",(function(i,o){var a=this;n(a),r.services.events.dispatchEvent(it.WordCloud.WORD_MOUSEOVER,{event:i,element:Nm(this),datum:o}),r.services.events.dispatchEvent(it.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:t.tooltip.wordLabel,value:o.text},{label:t.tooltip.valueLabel,value:o.value},{label:t.tooltip.groupLabel,value:o[e],class:r.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:o[e]})}]})})).on("mousemove",(function(t,e){var n=Nm(this);r.services.events.dispatchEvent(it.WordCloud.WORD_MOUSEMOVE,{element:n,datum:e}),r.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){r.services.events.dispatchEvent(it.WordCloud.WORD_CLICK,{event:t,element:Nm(this),datum:e})})).on("mouseout",(function(t,e){var i=Nm(this);n(null),r.services.events.dispatchEvent(it.WordCloud.WORD_MOUSEOUT,{event:t,element:i,datum:e}),r.services.events.dispatchEvent(it.Tooltip.HIDE,{hoveredElement:i})}))},e}(kS),VI=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)}}(),UI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return VI(e,t),e.prototype.render=function(){this.getComponentContainer().style("width",(this.configs.size||yt.default.size)+"px").style("height",(this.configs.size||yt.default.size)+"px").attr("opacity",0)},e}(kS),HI=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)}}(),GI=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;return a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++,a.init(),a}return HI(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("div.layout-child-"+this._instanceID).filter((function(t){var e=ud.getProperty(t,"growth");return e===F.PREFERRED||e===F.FIXED})).each((function(t){e+=t.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("div.layout-child-"+this._instanceID).filter((function(t){return ud.getProperty(t,"growth")===F.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=Wm.getHTMLElementSize(n.node()),i=r.width,o=r.height,a=this.configs.direction===G.ROW||this.configs.direction===G.ROW_REVERSE,s=ud.getProperty(this.model.getOptions(),"style","prefix"),u=n.classed(Vm.prefix+"--"+s+"--layout-row",this.configs.direction===G.ROW).classed(Vm.prefix+"--"+s+"--layout-row-reverse",this.configs.direction===G.ROW_REVERSE).classed(Vm.prefix+"--"+s+"--layout-column",this.configs.direction===G.COLUMN).classed(Vm.prefix+"--"+s+"--layout-column-reverse",this.configs.direction===G.COLUMN_REVERSE).classed(Vm.prefix+"--"+s+"--layout-alignitems-center",this.configs.alignItems===z.CENTER).selectAll("div.layout-child-"+this._instanceID).data(this.children,(function(t){return t.id})),c=u.enter().append("div");c.merge(n.selectAll("div.layout-child-"+this._instanceID)).attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.id})).each((function(e){var n=this;e.components.forEach((function(r){var i=Nm(n),o=ud.getProperty(e,"renderType"),a=o===L.SVG;r.setParent(a?Wm.appendOrSelect(i,"svg.layout-svg-wrapper").attr("width","100%").attr("height","100%"):i);var s=ud.getProperty(e,"growth");s!==F.PREFERRED&&s!==F.FIXED||r.render(t)}))})),n.selectAll("div.layout-child-"+this._instanceID).style("height",null).style("width",null).each((function(t){var e=ud.getProperty(t,"growth"),n=ud.getProperty(t,"renderType"),r=n===L.SVG?Wm.getSVGElementSize(Nm(this).select("svg.layout-svg-wrapper"),{useBBox:!0}):Wm.getHTMLElementSize(this);if(e===F.PREFERRED){var s=a?r.width:r.height,u=a?i:o;t.size=s/u*100}})),u.exit().remove(),this.children.filter((function(t){var e=ud.getProperty(t,"growth");return e===F.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()}));var l=n.selectAll("div.layout-child-"+this._instanceID).data(this.children,(function(t){return t.id}));a?l.style("width",(function(t){return t.size/100*i+"px"})).style("height","100%"):l.style("height",(function(t){return t.size/100*o+"px"})).style("width","100%"),l.each((function(e,n){e.components.forEach((function(n){var r=ud.getProperty(e,"growth");r===F.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}(kS),FI=function(t){return t},zI=1,WI=2,qI=3,YI=4,ZI=1e-6;function XI(t){return"translate("+t+",0)"}function KI(t){return"translate(0,"+t+")"}function $I(t){return e=>+t(e)}function QI(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function JI(){return!this.__axis}function tN(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,c=t===zI||t===YI?-1:1,l=t===YI||t===WI?"x":"y",h=t===zI||t===qI?XI:KI;function f(f){var p=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,d=null==i?e.tickFormat?e.tickFormat.apply(e,n):FI:i,v=Math.max(o,0)+s,g=e.range(),m=+g[0]+u,y=+g[g.length-1]+u,_=(e.bandwidth?QI:$I)(e.copy(),u),b=f.selection?f.selection():f,O=b.selectAll(".domain").data([null]),w=b.selectAll(".tick").data(p,e).order(),x=w.exit(),E=w.enter().append("g").attr("class","tick"),T=w.select("line"),S=w.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),T=T.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),S=S.merge(E.append("text").attr("fill","currentColor").attr(l,c*v).attr("dy",t===zI?"0em":t===qI?"0.71em":"0.32em")),f!==b&&(O=O.transition(f),w=w.transition(f),T=T.transition(f),S=S.transition(f),x=x.transition(f).attr("opacity",ZI).attr("transform",(function(t){return isFinite(t=_(t))?h(t+u):this.getAttribute("transform")})),E.attr("opacity",ZI).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:_(t))+u)}))),x.remove(),O.attr("d",t===YI||t===WI?a?"M"+c*a+","+m+"H"+u+"V"+y+"H"+c*a:"M"+u+","+m+"V"+y:a?"M"+m+","+c*a+"V"+u+"H"+y+"V"+c*a:"M"+m+","+u+"H"+y),w.attr("opacity",1).attr("transform",(function(t){return h(_(t)+u)})),T.attr(l+"2",c*o),S.attr(l,c*v).text(d),b.filter(JI).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===WI?"start":t===YI?"end":"middle"),b.each((function(){this.__axis=_}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(o=a=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(a=+t,f):a},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(u=+t,f):u},f}function eN(t){return tN(zI,t)}function nN(t){return tN(WI,t)}function rN(t){return tN(qI,t)}function iN(t){return tN(YI,t)}var oN=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)}}(),aN=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",i.renderType=L.SVG,r&&(i.configs=r),i.margins=i.configs.margins,i}return oN(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n,r,i=this.configs.position,o=this.getOptions(),s=ud.getProperty(o,"axes",i,"visible"),u=this.getComponentContainer(),c=Wm.getSVGElementSize(u,{useAttrs:!0}),l=c.width,h=c.height,f=Wm.appendOrSelect(u,"g.axis."+i);i===R.BOTTOM||i===R.TOP?(n=this.configs.axes[R.LEFT]?this.margins.left:0,r=this.configs.axes[R.RIGHT]?l-this.margins.right:l):(n=h-this.margins.bottom,r=this.margins.top);var p,d=this.services.cartesianScales.getScaleByPosition(i);switch(this.scaleType===B.LABELS||this.scaleType===B.LABELS_RATIO?d.rangeRound([n,r]):d.range([n,r]),i){case R.LEFT:p=iN;break;case R.BOTTOM:p=rN;break;case R.RIGHT:p=nN;break;case R.TOP:p=eN;break}f.attr("aria-label",i+" axis");var v=!f.select("g.ticks").empty(),g=Wm.appendOrSelect(f,"g.ticks");v||(g.attr("role",a.GRAPHICS_OBJECT+" "+a.GROUP),g.attr("aria-label",i+" ticks"));var m=Wm.appendOrSelect(f,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+i+" ticks"),y=ud.getProperty(o,"axes",i),_=this.scaleType===B.TIME||y.scaleType===B.TIME,b=i===R.LEFT||i===R.RIGHT,O=this.model.get("zoomDomain");if(O&&_&&!b&&d.domain(O),s){var w=ud.getProperty(y,"scaleType"),x=ud.getProperty(o,"data","loading"),E=ud.getProperty(y,"ticks","number"),T=ud.getProperty(y,"ticks","values"),S=ud.getProperty(y,"truncation","type"),M=ud.getProperty(y,"truncation","threshold"),C=ud.getProperty(y,"truncation","numCharacter"),A=null!==E,P=ud.getProperty(o,"timeScale"),L=Wm.appendOrSelect(m,"g.tick"),D=Wm.appendOrSelect(L,"text").text("0"),k=Wm.getSVGElementSize(D.node(),{useBBox:!0}).height;L.remove();var I,j=this.scaleType||y.scaleType||B.LINEAR,V=p(d).tickSizeOuter(0);if(d.ticks){var U=void 0;if(A?U=E:(U=st.ticks.number,b&&(U=this.getNumberOfFittingTicks(h,k,st.ticks.verticalSpaceRatio))),1===d.ticks().length&&0===d.ticks()[0]&&(U=0),V.ticks(U),_)if(d.ticks(U).length){var H=ud.getProperty(o,"timeScale","addSpaceOnEdges"),G=ud.getProperty(o,"axes",i,"domain"),F=void 0,z=d.copy();H&&!G&&z.nice(U),F=z.ticks(U),H&&F.length>2&&!G&&(F.splice(F.length-1,1),F.splice(0,1)),V.tickValues(F)}else V.tickValues([])}var W=ud.getProperty(y,"ticks","formatter");if(_){var q=lP(V.tickValues());I=null===W?function(t,e){return aP(t,e,V.tickValues(),q,P)}:function(t,e){var n=aP(t,e,V.tickValues(),q,P);return W(t,e,n)}}else null===W?j===B.LINEAR&&(I=function(t){return t.toLocaleString()}):I=W;V.tickFormat(I);var Y,Z=this.services.cartesianScales.getScaleByPosition(i).domain(),X=Z[0],K=Z[1];if(T){if(_)T.forEach((function(t,e){void 0===t.getTime&&(T[e]=new Date(t))})),Y=T.filter((function(t){var e=t.getTime();return e>=new Date(X).getTime()&&e<=new Date(K).getTime()}));else if(w===B.LABELS){var $=this.services.cartesianScales.getScaleByPosition(i).domain();Y=T.filter((function(t){return $.includes(t)}))}else Y=T.filter((function(t){return t>=X&&t<=K}));V.tickValues(Y)}switch(i){case R.LEFT:g.attr("transform","translate("+this.margins.left+", 0)");break;case R.BOTTOM:g.attr("transform","translate(0, "+(h-this.margins.bottom)+")");break;case R.RIGHT:g.attr("transform","translate("+(l-this.margins.right)+", 0)");break;case R.TOP:g.attr("transform","translate(0, "+this.margins.top+")");break}var J=this.model.isDataEmpty();if(y.title){var tt=Wm.appendOrSelect(f,"text.axis-title").html(J||x?"":y.title),nt=ud.getProperty(y,"titleOrientation");switch(i){case R.LEFT:nt===et.RIGHT?tt.attr("transform","rotate(90)").attr("y",0).attr("x",d.range()[0]/2).attr("dy","-0.5em").style("text-anchor","middle"):tt.attr("transform","rotate(-90)").attr("y",0).attr("x",-d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case R.BOTTOM:tt.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+(h+4)+")").style("text-anchor","middle");break;case R.RIGHT:nt===et.LEFT?tt.attr("transform","rotate(-90)").attr("y",l).attr("x",-d.range()[0]/2).style("text-anchor","middle"):tt.attr("transform","rotate(90)").attr("y",-l).attr("x",d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case R.TOP:var rt=Wm.getSVGElementSize(tt,{useBBox:!0}).height;tt.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+rt/2+")").style("text-anchor","middle");break}}if(_){var it=lP(V.tickValues()),ot=P.showDayName,at=g;t&&(g=g.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"axis-update",animate:t})}))),g=g.call(V);var ut=at.selectAll(".tick").data(V.tickValues(),d).order().select("text");ut.style("font-weight",(function(t,e){return oP(t,e,V.tickValues(),it,ot)?"bold":"normal"}))}else g=t&&v?g.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"axis-update",animate:t})})).call(V):g.call(V);if(m.call(V),i===R.BOTTOM||i===R.TOP){var ct=!1,lt=ud.getProperty(y,"ticks","rotation");if(lt===Q.ALWAYS)ct=!0;else if(lt===Q.NEVER)ct=!1;else if(!lt||lt===Q.AUTO)if(d.step){var ht=m.selectAll("g.tick text").nodes();ct=ht.some((function(t){return Wm.getSVGElementSize(t,{useBBox:!0}).width>=d.step()}))}else{ct=!1;var ft,pt=m.append("text").text("A"),dt=pt.node().getBBox().width;m.selectAll("g.tick").each((function(){var t=Nm(this),e=parseFloat(ud.getProperty(ud.getTranslationValues(this),"tx"));null!==e&&ft+t.text().length*dt*.8>=e&&(ct=!0),ft=e}))}ct?(A||(V.ticks(this.getNumberOfFittingTicks(l,k,st.ticks.horizontalSpaceRatio)),m.call(V),g.call(V)),f.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",i===R.TOP?"start":"end")):f.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(x?f.attr("opacity",0):f.attr("opacity",1),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),m.selectAll("g.tick").attr("aria-label",(function(t){return t})),S!==N.NONE&&w===B.LABELS&&!T){var vt=this.services.cartesianScales.getScaleDomain(i);if(vt.length>0){var gt=u.select("g.axis."+i+" g.ticks g.tick").html();f.selectAll("g.ticks g.tick").html(gt),f.selectAll("g.tick text").data(vt).text((function(t){return t.length>M?ud.truncateLabel(t,S,C):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(vt).text((function(t){return t.length>M?ud.truncateLabel(t,S,C):t})),f.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),f.selectAll("g.tick text").data(vt)}}this.addEventListeners()}else g.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Wm.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=ud.getProperty(r,"axes",e),o=ud.getProperty(i,"scaleType"),a=ud.getProperty(i,"truncation","threshold"),s=(this.scaleType===B.TIME||(i.scaleType,B.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t,e){s.services.events.dispatchEvent(it.Axis.LABEL_MOUSEOVER,{event:t,element:Nm(this),datum:e}),o===B.LABELS&&e.length>a&&s.services.events.dispatchEvent(it.Tooltip.SHOW,{event:t,hoveredElement:Nm(this),content:e})})).on("mousemove",(function(t,e){s.services.events.dispatchEvent(it.Axis.LABEL_MOUSEMOVE,{event:t,element:Nm(this),datum:e}),o===B.LABELS&&e.length>a&&s.services.events.dispatchEvent(it.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){s.services.events.dispatchEvent(it.Axis.LABEL_CLICK,{event:t,element:Nm(this),datum:e})})).on("mouseout",(function(t,e){s.services.events.dispatchEvent(it.Axis.LABEL_MOUSEOUT,{event:t,element:Nm(this),datum:e}),o===B.LABELS&&s.services.events.dispatchEvent(it.Tooltip.HIDE)}))},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getComponentContainer().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getComponentContainer().select("g.axis."+t+" text.axis-title")},e.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return ud.clamp(r,2,st.ticks.number)},e.prototype.destroy=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Wm.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(kS),sN=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)}}(),uN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.renderType=L.SVG,e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return sN(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(R),i=ud.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[R[t]];e&&(n[R[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=R[t];if(e.configs.axes[n]&&!e.children[n]){var r=new aN(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,a=r.getInvisibleAxisRef(),s=Wm.getSVGElementSize(a,{useBBox:!0}),u=s.width,c=s.height;switch(r.getTitleRef().empty()?n=0:(n=Wm.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i!==R.LEFT&&i!==R.RIGHT||(n+=5)),i){case R.TOP:o.top=c+n;break;case R.BOTTOM:o.bottom=c+n;break;case R.LEFT:o.left=u+n;break;case R.RIGHT:o.right=u+n;break}}));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(it.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(kS);const cN={capture:!0,passive:!1};var lN=function(t){t.preventDefault(),t.stopImmediatePropagation()},hN=function(t){var e=t.document.documentElement,n=Nm(t).on("dragstart.drag",lN,cN);"onselectstart"in e?n.on("selectstart.drag",lN,cN):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function fN(t,e){var n=t.document.documentElement,r=Nm(t).on("dragstart.drag",null);e&&(r.on("click.drag",lN,cN),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 pN=t=>()=>t;function dN(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function vN(t){t.stopImmediatePropagation()}var gN=function(t){t.preventDefault(),t.stopImmediatePropagation()},mN={name:"drag"},yN={name:"space"},_N={name:"handle"},bN={name:"center"};const{abs:ON,max:wN,min:xN}=Math;function EN(t){return[+t[0],+t[1]]}function TN(t){return[EN(t[0]),EN(t[1])]}var SN={name:"x",handles:["w","e"].map(kN),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]]}},MN={name:"y",handles:["n","s"].map(kN),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]]}},CN=(["n","w","e","s","nw","ne","sw","se"].map(kN),{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"}),AN={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},PN={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},LN={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},DN={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function kN(t){return{type:t}}function RN(t){return!t.ctrlKey&&!t.button}function IN(){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 NN(){return navigator.maxTouchPoints||"ontouchstart"in this}function jN(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function BN(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function VN(){return UN(SN)}function UN(t){var e,n=IN,r=RN,i=NN,o=!0,a=iy("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([kN("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",CN.overlay).merge(n).each((function(){var t=jN(this).extent;Nm(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([kN("selection")]).enter().append("rect").attr("class","selection").attr("cursor",CN.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 CN[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=Nm(this),e=jN(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){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,s,u,h,f,p,d,v,g,m,y=this,_=n.target.__data__.type,b="selection"===(o&&n.metaKey?_="overlay":_)?mN:o&&n.altKey?bN:_N,O=t===MN?null:LN[_],w=t===SN?null:DN[_],x=jN(y),E=x.extent,T=x.selection,S=E[0][0],M=E[0][1],C=E[1][0],A=E[1][1],P=0,L=0,D=O&&w&&o&&n.shiftKey,k=Array.from(n.touches||[n],t=>{const e=t.identifier;return t=hd(t,y),t.point0=t.slice(),t.identifier=e,t});Vy(y);var R=l(y,arguments,!0).beforestart();if("overlay"===_){T&&(v=!0);const e=[k[0],k[1]||k[0]];x.selection=T=[[i=t===MN?S:xN(e[0][0],e[1][0]),s=t===SN?M:xN(e[0][1],e[1][1])],[h=t===MN?C:wN(e[0][0],e[1][0]),p=t===SN?A:wN(e[0][1],e[1][1])]],k.length>1&&V(n)}else i=T[0][0],s=T[0][1],h=T[1][0],p=T[1][1];a=i,u=s,f=h,d=p;var I=Nm(y).attr("pointer-events","none"),N=I.selectAll(".overlay").attr("cursor",CN[_]);if(n.touches)R.moved=B,R.ended=U;else{var j=Nm(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",U,!0);o&&j.on("keydown.brush",H,!0).on("keyup.brush",G,!0),hN(n.view)}c.call(y),R.start(n,b.name)}function B(t){for(const e of t.changedTouches||[t])for(const t of k)t.identifier===e.identifier&&(t.cur=hd(e,y));if(D&&!g&&!m&&1===k.length){const t=k[0];ON(t.cur[0]-t[0])>ON(t.cur[1]-t[1])?m=!0:g=!0}for(const e of k)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);v=!0,gN(t),V(t)}function V(t){const e=k[0],n=e.point0;var r;switch(P=e[0]-n[0],L=e[1]-n[1],b){case yN:case mN:O&&(P=wN(S-i,xN(C-h,P)),a=i+P,f=h+P),w&&(L=wN(M-s,xN(A-p,L)),u=s+L,d=p+L);break;case _N:k[1]?(O&&(a=wN(S,xN(C,k[0][0])),f=wN(S,xN(C,k[1][0])),O=1),w&&(u=wN(M,xN(A,k[0][1])),d=wN(M,xN(A,k[1][1])),w=1)):(O<0?(P=wN(S-i,xN(C-i,P)),a=i+P,f=h):O>0&&(P=wN(S-h,xN(C-h,P)),a=i,f=h+P),w<0?(L=wN(M-s,xN(A-s,L)),u=s+L,d=p):w>0&&(L=wN(M-p,xN(A-p,L)),u=s,d=p+L));break;case bN:O&&(a=wN(S,xN(C,i-P*O)),f=wN(S,xN(C,h+P*O))),w&&(u=wN(M,xN(A,s-L*w)),d=wN(M,xN(A,p+L*w)));break}f<a&&(O*=-1,r=i,i=h,h=r,r=a,a=f,f=r,_ in AN&&N.attr("cursor",CN[_=AN[_]])),d<u&&(w*=-1,r=s,s=p,p=r,r=u,u=d,d=r,_ in PN&&N.attr("cursor",CN[_=PN[_]])),x.selection&&(T=x.selection),g&&(a=T[0][0],f=T[1][0]),m&&(u=T[0][1],d=T[1][1]),T[0][0]===a&&T[0][1]===u&&T[1][0]===f&&T[1][1]===d||(x.selection=[[a,u],[f,d]],c.call(y),R.brush(t,b.name))}function U(t){if(vN(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else fN(t.view,v),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);I.attr("pointer-events","all"),N.attr("cursor",CN.overlay),x.selection&&(T=x.selection),BN(T)&&(x.selection=null,c.call(y)),R.end(t,b.name)}function H(t){switch(t.keyCode){case 16:D=O&&w;break;case 18:b===_N&&(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=bN,V(t));break;case 32:b!==_N&&b!==bN||(O<0?h=f-P:O>0&&(i=a-P),w<0?p=d-L:w>0&&(s=u-L),b=yN,N.attr("cursor",CN.selection),V(t));break;default:return}gN(t)}function G(t){switch(t.keyCode){case 16:D&&(g=m=D=!1,V(t));break;case 18:b===bN&&(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=_N,V(t));break;case 32:b===yN&&(t.altKey?(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=bN):(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=_N),N.attr("cursor",CN[_]),V(t));break;default:return}gN(t)}}function p(t){l(this,arguments).moved(t)}function d(t){l(this,arguments).ended(t)}function v(){var e=this.__brush||{selection:null};return e.extent=TN(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).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=kx(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,i=arguments,o=e.__brush,a=t.input("function"===typeof n?n.apply(e,i):n,o.extent),s=l(e,i).beforestart();Vy(e),o.selection=null===a?null:a,c.call(e),s.start(r).brush(r).end(r)}))},u.clear=function(t,e){u.move(t,null,e)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0===--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=Nm(this.that).datum();a.call(e,this.that,new dN(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:pN(TN(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:pN(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:pN(!!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 HN=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)}}(),GN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.renderType=L.SVG,e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return HN(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getComponentContainer(),o=Wm.appendOrSelect(r,"svg.chart-grid-backdrop"),a=Wm.appendOrSelect(o,"g."+this.type),s=Wm.appendOrSelect(a,this.selectionSelector),u=Wm.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=Wm.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===B.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(t){var e=t.selection;null!==e&&e[0]!==e[1]&&(g.attr("x",parseFloat(s.attr("x"))+parseFloat(o.attr("x"))).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(e))},b=function(t,e){var r=Kx().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)},O=function(t){var e=t.selection;null!==e&&(b(e[0],e[1]),a.call(w.move,null),g.style("display","none"))},w=VN().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",O);a.call(w);var x=this.services.zoom.getZoomRatio();o.on("click",(function(t){if(t.shiftKey){var e=this.services.domUtils.getHolder(),n=hd(a.node(),e)[0],r=n-c*x/2;r<0&&(r=0);var i=n+c*x/2;i>c&&(i=c),b(r,i)}}))}},e.DASH_LENGTH=4,e}(kS),FN=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)}}(),zN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e.renderType=L.SVG,e}return FN(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=ud.getProperty(this.getOptions(),"grid","x","enabled"),n=ud.getProperty(this.getOptions(),"grid","y","enabled");this.drawBackdrop(e,n),(e||n)&&(e&&(Wm.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(Wm.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this,n=this.parent,r=this.backdrop.attr("height"),i=this.services.cartesianScales.getMainXScale(),o=rN(i).tickSizeInner(-r).tickSizeOuter(0),a=ud.getProperty(this.getOptions(),"grid","x","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getDomainAxisPosition(),u=ud.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=ud.getProperty(this.getOptions(),"grid","x","numberOfTicks");o.ticks(c)}var l=n.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+r+")");t?l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"grid-update",animate:t})})).call(o):l.call(o),this.cleanGrid(l)},e.prototype.drawYGrid=function(t){var e=this,n=this.parent,r=this.backdrop.attr("width"),i=this.services.cartesianScales.getMainYScale(),o=iN(i).tickSizeInner(-r).tickSizeOuter(0),a=ud.getProperty(this.getOptions(),"grid","y","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getRangeAxisPosition(),u=ud.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=ud.getProperty(this.getOptions(),"grid","y","numberOfTicks");o.ticks(c)}var l=n.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");t?l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"grid-update",animate:t})})).call(o):l.call(o),this.cleanGrid(l)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(ud.getTranslationValues(t).tx)-Number(ud.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+ud.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=+ud.getTranslationValues(s).tx-+ud.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=Wm.getSVGElementSize(u).width;o=c-+ud.getTranslationValues(a).tx}else o=+ud.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=ud.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=ud.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=Wm.appendOrSelect(n,"svg.chart-grid-backdrop");var h=Wm.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}(kS),WN=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)}}(),qN=5;function YN(t,e){return t>e-qN&&t<e+qN}var ZN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.renderType=L.SVG,e.isXGridEnabled=ud.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=ud.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return WN(e,t),e.prototype.render=function(){var t=ud.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,e){var n=this,r=e[0],i=e[1],o=this.parent,a=this.services.cartesianScales.getOrientation(),s=this.model.getDisplayData(),u=this.services.cartesianScales.getRangeScale(),c=u.range(),l=c[0],h=c[1],f=a===j.HORIZONTAL?i:r,p=Wm.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),d=Wm.appendOrSelect(p,"line.ruler-line"),v=o.selectAll("[role=graphics-symbol]"),g=s.map((function(t){return{domainValue:n.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return YN(t.domainValue,f)}));if(this.pointsWithinLine&&g.length===this.pointsWithinLine.length&&g.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=g,this.services.events.dispatchEvent(it.Tooltip.MOVE,{mousePosition:[r,i]});this.pointsWithinLine=g;var m=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(f-e.domainValue),i=Math.abs(f-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(m.length>0){var y=m.map((function(t){return t.originalData})).filter((function(t){var e=n.services.cartesianScales.getRangeIdentifier(t),r=t[e];return null!==r&&void 0!==r})),_=m.map((function(t){return t.domainValue})),b=v.filter((function(t){var e=n.services.cartesianScales.getDomainValue(t);return _.includes(e)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!ud.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent(it.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:d,data:this.formatTooltipData(y)}),p.attr("opacity",1);var O=m[0];"horizontal"===a?d.attr("x1",h).attr("x2",l).attr("y1",O.domainValue).attr("y2",O.domainValue):d.attr("y1",h).attr("y2",l).attr("x1",O.domainValue).attr("x2",O.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=Wm.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(it.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.services.domUtils.getHolder(),n=this.model.getDisplayData(),r=function(e){var n=hd(e,t.parent.node());t.showRuler(e,n)};if(n.length>100){var i=n.length%50*12.5;r=ud.debounceWithD3MousePosition((function(e){var n=this.mousePosition;t.showRuler(e,n)}),i,e)}this.backdrop.on("mousemove mouseover",r).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent;this.backdrop=Wm.appendOrSelect(t,"svg.chart-grid-backdrop")},e}(kS),XN=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)}}(),KN=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},$N=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler-binned",e.renderType=L.SVG,e}return XN(e,t),e.prototype.showRuler=function(t,e){var n=this,r=e[0],i=e[1],o=this.parent,a=this.model.getOptions(),s=this.services.cartesianScales.getOrientation(),u=this.services.cartesianScales.getRangeScale(),c=u.range(),l=c[0],h=c[1],f=this.services.cartesianScales.getDomainScale(),p=f.invert(s===j.VERTICAL?r:i),d=Wm.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),v=Wm.appendOrSelect(d,"line.ruler-line"),g=o.selectAll("[role=graphics-symbol]"),m=g.filter((function(t){if(parseFloat(gl(t,"data.x0"))<=p&&parseFloat(gl(t,"data.x1"))>=p)return!0}));if(m.size()>0){this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!ud.isEqual(this.elementsToHighlight,m)&&this.hideRuler(),m.dispatch("mouseover"),this.elementsToHighlight=m;var y=Nm(m.nodes()[0]).datum(),_=parseFloat(gl(y,"data.x0")),b=parseFloat(gl(y,"data.x1")),O=this.model.getActiveDataGroupNames(),w=O.reverse().map((function(t){return{label:"Group",value:gl(y,"data."+t),class:n.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:t})}})).filter((function(t){return 0!==t.value})),x=w.length>0;if(x){this.services.events.dispatchEvent(it.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:v,items:KN([{label:gl(a,"bins.rangeLabel")||"Range",value:_+" – "+b}],w,!0===ud.getProperty(a,"tooltip","showTotal")?[{label:gl(a,"tooltip.totalLabel")||"Total",value:O.reduce((function(t,e){return t+parseFloat(gl(y,"data."+e))}),0)}]:[])}),d.attr("opacity",1);var E=f((_+b)/2);"horizontal"===s?v.attr("x1",h).attr("x2",l).attr("y1",E).attr("y2",E):v.attr("y1",h).attr("y2",l).attr("x1",E).attr("x2",E)}else this.hideRuler()}else this.hideRuler()},e}(ZN),QN=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)}}(),JN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QN(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e}(ZN),tj=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)}}(),ej=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.renderType=L.HTML,e}return tj(e,t),e.prototype.init=function(){var t=this,e=function(){return t.updateOverflowMenu(!1)};this.services.events.addEventListener(it.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.renderOverflowMenu(),document.body.addEventListener("click",e)})),this.services.events.addEventListener(it.Toolbar.HIDE_OVERFLOW_MENU,(function(){document.body.removeEventListener("click",e)}))},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this.getComponentContainer();this.overflowMenu||(this.overflowMenu=e.append("div").attr("class","bx--overflow-menu-options bx--overflow-menu--flip").attr("tabindex",-1).attr("role","menu").html("<ul></ul>"));var n=this.getControlConfigs(),r=n.buttonList,i=n.overflowMenuItemList;i&&r.push(this.getOverflowButtonConfig());var o=e.selectAll("div.toolbar-control").data(r,(function(t){return t.id}));o.exit().remove();var a=o.enter().append("div").attr("class","toolbar-control bx--overflow-menu");a.merge(o).classed("disabled",(function(t){return!!t.shouldBeDisabled&&t.shouldBeDisabled()})).html((function(t){return'\n\t\t\t<button\n\t\t\t\tclass="bx--overflow-menu__trigger"\n\t\t\t\taria-haspopup="true" aria-expanded="false" id="'+t.id+'">\n\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform; width: '+(void 0!==t.iconWidth?t.iconWidth:"20px")+"; height: "+(void 0!==t.iconWidth?t.iconHeight:"20px")+'" xmlns="http://www.w3.org/2000/svg" class="bx--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">\n\t\t\t\t\t'+t.iconSVGContent+"\n\t\t\t\t</svg>\n\t\t\t</button>"})).each((function(t){Nm(this).select("button").on("click",t.clickFunction).on("keyup",(function(e){(e.key&&"Enter"===e.key||" "===e.key)&&(e.preventDefault(),t.clickFunction())}))}));this.overflowButton=this.getComponentContainer().select("button.bx--overflow-menu__trigger#toolbar-overflow-menu")},e.prototype.renderOverflowMenu=function(){var t=this.getControlConfigs().overflowMenuItemList,e=this.overflowMenu.select("ul").selectAll("li.bx--overflow-menu-options__option").data(t,(function(t){return ud.getProperty(t,"id")}));e.exit().remove();var n=e.enter().append("li").attr("id",(function(t){return t.id})).attr("class","bx--overflow-menu-options__option");n.append("button").attr("class","bx--overflow-menu-options__btn").attr("role","menuitem"),n.merge(e).classed("bx--overflow-menu-options__option--disabled",(function(t){return t.shouldBeDisabled()})).attr("aria-disabled",(function(t){return t.shouldBeDisabled()})).selectAll("button").text((function(t){return t.text}))},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.classed("is-open")},e.prototype.updateOverflowMenu=function(t){this.overflowMenu.classed("is-open",t),this.overflowButton&&(this.overflowButton.attr("aria-expanded",t),Nm(this.overflowButton.node().parentNode).classed("bx--overflow-menu--open",t)),t?this.services.events.dispatchEvent(it.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(it.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=Nm("#"+e[n].id+" button").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=Nm("#"+e[n].id+" button").node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(t){if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var e=this,n=this.getOverflowMenuItems();n.forEach((function(n,r){var i=Nm("#"+n.id);null!==i&&(i.on("click",(function(){n.clickFunction(),e.updateOverflowMenu(!1)})),i.on("keyup",(function(){"Enter"===t.key?n.clickFunction():"ArrowUp"===t.key?e.focusOnPreviousEnabledMenuItem(r):"ArrowDown"===t.key&&e.focusOnNextEnabledMenuItem(r)})))})),e.focusOnNextEnabledMenuItem(-1)}t.stopImmediatePropagation()},e.prototype.getControlConfigs=function(){var t=this,e=ud.getProperty(this.getOptions(),"toolbar","numberOfIcons"),n=ud.getProperty(this.getOptions(),"toolbar","controls"),r=[],i=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,-1!==n.id.indexOf("toolbar-export")?i.push(n):r.push(n))})),r.length<=e&&0===i.length?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r.concat(i)}},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(e){return t.toggleOverflowMenu(e)}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom&&this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState();switch(t){case tt.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 tt.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 tt.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;case tt.MAKE_FULLSCREEN:e={id:"toolbar-makefullscreen",iconSVGContent:this.getControlIconByType(t),iconWidth:"15px",iconHight:"15px",shouldBeDisabled:function(){return!1},clickFunction:function(){n.services.domUtils.toggleFullscreen()}};break;case tt.SHOW_AS_DATATABLE:e={id:"toolbar-showasdatatable",iconSVGContent:this.getControlIconByType(t),shouldBeDisabled:!1,clickFunction:function(){return n.services.events.dispatchEvent(it.Modal.SHOW)}};break;case tt.EXPORT_CSV:e={id:"toolbar-export-CSV",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.model.exportToCSV()}};break;case tt.EXPORT_PNG:e={id:"toolbar-export-PNG",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.domUtils.exportToPNG()}};break;case tt.EXPORT_JPG:e={id:"toolbar-export-JPG",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.domUtils.exportToJPG()}};break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case tt.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\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 tt.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 tt.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"/>';case tt.MAKE_FULLSCREEN:return'<polygon points="21 2 21 4 26.59 4 17 13.58 18.41 15 28 5.41 28 11 30 11 30 2 21 2"/><polygon points="15 18.42 13.59 17 4 26.59 4 21 2 21 2 30 11 30 11 28 5.41 28 15 18.42"/>';case tt.SHOW_AS_DATATABLE:return'<rect x="4" y="6" width="18" height="2"/><rect x="4" y="12" width="18" height="2"/><rect x="4" y="18" width="18" height="2"/><rect x="4" y="24" width="18" height="2"/><rect x="26" y="6" width="2" height="2"/><rect x="26" y="12" width="2" height="2"/><rect x="26" y="18" width="2" height="2"/><rect x="26" y="24" width="2" height="2"/>';case tt.EXPORT_CSV: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"/>';case tt.EXPORT_JPG: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"/>';case tt.EXPORT_PNG: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}(kS),nj=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)}}(),rj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e.renderType=L.SVG,e}return nj(e,t),e.prototype.render=function(t){var e=this,n=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),r=this.services.cartesianScales.getScaleByPosition(n),i=r.domain(),o=i[0],a=i[1],s=o>0&&a<0||o<0&&a>0,u=this.getComponentContainer();if(s){var c=this.services.cartesianScales.getDomainScale().range(),l=c[0],h=c[1],f=+r(0)+.5;f||(f=r.range()[0]);var p=ud.flipSVGCoordinatesBasedOnOrientation({x0:l,x1:h,y0:f,y1:f},this.services.cartesianScales.getOrientation()),d=Wm.appendOrSelect(u,"line.domain");d.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"zero-line-update",animate:t})})).attr("y1",p.y0).attr("y2",p.y1).attr("x1",p.x0).attr("x2",p.x1)}else u.selectAll("line.domain").remove()},e}(kS),ij=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)}}(),oj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.renderType=L.SVG,e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=VN(),e}return ij(e,t),e.prototype.init=function(){this.services.events.addEventListener(it.ZoomBar.UPDATE,this.render.bind(this));var t=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=this.services.zoom.isZoomBarLoading(R.TOP),i=this.services.zoom.isZoomBarLocked(R.TOP),o=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),a=wt.height[o],s=Wm.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=Wm.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",a).attr("opacity",1);Wm.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",a).attr("width","100%").attr("height",wt.spacerHeight).attr("opacity",1).attr("fill","none");if(o===I.GRAPH_VIEW?Wm.appendOrSelect(l,"rect.zoom-bg").attr("x",u).attr("y",0).attr("width",s-u).attr("height","100%").classed("zoom-bg-skeleton",r):o===I.SLIDER_VIEW&&Wm.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===B.TIME){var v=this.services.zoom.getZoomBarData();if(ud.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=ud.getProperty(this.getOptions(),"zoomBar",R.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()?null===y&&null!=m&&this.model.set({initialZoomDomain:null,zoomDomain:ud.merge([],g)},{skipUpdate:!0}):this.model.set({initialZoomDomain:ud.merge([],y),zoomDomain:y?ud.merge([],y):g},{skipUpdate:!0}),this.xScale.range([u,s]).domain(g),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,a-6]).domain(Ov(v,(function(t){return t.value})));var _=this.model.get("zoomDomain");o===I.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=Wm.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.getComponentContainer(),this.xScale.range(),this.xScale.domain());else{var O=_.map((function(t){return e.xScale(t)}));O[1]-O[0]<this.MIN_SELECTION_DIFF||(b.call(this.brush.move,O),this.updateBrushHandle(this.getComponentContainer(),O,_))}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(e){var n=e.selection;null===n?r.handleBrushedEvent(e,t,r.xScale,r.xScale.range()):n[0]===n[1]||r.handleBrushedEvent(e,t,r.xScale,n)},o=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),a=wt.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,r){var i=[n.invert(r[0]),n.invert(r[1])];if(this.updateBrushHandle(this.getComponentContainer(),r,i),null!=t.sourceEvent&&("mousemove"===t.sourceEvent.type||"mouseup"===t.sourceEvent.type||"mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type||"touchmove"===t.sourceEvent.type||"touchend"===t.sourceEvent.type)){void 0!==e&&e[0]===i[0]&&e[1]===i[1]||this.services.zoom.handleDomainChange(i,{dispatchEvent:!1});var o=void 0;"start"===t.type?o=it.ZoomBar.SELECTION_START:"brush"===t.type?o=it.ZoomBar.SELECTION_IN_PROGRESS:"end"===t.type&&(o=it.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(it.ZoomDomain.CHANGE,{newDomain:i})),this.services.events.dispatchEvent(o,{selection:r,newDomain:i})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=wt.handleWidth,o=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),a=wt.height[o],s=-i/2,u=wt.handleBarWidth,c=o===I.GRAPH_VIEW?wt.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===I.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=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),n=wt.height[e],r=(Wm.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getComponentContainer(),o=i.select("svg.zoom-container");Wm.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=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type"),p=wt.height[f],d=UP().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=Wm.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=Wm.appendOrSelect(t,"clipPath").attr("id",e);Wm.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=ud.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=ud.getProperty(this.model.getOptions(),"zoomBar",R.TOP,"type"),o=wt.height[i],a=VP()([[e,o],[n,o]]);Wm.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),Wm.appendOrSelect(this.getComponentContainer(),this.brushSelector).html(null);var r=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"type");r===I.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(it.ZoomBar.UPDATE,this.render.bind(this))},e}(kS),aj=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},sj=function(){function t(t,e){this.services={domUtils:Wm,files:Xm,events:Ym,gradientUtils:nO,transitions:tO,canvasZoom:DS},this.model=new Rv(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(it.Model.UPDATE,(function(t){var e=!!ud.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(it.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(it.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,e){void 0===e&&(e=L.SVG);var n={id:"title",components:[new mP(this.model,this.services)],growth:F.PREFERRED},r={id:"legend",components:[new IS(this.model,this.services)],growth:F.PREFERRED},i=ud.getProperty(this.model.getOptions(),"canvasZoom","enabled");i&&!0===i&&t.push(new AP(this.model,this.services));var o={id:"graph-frame",components:t,growth:F.STRETCH,renderType:e},a=!1!==this.model.getOptions().legend.enabled,s=G.COLUMN;if(a){var u=ud.getProperty(this.model.getOptions(),"legend","position");"left"===u?(s=G.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=H.VERTICAL)):"right"===u?(s=G.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=H.VERTICAL)):"bottom"===u&&(s=G.COLUMN_REVERSE)}var c={id:"spacer",components:[new UI(this.model,this.services)],growth:F.PREFERRED},l={id:"full-frame",components:[new GI(this.model,this.services,aj(a?[r]:[],a?[c]:[],[o]),{direction:s})],growth:F.STRETCH},h=[];if(this.model.getOptions().title){h.push(n);var f={id:"spacer",components:[new UI(this.model,this.services)],growth:F.PREFERRED};h.push(f)}return h.push(l),[new OP(this.model,this.services),new SC(this.model,this.services),new GI(this.model,this.services,h,{direction:G.COLUMN})]},t}(),uj=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)}}(),cj=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},lj=function(t){function e(e){return t.call(this,e)||this}return uj(e,t),e.prototype.assignRangeAndDomains=function(){var t=this.services.cartesianScales,e=this.getOptions(),n=t.isDualAxes(),r={primaryDomain:t.domainAxisPosition,primaryRange:t.rangeAxisPosition,secondaryDomain:null,secondaryRange:null};return n&&(r.secondaryDomain=t.secondaryDomainAxisPosition,r.secondaryRange=t.secondaryRangeAxisPosition),Object.keys(r).forEach((function(n){var i=r[n];t.scales[i]?r[n]={position:i,label:t.getScaleLabel(i),identifier:ud.getProperty(e,"axes",i,"mapsTo")}:r[n]=null})),r},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.services.cartesianScales,o=this.assignRangeAndDomains(),a=o.primaryDomain,s=o.primaryRange,u=o.secondaryDomain,c=o.secondaryRange,l=i.getDomainAxisScaleType();l===B.TIME&&(t=function(t){return eP(t,"MMM d, yyyy")});var h=cj([cj(["Group",a.label,s.label],u?[u.label]:[],c?[c.label]:[])],e.map((function(e){return cj([e[r],null===e[a.identifier]?"&ndash;":t?t(e[a.identifier]):e[a.identifier],null===e[s.identifier]||isNaN(e[s.identifier])?"&ndash;":e[s.identifier].toLocaleString()],u?[null===e[u.identifier]?"&ndash;":e[u.identifier]]:[],c?[null===e[c.identifier]||isNaN(e[c.identifier])?"&ndash;":e[c.identifier]]:[])})));return h},e.prototype.exportToCSV=function(){var t=this.getTabularDataArray().map((function(t){return t.map((function(t){return'"'+t+'"'}))})),e="",n="";t.forEach((function(r,i){n=r.join(","),e+=i<t.length?n+"\n":n})),this.services.files.downloadCSV(e,"myChart.csv")},e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"enabled"))){var r=ud.getProperty(this.getOptions(),"zoomBar",R.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(ud.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=ud.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(R).forEach((function(t){var r=R[t],i=e.axes[r];if(i&&i.scaleType===B.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===ud.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}(Rv),hj=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)}}(),fj=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},pj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:OT,curves:CS,zoom:PS}),r.model=new lj(r.services),r}return hj(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=ud.getProperty(n,"zoomBar",R.TOP,"enabled"),i=ud.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var o=this.services.cartesianScales.getMainXAxisPosition(),a=ud.getProperty(n,"axes",o,"scaleType"),s=r&&o===R.BOTTOM&&a===B.TIME,u=this.services.zoom.isZoomBarLocked(R.TOP),c=!!this.model.getOptions().title,l={id:"title",components:[new mP(this.model,this.services)],growth:F.STRETCH},h={id:"toolbar",components:[new ej(this.model,this.services)],growth:F.PREFERRED},f={id:"header",components:[new GI(this.model,this.services,fj([l],i?[h]:[]),{direction:G.ROW,alignItems:z.CENTER})],growth:F.PREFERRED},p={id:"legend",components:[new IS(this.model,this.services)],growth:F.PREFERRED};s&&!u&&t.push(new MP(this.model,this.services),new GN(this.model,this.services)),t.push(new vP(this.model,this.services));var d={id:"graph-frame",components:t,growth:F.STRETCH,renderType:L.SVG},v=!1!==ud.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,g=G.COLUMN;if(v){var m=ud.getProperty(this.model.getOptions(),"legend","position");m===V.LEFT?(g=G.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=H.VERTICAL)):m===V.RIGHT?(g=G.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=H.VERTICAL)):m===V.BOTTOM&&(g=G.COLUMN_REVERSE)}var y={id:"spacer",components:[new UI(this.model,this.services)],growth:F.PREFERRED},_={id:"full-frame",components:[new GI(this.model,this.services,fj(v?[p]:[],v?[y]:[],[d]),{direction:g})],growth:F.STRETCH},b={id:"zoom-bar",components:[new oj(this.model,this.services)],growth:F.PREFERRED,renderType:L.SVG},O=[];if(c||i){O.push(f);var w={id:"spacer",components:[new UI(this.model,this.services,i?{size:15}:void 0)],growth:F.PREFERRED};O.push(w)}return s&&O.push(b),O.push(_),[new EP(this.model,this.services),new SC(this.model,this.services),new GI(this.model,this.services,O,{direction:G.COLUMN})]},e}(sj),dj=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)}}(),vj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(ud.clone(Yd.areaChart),n.options)),r.init(e,n),r}return dj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new ZN(this.model,this.services),new lL(this.model,this.services),new GP(this.model,this.services),new nL(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new jL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(pj),gj=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)}}(),mj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.stackedAreaChart,n.options)),r.init(e,n),r}return gj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new JN(this.model,this.services),new zP(this.model,this.services),new lL(this.model,this.services,{stacked:!0}),new dL(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new jL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(pj),yj=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)}}(),_j=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.simpleBarChart,n.options)),r.init(e,n),r}return yj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new ZP(this.model,this.services),new rj(this.model,this.services),new jL(this.model,this.services,{skeleton:q.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(pj),bj=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)}}(),Oj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.groupedBarChart,n.options)),r.init(e,n),r}return bj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new KP(this.model,this.services),new rj(this.model,this.services),new jL(this.model,this.services,{skeleton:q.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(pj),wj=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)}}(),xj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.stackedBarChart,n.options)),r.init(e,n),r}return wj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new JN(this.model,this.services),new QP(this.model,this.services),new jL(this.model,this.services,{skeleton:q.VERT_OR_HORIZ}),new rj(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(pj);function Ej(t,e,n=0,r=t.length-1,i=fv){while(r>n){if(r-n>600){const o=r-n+1,a=e-n+1,s=Math.log(o),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(o-u)/o)*(a-o/2<0?-1:1),l=Math.max(n,Math.floor(e-a*u/o+c)),h=Math.min(r,Math.floor(e+(o-a)*u/o+c));Ej(t,e,l,h,i)}const o=t[e];let a=n,s=r;Tj(t,n,e),i(t[r],o)>0&&Tj(t,n,r);while(a<s){Tj(t,a,s),++a,--s;while(i(t[a],o)<0)++a;while(i(t[s],o)>0)--s}0===i(t[n],o)?Tj(t,n,s):(++s,Tj(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function Tj(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Sj(t,e,n){if(t=Float64Array.from(gv(t,n)),r=t.length){if((e=+e)<=0||r<2)return rP(t);if(e>=1)return NE(t);var r,i=(r-1)*e,o=Math.floor(i),a=NE(Ej(t,o).subarray(0,o+1)),s=rP(t.subarray(o+1));return a+(s-a)*(i-o)}}var Mj,Cj,Aj,Pj=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)}}(),Lj=function(t){function e(e){return t.call(this,e)||this}return Pj(e,t),e.prototype.getBoxQuartiles=function(t){return{q_25:Sj(t,.25),q_50:Sj(t,.5),q_75:Sj(t,.75)}},e.prototype.getBoxplotData=function(){for(var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getGroupedData(),r=[],i=function(t,n){for(var i,a=o.services.cartesianScales.getRangeIdentifier(),s=n.map((function(t){return t[a]})).sort(fv),u=(i={},i[e]=t,i.counts=s,i.quartiles=o.getBoxQuartiles(s),i.outliers=null,i.whiskers=null,i),c=u.quartiles.q_25,l=u.quartiles.q_75,h=1.5*(l-c),f=c-h,p=l+h,d=[],v=[],g=0,m=s;g<m.length;g++){var y=m[g];y<f?d.push(y):y>p?d.push(y):v.push(y)}u.outliers=d;var _=rP(v),b=NE(v);u.whiskers={min:_||rP([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75]),max:b||NE([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75])},r.push(u)},o=this,a=0,s=n;a<s.length;a++){var u=s[a],c=u.name,l=u.data;i(c,l)}return r},e.prototype.setColorClassNames=function(){var t=1,e=ud.getProperty(this.getOptions(),"color","pairing"),n=ud.getProperty(e,"option"),r=lt.pairingOptions;n=n<=r[t+"-color"]?n:1;var i=this.allDataGroups.map((function(e,r){return t+"-"+n+"-1"}));this.colorClassNames=ev().range(i).domain(this.allDataGroups)},e}(lj),Dj=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)}}(),kj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new Lj(r.services),r.model.setOptions(ud.mergeDefaultChartOptions(Yd.boxplotChart,n.options)),r.init(e,n),r}return Dj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new tL(this.model,this.services),new rj(this.model,this.services),new jL(this.model,this.services,{skeleton:q.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t,{legend:{enabled:!1}});return e},e}(pj),Rj=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)}}(),Ij=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.bubbleChart,n.options)),r.init(e,n),r}return Rj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new ZN(this.model,this.services),new iL(this.model,this.services),new jL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(pj),Nj=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)}}(),jj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.bulletChart,n.options)),r.init(e,n),r}return Nj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new aL(this.model,this.services),new jL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(pj),Bj=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)}}(),Vj=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},Uj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bj(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getBinnedStackedData(),r=Vj([Vj([gl(t,"bins.rangeLabel")||"Range"],n.map((function(t){return gl(t,"0."+e)})))],gl(n,0).map((function(t,r){return Vj([gl(t,"data.x0")+" – "+gl(t,"data.x1")],n.map((function(t){return gl(t[r],"data."+gl(t[r],e))})))})));return r},e}(lj),Hj=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)}}(),Gj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new Uj(r.services),r.model.setOptions(ud.mergeDefaultChartOptions(Yd.histogramChart,n.options)),r.init(e,n),r.update(),r}return Hj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new $N(this.model,this.services),new uL(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(pj),Fj=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)}}(),zj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.lineChart,n.options)),r.init(e,n),r}return Fj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new ZN(this.model,this.services),new lL(this.model,this.services),new nL(this.model,this.services,{handleThresholds:!0}),new VL(this.model,this.services),new rj(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(pj),Wj=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)}}(),qj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.lollipopChart,n.options)),r.init(e,n),r}return Wj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new ZN(this.model,this.services),new fL(this.model,this.services),new nL(this.model,this.services),new jL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(pj),Yj=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)}}(),Zj=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.scatterChart,n.options)),r.init(e,n),r}return Yj(e,t),e.prototype.getComponents=function(){var t=[new uN(this.model,this.services),new zN(this.model,this.services),new ZN(this.model,this.services),new nL(this.model,this.services),new jL(this.model,this.services,{skeleton:q.GRID})],e=this.getAxisChartComponents(t);return e},e}(pj),Xj=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)}}(),Kj=function(t){function e(e){return t.call(this,e)||this}return Xj(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}(Rv),$j=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)}}(),Qj=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new Kj(i.services),r?i:(i.model.setOptions(ud.mergeDefaultChartOptions(Yd.pieChart,n.options)),i.init(e,n),i)}return $j(e,t),e.prototype.getComponents=function(){var t=[new CL(this.model,this.services),new jL(this.model,this.services,{skeleton:q.PIE})],e=this.getChartComponents(t);return e},e}(sj),Jj=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)}}(),tB=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.donutChart,n.options)),r.init(e,n),r}return Jj(e,t),e.prototype.getComponents=function(){var t=[new RL(this.model,this.services),new jL(this.model,this.services,{skeleton:q.DONUT})],e=this.getChartComponents(t);return e},e}(Qj),eB=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)}}(),nB=function(t){function e(e){return t.call(this,e)||this}return eB(e,t),e.prototype.generateDataLabels=function(t){var e={};return e[t.label]=pt.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=ud.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=ud.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}(Rv),rB=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)}}(),iB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e.renderType=L.SVG,e}return rB(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getComponentContainer(),i=this.getOptions(),o=this.model.getDisplayData(),s=this.model.getStatus(),u=Wm.getSVGElementSize(r,{useAttrs:!0}).width,c=i.data.groupMapsTo,l=IE().domain([0,100]).range([0,u]);Wm.appendOrSelect(r,"rect.container").attr("x",0).attr("y",0).attr("width",u).attr("height",ud.getProperty(i,"meter","height"));var h=o.value>=100,f=r.selectAll("rect.value").data([o]),p=null==s||n.model.isUserProvidedColorScaleValid()?"value":"value status--"+s;f.enter().append("rect").classed("value",!0).merge(f).attr("x",0).attr("y",0).attr("height",ud.getProperty(i,"meter","height")).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[c],originalClassName:p})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"meter-bar-update",animate:t})})).attr("width",(function(t){return l(h?100:t.value)})).style("fill",(function(t){return n.model.getFillColor(t[c])})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value}));var d=ud.getProperty(i,"meter","peak"),v=null!==d&&d<o.value?o.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",ud.getProperty(i,"meter","height")).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"peak-line-update",animate:t})})).attr("x1",(function(t){return l(t)})).attr("x2",(function(t){return l(t)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),m.exit().remove(),this.services.domUtils.setSVGMaxHeight()},e}(kS),oB=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)}}(),aB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new nB(r.services),r.model.setOptions(ud.merge(ud.clone(Yd.meterChart),n.options)),r.init(e,n),r}return oB(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new iB(this.model,this.services)],growth:F.STRETCH,renderType:L.SVG},e={id:"meter-title",components:[new _P(this.model,this.services)],growth:F.PREFERRED,renderType:L.SVG},n={id:"spacer",components:[new UI(this.model,this.services,{size:8})],growth:F.PREFERRED},r=[new GI(this.model,this.services,[e,n,t],{direction:G.COLUMN})],i=this.getChartComponents(r,L.HTML);return i},e}(sj),sB=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)}}(),uB=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(ud.mergeDefaultChartOptions(Yd.radarChart,n.options)),i.init(e,n),i)}return sB(e,t),e.prototype.getComponents=function(){var t=[new lI(this.model,this.services)],e=this.getChartComponents(t);return e},e}(sj),cB=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)}}(),lB=function(t){function e(e){return t.call(this,e)||this}return cB(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e}(Rv),hB=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)}}(),fB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new lB(r.services),r.model.setOptions(ud.mergeDefaultChartOptions(Yd.gaugeChart,n.options)),r.init(e,n),r}return hB(e,t),e.prototype.getComponents=function(){var t=[new DL(this.model,this.services)],e=this.getChartComponents(t);return e},e}(sj),pB=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)}}(),dB=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},vB=(Mj={},Mj[J.LINE]=[lL,nL],Mj[J.SCATTER]=[nL],Mj[J.AREA]=[GP,lL,nL],Mj[J.STACKED_AREA]=[zP,lL,dL,JN],Mj[J.SIMPLE_BAR]=[ZP],Mj[J.GROUPED_BAR]=[KP,rj],Mj[J.STACKED_BAR]=[QP,JN],Mj),gB=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=ud.mergeDefaultChartOptions(Yd.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:J.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return pB(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(vB).includes(e.type)?(r=ud.merge({},Yd[ud.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===J.STACKED_AREA&&(i=!0),vB[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=ud.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 ud.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===J.STACKED_BAR||t.type===J.STACKED_AREA})),n=dB([new uN(this.model,this.services),new zN(this.model,this.services),new jL(this.model,this.services,{skeleton:q.GRID})],e?[]:[new ZN(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(pj),mB=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)}}(),yB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.treemapChart,n.options)),r.init(e,n),r}return mB(e,t),e.prototype.getComponents=function(){var t=[new $R(this.model,this.services)],e=this.getChartComponents(t);return e},e}(sj),_B=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)}}(),bB=function(){return bB=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},bB.apply(this,arguments)},OB=function(t){function e(e){var n=t.call(this,e)||this;return n.parentNode=!1,n.set({depth:2},{skipUpdate:!0}),n}return _B(e,t),e.prototype.setData=function(e){t.prototype.setData.call(this,e),this.setDataGroups(),1===e.length&&(this.parentNode=!0),this.setZoom()},e.prototype.setOptions=function(t){var e=this.getOptions(),n=ud.merge({},t,this.getZoomOptions(t));ud.updateLegendAdditionalItems(e,n);var r=this.getHierarchyLevel(),i=ud.getProperty(e,"circlePack","hierarchyLevel");this.set({options:ud.merge(e,n),depth:i&&i<4?i:r})},e.prototype.getZoomOptions=function(t){if(!this.getDisplayData())return{};var e=this.getDisplayData(),n=t||this.getOptions(),r=1===e.length&&ud.getProperty(e,0,"children")?ud.getProperty(e,0,"children"):e,i=this.getHierarchyLevel();return r.some((function(t){if(t.children&&t.children.some((function(t){return t.children})))return i=3,!1})),!0===ud.getProperty(n,"canvasZoom","enabled")&&i>2?{legend:{additionalItems:[{type:nt.ZOOM,name:"Click to zoom"}]}}:null},e.prototype.setZoom=function(t){this.setOptions(this.getZoomOptions(t))},e.prototype.updateHierarchyLevel=function(t){this.set({depth:t})},e.prototype.getHierarchyLevel=function(){return this.get("depth")},e.prototype.hasParentNode=function(){return this.parentNode},e.prototype.setDataGroups=function(){var t=this,e=this.getData(),n=this.getOptions(),r=n.data.groupMapsTo,i=e.map((function(e){var n=e[r];return t.setChildrenDataGroup(e,n)}));this.set({data:i},{skipUpdate:!0})},e.prototype.setChildrenDataGroup=function(t,e){var n=this;return t.children?bB(bB({},t),{dataGroupName:e,children:t.children.map((function(t,r){return n.setChildrenDataGroup(t,e)}))}):bB(bB({},t),{dataGroupName:e})},e}(Rv),wB=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)}}(),xB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new OB(r.services),r.model.setOptions(ud.mergeDefaultChartOptions(Yd.circlePackChart,n.options)),r.init(e,n),r}return wB(e,t),e.prototype.getComponents=function(){var t=[new RI(this.model,this.services)],e=this.getChartComponents(t);return e},e}(sj),EB=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)}}(),TB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ud.mergeDefaultChartOptions(Yd.wordCloudChart,n.options)),r.init(e,n),r}return EB(e,t),e.prototype.getComponents=function(){var t=[new BI(this.model,this.services),new jL(this.model,this.services,{skeleton:q.PIE})],e=this.getChartComponents(t);return e},e}(sj),SB={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}}},MB=SB;function CB(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 AB=CB(MB,Cj,Aj,!1,null,null,null),PB=AB.exports,LB={name:"CcvAreaChart",extends:PB,mounted:function(){this.coreChart=new vj(this.$el,{data:this.data,options:this.options})}},DB=LB,kB=CB(DB,A,P,!1,null,null,null),RB=kB.exports,IB=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},NB=[],jB={name:"CcvStackedAreaChart",extends:PB,mounted:function(){this.coreChart=new mj(this.$el,{data:this.data,options:this.options})}},BB=jB,VB=CB(BB,IB,NB,!1,null,null,null),UB=VB.exports,HB=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},GB=[],FB={name:"CcvSimpleBarChart",extends:PB,mounted:function(){this.coreChart=new _j(this.$el,{data:this.data,options:this.options})}},zB=FB,WB=CB(zB,HB,GB,!1,null,null,null),qB=WB.exports,YB=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},ZB=[],XB={name:"CcvGroupedBarChart",extends:PB,mounted:function(){this.coreChart=new Oj(this.$el,{data:this.data,options:this.options})}},KB=XB,$B=CB(KB,YB,ZB,!1,null,null,null),QB=$B.exports,JB=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},tV=[],eV={name:"CcvStackedBarChart",extends:PB,mounted:function(){this.coreChart=new xj(this.$el,{data:this.data,options:this.options})}},nV=eV,rV=CB(nV,JB,tV,!1,null,null,null),iV=rV.exports,oV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-boxplot-chart"})},aV=[],sV={name:"CcvBoxplotChart",extends:PB,mounted:function(){this.coreChart=new kj(this.$el,{data:this.data,options:this.options})}},uV=sV,cV=CB(uV,oV,aV,!1,null,null,null),lV=cV.exports,hV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},fV=[],pV={name:"CcvBubbleChart",extends:PB,mounted:function(){this.coreChart=new Ij(this.$el,{data:this.data,options:this.options})}},dV=pV,vV=CB(dV,hV,fV,!1,null,null,null),gV=vV.exports,mV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bullet-chart"})},yV=[],_V={name:"CcvBulletChart",extends:PB,mounted:function(){this.coreChart=new jj(this.$el,{data:this.data,options:this.options})}},bV=_V,OV=CB(bV,mV,yV,!1,null,null,null),wV=OV.exports,xV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},EV=[],TV={name:"CcvDonutChart",extends:PB,mounted:function(){this.coreChart=new tB(this.$el,{data:this.data,options:this.options})}},SV=TV,MV=CB(SV,xV,EV,!1,null,null,null),CV=MV.exports,AV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},PV=[],LV={name:"CcvGaugeChart",extends:PB,mounted:function(){this.coreChart=new fB(this.$el,{data:this.data,options:this.options})}},DV=LV,kV=CB(DV,AV,PV,!1,null,null,null),RV=kV.exports,IV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-histogram-chart"})},NV=[],jV={name:"CcvHistogramChart",extends:PB,mounted:function(){this.coreChart=new Gj(this.$el,{data:this.data,options:this.options})}},BV=jV,VV=CB(BV,IV,NV,!1,null,null,null),UV=VV.exports,HV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},GV=[],FV={name:"CcvLineChart",extends:PB,mounted:function(){this.coreChart=new zj(this.$el,{data:this.data,options:this.options})}},zV=FV,WV=CB(zV,HV,GV,!1,null,null,null),qV=WV.exports,YV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},ZV=[],XV={name:"CcvLollipopChart",extends:PB,mounted:function(){this.coreChart=new qj(this.$el,{data:this.data,options:this.options})}},KV=XV,$V=CB(KV,YV,ZV,!1,null,null,null),QV=$V.exports,JV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},tU=[],eU={name:"CcvPieChart",extends:PB,mounted:function(){this.coreChart=new Qj(this.$el,{data:this.data,options:this.options})}},nU=eU,rU=CB(nU,JV,tU,!1,null,null,null),iU=rU.exports,oU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},aU=[],sU={name:"CcvScatterChart",extends:PB,mounted:function(){this.coreChart=new Zj(this.$el,{data:this.data,options:this.options})}},uU=sU,cU=CB(uU,oU,aU,!1,null,null,null),lU=cU.exports,hU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},fU=[],pU={name:"CcvMeterChart",extends:PB,mounted:function(){this.coreChart=new aB(this.$el,{data:this.data,options:this.options})}},dU=pU,vU=CB(dU,hU,fU,!1,null,null,null),gU=vU.exports,mU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},yU=[],_U={name:"CcvRadarChart",extends:PB,mounted:function(){this.coreChart=new uB(this.$el,{data:this.data,options:this.options})}},bU=_U,OU=CB(bU,mU,yU,!1,null,null,null),wU=OU.exports,xU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},EU=[],TU={name:"CcvComboChart",extends:PB,mounted:function(){this.coreChart=new gB(this.$el,{data:this.data,options:this.options})}},SU=TU,MU=CB(SU,xU,EU,!1,null,null,null),CU=MU.exports,AU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},PU=[],LU={name:"CcvTreemapChart",extends:PB,mounted:function(){this.coreChart=new yB(this.$el,{data:this.data,options:this.options})}},DU=LU,kU=CB(DU,AU,PU,!1,null,null,null),RU=kU.exports,IU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-circle-pack-chart"})},NU=[],jU={name:"CcvCirclePackChart",extends:PB,mounted:function(){this.coreChart=new xB(this.$el,{data:this.data,options:this.options})}},BU=jU,VU=CB(BU,IU,NU,!1,null,null,null),UU=VU.exports,HU=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-wordcloud-chart"})},GU=[],FU={name:"CcvWordCloudChart",extends:PB,mounted:function(){this.coreChart=new TB(this.$el,{data:this.data,options:this.options})}},zU=FU,WU=CB(zU,HU,GU,!1,null,null,null),qU=WU.exports,YU=[RB,UB,qB,QB,iV,lV,gV,wV,CV,RV,UV,qV,QV,iU,lU,gU,wU,CU,RU,UU,qU],ZU={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=YU[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=YU[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 RB})),n.d(e,"CcvStackedAreaChart",(function(){return UB})),n.d(e,"CcvSimpleBarChart",(function(){return qB})),n.d(e,"CcvGroupedBarChart",(function(){return QB})),n.d(e,"CcvStackedBarChart",(function(){return iV})),n.d(e,"CcvBoxplotChart",(function(){return lV})),n.d(e,"CcvBubbleChart",(function(){return gV})),n.d(e,"CcvBulletChart",(function(){return wV})),n.d(e,"CcvDonutChart",(function(){return CV})),n.d(e,"CcvGaugeChart",(function(){return RV})),n.d(e,"CcvHistogramChart",(function(){return UV})),n.d(e,"CcvLineChart",(function(){return qV})),n.d(e,"CcvLollipopChart",(function(){return QV})),n.d(e,"CcvPieChart",(function(){return iU})),n.d(e,"CcvScatterChart",(function(){return lU})),n.d(e,"CcvMeterChart",(function(){return gU})),n.d(e,"CcvRadarChart",(function(){return wU})),n.d(e,"CcvComboChart",(function(){return CU})),n.d(e,"CcvTreemapChart",(function(){return RU})),n.d(e,"CcvCirclePackChart",(function(){return UU})),n.d(e,"CcvWordCloudChart",(function(){return qU}));e["default"]=ZU},"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},"2a60":function(t,e,n){var r=n("8320").dispatch,i=Math.PI/180,o=64,a=2048;function s(t){return t.text}function u(){return"serif"}function c(){return"normal"}function l(t){return Math.sqrt(t.value)}function h(){return 30*(~~(6*Math.random())-3)}function f(){return 1}function p(t,e,n,r){if(!e.sprite){var s=t.context,u=t.ratio;s.clearRect(0,0,(o<<5)/u,a/u);var c=0,l=0,h=0,f=n.length;--r;while(++r<f){e=n[r],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var p=s.measureText(e.text+"m").width*u,d=e.size<<1;if(e.rotate){var v=Math.sin(e.rotate*i),g=Math.cos(e.rotate*i),m=p*g,y=p*v,_=d*g,b=d*v;p=Math.max(Math.abs(m+b),Math.abs(m-b))+31>>5<<5,d=~~Math.max(Math.abs(y+_),Math.abs(y-_))}else p=p+31>>5<<5;if(d>h&&(h=d),c+p>=o<<5&&(c=0,l+=h,h=0),l+d>=a)break;s.translate((c+(p>>1))/u,(l+(d>>1))/u),e.rotate&&s.rotate(e.rotate*i),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=p,e.height=d,e.xoff=c,e.yoff=l,e.x1=p>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,c+=p}var O=s.getImageData(0,0,(o<<5)/u,a/u).data,w=[];while(--r>=0)if(e=n[r],e.hasText){p=e.width;for(var x=p>>5,E=(d=e.y1-e.y0,0);E<d*x;E++)w[E]=0;if(c=e.xoff,null==c)return;l=e.yoff;for(var T=0,S=-1,M=0;M<d;M++){for(E=0;E<p;E++){var C=x*M+(E>>5),A=O[(l+M)*(o<<5)+(c+E)<<2]?1<<31-E%32:0;w[C]|=A,T|=A}T?S=M:(e.y0++,d--,M--,l++)}e.y1=e.y0+S,e.sprite=w.slice(0,(e.y1-e.y0)*x)}}}function d(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,c=t.y1-t.y0,l=(t.y+t.y0)*n+(a>>5),h=0;h<c;h++){r=0;for(var f=0;f<=o;f++)if((r<<u|(f<o?(r=i[h*o+f])>>>s:0))&e[l+f])return!0;l+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function g(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e;break}return[r,i]}}function _(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function b(){return document.createElement("canvas")}function O(t){return"function"===typeof t?t:function(){return t}}t.exports=function(){var t=[256,256],e=s,n=u,i=l,y=c,x=c,E=h,T=f,S=m,M=[],C=1/0,A=r("word","end"),P=null,L=Math.random,D={},k=b;function R(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(o<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function I(e,n,r){t[0],t[1];var i,o,a,s=n.x,u=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=S(t),h=L()<.5?1:-1,f=-h;while(i=l(f+=h)){if(o=~~i[0],a=~~i[1],Math.min(Math.abs(o),Math.abs(a))>=c)break;if(n.x=s+o,n.y=u+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!d(n,e,t[0]))&&(!r||g(n,r))){for(var p,v=n.sprite,m=n.width>>5,y=t[0]>>5,_=n.x-(m<<4),b=127&_,O=32-b,w=n.y1-n.y0,x=(n.y+n.y0)*y+(_>>5),E=0;E<w;E++){p=0;for(var T=0;T<=m;T++)e[x+T]|=p<<O|(T<m?(p=v[E*m+T])>>>b:0);x+=y}return delete n.sprite,!0}}return!1}return D.canvas=function(t){return arguments.length?(k=O(t),D):k},D.start=function(){var r=R(k()),o=_((t[0]>>5)*t[1]),a=null,s=M.length,u=-1,c=[],l=M.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=y.call(this,t,r),t.weight=x.call(this,t,r),t.rotate=E.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=T.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return P&&clearInterval(P),P=setInterval(h,0),h(),D;function h(){var e=Date.now();while(Date.now()-e<C&&++u<s&&P){var n=l[u];n.x=t[0]*(L()+.5)>>1,n.y=t[1]*(L()+.5)>>1,p(r,n,l,u),n.hasText&&I(o,n,a)&&(c.push(n),A.call("word",D,n),a?v(a,n):a=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}u>=s&&(D.stop(),A.call("end",D,c,a))}},D.stop=function(){return P&&(clearInterval(P),P=null),D},D.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,D):C},D.words=function(t){return arguments.length?(M=t,D):M},D.size=function(e){return arguments.length?(t=[+e[0],+e[1]],D):t},D.font=function(t){return arguments.length?(n=O(t),D):n},D.fontStyle=function(t){return arguments.length?(y=O(t),D):y},D.fontWeight=function(t){return arguments.length?(x=O(t),D):x},D.rotate=function(t){return arguments.length?(E=O(t),D):E},D.text=function(t){return arguments.length?(e=O(t),D):e},D.spiral=function(t){return arguments.length?(S=w[t]||t,D):S},D.fontSize=function(t){return arguments.length?(i=O(t),D):i},D.padding=function(t){return arguments.length?(T=O(t),D):T},D.random=function(t){return arguments.length?(L=t,D):L},D.on=function(){var t=A.on.apply(A,arguments);return t===A?D:t},D};var w={archimedean:m,rectangular:y}},"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)),!O(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 O(t){return t===p(t).document.documentElement}function w(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 T=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};T.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},T.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var S=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 T(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 S(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 C="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(t){if(!(this instanceof A))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);C.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){A.prototype[t]=function(){return(e=C.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();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,O,w){i(n,e,l);var x,E,T,S=function(t){if(t===p&&L)return L;if(!v&&t in A)return A[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",C=!1,A=t.prototype,P=A[g]||A["@@iterator"]||p&&A[p],L=!v&&P||S(p),D="Array"==e&&A.entries||P;if(D&&(x=o(D.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&&(C=!0,L=function(){return P.call(this)}),h&&!w||A[g]===L||u(A,g,L),f[e]=L,p)if(E={values:S(y),keys:O?L:S(m),entries:S(_)},w)for(T in E)!v&&!C&&T in A||c(A,T,E[T]);else r({target:e,proto:!0,forced:v||C},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)}},8320:function(t,e,n){"use strict";n.r(e);var r={value:function(){}};function i(){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 o(r)}function o(t){this._=t}function a(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 s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,c=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<c)if(n=(t=i[o]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}while(++o<c)if((n=(t=i[o]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(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 c=i;n.d(e,"dispatch",(function(){return c}))},"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)}},"9b04":function(t,e,n){"use strict";var r=function(){};t.exports=r},"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(_),O=r(d,v,3),w=a(b.length),x=0,E=g||s,T=e?E(p,w):n?E(p,0):void 0;w>x;x++)if((f||x in b)&&(m=b[x],y=O(m,x,_),t))if(e)T[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(T,m)}else if(l)return!1;return h?-1:c||l?l:T}};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"),O=n("65d0"),w=n("ee58"),x=n("2402"),E=n("185a"),T=n("abdf"),S=n("e129"),M=n("5b12"),C=n("b8ba"),A=n("4cdd"),P=n("332c"),L=n("d687"),D=n("1d8a"),k=n("7d53"),R=n("4e41"),I=n("6a89"),N=n("fa46"),j=n("cdcd"),B=n("d054").forEach,V=P("hidden"),U="Symbol",H="prototype",G=k("toPrimitive"),F=j.set,z=j.getterFor(U),W=Object[H],q=i.Symbol,Y=o("JSON","stringify"),Z=E.f,X=T.f,K=w.f,$=S.f,Q=A("symbols"),J=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),nt=A("wks"),rt=i.QObject,it=!rt||!rt[H]||!rt[H].findChild,ot=s&&l((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Z(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=Q[t]=_(q[H]);return F(n,{type:U,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},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,V)&&t[V][r]&&(t[V][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,V)||X(t,V,y(1,{})),t[V][r]=!0),ot(t,r,n)):X(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,V)&&this[V][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=Z(n,r);return!i||!h(Q,r)||h(n,V)&&n[V][r]||(i.enumerable=!0),i}},pt=function(t){var e=K(g(t)),n=[];return B(e,(function(t){h(Q,t)||h(L,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||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),n=function(t){this===W&&n.call(J,t),h(this,V)&&h(this[V],e)&&(this[V][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},C(q[H],"toString",(function(){return z(this).tag})),C(q,"withoutSetter",(function(t){return at(D(t),t)})),S.f=ht,T.f=ut,E.f=ft,O.f=w.f=pt,x.f=dt,R.f=function(t){return at(k(t),t)},s&&(X(q[H],"description",{configurable:!0,get:function(){return z(this).description}}),a||C(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),B(b(nt),(function(t){I(t)})),r({target:U,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=q(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))}}),Y){var vt=!u||l((function(){var t=q();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(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,Y.apply(null,i)}})}q[H][G]||M(q[H],G,q[H].valueOf),N(q,U),L[V]=!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))}},eeea:function(t,e,n){(function(e){"use strict";var n=_(),r=b(),i=O(),o=w(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:u,toPng:l,toJpeg:h,toBlob:f,toPixelData:c,impl:{fontFaces:i,images:o,util:n,inliner:r,options:{}}};function u(t,e){return e=e||{},p(e),Promise.resolve(t).then((function(t){return v(t,e.filter,!0)})).then(g).then(m).then(r).then((function(r){return y(r,e.width||n.width(t),e.height||n.height(t))}));function r(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t}}function c(t,e){return d(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))}function l(t,e){return d(t,e||{}).then((function(t){return t.toDataURL()}))}function h(t,e){return e=e||{},d(t,e).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))}function f(t,e){return d(t,e||{}).then(n.canvasToBlob)}function p(t){"undefined"===typeof t.imagePlaceholder?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder,"undefined"===typeof t.cacheBust?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=t.cacheBust}function d(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(e){var n=r(t);return n.getContext("2d").drawImage(e,0,0),n}));function r(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}}function v(t,e,r){return r||!e||e(t)?Promise.resolve(t).then(i).then((function(n){return o(t,n,e)})).then((function(e){return a(t,e)})):Promise.resolve();function i(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)}function o(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):o(e,n.asArray(i),r).then((function(){return e}));function o(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return v(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}function a(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(o).then(a).then((function(){return e})):e;function r(){function r(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var a=n.uid();e.className=e.className+" "+a;var s=document.createElement("style");s.appendChild(u(a,r,i)),e.appendChild(s)}function u(t,e,r){var i="."+t+":"+e,o=r.cssText?a(r):s(r);return document.createTextNode(i+"{"+o+"}");function a(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){r(t)}))}function o(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function a(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}}function g(t){return i.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function m(t){return o.inlineAll(t).then((function(){return t}))}function y(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}function _(){return{escape:f,parseExtension:e,mimeType:n,dataAsUrl:h,isDataUrl:r,canvasToBlob:o,resolveUrl:a,getAndEncode:l,uid:u(),delay:p,asArray:d,escapeXhtml:v,makeImage:c,width:g,height:m};function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var r=e(n).toLowerCase();return t()[r]||""}function r(t){return-1!==t.search(/^(data:)/)}function i(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);e(new Blob([i],{type:"image/png"}))}))}function o(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):i(t)}function a(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href}function u(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function c(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))}function l(t){var e=3e4;return s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=a,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var o=s.impl.options.imagePlaceholder.split(/,/);o&&o[1]&&(r=o[1])}function a(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):c("timeout of "+e+"ms occured while fetching resource: "+t)}function c(t){console.error(t),n("")}}))}function h(t,e){return"data:"+e+";base64,"+t}function f(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function p(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}}function d(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}function v(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")}function g(t){var e=y(t,"border-left-width"),n=y(t,"border-right-width");return t.scrollWidth+e+n}function m(t){var e=y(t,"border-top-width"),n=y(t,"border-bottom-width");return t.scrollHeight+e+n}function y(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}function b(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:o,shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){var r,i=[];while(null!==(r=t.exec(e)))i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(n){return t.replace(o(e),"$1"+n+"$3")}));function o(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}}function o(t,n,o){return a()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,o)}))})),r}));function a(){return!e(t)}}}function O(){return{resolveAll:t,impl:{readAll:e}};function t(){return e(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))}function e(){return Promise.resolve(n.asArray(document.styleSheets)).then(e).then(t).then((function(t){return t.map(i)}));function t(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))}function e(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(r){console.log("Error while reading CSS rules from "+t.href,r.toString())}})),e}function i(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}function w(){return{inlineAll:e,impl:{newImage:t}};function t(t){return{inline:e};function e(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}function e(i){return i instanceof Element?o(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function o(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}}}t.exports=s})()},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