UNPKG

@progress/kendo-charts

Version:

Kendo UI platform-independent Charts library

1 lines 594 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoCharts=e(require("@progress/kendo-drawing")):t.KendoCharts=e(t.KendoDrawing)}(self,(t=>(()=>{"use strict";var e={721:e=>{e.exports=t}},i={};function o(t){var r=i[t];if(void 0!==r)return r.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,o),n.exports}o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{Aggregates:()=>$r,ArcGauge:()=>Yd,ArcScale:()=>Hd,AreaChart:()=>Ra,AreaSegment:()=>Ma,ArrowLinearPointer:()=>ud,Axis:()=>So,AxisGroupRangeTracker:()=>za,AxisLabel:()=>oo,Bar:()=>Na,BarChart:()=>Qa,BarLabel:()=>Da,BarLinearPointer:()=>md,Barcode:()=>jf,Box:()=>wi,BoxElement:()=>Ri,BoxPlot:()=>ip,BoxPlotChart:()=>sp,BubbleChart:()=>fp,Bullet:()=>mp,BulletChart:()=>bp,Candlestick:()=>$a,CandlestickChart:()=>tp,CategoricalChart:()=>sa,CategoricalErrorBar:()=>zs,CategoricalPlotArea:()=>Ol,CategoryAxis:()=>nr,Chart:()=>pu,ChartAxis:()=>Wr,ChartContainer:()=>Tp,ChartElement:()=>Li,ChartPane:()=>qr,ChartPlotArea:()=>Zr,ChartService:()=>mo,ChartWizardCommon:()=>Ym,CircularGauge:()=>Zd,ClipAnimation:()=>Aa,ClusterLayout:()=>Xa,Crosshair:()=>Cp,CrosshairTooltip:()=>Ap,CurveProcessor:()=>Ur,DateCategoryAxis:()=>fr,DateValueAxis:()=>kr,DefaultAggregates:()=>Wp,DomEventsBuilder:()=>_o,DonutChart:()=>Uh,DonutPlotArea:()=>Wh,DonutSegment:()=>Hh,ErrorBarBase:()=>Rs,ErrorRangeCalculator:()=>sn,Extent:()=>Iy,FloatElement:()=>Wi,FontLoader:()=>Jt,FormatService:()=>go,Gauge:()=>Zu,Gradients:()=>Fi,HashMap:()=>St,Highlight:()=>Il,InstanceObserver:()=>Ot,IntlService:()=>ho,Legend:()=>oh,LegendItem:()=>th,LegendLayout:()=>Ul,LineChart:()=>Pa,LinePoint:()=>ca,LineSegment:()=>da,LinearGauge:()=>_d,LinearPointer:()=>sd,LinearScale:()=>id,Location:()=>Zg,LogarithmicAxis:()=>Tr,Map:()=>Nv,Matrix:()=>Ce,MousewheelZoom:()=>Hl,Navigator:()=>Cu,NavigatorHint:()=>bu,Note:()=>no,NumericAxis:()=>_r,OHLCChart:()=>ul,OHLCPoint:()=>hl,Observable:()=>Xe,Pane:()=>Lp,Pannable:()=>zl,PieAnimation:()=>mh,PieChart:()=>zh,PieChartMixin:()=>Eh,PiePlotArea:()=>Dh,PieSegment:()=>Bh,PlotAreaBase:()=>jp,PlotAreaEventsMixin:()=>Fp,PlotAreaFactory:()=>nh,Point:()=>xi,PointEventsMixin:()=>pa,PolarAxis:()=>Ir,QRCode:()=>jg,RadarCategoryAxis:()=>Lr,RadarLogarithmicAxis:()=>Fr,RadarNumericAxis:()=>jr,RadialGauge:()=>Dd,RadialPointer:()=>Vd,RadialScale:()=>Md,RangeAreaChart:()=>pl,RangeAreaPoint:()=>tl,RangeBar:()=>Yp,RangeBarChart:()=>Zp,RangePointer:()=>Wd,Ring:()=>Si,RootElement:()=>Ui,Sankey:()=>ym,ScatterChart:()=>hp,ScatterErrorBar:()=>pp,ScatterLineChart:()=>bh,Sector:()=>Pi,Selection:()=>lh,SeriesAggregator:()=>Up,SeriesBinder:()=>en,ShapeBuilder:()=>Mi,ShapeElement:()=>ji,SharedTooltip:()=>dh,Sparkline:()=>yu,SplineAreaSegment:()=>Ia,SplineSegment:()=>ba,StackWrap:()=>qa,StockChart:()=>Tu,TemplateService:()=>yt,Text:()=>qi,TextBox:()=>$i,Title:()=>eo,Tooltip:()=>ch,UserEvents:()=>yi,WaterfallChart:()=>yl,WaterfallSegment:()=>fl,XYPlotArea:()=>Th,ZoomSelection:()=>Dl,addClass:()=>W,alignPathToPixel:()=>Z,anyHasZIndex:()=>js,append:()=>Vt,appendIfNotNull:()=>Ds,applyEventMap:()=>Me,areNumbers:()=>Fs,autoMajorUnit:()=>vi,autoTextColor:()=>fe,barcodeValidator:()=>Ff,bindEvents:()=>zt,bindSegments:()=>Ns,categoriesCount:()=>Us,chartBaseTheme:()=>xx,chartTheme:()=>Rx,clockwise:()=>Q,constants:()=>n,convertableToNumber:()=>J,countNumbers:()=>Qr,createHashSet:()=>_e,createOutOfRangePoints:()=>oa,createPatternFill:()=>Ii,createSankeyData:()=>mm,cycleDown:()=>et,cycleIndex:()=>it,cycleUp:()=>tt,deepExtend:()=>at,defaultErrorHandler:()=>we,defined:()=>jt,deg:()=>Dt,elementOffset:()=>Ft,elementScale:()=>de,elementSize:()=>Ht,elementStyles:()=>ut,equalsIgnoreCase:()=>Gs,evalOptions:()=>Xs,eventCoordinates:()=>Nt,eventElement:()=>Ut,eventMap:()=>Pe,filterSeriesByType:()=>Ys,find:()=>le,findAxisByName:()=>Xr,gaugeTheme:()=>Ix,getAriaTemplate:()=>mt,getField:()=>Jr,getSpacing:()=>dt,getSupportedFeatures:()=>ze,getTemplate:()=>vt,getter:()=>_t,grep:()=>wt,hasClasses:()=>kt,hasGradientOverlay:()=>Qs,hasOwnProperty:()=>Ae,hasValue:()=>Ks,hashKey:()=>Gt,inArray:()=>Ct,interpolateValue:()=>Pt,isArray:()=>G,isDateAxis:()=>$s,isFunction:()=>ot,isNumber:()=>K,isObject:()=>pt,isPlainObject:()=>Lt,isString:()=>$,keys:()=>ke,last:()=>Wt,limitValue:()=>Xt,logToConsole:()=>q.logToConsole,map:()=>Bt,mousewheelDelta:()=>Et,noop:()=>De,now:()=>Fe,objectKey:()=>Yt,off:()=>Ve,on:()=>Re,parseDateCategory:()=>Zs,qrcodeValidator:()=>Dg,rad:()=>qt,rectToBox:()=>Zi,removeClass:()=>Y,renderIcon:()=>ae,round:()=>Zt,sankeyTheme:()=>Ex,segmentVisible:()=>Hs,setDefaultOptions:()=>te,singleItemOrArray:()=>Js,sparseArrayLimits:()=>pe,styleValue:()=>lt,unbindEvents:()=>Qt,unclipBox:()=>ra,valueOrDefault:()=>Kt});var n={};o.r(n),o.d(n,{DEFAULT_PANE:()=>ku,NAVIGATOR_AXIS:()=>wu,NAVIGATOR_PANE:()=>_u});var s="arc",a="ArrowUp",p="ArrowDown",l="ArrowLeft",h="ArrowRight",c="aria-activedescendant",u="#000",d="bottom",f="center",g="circle",y=3,v="cross",m="date",x="12px sans-serif",b=10,_="end",w=/\{\d+:?/,k="height",A="inside",S="inherit",C="left",P=Number.MAX_VALUE,T=-Number.MAX_VALUE,M="none",O="object",L="outside",B="right",I="roundedRect",E="start",R="string",V="top",z="value",j="#fff",D="width",F="x",H="y",N="pointer",U="horizontal";function G(t){return Array.isArray(t)}function W(t,e){for(var i=G(e)?e:[e],o=0;o<i.length;o++){var r=i[o];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var X=/\s+/g;function Y(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(X," "))}var q=o(721);function Z(t){var e=.5;t.options.stroke&&q.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var i=0;i<t.segments.length;i++)t.segments[i].anchor().round(0).translate(e,e);return t}function Q(t,e){return-t.x*e.y+t.y*e.x<0}function K(t){return"number"==typeof t&&!isNaN(t)}function $(t){return typeof t===R}function J(t){return K(t)||$(t)&&isFinite(t)}function tt(t,e){return(t+1)%e}function et(t,e){var i=t-1;return i<0?e-1:i}function it(t,e){return 1===e||t%e==0?0:t<0?e+t%e:t>=e?t%e:t}function ot(t){return"function"==typeof t}var rt="object",nt="undefined";function st(t,e){for(var i in e)if("__proto__"!==i&&"constructor"!==i){var o,r=e[i],n=typeof r;if((o=n===rt&&null!==r?r.constructor:null)&&o!==Array)if(r instanceof Date)t[i]=new Date(r.getTime());else if(ot(r.clone))t[i]=r.clone();else{var s=t[i];t[i]=typeof s===rt&&s||{},st(t[i],r)}else n!==nt&&(t[i]=r)}return t}function at(t){for(var e=arguments,i=arguments.length,o=1;o<i;o++)st(t,e[o]);return t}function pt(t){return"object"==typeof t}function lt(t){return K(t)?t+"px":t}var ht=/width|height|top|left|bottom|right/i;function ct(t){return ht.test(t)}function ut(t,e){var i=$(e)?[e]:e;if(G(i)){for(var o={},r=window.getComputedStyle(t),n=0;n<i.length;n++){var s=i[n];o[s]=ct(s)?parseFloat(r[s]):r[s]}return o}if(pt(e))for(var a in e)t.style[a]=lt(e[a])}function dt(t,e){void 0===e&&(e=0);var i={top:0,right:0,bottom:0,left:0};return"number"==typeof t?i[V]=i[B]=i[d]=i[C]=t:(i[V]=t[V]||e,i[B]=t[B]||e,i[d]=t[d]||e,i[C]=t[C]||e),i}var ft={compile:function(t){return t}},gt=function(){};gt.register=function(t){ft=t},gt.compile=function(t,e){return ft.compile(t,e)};const yt=gt;function vt(t){var e;return void 0===t&&(t={}),t.template?t.template=e=yt.compile(t.template):ot(t.content)&&(e=t.content),e}function mt(t){var e;return void 0===t&&(t={}),t.ariaTemplate?t.ariaTemplate=e=yt.compile(t.ariaTemplate):ot(t.ariaContent)&&(e=t.ariaContent),e}var xt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,bt={};function _t(t){if(bt[t])return bt[t];var e=[];return t.replace(xt,(function(t,i,o,r){e.push(void 0!==i?i:o||r)})),bt[t]=function(t){for(var i=t,o=0;o<e.length&&i;o++)i=i[e[o]];return i},bt[t]}bt[void 0]=function(t){return t};const wt=function(t,e){return t.filter(e)};function kt(t,e){if(t.className)for(var i=e.split(" "),o=0;o<i.length;o++)if(t.className.indexOf&&-1!==t.className.indexOf(i[o]))return!0}var At=function(){this._map=new Map};At.prototype.get=function(t){return this._map.get(t)},At.prototype.set=function(t,e){this._map.set(t,e)};const St=At;function Ct(t,e){if(e)return e.includes(t)}function Pt(t,e,i){return q.drawing.util.round(t+(e-t)*i,y)}var Tt="trigger",Mt=function(t,e){this.observer=t,this.handlerMap=at({},this.handlerMap,e)};Mt.prototype.trigger=function(t,e){var i,o=this.observer,r=this.handlerMap;return r[t]?i=this.callObserver(r[t],e):o[Tt]&&(i=this.callObserver(Tt,t,e)),i},Mt.prototype.callObserver=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];return this.observer[t].apply(this.observer,e)},Mt.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};const Ot=Mt;function Lt(t){return"[object Object]"===Object.prototype.toString.call(t)}function Bt(t,e){for(var i=t.length,o=[],r=0;r<i;r++){var n=e(t[r]);q.drawing.util.defined(n)&&o.push(n)}return o}var It=q.support.browser||{};function Et(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,It.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e>0?Math.ceil(e):Math.floor(e)}var Rt=q.drawing.util,Vt=Rt.append,zt=Rt.bindEvents,jt=Rt.defined,Dt=Rt.deg,Ft=Rt.elementOffset,Ht=Rt.elementSize,Nt=Rt.eventCoordinates,Ut=Rt.eventElement,Gt=Rt.hashKey,Wt=Rt.last,Xt=Rt.limitValue,Yt=Rt.objectKey,qt=Rt.rad,Zt=Rt.round,Qt=Rt.unbindEvents,Kt=Rt.valueOrDefault,$t=function(){};$t.fetchFonts=function(t,e,i){void 0===i&&(i={depth:0}),!t||i.depth>5||!document.fonts||Object.keys(t).forEach((function(o){var r=t[o];"dataSource"!==o&&"$"!==o[0]&&r&&("font"===o?e.push(r):"object"==typeof r&&(i.depth++,$t.fetchFonts(r,e,i),i.depth--))}))},$t.loadFonts=function(t,e){var i=[];if(t.length>0&&document.fonts){try{i=t.map((function(t){return document.fonts.load(t)}))}catch(t){(0,q.logToConsole)(t)}Promise.all(i).then(e,e)}else e()},$t.preloadFonts=function(t,e){var i=[];$t.fetchFonts(t,i),$t.loadFonts(i,e)};const Jt=$t;function te(t,e){var i=t.prototype;i.options?i.options=at({},i.options,e):i.options=e}var ee="k-i-",ie="k-svg-i-",oe=function(t,e){this.element=t,this.options=at({},this.options,e),this.wrapper()};oe.prototype.wrapper=function(){this.addClasses()},oe.prototype.addClasses=function(){},oe.prototype.html=function(){return this.element.outerHTML},te(oe,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]});var re=function(t){function e(e,i){t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.wrapper=function(){var e=this.element.className.split(" ").find((function(t){return t.startsWith(ee)})),i=this.options.icon?""+(this.options.icon.startsWith(ee)?"":ee)+this.options.icon:"";this._className=i,W(this.element,"k-icon"),W(this.element,"k-font-icon"),Y(this.element,e),W(this.element,i),W(this.element,this.options.iconClass||""),t.prototype.wrapper.call(this)},e}(oe);te(re,{name:"HTMLFontIcon",icon:null});var ne=function(t){function e(e,i){e.innerHTML="",t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.wrapper=function(){var e=this.options.icon,i=this.options.iconClass,o=this.element.className.split(" ").find((function(t){return t.startsWith(ie)}));if(!e&&i){var r=i.match(/k-i-(\w+(?:-\w+)*)/);r&&(e=r[1],i=i.replace(r[0],""))}$(e)&&(e=e.replace("k-i-","").replace(/-./g,(function(t){return t[1].toUpperCase()})),e=this.options.svgIcons[e]||this.options.svgIcons[e+"Icon"]);var n=e&&e.name?""+ie+e.name:"";if(this._className=n,W(this.element,"k-svg-icon"),Y(this.element,o),W(this.element,n),W(this.element,i||""),this.element.setAttribute("aria-hidden","true"),e&&Lt(e)){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("viewBox",e.viewBox||""),s.setAttribute("focusable","false"),s.innerHTML=e.content||"",this.element.appendChild(s)}t.prototype.wrapper.call(this)},e}(oe);te(ne,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});var se={svg:ne,font:re};function ae(t,e){var i=t,o=e;return i&&(!pt(i)||i instanceof HTMLElement)&&!$(i)||(o=i,i=document.createElement("span")),$(o)&&(o={icon:o}),o.type||(o.type="svg"),se[o.type]?new se[o.type](i,o).html():null}function pe(t){for(var e=P,i=T,o=0,r=t.length;o<r;o++){var n=t[o];null!==n&&isFinite(n)&&(e=Math.min(e,n),i=Math.max(i,n))}return{min:e===P?void 0:e,max:i===T?void 0:i}}function le(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(e(o,i,t))return o}}var he=q.geometry.Matrix,ce=/matrix\((.*)\)/;function ue(t){var e=getComputedStyle(t).transform;return"none"===e?he.unit():function(t){var e=t.match(ce);if(null===e||2!==e.length)return he.unit();var i=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(he,[null].concat(i)))}(e)}function de(t){if(!t)return he.unit();for(var e=ue(t),i=t.parentElement;i;){var o=ue(i);e=e.multiplyCopy(o),i=i.parentElement}return e.b=e.c=e.e=e.f=0,e}const fe=function(t){return new q.Color(t).isDark()?j:u};var ge={},ye=function(t){this._index={},this._values=t?t.slice(0):[];for(var e=0;e<this._values.length;e++)this._index[this._values[e]]=e},ve={size:{configurable:!0}};ye.prototype.values=function(){return this._values.filter((function(t){return t!==ge}))},ye.prototype.has=function(t){return void 0!==this._index[t]},ye.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},ye.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=ge,delete this._index[t])},ye.prototype.clear=function(){this._index={},this._values=[]},ve.size.get=function(){return this._values.length},Object.defineProperties(ye.prototype,ve);var me=function(t){this._set=new Set(t)},xe={size:{configurable:!0}};me.prototype.values=function(){return Array.from(this._set)},me.prototype.has=function(t){return this._set.has(t)},me.prototype.add=function(t){this._set.add(t)},me.prototype.delete=function(t){this._set.delete(t)},me.prototype.clear=function(){this._set.clear()},xe.size.get=function(){return this._set.size},Object.defineProperties(me.prototype,xe);var be=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function _e(t){return be()?new me(t):new ye(t)}function we(t){throw t}const ke={INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110};function Ae(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Se=function(){this.height=0,this.width=0,this.data=[]};Se.prototype.clone=function(){var t=new Se;return t.height=this.height,t.width=this.width,t.data=this.data.map((function(t){return t.slice()})),t},Se.prototype.get=function(t,e){var i=this.data[t];return i?i[e]:null},Se.prototype.set=function(t,e,i){var o=this.data[t];null==o&&(o=this.data[t]=[]),o[e]=i,t>=this.height&&(this.height=t+1),e>=this.width&&(this.width=e+1)},Se.prototype.each=function(t,e){for(var i=0;i<this.height;++i)for(var o=0;o<this.width;++o){var r=this.get(i,o);if((e||null!=r)&&void 0!==(r=t(r,i,o)))return r}},Se.prototype.map=function(t,e){var i=new Se;return this.each((function(e,o,r){i.set(o,r,t(e,o,r))}),e),i},Se.prototype.transpose=function(){var t=new Se;return this.each((function(e,i,o){t.set(o,i,e)})),t},Se.prototype.unit=function(t){this.width=this.height=t;for(var e=this.data=new Array(t),i=t;--i>=0;)for(var o=e[i]=new Array(t),r=t;--r>=0;)o[r]=i===r?1:0;return this},Se.prototype.multiply=function(t){for(var e=this,i=new Se,o=0;o<e.height;++o)for(var r=0;r<t.width;++r){for(var n=0,s=0;s<e.width;++s){var a=e.get(o,s),p=t.get(s,r);"number"==typeof a&&"number"==typeof p&&(n+=a*p)}i.set(o,r,n)}return i},Se.prototype.inverse=function(){for(var t=this.width,e=this.augment((new Se).unit(t)),i=e.data,o=function(e){var o=function(t,e,i){for(var o=i(t),r=t,n=t+1;n<e;n++){var s=i(t);s>o&&(o=s,r=t)}return r}(e,t,(function(t){return i[t][e]}));if(!i[o][e])return{v:null};if(e!==o){var r=i[e];i[e]=i[o],i[o]=r}for(var n=e+1;n<t;++n){for(var s=e+1;s<2*t;++s)i[n][s]-=i[e][s]*i[n][e]/i[e][e];i[n][e]=0}},r=0;r<t;++r){var n=o(r);if(n)return n.v}for(var s=0;s<t;++s)for(var a=i[s][s],p=0;p<2*t;++p)i[s][p]/=a;for(var l=t;--l>=0;)for(var h=l;--h>=0;)if(i[h][l])for(var c=2*t;--c>=t;)i[h][c]-=i[l][c]*i[h][l];return e.slice(0,t,t,t)},Se.prototype.augment=function(t){var e=this.clone(),i=e.width;return t.each((function(t,o,r){e.set(o,r+i,t)})),e},Se.prototype.slice=function(t,e,i,o){for(var r=new Se,n=0;n<i;++n)for(var s=0;s<o;++s)r.set(n,s,this.get(t+n,e+s));return r};const Ce=Se;var Pe={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"};function Te(t){return Pe[t]||t}var Me=function(t){return t.replace(/([^ ]+)/g,Te)},Oe=1;function Le(){return"kchart"+Oe++}function Be(){return Le()}var Ie=new WeakMap,Ee=Symbol("id");function Re(t,e,i,o,r){!function(t,e,i,o,r){(G(e)?e:(e||"").split(" ")).forEach((function(e){!function(t,e,i,o,r){var n,s=o;i&&ot(i)&&!o?s=i:i&&function(t){return"string"==typeof t}(i)&&ot(s)&&(n=i);var a=function(e){var i=e.target?e.target.closest(n):null;if(!n||n&&e.target&&i){var o=n?i:e.currentTarget;Object.defineProperty(e,"currentTarget",{value:o}),Object.defineProperty(e,"delegateTarget",{value:t}),s(e)}};s[Ee]||(s[Ee]=Be());var p=Ie.get(t);p||(p=new Map,Ie.set(t,p)),p.set(e+s[Ee],a),t.addEventListener(e,a,Boolean(r))}(t,e,i,o,r)}))}(t,e,i,o,r)}function Ve(t,e,i,o,r){!function(t,e,i,o){(G(e)?e:(e||"").split(" ")).forEach((function(e){!function(t,e,i,o){var r=Ie.get(t);if(r&&i&&i[Ee]){var n=e+i[Ee],s=r.get(n);r.delete(n),s&&t.removeEventListener(e,s,Boolean(o))}}(t,e,i,o)}))}(t,e,i,o)}function ze(){var t=function(t){var e=!1,i={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[._]([\d._]+)/,ipad:/(iPad).*OS\s+(\d+)[._]([\d_]+)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i};for(var r in i)if(t.match(i[r])){if("windows"===r&&"plugins"in navigator)return!1;(e={}).device=r,e.name=je(r,o),e[e.name]=!0;break}return e}(navigator.userAgent),e={};return e.mobileOS=t,e}function je(t,e,i){for(var o in e)if(e[o].test(t))return o;return void 0!==i?i:t}function De(){}function Fe(){return(new Date).getTime()}var He="string",Ne="function",Ue=function(){this._defaultPrevented=!0},Ge=function(){return!0===this._defaultPrevented},We=function(){this._events={}};We.prototype.destroy=function(){this.unbind()},We.prototype.bind=function(t,e,i){var o,r,n,s,a=this,p=typeof t===He?[t]:t||[],l=typeof e===Ne;if(void 0===e){for(o in t)a.bind(o,t[o]);return a}var h=function(){var t=p[o];(s=l?e:e[t])&&(i&&(n=s,s=function(){a.unbind(t,s),n.apply(a,arguments)},s.original=n),(a._events[t]=a._events[t]||[]).push(s))};for(o=0,r=p.length;o<r;o++)h();return a},We.prototype.one=function(t,e){return this.bind(t,e,!0)},We.prototype.first=function(t,e){var i,o,r,n=this,s=typeof t===He?[t]:t,a=typeof e===Ne;for(i=0,o=s.length;i<o;i++){var p=s[i];(r=a?e:e[p])&&(n._events[p]=n._events[p]||[]).unshift(r)}return n},We.prototype.trigger=function(t,e){var i,o,r=this,n=r._events[t];if(n){var s=e||{};for(s.sender=r,s._defaultPrevented=!1,s.preventDefault=Ue,s.isDefaultPrevented=Ge,i=0,o=(n=n.slice()).length;i<o;i++)n[i].call(r,s);return!0===s._defaultPrevented}return!1},We.prototype.unbind=function(t,e){var i,o=this,r=o._events[t];if(void 0===t)o._events={};else if(r)if(e)for(i=r.length-1;i>=0;i--)r[i]!==e&&r[i].original!==e||r.splice(i,1);else o._events[t]=[];return o},We.prototype._setEvents=function(t){for(var e=(this.events||[]).length,i=0;i<e;i++){var o=this.events[i];this.options[o]&&t[o]&&(this.unbind(o,this.options[o]),this._events&&this._events[o]&&delete this._events[o])}this.bind(this.events,t)};const Xe=We;var Ye=Object.assign,qe=function(t){t.preventDefault()},Ze=800,Qe=0,Ke="press",$e="hold",Je="select",ti="start",ei="move",ii="end",oi="cancel",ri="tap",ni="doubleTap",si="release",ai="gesturechange",pi="gestureend",li="gesturetap",hi={api:0,touch:0,mouse:9,pointer:9};function ci(t){var e=[],i=t.originalEvent||t,o=t.currentTarget;return t.api?e.push({id:2,event:t,target:t.target,currentTarget:t.target,location:t,type:"api"}):e.push({location:i,event:t,target:t.target,currentTarget:o,id:i.pointerId,type:"pointer"}),e}var ui=function(t,e){var i=this;i.support=ze(),i.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,i.axis=t,i._updateLocationData(e),i.startLocation=i.location,i.velocity=i.delta=0,i.timeStamp=Fe()};ui.prototype.move=function(t){var e=this,i=t["page"+e.axis],o=Fe(),r=o-e.timeStamp||1;!i&&this.invalidZeroEvents||(e.delta=i-e.location,e._updateLocationData(t),e.initialDelta=i-e.startLocation,e.velocity=e.delta/r,e.timeStamp=o)},ui.prototype._updateLocationData=function(t){var e=this,i=e.axis;e.location=t["page"+i],e.client=t["client"+i],e.screen=t["screen"+i]};var di=function(t,e,i){Ye(this,{x:new ui("X",i.location),y:new ui("Y",i.location),type:i.type,threshold:t.threshold||hi[i.type],userEvents:t,target:e,currentTarget:i.currentTarget,initialTouch:i.target,id:i.id,pressEvent:i,_clicks:t._clicks,supportDoubleTap:t.supportDoubleTap,_moved:!1,_finished:!1})};function fi(t){for(var e=Pe.up.split(" "),i=0,o=e.length;i<o;i++)t(e[i])}di.prototype.press=function(){var t=this;this._holdTimeout=setTimeout((function(){return t._hold()}),this.userEvents.minHold),this._trigger(Ke,this.pressEvent)},di.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout((function(){1===e.userEvents._clicks?e._trigger(ri,t):e._trigger(ni,t),e.userEvents._clicks=0}),300))},di.prototype._hold=function(){this._trigger($e,this.pressEvent)},di.prototype.move=function(t){var e=this,i="api"!==t.type&&e.userEvents._shouldNotMove;if(!e._finished&&!i){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if(gi.current&&gi.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(ei,t)}},di.prototype.end=function(t){this.endTime=Fe(),this._finished||(this._finished=!0,this._trigger(si,t),this._moved?this._trigger(ii,t):this.supportDoubleTap?this._tap(t):this._trigger(ri,t),clearTimeout(this._holdTimeout),this.dispose())},di.prototype.dispose=function(){var t=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);var e=t.indexOf(this);t.splice(e,1)},di.prototype.skip=function(){this.dispose()},di.prototype.cancel=function(){this.dispose()},di.prototype.isMoved=function(){return this._moved},di.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=Fe(),this._moved=!0,this._trigger(ti,t)},di.prototype._trigger=function(t,e){var i=e.event,o={touch:this,x:this.x,y:this.y,target:this.target,event:i};this.userEvents.notify(t,o)&&i.preventDefault()},di.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold};var gi=function(t){function e(e,i){t.call(this);var o,r=this,n=ze();if(this.support=n,i=i||{},this.options=i,o=r.filter=i.filter,r.threshold=i.threshold||Qe,r.minHold=i.minHold||Ze,r.touches=[],r._maxTouches=i.multiTouch?2:1,r.allowSelection=i.allowSelection,r.captureUpIfMoved=i.captureUpIfMoved,r._clicks=0,r.supportDoubleTap=i.supportDoubleTap,Ye(r,{element:e,surface:i.surface||e,stopPropagation:i.stopPropagation,pressed:!1}),this._surfaceMoveHandler=this._move.bind(this),Re(r.surface,Me("move"),this._surfaceMoveHandler),this._surfaceEndHandler=this._end.bind(this),Re(r.surface,Me("up cancel"),this._surfaceEndHandler),this._elementStartHandler=this._start.bind(this),Re(e,Me("down"),o,this._elementStartHandler),e.style["touch-action"]=i.touchAction||"none",i.preventDragEvent&&(this._elementDragStartHandler=qe,Re(e,Me("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=this._select.bind(this),Re(e,Me("mousedown"),o,this._elementSelectHandler),r.captureUpIfMoved){var s=r.surface;r._preventIfMovingProxy=r.preventIfMoving.bind(r),fi((function(t){s.addEventListener(t,r._preventIfMovingProxy,!0)}))}r.bind([Ke,$e,ri,ni,ti,ei,ii,si,oi,"gesturestart",ai,pi,li,Je],i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},e.prototype.destroy=function(){var t=this,e=this.options,i=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved){var o=t.surface;fi((function(e){o.removeEventListener(e,t._preventIfMovingProxy,!0)}))}Ve(t.surface,Me("move"),this._surfaceMoveHandler),Ve(t.surface,Me("up cancel"),this._surfaceEndHandler),Ve(i,Me("down"),this._elementStartHandler),e.preventDragEvent&&Ve(i,Me("dragstart"),this._elementDragStartHandler),Ve(i,Me("mousedown"),this._elementSelectHandler),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget}},e.prototype.capture=function(){e.current=this},e.prototype.cancel=function(){this._disposeAll(),this.trigger(oi)},e.prototype.notify=function(t,e){var i,o,r,n,s,a,p,l,h=this.touches,c=t;if(this._isMultiTouch()){switch(c){case ei:c=ai;break;case ii:c=pi;break;case ri:c=li}Ye(e,{touches:h},(i=h[0],o=h[1],r=i.x.location,n=i.y.location,p=r-(s=o.x.location),l=n-(a=o.y.location),{center:{x:(r+s)/2,y:(n+a)/2},distance:Math.sqrt(p*p+l*l)}))}return this.trigger(c,Ye(e,{type:c}))},e.prototype.press=function(t,e,i){this._apiCall("_start",t,e,i)},e.prototype.move=function(t,e){this._apiCall("_move",t,e)},e.prototype.end=function(t,e){this._apiCall("_end",t,e)},e.prototype._isMultiTouch=function(){return this.touches.length>1},e.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},e.prototype._disposeAll=function(){for(var t=this.touches;t.length>0;)t.pop().dispose()},e.prototype._isMoved=function(){return wt(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(Je,{event:t})||t.preventDefault()},e.prototype._start=function(t){if(!(t.which&&t.which>1||this._maxTouchesReached())){var i;e.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();for(var o=ci(t),r=0;r<o.length&&!this._maxTouchesReached();r++){var n=o[r];if(!(i=this.filter?n.currentTarget:this.element)||0!==i.length){var s=new di(this,i,n);this.touches.push(s),s.press(),this._isMultiTouch()&&this.notify("gesturestart",{})}}}},e.prototype._move=function(t){this._eachTouch("move",t)},e.prototype._end=function(t){this._eachTouch("end",t)},e.prototype._eachTouch=function(t,e){var i,o,r,n,s={},a=ci(e),p=this.touches;for(i=0;i<p.length;i++)s[(o=p[i]).id]=o;for(i=0;i<a.length;i++)(n=s[(r=a[i]).id])&&("move"===t&&"pointer"===r.type&&!this.surface.hasPointerCapture(r.id)&&this.surface.setPointerCapture(r.id),n[t](r))},e.prototype._apiCall=function(t,e,i,o){this[t]({api:!0,pageX:e,pageY:i,clientX:e,clientY:i,target:o||this.element,stopPropagation:De,preventDefault:De})},e.defaultThreshold=function(t){Qe=t},e.minHold=function(t){Ze=t},e}(Xe);const yi=gi;function vi(t,e){var i=Zt(e-t,b-1);if(0===i){if(0===e)return.1;i=Math.abs(e)}var o=Math.pow(10,Math.floor(Math.log(i)/Math.log(10))),r=Zt(i/o,b);return Zt(o*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),b)}var mi=function(t,e){this.x=t||0,this.y=e||0};mi.prototype.clone=function(){return new mi(this.x,this.y)},mi.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},mi.prototype.rotate=function(t,e){var i=qt(e),o=Math.cos(i),r=Math.sin(i),n=t.x,s=t.y,a=this.x,p=this.y;return this.x=Zt(n+(a-n)*o+(p-s)*r,y),this.y=Zt(s+(p-s)*o-(a-n)*r,y),this},mi.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},mi.prototype.distanceTo=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},mi.onCircle=function(t,e,i){var o=qt(e);return new mi(t.x-i*Math.cos(o),t.y-i*Math.sin(o))};const xi=mi;var bi=function(t,e,i,o){this.x1=t||0,this.y1=e||0,this.x2=i||0,this.y2=o||0};function _i(t,e,i,o,r){var n=qt(r);return new xi(i+(t-i)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-i)*Math.sin(n)+(e-o)*Math.cos(n))}bi.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},bi.prototype.width=function(){return this.x2-this.x1},bi.prototype.height=function(){return this.y2-this.y1},bi.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},bi.prototype.move=function(t,e){var i=this.height(),o=this.width();return void 0!==t&&(this.x1=t,this.x2=this.x1+o),void 0!==e&&(this.y1=e,this.y2=this.y1+i),this},bi.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},bi.prototype.wrapLimit=function(t,e,i){return this.x1=Math.min(this.x1,Math.max(this.x1-e,t.x1)),this.y1=Math.min(this.y1,Math.max(this.y1-i,t.y1)),this.x2=Math.max(this.x2,Math.min(this.x2+e,t.x2)),this.y2=Math.max(this.y2,Math.min(this.y2+i,t.y2)),this},bi.prototype.wrapPoint=function(t){var e=G(t),i=e?t[0]:t.x,o=e?t[1]:t.y;return this.wrap(new bi(i,o,i,o)),this},bi.prototype.snapTo=function(t,e){return e!==F&&e||(this.x1=t.x1,this.x2=t.x2),e!==H&&e||(this.y1=t.y1,this.y2=t.y2),this},bi.prototype.alignTo=function(t,e){var i=this.height(),o=this.width(),r=e===V||e===d?H:F,n=r===H?i:o;if(e===f){var s=t.center(),a=this.center();this.x1+=s.x-a.x,this.y1+=s.y-a.y}else this[r+1]=e===V||e===C?t[r+1]-n:t[r+2];return this.x2=this.x1+o,this.y2=this.y1+i,this},bi.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},bi.prototype.expand=function(t,e){return this.shrink(-t,-e),this},bi.prototype.pad=function(t){var e=dt(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},bi.prototype.unpad=function(t){var e=dt(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},bi.prototype.clone=function(){return new bi(this.x1,this.y1,this.x2,this.y2)},bi.prototype.center=function(){return new xi(this.x1+this.width()/2,this.y1+this.height()/2)},bi.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},bi.prototype.points=function(){return[new xi(this.x1,this.y1),new xi(this.x2,this.y1),new xi(this.x2,this.y2),new xi(this.x1,this.y2)]},bi.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},bi.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},bi.prototype.rotate=function(t){var e=this.width(),i=this.height(),o=this.center(),r=o.x,n=o.y,s=_i(0,0,r,n,t),a=_i(e,0,r,n,t),p=_i(e,i,r,n,t),l=_i(0,i,r,n,t);return e=Math.max(s.x,a.x,p.x,l.x)-Math.min(s.x,a.x,p.x,l.x),i=Math.max(s.y,a.y,p.y,l.y)-Math.min(s.y,a.y,p.y,l.y),this.x2=this.x1+e,this.y2=this.y1+i,this},bi.prototype.toRect=function(){return new q.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},bi.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},bi.prototype.align=function(t,e,i){return e===F?this.alignX(t,i):this.alignY(t,i),this},bi.prototype.alignX=function(t,e){var i=this.width();e===C?(this.x1=t.x1,this.x2=this.x1+i):e===B?(this.x2=t.x2,this.x1=this.x2-i):e===f&&(this.x1=t.x1+(t.width()-i)/2,this.x2=this.x1+i)},bi.prototype.alignY=function(t,e){var i=this.height();e===V?(this.y1=t.y1,this.y2=this.y1+i):e===d?(this.y2=t.y2,this.y1=this.y2-i):e===f&&(this.y1=t.y1+(t.height()-i)/2,this.y2=this.y1+i)};const wi=bi;var ki=function(t,e,i,o,r){this.center=t,this.innerRadius=e,this.radius=i,this.startAngle=o,this.angle=r};function Ai(t,e){return t-e}ki.prototype.clone=function(){return new ki(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},ki.prototype.middle=function(){return this.startAngle+this.angle/2},ki.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},ki.prototype.point=function(t,e){var i=qt(t),o=Math.cos(i),r=Math.sin(i),n=e?this.innerRadius:this.radius,s=Zt(this.center.x-o*n,y),a=Zt(this.center.y-r*n,y);return new xi(s,a)},ki.prototype.adjacentBox=function(t,e,i){var o=this.clone().expand(t),r=o.middle(),n=o.point(r),s=e/2,a=i/2,p=Math.sin(qt(r)),l=Math.cos(qt(r)),h=n.x-s,c=n.y-a;return Math.abs(p)<.9&&(h+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(c+=a*-p/Math.abs(p)),new wi(h,c,h+e,c+i)},ki.prototype.containsPoint=function(t){var e=this.center,i=this.innerRadius,o=this.radius,r=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,p=new xi(s,a),l=this.point(r),h=new xi(l.x-e.x,l.y-e.y),c=this.point(n),u=new xi(c.x-e.x,c.y-e.y),d=Zt(s*s+a*a,y);return(h.equals(p)||Q(h,p))&&!Q(u,p)&&d>=i*i&&d<=o*o},ki.prototype.getBBox=function(){var t,e=new wi(P,P,T,T),i=Zt(this.startAngle%360),o=Zt((i+this.angle)%360),r=this.innerRadius,n=[0,90,180,270,i,o].sort(Ai),s=n.indexOf(i),a=n.indexOf(o);t=i===o?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var l=this.point(t[p]);e.wrapPoint(l),e.wrapPoint(l,r)}return r||e.wrapPoint(this.center),e},ki.prototype.expand=function(t){return this.radius+=t,this};const Si=ki;var Ci=function(t){function e(e,i,o,r){t.call(this,e,0,i,o,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(Si);const Pi=Ci;var Ti=function(){};Ti.prototype.createRing=function(t,e){var i=t.startAngle+180,o=t.angle+i;(0===t.angle||t.angle>0&&i===o)&&(o+=.001);var r=new q.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new q.geometry.Arc(r,{startAngle:i,endAngle:o,radiusX:n,radiusY:n}),p=q.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(o);p.lineTo(l.x,l.y),p.arc(o,i,s,s,!0)}else p.lineTo(r.x,r.y);return p},Ti.current=new Ti;const Mi=Ti;var Oi=function(t){this.children=[],this.initOptions(t)};Oi.prototype.initOptions=function(t){this.options=at({},this.options,this.initUserOptions(t))},Oi.prototype.initUserOptions=function(t){return t},Oi.prototype.reflow=function(t){for(var e,i=this.children,o=0;o<i.length;o++){var r=i[o];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},Oi.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},Oi.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},Oi.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},Oi.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},Oi.prototype.translateChildren=function(t,e){for(var i=this.children,o=i.length,r=0;r<o;r++)i[r].box.translate(t,e)},Oi.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var i=t[e];this.children.push(i),i.parent=this}},Oi.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},Oi.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},Oi.prototype.renderChildren=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)t[i].renderVisual()},Oi.prototype.createVisual=function(){this.visual=new q.drawing.Group({zIndex:this.options.zIndex,visible:Kt(this.options.visible,!0)})},Oi.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=q.drawing.Animation.create(this.visual,this.options.animation))},Oi.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):void 0!==t.options.zIndex?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},Oi.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},Oi.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},Oi.prototype.stackVisual=function(t){var e,i=t.options.zIndex||0,o=this.visual.children,r=o.length;for(e=0;e<r;e++){var n=o[e];if(Kt(n.options.zIndex,0)>i)break}this.visual.insert(e,t)},Oi.prototype.traverse=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++){var r=e[o];t(r),r.traverse&&r.traverse(t)}},Oi.prototype.closest=function(t){for(var e=this,i=!1;e&&!i;)(i=t(e))||(e=e.parent);if(i)return e},Oi.prototype.renderComplete=function(){},Oi.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)},Oi.prototype.toggleHighlight=function(t,e){var i=this,o=(this.options||{}).highlight||{},r=o.visual,n=this._highlight;if(!n){var s={fill:{color:j,opacity:e||.2},stroke:{color:j,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return i.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);void 0===n.options.zIndex&&(n.options.zIndex=Kt(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},Oi.prototype.toggleFocusHighlight=function(t){var e=(this.options||{}).focusHighlight||{},i=this._focusHighlight;if(t||i){if(!i){var o=this.getRoot().options.background,r=fe(o),n={fill:{opacity:e.opacity,color:e.color},stroke:Object.assign({},{color:r},e.border),zIndex:e.zIndex};i=this._focusHighlight=this.createFocusHighlight(n),this.appendVisual(i)}i.visible(t)}},Oi.prototype.createGradientOverlay=function(t,e,i){var o=new q.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(i),closed:t.options.closed},e));return o.segments.elements(t.segments.elements()),o},Oi.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},Oi.prototype.supportsPointInactiveOpacity=function(){return!0},Oi.prototype.options={};const Li=Oi;var Bi={dots:q.drawing.dotsPattern,verticalStripes:q.drawing.verticalStripesPattern,crosshatch:q.drawing.crosshatchPattern,diagonalStripes:q.drawing.diagonalStripesPattern,grid:q.drawing.gridPattern};function Ii(t,e,i){var o=function(t,e){return ot(t)?t(e):t}(t,i),r=o&&Bi[o.type];return r?r(Object.assign({},e,o)):e}var Ei=function(t){function e(e){t.call(this,e),this.options.margin=dt(this.options.margin),this.options.padding=dt(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var i,o=this,r=this.options,n=r.width,s=r.height,a=r.shrinkToFit,p=n&&s,l=r.margin,h=r.padding,c=r.border.width,u=function(){o.align(e,F,r.align),o.align(e,H,r.vAlign),o.paddingBox=i.clone().unpad(l).unpad(c)},d=e.clone();p&&(d.x2=d.x1+n,d.y2=d.y1+s),a&&d.unpad(l).unpad(c).unpad(h),t.prototype.reflow.call(this,d),i=p?this.box=new wi(0,0,n,s):this.box,a&&p?(u(),d=this.contentBox=this.paddingBox.clone().unpad(h)):(d=this.contentBox=i.clone(),i.pad(h).pad(c).pad(l),u()),this.translateChildren(i.x1-d.x1+l.left+c+h.left,i.y1-d.y1+l.top+c+h.top);for(var f=this.children,g=0;g<f.length;g++){var y=f[g];y.reflow(y.box)}},e.prototype.align=function(t,e,i){this.box.align(t,e,i)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(q.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:Kt(e.opacity,t.opacity),dashType:e.dashType},fill:Ii(t.pattern,{color:t.background,opacity:t.opacity},void 0),cursor:t.cursor}},e}(Li);te(Ei,{align:C,vAlign:V,margin:{},padding:{},border:{color:u,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const Ri=Ei;function Vi(t,e){e&&(t.options.className=e.className,t.options.role=e.role,t.options.ariaLabel=e.ariaLabel,t.options.ariaRoleDescription=e.ariaRoleDescription,t.options.ariaChecked=e.ariaChecked)}var zi=function(t){function e(e,i){t.call(this,e),this.pointData=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,i=t.type,o=t.rotation,r=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,p=this.visualStyle();if(i===g)a=new q.drawing.Circle(new q.geometry.Circle([Zt(e.x1+n,y),Zt(e.y1+s,y)],Math.min(n,s)),p);else if("triangle"===i)a=q.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],p).close();else if(i===v)(a=new q.drawing.MultiPath(p)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var l=e.toRect();if(i===I){var h=Kt(t.borderRadius,l.width()/5);l.setCornerRadius(h)}a=q.drawing.Path.fromRect(l,p)}return o&&a.transform(q.geometry.transform().rotate(-o,[r.x,r.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,i=this.pointData||{};return e?e({value:i.value,dataItem:i.dataItem,sender:this.getSender(),series:i.series,category:i.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement(),Vi(this.visual,this.options.accessibilityOptions)},e}(Ri);te(zi,{type:g,align:f,vAlign:f});const ji=zi;var Di="radial";const Fi={glass:{type:"linear",rotation:0,stops:[{offset:0,color:j,opacity:0},{offset:.25,color:j,opacity:.3},{offset:1,color:j,opacity:0}]},sharpBevel:{type:Di,stops:[{offset:0,color:j,opacity:.55},{offset:.65,color:j,opacity:0},{offset:.95,color:j,opacity:.25}]},roundedBevel:{type:Di,stops:[{offset:.33,color:j,opacity:.06},{offset:.83,color:j,opacity:.2},{offset:.95,color:j,opacity:0}]},roundedGlass:{type:Di,supportVML:!1,stops:[{offset:0,color:j,opacity:0},{offset:.5,color:j,opacity:.3},{offset:.99,color:j,opacity:0}]},sharpGlass:{type:Di,supportVML:!1,stops:[{offset:0,color:j,opacity:.2},{offset:.15,color:j,opacity:.15},{offset:.17,color:j,opacity:.35},{offset:.85,color:j,opacity:.05},{offset:.87,color:j,opacity:.15},{offset:.99,color:j,opacity:0}]},bubbleShadow:{type:Di,center:[.5,.5],radius:.5}};function Hi(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var i=Math.min(t.x1,e.x1),o=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),h=[];return h[0]=new wi(o,s,r,a),h[1]=new wi(i,a,o,p),h[2]=new wi(r,a,n,p),h[3]=new wi(o,p,r,l),t.x1===i&&t.y1===s||e.x1===i&&e.y1===s?(h[4]=new wi(i,s,o,a),h[5]=new wi(r,p,n,l)):(h[4]=new wi(r,s,n,a),h[5]=new wi(i,p,o,l)),wt(h,(function(t){return t.height()>0&&t.width()>0}))[0]}var Ni=function(t){function e(e){t.call(this,e);var i=this.options;i.width=parseInt(i.width,10),i.height=parseInt(i.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,i=new wi(0,0,t.width,t.height);this.box=i.unpad(t.margin);for(var o=0;o<e.length;o++)e[o].reflow(i),i=Hi(i,e[o].box)||new wi},e.prototype.createVisual=function(){this.visual=new q.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},i=this.box.clone().pad(t.margin).unpad(e.width),o=q.drawing.Path.fromRect(i.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(o)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,i=this.gradients,o=Yt(t),r=Fi[t.gradient];if(i[o])e=i[o];else{var n=Object.assign({},r,t);"linear"===r.type?e=new q.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,i=t.innerRadius/t.radius*100,o=e.length,r=[],n=0;n<o;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-i)+i)/100,r.push(s)}return r}(n)),(e=new q.drawing.RadialGradient(n)).supportVML=!1!==r.supportVML),i[o]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new wi(0,0,t.width,t.height)},e}(Li);te(Ni,{width:600,height:400,background:j,border:{color:u,width:0},margin:dt(5),zIndex:-2});const Ui=Ni;var Gi=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=F,this.elementAxis=H,this.groupSizeField=D,this.elementSizeField=k,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=H,this.elementAxis=F,this.groupSizeField=k,this.elementSizeField=D,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this,e=t.box,i=t.elementAxis,o=t.groupAxis,r=t.elementSizeField,n=t.groupSizeField,s=this.groupOptions(),a=s.groups,p=s.groupsSize,l=s.maxGroupElementsSize,h=a.length,c=e[o+1]+this.alignStart(p,e[n]());if(h){for(var u=c,d=0;d<h;d++){for(var f=a[d],g=f.groupElements,y=e[i+1],v=g.length,m=0;m<v;m++){var x=g[m],b=this.elementSize(x),_=u+this.alignStart(b[n],f.groupSize),w=new wi;w[o+1]=_,w[o+2]=_+b[n],w[i+1]=y,w[i+2]=y+b[r],x.reflow(w),y+=b[r]+this.elementSpacing}u+=f.groupSize+this.groupSpacing}e[o+1]=c,e[o+2]=c+p,e[i+2]=e[i+1]+l}},e.prototype.alignStart=function(t,e){var i=0,o=this.options.align;return o===B||o===d?i=e-t:o===f&&(i=(e-t)/2),i},e.prototype.groupOptions=function(){for(var t=this,e=t.box,i=t.children,o=t.elementSizeField,r=t.groupSizeField,n=t.elementSpacing,s=t.groupSpacing,a=Zt(e[o]()),p=i.length,l=[],h=0,c=0,u=0,d=0,f=[],g=0;g<p;g++){var y=i[g];y.box||y.reflow(e);var v=this.elementSize(y);this.options.wrap&&Zt(c+n+v[o])>a&&(l.push({groupElements:f,groupSize:h,groupElementsSize:c}),d=Math.max(d,c),u+=s+h,h=0,c=0,f=[]),h=Math.max(h,v[r]),c>0&&(c+=n),c+=v[o],f.push(y)}return l.push({groupElements:f,groupSize:h,groupElementsSize:c}),{groups:l,groupsSize:u+=h,maxGroupElementsSize:d=Math.max(d,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Li);te(Gi,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const Wi=Gi;var Xi=q.drawing.Text,Yi=function(t){function e(e,i){t.call(this,i),this.content=e,this.reflow(new wi)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=e.size=q.drawing.util.measureText(this.content,{font:e.font});this.baseline=i.baseline,this.box=new wi(t.x1,t.y1,t.x1+i.width,t.y1+i.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,i=t.color,o=t.opacity,r=t.cursor,n=t.stroke,s=t.paintOrder;this.visual=new Xi(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:i,opacity:o},cursor:r,stroke:n,paintOrder:s})},e}(Li);te(Yi,{font:x,color:u});const qi=Yi;function Zi(t){var e=t.origin,i=t.bottomRight();return new wi(e.x,e.y,i.x,i.y)}var Qi=/\n/m,Ki=function(t){function e(e,i,o){t.call(this,i),this.content=e,this.data=o,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new wi)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(Qi),i=new Wi({vertical:!0,align:t.align,wrap:!1}),o=at({},t,{opacity:1,animation:null});this.container=i,this.append(i);for(var r=0;r<e.length;r++){var n=new qi(e[r].trim(),o);i.append(n)}},e.prototype.reflow=function(e){var i=this.options,o=i.visual;if(this.container.options.align=i.align,o&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var n=this.visual=o(this.visualContext(r));n&&(r=Zi(n.clippedBBox()||new q.geometry.Rect),n.options.zIndex=i.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),i.rotation){var s=dt(i.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new q.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=q.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.o