@progress/kendo-charts
Version:
Kendo UI platform-independent Charts library
1 lines • 597 kB
JavaScript
!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={86:e=>{e.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var n=o[t]={exports:{}};return e[t](n,n.exports,i),n.exports}i.d=(t,e)=>{for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{i.r(r),i.d(r,{Aggregates:()=>Wr,ArcGauge:()=>zd,ArcScale:()=>Id,AreaChart:()=>Pa,AreaSegment:()=>ba,ArrowLinearPointer:()=>id,Axis:()=>mi,AxisGroupRangeTracker:()=>Ma,AxisLabel:()=>Ko,Bar:()=>Ea,BarChart:()=>Na,BarLabel:()=>La,BarLinearPointer:()=>ld,Barcode:()=>Mf,Box:()=>yo,BoxElement:()=>Mo,BoxPlot:()=>qa,BoxPlotChart:()=>$a,BubbleChart:()=>sp,Bullet:()=>hp,BulletChart:()=>up,Candlestick:()=>Ga,CandlestickChart:()=>Xa,CategoricalChart:()=>$s,CategoricalErrorBar:()=>Os,CategoricalPlotArea:()=>wl,CategoryAxis:()=>Ji,Chart:()=>Jc,ChartAxis:()=>zr,ChartContainer:()=>_p,ChartElement:()=>So,ChartPane:()=>Hr,ChartPlotArea:()=>Nr,ChartService:()=>ci,ChartWizardCommon:()=>Um,CircularGauge:()=>Fd,Class:()=>W.Class,ClipAnimation:()=>ya,ClusterLayout:()=>za,Crosshair:()=>mp,CrosshairTooltip:()=>yp,CurveProcessor:()=>Vr,DateCategoryAxis:()=>pr,DateValueAxis:()=>vr,DefaultAggregates:()=>jp,DomEventsBuilder:()=>fi,DonutChart:()=>Rh,DonutPlotArea:()=>jh,DonutSegment:()=>Bh,ErrorBarBase:()=>Ts,ErrorRangeCalculator:()=>$r,Extent:()=>Ly,FloatElement:()=>Do,FontLoader:()=>Qt,FormatService:()=>pi,Gauge:()=>Fu,Gradients:()=>Eo,HashMap:()=>wt,Highlight:()=>Sl,InstanceObserver:()=>Pt,IntlService:()=>ri,Legend:()=>Zl,LegendItem:()=>Xl,LegendLayout:()=>Rl,LineChart:()=>xa,LinePoint:()=>ia,LineSegment:()=>na,LinearGauge:()=>ud,LinearPointer:()=>Ku,LinearScale:()=>Yu,Location:()=>Qg,LogarithmicAxis:()=>wr,Map:()=>zv,Matrix:()=>ke,MousewheelZoom:()=>Bl,Navigator:()=>vu,NavigatorHint:()=>cu,Note:()=>Jo,NumericAxis:()=>gr,OHLCChart:()=>rl,OHLCPoint:()=>ol,Observable:()=>Fe,Pane:()=>kp,Pannable:()=>Ml,PieAnimation:()=>hh,PieChart:()=>Mh,PieChartMixin:()=>Ch,PiePlotArea:()=>Lh,PieSegment:()=>Ah,PlotAreaBase:()=>Op,PlotAreaEventsMixin:()=>Ip,PlotAreaFactory:()=>Kl,Point:()=>uo,PointEventsMixin:()=>ta,PolarAxis:()=>Pr,QRCode:()=>Dg,RadarCategoryAxis:()=>Sr,RadarLogarithmicAxis:()=>Er,RadarNumericAxis:()=>Ir,RadialGauge:()=>Od,RadialPointer:()=>Pd,RadialScale:()=>_d,RangeAreaChart:()=>tl,RangeAreaPoint:()=>Xp,RangeBar:()=>Dp,RangeBarChart:()=>Hp,RangePointer:()=>Vd,Ring:()=>xo,RootElement:()=>jo,Sankey:()=>um,ScatterChart:()=>op,ScatterErrorBar:()=>tp,ScatterLineChart:()=>uh,Sector:()=>bo,Selection:()=>eh,SeriesAggregator:()=>Rp,SeriesBinder:()=>qr,ShapeBuilder:()=>ko,ShapeElement:()=>Io,SharedTooltip:()=>nh,Sparkline:()=>au,SplineAreaSegment:()=>Sa,SplineSegment:()=>ua,StackWrap:()=>Fa,StockChart:()=>xu,TemplateService:()=>dt,Text:()=>No,TextBox:()=>Xo,Title:()=>Zo,Tooltip:()=>ih,UserEvents:()=>ho,WaterfallChart:()=>pl,WaterfallSegment:()=>sl,XYPlotArea:()=>_h,ZoomSelection:()=>Ll,addClass:()=>N,alignPathToPixel:()=>X,anyHasZIndex:()=>Ls,append:()=>Bt,appendIfNotNull:()=>Is,applyEventMap:()=>Ce,areNumbers:()=>Bs,autoMajorUnit:()=>co,autoTextColor:()=>ce,barcodeValidator:()=>Lf,bindEvents:()=>Et,bindSegments:()=>Rs,categoriesCount:()=>Vs,chartBaseTheme:()=>gx,chartTheme:()=>Lx,clockwise:()=>Y,constants:()=>t,convertableToNumber:()=>Q,countNumbers:()=>Ur,createHashSet:()=>me,createOutOfRangePoints:()=>Qs,createPatternFill:()=>Po,createSankeyData:()=>fm,cycleDown:()=>$,cycleIndex:()=>J,cycleUp:()=>K,deepExtend:()=>rt,defaultErrorHandler:()=>xe,defined:()=>Rt,deg:()=>Vt,elementOffset:()=>jt,elementScale:()=>he,elementSize:()=>zt,elementStyles:()=>lt,equalsIgnoreCase:()=>js,evalOptions:()=>Ds,eventCoordinates:()=>Dt,eventElement:()=>Ft,eventMap:()=>Ae,filterSeriesByType:()=>Fs,find:()=>se,findAxisByName:()=>Dr,gaugeTheme:()=>Mx,getAriaTemplate:()=>gt,getField:()=>Xr,getSpacing:()=>ht,getSupportedFeatures:()=>Ie,getTemplate:()=>ft,getter:()=>mt,grep:()=>xt,hasClasses:()=>_t,hasGradientOverlay:()=>Us,hasOwnProperty:()=>be,hasValue:()=>Gs,hashKey:()=>Ht,inArray:()=>kt,interpolateValue:()=>At,isArray:()=>H,isDateAxis:()=>Ws,isFunction:()=>tt,isNumber:()=>q,isObject:()=>nt,isPlainObject:()=>Tt,isString:()=>Z,keys:()=>_e,last:()=>Nt,limitValue:()=>Ut,logToConsole:()=>W.logToConsole,map:()=>Mt,mousewheelDelta:()=>Lt,noop:()=>Ee,now:()=>Re,objectKey:()=>Gt,off:()=>Le,on:()=>Oe,parseDateCategory:()=>Ns,qrcodeValidator:()=>Fg,rad:()=>Wt,rectToBox:()=>Uo,removeClass:()=>G,renderIcon:()=>re,round:()=>Xt,sankeyTheme:()=>Ox,segmentVisible:()=>Es,setDefaultOptions:()=>Kt,singleItemOrArray:()=>Xs,sparseArrayLimits:()=>ne,styleValue:()=>st,unbindEvents:()=>Yt,valueOrDefault:()=>qt});var t={};i.r(t),i.d(t,{DEFAULT_PANE:()=>fu,NAVIGATOR_AXIS:()=>du,NAVIGATOR_PANE:()=>uu});var e="arc",o="ArrowUp",n="ArrowDown",s="ArrowLeft",a="ArrowRight",p="aria-activedescendant",l="#000",h="bottom",c="center",u="circle",d=3,f="cross",g="date",y="12px sans-serif",v=10,m="end",x=/\{\d+:?/,_="height",b="inside",w="inherit",k="left",A=Number.MAX_VALUE,S=-Number.MAX_VALUE,C="none",P="object",T="outside",M="right",O="roundedRect",L="start",I="string",B="top",E="value",R="#fff",V="width",j="x",z="y",D="pointer",F="horizontal";function H(t){return Array.isArray(t)}function N(t,e){for(var o=H(e)?e:[e],i=0;i<o.length;i++){var r=o[i];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var U=/\s+/g;function G(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(U," "))}var W=i(86);function X(t){var e=.5;t.options.stroke&&W.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var o=0;o<t.segments.length;o++)t.segments[o].anchor().round(0).translate(e,e);return t}function Y(t,e){return-t.x*e.y+t.y*e.x<0}function q(t){return"number"==typeof t&&!isNaN(t)}function Z(t){return typeof t===I}function Q(t){return q(t)||Z(t)&&isFinite(t)}function K(t,e){return(t+1)%e}function $(t,e){var o=t-1;return o<0?e-1:o}function J(t,e){return 1===e||t%e==0?0:t<0?e+t%e:t>=e?t%e:t}function tt(t){return"function"==typeof t}var et="object",ot="undefined";function it(t,e){for(var o in e)if("__proto__"!==o&&"constructor"!==o){var i,r=e[o],n=typeof r;if((i=n===et&&null!==r?r.constructor:null)&&i!==Array)if(r instanceof Date)t[o]=new Date(r.getTime());else if(tt(r.clone))t[o]=r.clone();else{var s=t[o];t[o]=typeof s===et&&s||{},it(t[o],r)}else n!==ot&&(t[o]=r)}return t}function rt(t){for(var e=arguments,o=arguments.length,i=1;i<o;i++)it(t,e[i]);return t}function nt(t){return"object"==typeof t}function st(t){return q(t)?t+"px":t}var at=/width|height|top|left|bottom|right/i;function pt(t){return at.test(t)}function lt(t,e){var o=Z(e)?[e]:e;if(H(o)){for(var i={},r=window.getComputedStyle(t),n=0;n<o.length;n++){var s=o[n];i[s]=pt(s)?parseFloat(r[s]):r[s]}return i}if(nt(e))for(var a in e)t.style[a]=st(e[a])}function ht(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o[B]=o[M]=o[h]=o[k]=t:(o[B]=t[B]||e,o[M]=t[M]||e,o[h]=t[h]||e,o[k]=t[k]||e),o}var ct={compile:function(t){return t}},ut=function(){};ut.register=function(t){ct=t},ut.compile=function(t,e){return ct.compile(t,e)};const dt=ut;function ft(t){var e;return void 0===t&&(t={}),t.template?t.template=e=dt.compile(t.template):tt(t.content)&&(e=t.content),e}function gt(t){var e;return void 0===t&&(t={}),t.ariaTemplate?t.ariaTemplate=e=dt.compile(t.ariaTemplate):tt(t.ariaContent)&&(e=t.ariaContent),e}var yt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,vt={};function mt(t){if(vt[t])return vt[t];var e=[];return t.replace(yt,(function(t,o,i,r){e.push(W.drawing.util.defined(o)?o:i||r)})),vt[t]=function(t){for(var o=t,i=0;i<e.length&&o;i++)o=o[e[i]];return o},vt[t]}function xt(t,e){for(var o=t.length,i=[],r=0;r<o;r++)e(t[r])&&i.push(t[r]);return i}function _t(t,e){if(t.className)for(var o=e.split(" "),i=0;i<o.length;i++)if(t.className.indexOf&&-1!==t.className.indexOf(o[i]))return!0}vt[void 0]=function(t){return t};var bt=function(){this._map=new Map};bt.prototype.get=function(t){return this._map.get(t)},bt.prototype.set=function(t,e){this._map.set(t,e)};const wt=bt;function kt(t,e){if(e)return-1!==e.indexOf(t)}function At(t,e,o){return W.drawing.util.round(t+(e-t)*o,d)}var St="trigger",Ct=function(t,e){this.observer=t,this.handlerMap=rt({},this.handlerMap,e)};Ct.prototype.trigger=function(t,e){var o,i=this.observer,r=this.handlerMap;return r[t]?o=this.callObserver(r[t],e):i[St]&&(o=this.callObserver(St,t,e)),o},Ct.prototype.callObserver=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];return this.observer[t].apply(this.observer,e)},Ct.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 Pt=Ct;function Tt(t){return"[object Object]"===Object.prototype.toString.call(t)}function Mt(t,e){for(var o=t.length,i=[],r=0;r<o;r++){var n=e(t[r]);W.drawing.util.defined(n)&&i.push(n)}return i}var Ot=W.support.browser||{};function Lt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,Ot.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e>0?Math.ceil(e):Math.floor(e)}var It=W.drawing.util,Bt=It.append,Et=It.bindEvents,Rt=It.defined,Vt=It.deg,jt=It.elementOffset,zt=It.elementSize,Dt=It.eventCoordinates,Ft=It.eventElement,Ht=It.hashKey,Nt=It.last,Ut=It.limitValue,Gt=It.objectKey,Wt=It.rad,Xt=It.round,Yt=It.unbindEvents,qt=It.valueOrDefault,Zt=function(){};Zt.fetchFonts=function(t,e,o){void 0===o&&(o={depth:0}),!t||o.depth>5||!document.fonts||Object.keys(t).forEach((function(i){var r=t[i];"dataSource"!==i&&"$"!==i[0]&&r&&("font"===i?e.push(r):"object"==typeof r&&(o.depth++,Zt.fetchFonts(r,e,o),o.depth--))}))},Zt.loadFonts=function(t,e){var o=[];if(t.length>0&&document.fonts){try{o=t.map((function(t){return document.fonts.load(t)}))}catch(t){(0,W.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},Zt.preloadFonts=function(t,e){var o=[];Zt.fetchFonts(t,o),Zt.loadFonts(o,e)};const Qt=Zt;function Kt(t,e){var o=t.prototype;o.options?o.options=rt({},o.options,e):o.options=e}var $t="k-i-",Jt="k-svg-i-",te=function(t,e){this.element=t,this.options=rt({},this.options,e),this.wrapper()};te.prototype.wrapper=function(){this.addClasses()},te.prototype.addClasses=function(){},te.prototype.html=function(){return this.element.outerHTML},Kt(te,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]});var ee=function(t){function e(e,o){t.call(this,e,o)}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($t)})),o=this.options.icon?""+(this.options.icon.startsWith($t)?"":$t)+this.options.icon:"";this._className=o,N(this.element,"k-icon"),N(this.element,"k-font-icon"),G(this.element,e),N(this.element,o),N(this.element,this.options.iconClass||""),t.prototype.wrapper.call(this)},e}(te);Kt(ee,{name:"HTMLFontIcon",icon:null});var oe=function(t){function e(e,o){e.innerHTML="",t.call(this,e,o)}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,o=this.options.iconClass,i=this.element.className.split(" ").find((function(t){return t.startsWith(Jt)}));if(!e&&o){var r=o.match(/k-i-(\w+(?:-\w+)*)/);r&&(e=r[1],o=o.replace(r[0],""))}Z(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?""+Jt+e.name:"";if(this._className=n,N(this.element,"k-svg-icon"),G(this.element,i),N(this.element,n),N(this.element,o||""),this.element.setAttribute("aria-hidden","true"),e&&Tt(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}(te);Kt(oe,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});var ie={svg:oe,font:ee};function re(t,e){var o=t,i=e;return o&&(!nt(o)||o instanceof HTMLElement)&&!Z(o)||(i=o,o=document.createElement("span")),Z(i)&&(i={icon:i}),i.type||(i.type="svg"),ie[i.type]?new ie[i.type](o,i).html():null}function ne(t){for(var e=A,o=S,i=0,r=t.length;i<r;i++){var n=t[i];null!==n&&isFinite(n)&&(e=Math.min(e,n),o=Math.max(o,n))}return{min:e===A?void 0:e,max:o===S?void 0:o}}function se(t,e){for(var o=0;o<t.length;o++){var i=t[o];if(e(i,o,t))return i}}var ae=W.geometry.Matrix,pe=/matrix\((.*)\)/;function le(t){var e=getComputedStyle(t).transform;return"none"===e?ae.unit():function(t){var e=t.match(pe);if(null===e||2!==e.length)return ae.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(ae,[null].concat(o)))}(e)}function he(t){if(!t)return ae.unit();for(var e=le(t),o=t.parentElement;o;){var i=le(o);e=e.multiplyCopy(i),o=o.parentElement}return e.b=e.c=e.e=e.f=0,e}const ce=function(t){return new W.Color(t).isDark()?R:l};var ue={},de=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},fe={size:{configurable:!0}};de.prototype.values=function(){return this._values.filter((function(t){return t!==ue}))},de.prototype.has=function(t){return void 0!==this._index[t]},de.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},de.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=ue,delete this._index[t])},de.prototype.clear=function(){this._index={},this._values=[]},fe.size.get=function(){return this._values.length},Object.defineProperties(de.prototype,fe);var ge=function(t){this._set=new Set(t)},ye={size:{configurable:!0}};ge.prototype.values=function(){return Array.from(this._set)},ge.prototype.has=function(t){return this._set.has(t)},ge.prototype.add=function(t){this._set.add(t)},ge.prototype.delete=function(t){this._set.delete(t)},ge.prototype.clear=function(){this._set.clear()},ye.size.get=function(){return this._set.size},Object.defineProperties(ge.prototype,ye);var ve=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function me(t){return ve()?new ge(t):new de(t)}function xe(t){throw t}const _e={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 be(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var we=function(){this.height=0,this.width=0,this.data=[]};we.prototype.clone=function(){var t=new we;return t.height=this.height,t.width=this.width,t.data=this.data.map((function(t){return t.slice()})),t},we.prototype.get=function(t,e){var o=this.data[t];return o?o[e]:null},we.prototype.set=function(t,e,o){var i=this.data[t];null==i&&(i=this.data[t]=[]),i[e]=o,t>=this.height&&(this.height=t+1),e>=this.width&&(this.width=e+1)},we.prototype.each=function(t,e){for(var o=0;o<this.height;++o)for(var i=0;i<this.width;++i){var r=this.get(o,i);if((e||null!=r)&&void 0!==(r=t(r,o,i)))return r}},we.prototype.map=function(t,e){var o=new we;return this.each((function(e,i,r){o.set(i,r,t(e,i,r))}),e),o},we.prototype.transpose=function(){var t=new we;return this.each((function(e,o,i){t.set(i,o,e)})),t},we.prototype.unit=function(t){this.width=this.height=t;for(var e=this.data=new Array(t),o=t;--o>=0;)for(var i=e[o]=new Array(t),r=t;--r>=0;)i[r]=o===r?1:0;return this},we.prototype.multiply=function(t){for(var e=this,o=new we,i=0;i<e.height;++i)for(var r=0;r<t.width;++r){for(var n=0,s=0;s<e.width;++s){var a=e.get(i,s),p=t.get(s,r);"number"==typeof a&&"number"==typeof p&&(n+=a*p)}o.set(i,r,n)}return o},we.prototype.inverse=function(){for(var t=this.width,e=this.augment((new we).unit(t)),o=e.data,i=function(e){var i=function(t,e,o){for(var i=o(t),r=t,n=t+1;n<e;n++){var s=o(t);s>i&&(i=s,r=t)}return r}(e,t,(function(t){return o[t][e]}));if(!o[i][e])return{v:null};if(e!==i){var r=o[e];o[e]=o[i],o[i]=r}for(var n=e+1;n<t;++n){for(var s=e+1;s<2*t;++s)o[n][s]-=o[e][s]*o[n][e]/o[e][e];o[n][e]=0}},r=0;r<t;++r){var n=i(r);if(n)return n.v}for(var s=0;s<t;++s)for(var a=o[s][s],p=0;p<2*t;++p)o[s][p]/=a;for(var l=t;--l>=0;)for(var h=l;--h>=0;)if(o[h][l])for(var c=2*t;--c>=t;)o[h][c]-=o[l][c]*o[h][l];return e.slice(0,t,t,t)},we.prototype.augment=function(t){var e=this.clone(),o=e.width;return t.each((function(t,i,r){e.set(i,r+o,t)})),e},we.prototype.slice=function(t,e,o,i){for(var r=new we,n=0;n<o;++n)for(var s=0;s<i;++s)r.set(n,s,this.get(t+n,e+s));return r};const ke=we;var Ae={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"};function Se(t){return Ae[t]||t}var Ce=function(t){return t.replace(/([^ ]+)/g,Se)};function Pe(){var t,e,o="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(o+="-"),o+=(12===t?4:16===t?3&e|8:e).toString(16);return o}var Te=new WeakMap,Me=Symbol("id");function Oe(t,e,o,i,r){!function(t,e,o,i,r){(H(e)?e:(e||"").split(" ")).forEach((function(e){!function(t,e,o,i,r){var n,s=i;o&&tt(o)&&!i?s=o:o&&function(t){return"string"==typeof t}(o)&&tt(s)&&(n=o);var a=function(e){var o=e.target?e.target.closest(n):null;if(!n||n&&e.target&&o){var i=n?o:e.currentTarget;Object.defineProperty(e,"currentTarget",{value:i}),Object.defineProperty(e,"delegateTarget",{value:t}),s(e)}};s[Me]=Pe();var p=Te.get(t);p||(p=new Map,Te.set(t,p)),p.set(s[Me],a),t.addEventListener(e,a,Boolean(r))}(t,e,o,i,r)}))}(t,e,o,i,r)}function Le(t,e,o,i,r){!function(t,e,o,i){(H(e)?e:(e||"").split(" ")).forEach((function(e){!function(t,e,o,i){var r=Te.get(t);if(r&&o&&o[Me]){var n=o[Me],s=r.get(n);r.delete(n),s&&t.removeEventListener(e,s,Boolean(i))}}(t,e,o,i)}))}(t,e,o,i)}function Ie(){var t=function(t){var e=!1,o={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},i={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i};for(var r in o)if(t.match(o[r])){if("windows"===r&&"plugins"in navigator)return!1;(e={}).device=r,e.name=Be(r,i),e[e.name]=!0;break}return e}(navigator.userAgent),e={};return e.mobileOS=t,e}function Be(t,e,o){for(var i in e)if(e[i].test(t))return i;return void 0!==o?o:t}function Ee(){}function Re(){return(new Date).getTime()}var Ve="string",je="function",ze=function(){this._defaultPrevented=!0},De=function(){return!0===this._defaultPrevented};const Fe=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.unbind()},e.prototype.bind=function(t,e,o){var i,r,n,s,a=this,p=typeof t===Ve?[t]:t||[],l=typeof e===je;if(void 0===e){for(i in t)a.bind(i,t[i]);return a}var h=function(){var t=p[i];(s=l?e:e[t])&&(o&&(n=s,s=function(){a.unbind(t,s),n.apply(a,arguments)},s.original=n),(a._events[t]=a._events[t]||[]).push(s))};for(i=0,r=p.length;i<r;i++)h();return a},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var o,i,r,n=this,s=typeof t===Ve?[t]:t,a=typeof e===je;for(o=0,i=s.length;o<i;o++){var p=s[o];(r=a?e:e[p])&&(n._events[p]=n._events[p]||[]).unshift(r)}return n},e.prototype.trigger=function(t,e){var o,i,r=this,n=r._events[t];if(n){var s=e||{};for(s.sender=r,s._defaultPrevented=!1,s.preventDefault=ze,s.isDefaultPrevented=De,o=0,i=(n=n.slice()).length;o<i;o++)n[o].call(r,s);return!0===s._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var o,i=this,r=i._events[t];if(void 0===t)i._events={};else if(r)if(e)for(o=r.length-1;o>=0;o--)r[o]!==e&&r[o].original!==e||r.splice(o,1);else i._events[t]=[];return i},e.prototype._setEvents=function(t){for(var e=(this.events||[]).length,o=0;o<e;o++){var i=this.events[o];this.options[i]&&t[i]&&(this.unbind(i,this.options[i]),this._events&&this._events[i]&&delete this._events[i])}this.bind(this.events,t)},e}(W.Class);var He=Object.assign,Ne=function(t){t.preventDefault()},Ue=800,Ge=0,We="press",Xe="hold",Ye="select",qe="start",Ze="move",Qe="end",Ke="cancel",$e="tap",Je="doubleTap",to="release",eo="gesturechange",oo="gestureend",io="gesturetap",ro={api:0,touch:0,mouse:9,pointer:9};function no(t){var e=[],o=t.originalEvent||t,i=t.currentTarget;return t.api?e.push({id:2,event:t,target:t.target,currentTarget:t.target,location:t,type:"api"}):e.push({location:o,event:t,target:t.target,currentTarget:i,id:o.pointerId,type:"pointer"}),e}var so=function(t){function e(e,o){t.call(this);var i=this;i.support=Ie(),i.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,i.axis=e,i._updateLocationData(o),i.startLocation=i.location,i.velocity=i.delta=0,i.timeStamp=Re()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(t){var e=this,o=t["page"+e.axis],i=Re(),r=i-e.timeStamp||1;!o&&this.invalidZeroEvents||(e.delta=o-e.location,e._updateLocationData(t),e.initialDelta=o-e.startLocation,e.velocity=e.delta/r,e.timeStamp=i)},e.prototype._updateLocationData=function(t){var e=this,o=e.axis;e.location=t["page"+o],e.client=t["client"+o],e.screen=t["screen"+o]},e}(W.Class),ao=function(t){function e(e,o,i){t.call(this),He(this,{x:new so("X",i.location),y:new so("Y",i.location),type:i.type,threshold:e.threshold||ro[i.type],userEvents:e,target:o,currentTarget:i.currentTarget,initialTouch:i.target,id:i.id,pressEvent:i,_clicks:e._clicks,supportDoubleTap:e.supportDoubleTap,_moved:!1,_finished:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.press=function(){var t=this;this._holdTimeout=setTimeout((function(){return t._hold()}),this.userEvents.minHold),this._trigger(We,this.pressEvent)},e.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout((function(){1===e.userEvents._clicks?e._trigger($e,t):e._trigger(Je,t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger(Xe,this.pressEvent)},e.prototype.move=function(t){var e=this,o="api"!==t.type&&e.userEvents._shouldNotMove;if(!e._finished&&!o){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if(lo.current&&lo.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(Ze,t)}},e.prototype.end=function(t){this.endTime=Re(),this._finished||(this._finished=!0,this._trigger(to,t),this._moved?this._trigger(Qe,t):this.supportDoubleTap?this._tap(t):this._trigger($e,t),clearTimeout(this._holdTimeout),this.dispose())},e.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)},e.prototype.skip=function(){this.dispose()},e.prototype.cancel=function(){this.dispose()},e.prototype.isMoved=function(){return this._moved},e.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=Re(),this._moved=!0,this._trigger(qe,t)},e.prototype._trigger=function(t,e){var o=e.event,i={touch:this,x:this.x,y:this.y,target:this.target,event:o};this.userEvents.notify(t,i)&&o.preventDefault()},e.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold},e}(W.Class);function po(t){for(var e=Ae.up.split(" "),o=0,i=e.length;o<i;o++)t(e[o])}var lo=function(t){function e(e,o){t.call(this);var i,r=this,n=Ie();if(this.support=n,o=o||{},this.options=o,i=r.filter=o.filter,r.threshold=o.threshold||Ge,r.minHold=o.minHold||Ue,r.touches=[],r._maxTouches=o.multiTouch?2:1,r.allowSelection=o.allowSelection,r.captureUpIfMoved=o.captureUpIfMoved,r._clicks=0,r.supportDoubleTap=o.supportDoubleTap,He(r,{element:e,surface:o.surface||e,stopPropagation:o.stopPropagation,pressed:!1}),this._surfaceMoveHandler=this._move.bind(this),Oe(r.surface,Ce("move"),this._surfaceMoveHandler),this._surfaceEndHandler=this._end.bind(this),Oe(r.surface,Ce("up cancel"),this._surfaceEndHandler),this._elementStartHandler=this._start.bind(this),Oe(e,Ce("down"),i,this._elementStartHandler),e.style["touch-action"]=o.touchAction||"none",o.preventDragEvent&&(this._elementDragStartHandler=Ne,Oe(e,Ce("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=this._select.bind(this),Oe(e,Ce("mousedown"),i,this._elementSelectHandler),r.captureUpIfMoved){var s=r.surface,a=r.preventIfMoving.bind(r);po((function(t){s.addEventListener(t,a,!0)}))}r.bind([We,Xe,$e,Je,qe,Ze,Qe,to,Ke,"gesturestart",eo,oo,io,Ye],o)}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,o=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved){var i=t.surface;po((function(e){i.removeEventListener(e,t.preventIfMoving)}))}Le(t.surface,Ce("move"),this._surfaceMoveHandler),Le(t.surface,Ce("up cancel"),this._surfaceEndHandler),Le(o,Ce("down"),this._elementStartHandler),e.preventDragEvent&&Le(o,Ce("dragstart"),this._elementDragStartHandler),Le(o,Ce("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(Ke)},e.prototype.notify=function(t,e){var o,i,r,n,s,a,p,l,h=this.touches,c=t;if(this._isMultiTouch()){switch(c){case Ze:c=eo;break;case Qe:c=oo;break;case $e:c=io}He(e,{touches:h},(o=h[0],i=h[1],r=o.x.location,n=o.y.location,p=r-(s=i.x.location),l=n-(a=i.y.location),{center:{x:(r+s)/2,y:(n+a)/2},distance:Math.sqrt(p*p+l*l)}))}return this.trigger(c,He(e,{type:c}))},e.prototype.press=function(t,e,o){this._apiCall("_start",t,e,o)},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 xt(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(Ye,{event:t})||t.preventDefault()},e.prototype._start=function(t){if(!(t.which&&t.which>1||this._maxTouchesReached())){var o;e.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();for(var i=no(t),r=0;r<i.length&&!this._maxTouchesReached();r++){var n=i[r];if(!(o=this.filter?n.currentTarget:this.element)||0!==o.length){var s=new ao(this,o,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 o,i,r,n,s={},a=no(e),p=this.touches;for(o=0;o<p.length;o++)s[(i=p[o]).id]=i;for(o=0;o<a.length;o++)(n=s[(r=a[o]).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,o,i){this[t]({api:!0,pageX:e,pageY:o,clientX:e,clientY:o,target:i||this.element,stopPropagation:Ee,preventDefault:Ee})},e.defaultThreshold=function(t){Ge=t},e.minHold=function(t){Ue=t},e}(Fe);const ho=lo;function co(t,e){var o=Xt(e-t,v-1);if(0===o){if(0===e)return.1;o=Math.abs(e)}var i=Math.pow(10,Math.floor(Math.log(o)/Math.log(10))),r=Xt(o/i,v);return Xt(i*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),v)}const uo=function(t){function e(e,o){t.call(this),this.x=e||0,this.y=o||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var o=Wt(e),i=Math.cos(o),r=Math.sin(o),n=t.x,s=t.y,a=this.x,p=this.y;return this.x=Xt(n+(a-n)*i+(p-s)*r,d),this.y=Xt(s+(p-s)*i-(a-n)*r,d),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,o=this.y-t.y;return Math.sqrt(e*e+o*o)},e.onCircle=function(t,o,i){var r=Wt(o);return new e(t.x-i*Math.cos(r),t.y-i*Math.sin(r))},e}(W.Class);var fo=function(t){function e(e,o,i,r){t.call(this),this.x1=e||0,this.y1=o||0,this.x2=i||0,this.y2=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var o=this.height(),i=this.width();return Rt(t)&&(this.x1=t,this.x2=this.x1+i),Rt(e)&&(this.y1=e,this.y2=this.y1+o),this},e.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},e.prototype.wrapPoint=function(t){var o=H(t),i=o?t[0]:t.x,r=o?t[1]:t.y;return this.wrap(new e(i,r,i,r)),this},e.prototype.snapTo=function(t,e){return e!==j&&e||(this.x1=t.x1,this.x2=t.x2),e!==z&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var o=this.height(),i=this.width(),r=e===B||e===h?z:j,n=r===z?o:i;if(e===c){var s=t.center(),a=this.center();this.x1+=s.x-a.x,this.y1+=s.y-a.y}else this[r+1]=e===B||e===k?t[r+1]-n:t[r+2];return this.x2=this.x1+i,this.y2=this.y1+o,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=ht(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=ht(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new uo(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new uo(this.x1,this.y1),new uo(this.x2,this.y1),new uo(this.x2,this.y2),new uo(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),o=this.height(),i=this.center(),r=i.x,n=i.y,s=go(0,0,r,n,t),a=go(e,0,r,n,t),p=go(e,o,r,n,t),l=go(0,o,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),o=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+o,this},e.prototype.toRect=function(){return new W.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,o){var i=e+1,r=e+2,n=e===j?V:_,s=this[n]();kt(o,[k,B])?(this[i]=t[i],this[r]=this[i]+s):kt(o,[M,h])?(this[r]=t[r],this[i]=this[r]-s):o===c&&(this[i]=t[i]+(t[n]()-s)/2,this[r]=this[i]+s)},e}(W.Class);function go(t,e,o,i,r){var n=Wt(r);return new uo(o+(t-o)*Math.cos(n)+(e-i)*Math.sin(n),i-(t-o)*Math.sin(n)+(e-i)*Math.cos(n))}const yo=fo;var vo=function(t){function e(e,o,i,r,n){t.call(this),this.center=e,this.innerRadius=o,this.radius=i,this.startAngle=r,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var o=Wt(t),i=Math.cos(o),r=Math.sin(o),n=e?this.innerRadius:this.radius,s=Xt(this.center.x-i*n,d),a=Xt(this.center.y-r*n,d);return new uo(s,a)},e.prototype.adjacentBox=function(t,e,o){var i=this.clone().expand(t),r=i.middle(),n=i.point(r),s=e/2,a=o/2,p=Math.sin(Wt(r)),l=Math.cos(Wt(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 yo(h,c,h+e,c+o)},e.prototype.containsPoint=function(t){var e=this.center,o=this.innerRadius,i=this.radius,r=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,p=new uo(s,a),l=this.point(r),h=new uo(l.x-e.x,l.y-e.y),c=this.point(n),u=new uo(c.x-e.x,c.y-e.y),f=Xt(s*s+a*a,d);return(h.equals(p)||Y(h,p))&&!Y(u,p)&&f>=o*o&&f<=i*i},e.prototype.getBBox=function(){var t,e=new yo(A,A,S,S),o=Xt(this.startAngle%360),i=Xt((o+this.angle)%360),r=this.innerRadius,n=[0,90,180,270,o,i].sort(mo),s=n.indexOf(o),a=n.indexOf(i);t=o===i?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},e.prototype.expand=function(t){return this.radius+=t,this},e}(W.Class);function mo(t,e){return t-e}const xo=vo;var _o=function(t){function e(e,o,i,r){t.call(this,e,0,o,i,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}(xo);const bo=_o;var wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var o=t.startAngle+180,i=t.angle+o;(0===t.angle||t.angle>0&&o===i)&&(i+=.001);var r=new W.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new W.geometry.Arc(r,{startAngle:o,endAngle:i,radiusX:n,radiusY:n}),p=W.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(i);p.lineTo(l.x,l.y),p.arc(i,o,s,s,!0)}else p.lineTo(r.x,r.y);return p},e}(W.Class);wo.current=new wo;const ko=wo;var Ao=function(t){function e(e){t.call(this),this.children=[],this.options=rt({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,o=this.children,i=0;i<o.length;i++){var r=o[i];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var o=this.children,i=o.length,r=0;r<i;r++)o[r].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var o=t[e];this.children.push(o),o.parent=this}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,o=0;o<e;o++)t[o].renderVisual()},e.prototype.createVisual=function(){this.visual=new W.drawing.Group({zIndex:this.options.zIndex,visible:qt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=W.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):Rt(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,o=t.options.zIndex||0,i=this.visual.children,r=i.length;for(e=0;e<r;e++){var n=i[e];if(qt(n.options.zIndex,0)>o)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++){var r=e[i];t(r),r.traverse&&r.traverse(t)}},e.prototype.closest=function(t){for(var e=this,o=!1;e&&!o;)(o=t(e))||(e=e.parent);if(o)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)},e.prototype.toggleHighlight=function(t,e){var o=this,i=(this.options||{}).highlight||{},r=i.visual,n=this._highlight;if(!n){var s={fill:{color:R,opacity:e||.2},stroke:{color:R,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.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);Rt(n.options.zIndex)||(n.options.zIndex=qt(i.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.toggleFocusHighlight=function(t){var e=(this.options||{}).focusHighlight||{},o=this._focusHighlight;if(t||o){if(!o){var i=this.getRoot().options.background,r=ce(i),n={fill:{opacity:e.opacity,color:e.color},stroke:Object.assign({},{color:r},e.border),zIndex:e.zIndex};o=this._focusHighlight=this.createFocusHighlight(n),this.appendVisual(o)}o.visible(t)}},e.prototype.createGradientOverlay=function(t,e,o){var i=new W.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(o),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(W.Class);Ao.prototype.options={};const So=Ao;var Co={dots:W.drawing.dotsPattern,verticalStripes:W.drawing.verticalStripesPattern,crosshatch:W.drawing.crosshatchPattern,diagonalStripes:W.drawing.diagonalStripesPattern,grid:W.drawing.gridPattern};function Po(t,e,o){var i=function(t,e){return tt(t)?t(e):t}(t,o),r=i&&Co[i.type];return r?r(Object.assign({},e,i)):e}var To=function(t){function e(e){t.call(this,e),this.options.margin=ht(this.options.margin),this.options.padding=ht(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 o,i=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(){i.align(e,j,r.align),i.align(e,z,r.vAlign),i.paddingBox=o.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),o=p?this.box=new yo(0,0,n,s):this.box,a&&p?(u(),d=this.contentBox=this.paddingBox.clone().unpad(h)):(d=this.contentBox=o.clone(),o.pad(h).pad(c).pad(l),u()),this.translateChildren(o.x1-d.x1+l.left+c+h.left,o.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,o){this.box.align(t,e,o)},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(W.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:qt(e.opacity,t.opacity),dashType:e.dashType},fill:Po(t.pattern,{color:t.background,opacity:t.opacity},void 0),cursor:t.cursor}},e}(So);Kt(To,{align:k,vAlign:B,margin:{},padding:{},border:{color:l,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const Mo=To;function Oo(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 Lo=function(t){function e(e,o){t.call(this,e),this.pointData=o}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,o=t.type,i=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(o===u)a=new W.drawing.Circle(new W.geometry.Circle([Xt(e.x1+n,d),Xt(e.y1+s,d)],Math.min(n,s)),p);else if("triangle"===o)a=W.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],p).close();else if(o===f)(a=new W.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(o===O){var h=qt(t.borderRadius,l.width()/5);l.setCornerRadius(h)}a=W.drawing.Path.fromRect(l,p)}return i&&a.transform(W.geometry.transform().rotate(-i,[r.x,r.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,o=this.pointData||{};return e?e({value:o.value,dataItem:o.dataItem,sender:this.getSender(),series:o.series,category:o.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(),Oo(this.visual,this.options.accessibilityOptions)},e}(Mo);Kt(Lo,{type:u,align:c,vAlign:c});const Io=Lo;var Bo="radial";const Eo={glass:{type:"linear",rotation:0,stops:[{offset:0,color:R,opacity:0},{offset:.25,color:R,opacity:.3},{offset:1,color:R,opacity:0}]},sharpBevel:{type:Bo,stops:[{offset:0,color:R,opacity:.55},{offset:.65,color:R,opacity:0},{offset:.95,color:R,opacity:.25}]},roundedBevel:{type:Bo,stops:[{offset:.33,color:R,opacity:.06},{offset:.83,color:R,opacity:.2},{offset:.95,color:R,opacity:0}]},roundedGlass:{type:Bo,supportVML:!1,stops:[{offset:0,color:R,opacity:0},{offset:.5,color:R,opacity:.3},{offset:.99,color:R,opacity:0}]},sharpGlass:{type:Bo,supportVML:!1,stops:[{offset:0,color:R,opacity:.2},{offset:.15,color:R,opacity:.15},{offset:.17,color:R,opacity:.35},{offset:.85,color:R,opacity:.05},{offset:.87,color:R,opacity:.15},{offset:.99,color:R,opacity:0}]},bubbleShadow:{type:Bo,center:[.5,.5],radius:.5}};function Ro(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var o=Math.min(t.x1,e.x1),i=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 yo(i,s,r,a),h[1]=new yo(o,a,i,p),h[2]=new yo(r,a,n,p),h[3]=new yo(i,p,r,l),t.x1===o&&t.y1===s||e.x1===o&&e.y1===s?(h[4]=new yo(o,s,i,a),h[5]=new yo(r,p,n,l)):(h[4]=new yo(r,s,n,a),h[5]=new yo(o,p,i,l)),xt(h,(function(t){return t.height()>0&&t.width()>0}))[0]}var Vo=function(t){function e(e){t.call(this,e);var o=this.options;o.width=parseInt(o.width,10),o.height=parseInt(o.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,o=new yo(0,0,t.width,t.height);this.box=o.unpad(t.margin);for(var i=0;i<e.length;i++)e[i].reflow(o),o=Ro(o,e[i].box)||new yo},e.prototype.createVisual=function(){this.visual=new W.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},o=this.box.clone().pad(t.margin).unpad(e.width),i=W.drawing.Path.fromRect(o.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(i)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,o=this.gradients,i=Gt(t),r=Eo[t.gradient];if(o[i])e=o[i];else{var n=Object.assign({},r,t);"linear"===r.type?e=new W.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,o=t.innerRadius/t.radius*100,i=e.length,r=[],n=0;n<i;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-o)+o)/100,r.push(s)}return r}(n)),(e=new W.drawing.RadialGradient(n)).supportVML=!1!==r.supportVML),o[i]=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 yo(0,0,t.width,t.height)},e}(So);Kt(Vo,{width:600,height:400,background:R,border:{color:l,width:0},margin:ht(5),zIndex:-2});const jo=Vo;var zo=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=j,this.elementAxis=z,this.groupSizeField=V,this.elementSizeField=_,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=z,this.elementAxis=j,this.groupSizeField=_,this.elementSizeField=V,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,o=t.elementAxis,i=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[i+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[o+1],v=g.length,m=0;m<v;m++){var x=g[m],_=this.elementSize(x),b=u+this.alignStart(_[n],f.groupSize),w=new yo;w[i+1]=b,w[i+2]=b+_[n],w[o+1]=y,w[o+2]=y+_[r],x.reflow(w),y+=_[r]+this.elementSpacing}u+=f.groupSize+this.groupSpacing}e[i+1]=c,e[i+2]=c+p,e[o+2]=e[o+1]+l}},e.prototype.alignStart=function(t,e){var o=0,i=this.options.align;return i===M||i===h?o=e-t:i===c&&(o=(e-t)/2),o},e.prototype.groupOptions=function(){for(var t=this,e=t.box,o=t.children,i=t.elementSizeField,r=t.groupSizeField,n=t.elementSpacing,s=t.groupSpacing,a=Xt(e[i]()),p=o.length,l=[],h=0,c=0,u=0,d=0,f=[],g=0;g<p;g++){var y=o[g];y.box||y.reflow(e);var v=this.elementSize(y);this.options.wrap&&Xt(c+n+v[i])>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[i],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}(So);Kt(zo,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const Do=zo;var Fo=W.drawing.Text,Ho=function(t){function e(e,o){t.call(this,o),this.content=e,this.reflow(new yo)}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,o=e.size=W.drawing.util.measureText(this.content,{font:e.font});this.baseline=o.baseline,this.box=new yo(t.x1,t.y1,t.x1+o.width,t.y1+o.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,o=t.color,i=t.opacity,r=t.cursor,n=t.stroke,s=t.paintOrder;this.visual=new Fo(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:o,opacity:i},cursor:r,stroke:n,paintOrder:s})},e}(So);Kt(Ho,{font:y,color:l});const No=Ho;function Uo(t){var e=t.origin,o=t.bottomRight();return new yo(e.x,e.y,o.x,o.y)}var Go=/\n/m,Wo=function(t){function e(e,o,i){t.call(this,o),this.content=e,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new yo)}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(Go),o=new Do({vertical:!0,align:t.align,wrap:!1}),i=rt({},t,{opacity:1,animation:null});this.container=o,this.append(o);for(var r=0;r<e.length;r++){var n=new No(e[r].trim(),i);o.append(n)}},e.prototype.reflow=function(e){var o=this.options,i=o.visual;if(this.container.options.align=o.align,i&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var n=this.visual=i(this.visualContext(r));n&&(r=Uo(n.clippedBBox()||new W.geometry.Rect),n.options.zIndex=o.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),o.rotation){var s=ht(o.margin),a=this.box