UNPKG

@progress/kendo-charts

Version:

Kendo UI platform-independent Charts library

1 lines 586 kB
System.register("@progress/kendo-charts",["@progress/kendo-drawing"],function(t,e){var I0={};return{setters:[function(t){I0.Class=t.Class,I0.Color=t.Color,I0.drawing=t.drawing,I0.geometry=t.geometry,I0.logToConsole=t.logToConsole,I0.parseColor=t.parseColor,I0.support=t.support,I0.throttle=t.throttle}],execute:function(){t((()=>{"use strict";var V={100:t=>{t.exports=I0}},z={};function j(t){var e=z[t];return void 0!==e||(e=z[t]={exports:{}},V[t](e,e.exports,j)),e.exports}j.d=(t,e)=>{for(var i in e)j.o(e,i)&&!j.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},j.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),j.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var D,F,H={};{j.r(H),j.d(H,{Aggregates:()=>sb,ArcGauge:()=>A0,ArcScale:()=>b0,AreaChart:()=>Ab,AreaSegment:()=>bb,ArrowLinearPointer:()=>d0,Axis:()=>W_,AxisGroupRangeTracker:()=>Sb,AxisLabel:()=>D_,Bar:()=>Tb,BarChart:()=>Lb,BarLabel:()=>Cb,BarLinearPointer:()=>g0,Barcode:()=>C0,Box:()=>R,BoxElement:()=>L_,BoxPlot:()=>Eb,BoxPlotChart:()=>Vb,BubbleChart:()=>Fb,Bullet:()=>Nb,BulletChart:()=>Ub,Candlestick:()=>Ib,CandlestickChart:()=>Bb,CategoricalChart:()=>cb,CategoricalErrorBar:()=>pb,CategoricalPlotArea:()=>c1,CategoryAxis:()=>X_,Chart:()=>i0,ChartAxis:()=>ob,ChartContainer:()=>Xb,ChartElement:()=>O_,ChartPane:()=>rb,ChartPlotArea:()=>nb,ChartService:()=>U_,ChartWizardCommon:()=>Vx,CircularGauge:()=>S0,Class:()=>M.Class,ClipAnimation:()=>mb,ClusterLayout:()=>Mb,Crosshair:()=>Wb,CrosshairTooltip:()=>Gb,CurveProcessor:()=>ib,DateCategoryAxis:()=>Y_,DateValueAxis:()=>Z_,DefaultAggregates:()=>Kb,DomEventsBuilder:()=>G_,DonutChart:()=>V1,DonutPlotArea:()=>z1,DonutSegment:()=>R1,ErrorBarBase:()=>lb,ErrorRangeCalculator:()=>hb,Extent:()=>Ey,FloatElement:()=>R_,FontLoader:()=>b_,FormatService:()=>N_,Gauge:()=>l0,Gradients:()=>B_,HashMap:()=>x_,Highlight:()=>u1,InstanceObserver:()=>__,IntlService:()=>H_,Legend:()=>w1,LegendItem:()=>b1,LegendLayout:()=>y1,LineChart:()=>_b,LinePoint:()=>fb,LineSegment:()=>gb,LinearGauge:()=>y0,LinearPointer:()=>c0,LinearScale:()=>p0,Location:()=>Ug,LogarithmicAxis:()=>Q_,Map:()=>L0,Matrix:()=>A_,MousewheelZoom:()=>g1,Navigator:()=>a0,NavigatorHint:()=>s0,Note:()=>F_,NumericAxis:()=>q_,OHLCChart:()=>a1,OHLCPoint:()=>s1,Observable:()=>S_,Pane:()=>Yb,Pannable:()=>d1,PieAnimation:()=>P1,PieChart:()=>B1,PieChartMixin:()=>I1,PiePlotArea:()=>E1,PieSegment:()=>L1,PlotAreaBase:()=>qb,PlotAreaEventsMixin:()=>Zb,PlotAreaFactory:()=>k1,Point:()=>E,PointEventsMixin:()=>ub,PolarAxis:()=>J_,QRCode:()=>T0,RadarCategoryAxis:()=>$_,RadarLogarithmicAxis:()=>eb,RadarNumericAxis:()=>tb,RadialGauge:()=>_0,RadialPointer:()=>x0,RadialScale:()=>v0,RangeAreaChart:()=>n1,RangeAreaPoint:()=>e1,RangeBar:()=>$b,RangeBarChart:()=>Jb,RangePointer:()=>k0,Ring:()=>P_,RootElement:()=>E_,Sankey:()=>lx,ScatterChart:()=>jb,ScatterErrorBar:()=>zb,ScatterLineChart:()=>T1,Sector:()=>T_,Selection:()=>A1,SeriesAggregator:()=>Qb,SeriesBinder:()=>ab,ShapeBuilder:()=>M_,ShapeElement:()=>I_,SharedTooltip:()=>C1,Sparkline:()=>r0,SplineAreaSegment:()=>kb,SplineSegment:()=>vb,StackWrap:()=>Ob,StockChart:()=>h0,TemplateService:()=>m_,Text:()=>V_,TextBox:()=>z_,Title:()=>j_,Tooltip:()=>S1,UserEvents:()=>C_,WaterfallChart:()=>l1,WaterfallSegment:()=>h1,XYPlotArea:()=>O1,ZoomSelection:()=>f1,addClass:()=>_t,alignPathToPixel:()=>kt,anyHasZIndex:()=>ps,append:()=>ee,appendIfNotNull:()=>cs,applyEventMap:()=>je,areNumbers:()=>us,autoMajorUnit:()=>Pi,autoTextColor:()=>w_,barcodeValidator:()=>P0,bindEvents:()=>ie,bindSegments:()=>fs,categoriesCount:()=>gs,chartBaseTheme:()=>s_,chartTheme:()=>v_,clockwise:()=>At,constants:()=>N,convertableToNumber:()=>Ct,countNumbers:()=>Er,createHashSet:()=>Ie,createOutOfRangePoints:()=>Is,createPatternFill:()=>Hi,createSankeyData:()=>px,cycleDown:()=>Tt,cycleIndex:()=>Mt,cycleUp:()=>Pt,deepExtend:()=>O,defaultErrorHandler:()=>Be,defined:()=>k,deg:()=>oe,elementOffset:()=>re,elementScale:()=>Pe,elementSize:()=>ne,elementStyles:()=>Vt,equalsIgnoreCase:()=>ys,evalOptions:()=>ms,eventCoordinates:()=>se,eventElement:()=>ae,eventMap:()=>Ve,filterSeriesByType:()=>xs,find:()=>ke,findAxisByName:()=>Lr,gaugeTheme:()=>g_,getAriaTemplate:()=>Ft,getField:()=>zr,getSpacing:()=>w,getSupportedFeatures:()=>Ge,getTemplate:()=>Dt,getter:()=>Ut,grep:()=>Gt,hasClasses:()=>Wt,hasGradientOverlay:()=>ws,hasOwnProperty:()=>Ee,hasValue:()=>ks,hashKey:()=>he,inArray:()=>u,interpolateValue:()=>Yt,isArray:()=>xt,isDateAxis:()=>As,isFunction:()=>Ot,isNumber:()=>m,isObject:()=>Bt,isPlainObject:()=>Qt,isString:()=>St,keys:()=>k_,last:()=>le,limitValue:()=>x,logToConsole:()=>M.logToConsole,map:()=>Kt,mousewheelDelta:()=>Jt,noop:()=>We,now:()=>Xe,objectKey:()=>pe,off:()=>Ue,on:()=>Ne,parseDateCategory:()=>bs,qrcodeValidator:()=>M0,rad:()=>ce,rectToBox:()=>Qi,removeClass:()=>wt,renderIcon:()=>be,round:()=>L,sankeyTheme:()=>y_,segmentVisible:()=>ds,setDefaultOptions:()=>e,singleItemOrArray:()=>Ss,sparseArrayLimits:()=>we,styleValue:()=>Et,unbindEvents:()=>ue,valueOrDefault:()=>_});var N={},U=(j.r(N),j.d(N,{DEFAULT_PANE:()=>_c,NAVIGATOR_AXIS:()=>xc,NAVIGATOR_PANE:()=>mc}),"arc"),G="ArrowUp",W="ArrowDown",X="ArrowLeft",Y="ArrowRight",q="aria-activedescendant",Z="#000",S="bottom",b="center",Q="circle",K=3,$="cross",J="date",tt="12px sans-serif",et=10,it="end",ot=/\{\d+:?/,rt="height",nt="inside",st="inherit",C="left",at=Number.MAX_VALUE,ht=-Number.MAX_VALUE,lt="none",pt="object",ct="outside",P="right",ut="roundedRect",dt="start",ft="string",T="top",gt="value",a="#fff",yt="width",y="x",v="y",vt="pointer",mt="horizontal";function xt(t){return Array.isArray(t)}function _t(t,e){for(var i=xt(e)?e:[e],o=0;o<i.length;o++){var r=i[o];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var bt=/\s+/g;function wt(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(bt," "))}var M=j(100);function kt(t){var e=.5;t.options.stroke&&M.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 At(t,e){return-t.x*e.y+t.y*e.x<0}function m(t){return"number"==typeof t&&!isNaN(t)}function St(t){return typeof t===ft}function Ct(t){return m(t)||St(t)&&isFinite(t)}function Pt(t,e){return(t+1)%e}function Tt(t,e){t-=1;return t<0?e-1:t}function Mt(t,e){return 1===e||t%e==0?0:t<0?e+t%e:e<=t?t%e:t}function Ot(t){return"function"==typeof t}var Lt="object",It="undefined";function O(t){for(var e=arguments,i=arguments.length,o=1;o<i;o++)!function t(e,i){for(var o in i){var r,n,s;"__proto__"!==o&&"constructor"!==o&&((s=(n=typeof(r=i[o]))===Lt&&null!==r?r.constructor:null)&&s!==Array?r instanceof Date?e[o]=new Date(r.getTime()):Ot(r.clone)?e[o]=r.clone():(s=e[o],e[o]=typeof s===Lt&&s||{},t(e[o],r)):n!==It&&(e[o]=r))}}(t,e[o]);return t}function Bt(t){return"object"==typeof t}function Et(t){return m(t)?t+"px":t}var Rt=/width|height|top|left|bottom|right/i;function Vt(t,e){var i=St(e)?[e]:e;if(xt(i)){for(var o={},r=window.getComputedStyle(t),n=0;n<i.length;n++){var s=i[n];o[s]=Rt.test(s)?parseFloat(r[s]):r[s]}return o}if(Bt(e))for(var a in e)t.style[a]=Et(e[a])}function w(t,e){void 0===e&&(e=0);var i={top:0,right:0,bottom:0,left:0};return"number"==typeof t?i[T]=i[P]=i[S]=i[C]=t:(i[T]=t[T]||e,i[P]=t[P]||e,i[S]=t[S]||e,i[C]=t[C]||e),i}function zt(){}var jt={compile:function(t){return t}};zt.register=function(t){jt=t},zt.compile=function(t,e){return jt.compile(t,e)};const m_=zt;function Dt(t){var e;return(t=void 0===t?{}:t).template?t.template=e=m_.compile(t.template):Ot(t.content)&&(e=t.content),e}function Ft(t){var e;return(t=void 0===t?{}:t).ariaTemplate?t.ariaTemplate=e=m_.compile(t.ariaTemplate):Ot(t.ariaContent)&&(e=t.ariaContent),e}var Ht=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,Nt={};function Ut(t){var r;return Nt[t]||(r=[],t.replace(Ht,function(t,e,i,o){r.push(M.drawing.util.defined(e)?e:i||o)}),Nt[t]=function(t){for(var e=t,i=0;i<r.length&&e;i++)e=e[r[i]];return e}),Nt[t]}function Gt(t,e){for(var i=t.length,o=[],r=0;r<i;r++)e(t[r])&&o.push(t[r]);return o}function Wt(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}function Xt(){this._map=new Map}Nt[void 0]=function(t){return t},Xt.prototype.get=function(t){return this._map.get(t)},Xt.prototype.set=function(t,e){this._map.set(t,e)};const x_=Xt;function u(t,e){if(e)return-1!==e.indexOf(t)}function Yt(t,e,i){return M.drawing.util.round(t+(e-t)*i,K)}function qt(t,e){this.observer=t,this.handlerMap=O({},this.handlerMap,e)}var Zt="trigger";qt.prototype.trigger=function(t,e){var i,o=this.observer,r=this.handlerMap;return r[t]?i=this.callObserver(r[t],e):o[Zt]&&(i=this.callObserver(Zt,t,e)),i},qt.prototype.callObserver=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];return this.observer[t].apply(this.observer,e)},qt.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 __=qt;function Qt(t){return"[object Object]"===Object.prototype.toString.call(t)}function Kt(t,e){for(var i=t.length,o=[],r=0;r<i;r++){var n=e(t[r]);M.drawing.util.defined(n)&&o.push(n)}return o}var $t=M.support.browser||{};function Jt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,$t.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),0<e?Math.ceil(e):Math.floor(e)}function te(){}var t,ee=(t=M.drawing.util).append,ie=t.bindEvents,k=t.defined,oe=t.deg,re=t.elementOffset,ne=t.elementSize,se=t.eventCoordinates,ae=t.eventElement,he=t.hashKey,le=t.last,x=t.limitValue,pe=t.objectKey,ce=t.rad,L=t.round,ue=t.unbindEvents,_=t.valueOrDefault;te.fetchFonts=function(i,o,r){void 0===r&&(r={depth:0}),!i||5<r.depth||!document.fonts||Object.keys(i).forEach(function(t){var e=i[t];"dataSource"!==t&&"$"!==t[0]&&e&&("font"===t?o.push(e):"object"==typeof e&&(r.depth++,te.fetchFonts(e,o,r),r.depth--))})},te.loadFonts=function(t,e){var i=[];if(0<t.length&&document.fonts){try{i=t.map(function(t){return document.fonts.load(t)})}catch(t){(0,M.logToConsole)(t)}Promise.all(i).then(e,e)}else e()},te.preloadFonts=function(t,e){var i=[];te.fetchFonts(t,i),te.loadFonts(i,e)};const b_=te;function e(t,e){t=t.prototype;t.options?t.options=O({},t.options,e):t.options=e}function de(t,e){this.element=t,this.options=O({},this.options,e),this.wrapper()}var fe,ge="k-i-",ye="k-svg-i-",t=(de.prototype.wrapper=function(){this.addClasses()},de.prototype.addClasses=function(){},de.prototype.html=function(){return this.element.outerHTML},e(de,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]}),(fe=de)&&(me.__proto__=fe),((me.prototype=Object.create(fe&&fe.prototype)).constructor=me).prototype.wrapper=function(){var t=this.element.className.split(" ").find(function(t){return t.startsWith(ge)}),e=this.options.icon?(this.options.icon.startsWith(ge)?"":ge)+this.options.icon:"";this._className=e,_t(this.element,"k-icon"),_t(this.element,"k-font-icon"),wt(this.element,t),_t(this.element,e),_t(this.element,this.options.iconClass||""),fe.prototype.wrapper.call(this)},me),ve,i;function me(t,e){fe.call(this,t,e)}function xe(t,e){t.innerHTML="",ve.call(this,t,e)}e(t,{name:"HTMLFontIcon",icon:null}),(ve=de)&&(xe.__proto__=ve),((xe.prototype=Object.create(ve&&ve.prototype)).constructor=xe).prototype.wrapper=function(){var t=this.options.icon,e=this.options.iconClass,i=this.element.className.split(" ").find(function(t){return t.startsWith(ye)}),o=(!t&&e&&(o=e.match(/k-i-(\w+(?:-\w+)*)/))&&(t=o[1],e=e.replace(o[0],"")),St(t)&&(t=t.replace("k-i-","").replace(/-./g,function(t){return t[1].toUpperCase()}),t=this.options.svgIcons[t]||this.options.svgIcons[t+"Icon"]),t&&t.name?ye+t.name:"");this._className=o,_t(this.element,"k-svg-icon"),wt(this.element,i),_t(this.element,o),_t(this.element,e||""),this.element.setAttribute("aria-hidden","true"),t&&Qt(t)&&((i=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("viewBox",t.viewBox||""),i.setAttribute("focusable","false"),i.innerHTML=t.content||"",this.element.appendChild(i)),ve.prototype.wrapper.call(this)},e(i=xe,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});var _e={svg:i,font:t};function be(t,e){return t&&(!Bt(t)||t instanceof HTMLElement)&&!St(t)||(e=t,t=document.createElement("span")),(e=St(e)?{icon:e}:e).type||(e.type="svg"),_e[e.type]?new _e[e.type](t,e).html():null}function we(t){for(var e=at,i=ht,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===at?void 0:e,max:i===ht?void 0:i}}function ke(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(e(o,i,t))return o}}var Ae=M.geometry.Matrix,Se=/matrix\((.*)\)/;function Ce(t){var t=getComputedStyle(t).transform;return"none"===t||null===(t=t.match(Se))||2!==t.length?Ae.unit():(t=t[1].split(",").map(function(t){return parseFloat(t)}),new(Function.prototype.bind.apply(Ae,[null].concat(t))))}function Pe(t){if(!t)return Ae.unit();for(var e=Ce(t),i=t.parentElement;i;)var o=Ce(i),e=e.multiplyCopy(o),i=i.parentElement;return e.b=e.c=e.e=e.f=0,e}const w_=function(t){return new M.Color(t).isDark()?a:Z};var Te={},Me=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},i={size:{configurable:!0}},Oe=(Me.prototype.values=function(){return this._values.filter(function(t){return t!==Te})},Me.prototype.has=function(t){return void 0!==this._index[t]},Me.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Me.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Te,delete this._index[t])},Me.prototype.clear=function(){this._index={},this._values=[]},i.size.get=function(){return this._values.length},Object.defineProperties(Me.prototype,i),function(t){this._set=new Set(t)}),t={size:{configurable:!0}},Le=(Oe.prototype.values=function(){return Array.from(this._set)},Oe.prototype.has=function(t){return this._set.has(t)},Oe.prototype.add=function(t){this._set.add(t)},Oe.prototype.delete=function(t){this._set.delete(t)},Oe.prototype.clear=function(){this._set.clear()},t.size.get=function(){return this._set.size},Object.defineProperties(Oe.prototype,t),function(){var t=!1;return t="function"==typeof Set?new Set([1]).has(1):t});function Ie(t){return new(Le()?Oe:Me)(t)}function Be(t){throw t}const k_={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 Ee(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Re(){this.height=0,this.width=0,this.data=[]}Re.prototype.clone=function(){var t=new Re;return t.height=this.height,t.width=this.width,t.data=this.data.map(function(t){return t.slice()}),t},Re.prototype.get=function(t,e){t=this.data[t];return t?t[e]:null},Re.prototype.set=function(t,e,i){var o=this.data[t];(o=null==o?this.data[t]=[]:o)[e]=i,t>=this.height&&(this.height=t+1),e>=this.width&&(this.width=e+1)},Re.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}},Re.prototype.map=function(o,t){var r=new Re;return this.each(function(t,e,i){r.set(e,i,o(t,e,i))},t),r},Re.prototype.transpose=function(){var o=new Re;return this.each(function(t,e,i){o.set(i,e,t)}),o},Re.prototype.unit=function(t){this.width=this.height=t;for(var e=this.data=new Array(t),i=t;0<=--i;)for(var o=e[i]=new Array(t),r=t;0<=--r;)o[r]=i===r?1:0;return this},Re.prototype.multiply=function(t){for(var e=new Re,i=0;i<this.height;++i)for(var o=0;o<t.width;++o){for(var r=0,n=0;n<this.width;++n){var s=this.get(i,n),a=t.get(n,o);"number"==typeof s&&"number"==typeof a&&(r+=s*a)}e.set(i,o,r)}return e},Re.prototype.inverse=function(){for(var n=this.width,t=this.augment((new Re).unit(n)),s=t.data,e=0;e<n;++e){var i=function(e){var t,i=function(t,e,i){for(var o=i(t),r=t,n=t+1;n<e;n++){var s=i(t);o<s&&(o=s,r=t)}return r}(e,n,function(t){return s[t][e]});if(!s[i][e])return{v:null};e!==i&&(t=s[e],s[e]=s[i],s[i]=t);for(var o=e+1;o<n;++o){for(var r=e+1;r<2*n;++r)s[o][r]-=s[e][r]*s[o][e]/s[e][e];s[o][e]=0}}(e);if(i)return i.v}for(var o=0;o<n;++o)for(var r=s[o][o],a=0;a<2*n;++a)s[o][a]/=r;for(var h=n;0<=--h;)for(var l=h;0<=--l;)if(s[l][h])for(var p=2*n;--p>=n;)s[l][p]-=s[h][p]*s[l][h];return t.slice(0,n,n,n)},Re.prototype.augment=function(t){var o=this.clone(),r=o.width;return t.each(function(t,e,i){o.set(e,i+r,t)}),o},Re.prototype.slice=function(t,e,i,o){for(var r=new Re,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 A_=Re;var Ve={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"};function ze(t){return Ve[t]||t}var je=function(t){return t.replace(/([^ ]+)/g,ze)};function De(){for(var t,e="",i=0;i<32;i++)t=16*Math.random()|0,8!==i&&12!==i&&16!==i&&20!==i||(e+="-"),e+=(12===i?4:16===i?3&t|8:t).toString(16);return e}var Fe=new WeakMap,He=Symbol("id");function Ne(t,e,i,o,r){var a,h,l,p;a=t,h=i,l=o,p=r,(xt(t=e)?t:(t||"").split(" ")).forEach(function(t){function e(t){var e=t.target?t.target.closest(n):null;(!n||t.target&&e)&&(e=n?e:t.currentTarget,Object.defineProperty(t,"currentTarget",{value:e}),Object.defineProperty(t,"delegateTarget",{value:i}),s(t))}var i,o,r,n,s;i=a,t=t,r=p,s=l,(o=h)&&Ot(o)&&!l?s=o:o&&"string"==typeof o&&Ot(s)&&(n=o),s[He]=De(),(o=Fe.get(i))||(o=new Map,Fe.set(i,o)),o.set(s[He],e),i.addEventListener(t,e,Boolean(r))})}function Ue(t,e,i,o,r){var s,a,h;s=t,a=i,h=o,(xt(t=e)?t:(t||"").split(" ")).forEach(function(t){var e,i,o,r,n;e=s,t=t,i=a,o=h,(n=Fe.get(e))&&i&&i[He]&&(i=i[He],r=n.get(i),n.delete(i),r)&&e.removeEventListener(t,r,Boolean(o))})}function Ge(){var t=function(t){var e,i=!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},r={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i};for(e in o)if(t.match(o[e])){if("windows"===e&&"plugins"in navigator)return!1;(i={}).device=e,i.name=function(t,e,i){for(var o in e)if(e[o].test(t))return o;return void 0!==i?i:t}(e,r),i[i.name]=!0;break}return i}(navigator.userAgent),e={};return e.mobileOS=t,e}function We(){}function Xe(){return(new Date).getTime()}function Ye(){this._defaultPrevented=!0}function qe(){return!0===this._defaultPrevented}var Ze,Qe="function";function Ke(){Ze.call(this),this._events={}}(Ze=M.Class)&&(Ke.__proto__=Ze),((Ke.prototype=Object.create(Ze&&Ze.prototype)).constructor=Ke).prototype.destroy=function(){this.unbind()},Ke.prototype.bind=function(t,e,i){var o,r,n=this,s="string"==typeof t?[t]:t||[],a=typeof e==Qe;if(void 0===e)for(h in t)n.bind(h,t[h]);else for(var h=0,l=s.length;h<l;h++)!function(){var t=s[h];(r=a?e:e[t])&&(i&&(o=r,(r=function(){n.unbind(t,r),o.apply(n,arguments)}).original=o),(n._events[t]=n._events[t]||[]).push(r))}();return n},Ke.prototype.one=function(t,e){return this.bind(t,e,!0)},Ke.prototype.first=function(t,e){for(var i,o="string"==typeof t?[t]:t,r=typeof e==Qe,n=0,s=o.length;n<s;n++){var a=o[n];(i=r?e:e[a])&&(this._events[a]=this._events[a]||[]).unshift(i)}return this},Ke.prototype.trigger=function(t,e){var i,o,r=this._events[t];if(r){var n=e||{};for(n.sender=this,n._defaultPrevented=!1,n.preventDefault=Ye,n.isDefaultPrevented=qe,i=0,o=(r=r.slice()).length;i<o;i++)r[i].call(this,n);return!0===n._defaultPrevented}return!1},Ke.prototype.unbind=function(t,e){var i,o=this._events[t];if(void 0===t)this._events={};else if(o)if(e)for(i=o.length-1;0<=i;i--)o[i]!==e&&o[i].original!==e||o.splice(i,1);else this._events[t]=[];return this},Ke.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 S_=Ke;function $e(t){t.preventDefault()}var Je=Object.assign,ti=800,ei=0,ii="move",oi="tap",ri="doubleTap",ni="release",si="gesturechange",ai="gestureend",hi="gesturetap",li={api:0,touch:0,mouse:9,pointer:9};function pi(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}(ui=M.Class)&&(yi.__proto__=ui),((yi.prototype=Object.create(ui&&ui.prototype)).constructor=yi).prototype.move=function(t){var e=this,i=t["page"+e.axis],o=Xe(),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)},yi.prototype._updateLocationData=function(t){var e=this.axis;this.location=t["page"+e],this.client=t["client"+e],this.screen=t["screen"+e]};var ci,ui,di=yi,fi=((ci=M.Class)&&(gi.__proto__=ci),((gi.prototype=Object.create(ci&&ci.prototype)).constructor=gi).prototype.press=function(){var t=this;this._holdTimeout=setTimeout(function(){return t._hold()},this.userEvents.minHold),this._trigger("press",this.pressEvent)},gi.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout(function(){1===e.userEvents._clicks?e._trigger(oi,t):e._trigger(ri,t),e.userEvents._clicks=0},300))},gi.prototype._hold=function(){this._trigger("hold",this.pressEvent)},gi.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(ki.current&&ki.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(ii,t)}},gi.prototype.end=function(t){this.endTime=Xe(),this._finished||(this._finished=!0,this._trigger(ni,t),this._moved?this._trigger("end",t):this.supportDoubleTap?this._tap(t):this._trigger(oi,t),clearTimeout(this._holdTimeout),this.dispose())},gi.prototype.dispose=function(){var t=this.userEvents.touches||[],e=(this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout),t.indexOf(this));t.splice(e,1)},gi.prototype.skip=function(){this.dispose()},gi.prototype.cancel=function(){this.dispose()},gi.prototype.isMoved=function(){return this._moved},gi.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=Xe(),this._moved=!0,this._trigger("start",t)},gi.prototype._trigger=function(t,e){var e=e.event,i={touch:this,x:this.x,y:this.y,target:this.target,event:e};this.userEvents.notify(t,i)&&e.preventDefault()},gi.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold},gi);function gi(t,e,i){ci.call(this),Je(this,{x:new di("X",i.location),y:new di("Y",i.location),type:i.type,threshold:t.threshold||li[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 yi(t,e){ui.call(this);var i=this;i.support=Ge(),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=Xe()}function vi(t){for(var e=Ve.up.split(" "),i=0,o=e.length;i<o;i++)t(e[i])}(mi=S_)&&(Ci.__proto__=mi),((Ci.prototype=Object.create(mi&&mi.prototype)).constructor=Ci).prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},Ci.prototype.destroy=function(){var e,i=this,t=this.options,o=this.element;i._destroyed||(i._destroyed=!0,i.captureUpIfMoved&&(e=i.surface,vi(function(t){e.removeEventListener(t,i.preventIfMoving)})),Ue(i.surface,je("move"),this._surfaceMoveHandler),Ue(i.surface,je("up cancel"),this._surfaceEndHandler),Ue(o,je("down"),this._elementStartHandler),t.preventDragEvent&&Ue(o,je("dragstart"),this._elementDragStartHandler),Ue(o,je("mousedown"),this._elementSelectHandler),i._disposeAll(),i.unbind(),delete i.surface,delete i.element,delete i.currentTarget)},Ci.prototype.capture=function(){Ci.current=this},Ci.prototype.cancel=function(){this._disposeAll(),this.trigger("cancel")},Ci.prototype.notify=function(t,e){var i,o,r,n,s=this.touches,a=t;if(this._isMultiTouch()){switch(a){case ii:a=si;break;case"end":a=ai;break;case oi:a=hi}Je(e,{touches:s},(t=s[0],s=s[1],i=t.x.location,t=t.y.location,r=i-(o=s.x.location),n=t-(s=s.y.location),{center:{x:(i+o)/2,y:(t+s)/2},distance:Math.sqrt(r*r+n*n)}))}return this.trigger(a,Je(e,{type:a}))},Ci.prototype.press=function(t,e,i){this._apiCall("_start",t,e,i)},Ci.prototype.move=function(t,e){this._apiCall("_move",t,e)},Ci.prototype.end=function(t,e){this._apiCall("_end",t,e)},Ci.prototype._isMultiTouch=function(){return 1<this.touches.length},Ci.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},Ci.prototype._disposeAll=function(){for(var t=this.touches;0<t.length;)t.pop().dispose()},Ci.prototype._isMoved=function(){return Gt(this.touches,function(t){return t.isMoved()}).length},Ci.prototype._select=function(t){this.allowSelection&&!this.trigger("select",{event:t})||t.preventDefault()},Ci.prototype._start=function(t){if(!(t.which&&1<t.which||this._maxTouchesReached())){Ci.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();for(var e=pi(t),i=0;i<e.length&&!this._maxTouchesReached();i++){var o,r=e[i];(o=this.filter?r.currentTarget:this.element)&&0===o.length||(o=new fi(this,o,r),this.touches.push(o),o.press(),this._isMultiTouch()&&this.notify("gesturestart",{}))}}},Ci.prototype._move=function(t){this._eachTouch("move",t)},Ci.prototype._end=function(t){this._eachTouch("end",t)},Ci.prototype._eachTouch=function(t,e){for(var i,o,r,n={},s=pi(e),a=this.touches,h=0;h<a.length;h++)n[(i=a[h]).id]=i;for(h=0;h<s.length;h++)(r=n[(o=s[h]).id])&&("move"!==t||"pointer"!==o.type||this.surface.hasPointerCapture(o.id)||this.surface.setPointerCapture(o.id),r[t](o))},Ci.prototype._apiCall=function(t,e,i,o){this[t]({api:!0,pageX:e,pageY:i,clientX:e,clientY:i,target:o||this.element,stopPropagation:We,preventDefault:We})},Ci.defaultThreshold=function(t){ei=t},Ci.minHold=function(t){ti=t};var mi,xi,_i,bi,wi,ki=Ci,Ai,i,Si,t;function Ci(t,e){mi.call(this);var i,o,r=this,n=Ge();this.support=n,this.options=e=e||{},n=r.filter=e.filter,r.threshold=e.threshold||ei,r.minHold=e.minHold||ti,r.touches=[],r._maxTouches=e.multiTouch?2:1,r.allowSelection=e.allowSelection,r.captureUpIfMoved=e.captureUpIfMoved,r._clicks=0,r.supportDoubleTap=e.supportDoubleTap,Je(r,{element:t,surface:e.surface||t,stopPropagation:e.stopPropagation,pressed:!1}),this._surfaceMoveHandler=this._move.bind(this),Ne(r.surface,je("move"),this._surfaceMoveHandler),this._surfaceEndHandler=this._end.bind(this),Ne(r.surface,je("up cancel"),this._surfaceEndHandler),this._elementStartHandler=this._start.bind(this),Ne(t,je("down"),n,this._elementStartHandler),t.style["touch-action"]=e.touchAction||"none",e.preventDragEvent&&(this._elementDragStartHandler=$e,Ne(t,je("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=this._select.bind(this),Ne(t,je("mousedown"),n,this._elementSelectHandler),r.captureUpIfMoved&&(i=r.surface,o=r.preventIfMoving.bind(r),vi(function(t){i.addEventListener(t,o,!0)})),r.bind(["press","hold",oi,ri,"start",ii,"end",ni,"cancel","gesturestart",si,ai,hi,"select"],e)}const C_=ki;function Pi(t,e){t=L(e-t,et-1);if(0===t){if(0===e)return.1;t=Math.abs(e)}e=Math.pow(10,Math.floor(Math.log(t)/Math.log(10))),t=L(t/e,et);return L(e*(t<1.904762?.2:t<4.761904?.5:t<9.523809?1:2),et)}(xi=M.Class)&&(Ti.__proto__=xi),((Ti.prototype=Object.create(xi&&xi.prototype)).constructor=Ti).prototype.clone=function(){return new Ti(this.x,this.y)},Ti.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},Ti.prototype.rotate=function(t,e){var e=ce(e),i=Math.cos(e),e=Math.sin(e),o=t.x,t=t.y,r=this.x,n=this.y;return this.x=L(o+(r-o)*i+(n-t)*e,K),this.y=L(t+(n-t)*i-(r-o)*e,K),this},Ti.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},Ti.prototype.distanceTo=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Ti.onCircle=function(t,e,i){e=ce(e);return new Ti(t.x-i*Math.cos(e),t.y-i*Math.sin(e))};const E=Ti;function Ti(t,e){xi.call(this),this.x=t||0,this.y=e||0}function Mi(t,e,i,o){_i.call(this),this.x1=t||0,this.y1=e||0,this.x2=i||0,this.y2=o||0}function Oi(t,e,i,o,r){r=ce(r);return new E(i+(t-i)*Math.cos(r)+(e-o)*Math.sin(r),o-(t-i)*Math.sin(r)+(e-o)*Math.cos(r))}(_i=M.Class)&&(Mi.__proto__=_i),((Mi.prototype=Object.create(_i&&_i.prototype)).constructor=Mi).prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},Mi.prototype.width=function(){return this.x2-this.x1},Mi.prototype.height=function(){return this.y2-this.y1},Mi.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},Mi.prototype.move=function(t,e){var i=this.height(),o=this.width();return k(t)&&(this.x1=t,this.x2=this.x1+o),k(e)&&(this.y1=e,this.y2=this.y1+i),this},Mi.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},Mi.prototype.wrapPoint=function(t){var e=xt(t),i=e?t[0]:t.x,e=e?t[1]:t.y;return this.wrap(new Mi(i,e,i,e)),this},Mi.prototype.snapTo=function(t,e){return e!==y&&e||(this.x1=t.x1,this.x2=t.x2),e!==v&&e||(this.y1=t.y1,this.y2=t.y2),this},Mi.prototype.alignTo=function(t,e){var i,o,r=this.height(),n=this.width(),s=e===T||e===S?v:y,a=s==v?r:n;return e===b?(i=t.center(),o=this.center(),this.x1+=i.x-o.x,this.y1+=i.y-o.y):this[s+1]=e===T||e===C?t[s+1]-a:t[s+2],this.x2=this.x1+n,this.y2=this.y1+r,this},Mi.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},Mi.prototype.expand=function(t,e){return this.shrink(-t,-e),this},Mi.prototype.pad=function(t){t=w(t);return this.x1-=t.left,this.x2+=t.right,this.y1-=t.top,this.y2+=t.bottom,this},Mi.prototype.unpad=function(t){t=w(t);return t.left=-t.left,t.top=-t.top,t.right=-t.right,t.bottom=-t.bottom,this.pad(t)},Mi.prototype.clone=function(){return new Mi(this.x1,this.y1,this.x2,this.y2)},Mi.prototype.center=function(){return new E(this.x1+this.width()/2,this.y1+this.height()/2)},Mi.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},Mi.prototype.points=function(){return[new E(this.x1,this.y1),new E(this.x2,this.y1),new E(this.x2,this.y2),new E(this.x1,this.y2)]},Mi.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},Mi.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},Mi.prototype.rotate=function(t){var e=this.width(),i=this.height(),o=this.center(),r=o.x,o=o.y,n=Oi(0,0,r,o,t),s=Oi(e,0,r,o,t),a=Oi(e,i,r,o,t),r=Oi(0,i,r,o,t),e=Math.max(n.x,s.x,a.x,r.x)-Math.min(n.x,s.x,a.x,r.x),i=Math.max(n.y,s.y,a.y,r.y)-Math.min(n.y,s.y,a.y,r.y);return this.x2=this.x1+e,this.y2=this.y1+i,this},Mi.prototype.toRect=function(){return new M.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},Mi.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},Mi.prototype.align=function(t,e,i){var o=e+1,r=e+2,e=e===y?yt:rt,n=this[e]();u(i,[C,T])?(this[o]=t[o],this[r]=this[o]+n):u(i,[P,S])?(this[r]=t[r],this[o]=this[r]-n):i===b&&(this[o]=t[o]+(t[e]()-n)/2,this[r]=this[o]+n)};const R=Mi;function Li(t,e,i,o,r){bi.call(this),this.center=t,this.innerRadius=e,this.radius=i,this.startAngle=o,this.angle=r}function Ii(t,e){return t-e}(bi=M.Class)&&(Li.__proto__=bi),((Li.prototype=Object.create(bi&&bi.prototype)).constructor=Li).prototype.clone=function(){return new Li(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},Li.prototype.middle=function(){return this.startAngle+this.angle/2},Li.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},Li.prototype.point=function(t,e){var t=ce(t),i=Math.cos(t),t=Math.sin(t),e=e?this.innerRadius:this.radius,i=L(this.center.x-i*e,K),t=L(this.center.y-t*e,K);return new E(i,t)},Li.prototype.adjacentBox=function(t,e,i){var t=this.clone().expand(t),o=t.middle(),t=t.point(o),r=e/2,n=i/2,s=Math.sin(ce(o)),o=Math.cos(ce(o)),a=t.x-r,t=t.y-n;return Math.abs(s)<.9&&(a+=r*-o/Math.abs(o)),Math.abs(o)<.9&&(t+=n*-s/Math.abs(s)),new R(a,t,a+e,t+i)},Li.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,t=t.y-e.y,a=new E(s,t),r=this.point(r),r=new E(r.x-e.x,r.y-e.y),n=this.point(n),n=new E(n.x-e.x,n.y-e.y),e=L(s*s+t*t,K);return(r.equals(a)||At(r,a))&&!At(n,a)&&i*i<=e&&e<=o*o},Li.prototype.getBBox=function(){for(var t=new R(at,at,ht,ht),e=L(this.startAngle%360),i=L((e+this.angle)%360),o=this.innerRadius,r=[0,90,180,270,e,i].sort(Ii),n=r.indexOf(e),s=r.indexOf(i),a=e===i?r:n<s?r.slice(n,s+1):[].concat(r.slice(0,s+1),r.slice(n,r.length)),h=0;h<a.length;h++){var l=this.point(a[h]);t.wrapPoint(l),t.wrapPoint(l,o)}return o||t.wrapPoint(this.center),t},Li.prototype.expand=function(t){return this.radius+=t,this};const P_=Li;function Bi(t,e,i,o){wi.call(this,t,0,e,i,o)}(wi=P_)&&(Bi.__proto__=wi),((Bi.prototype=Object.create(wi&&wi.prototype)).constructor=Bi).prototype.expand=function(t){return wi.prototype.expand.call(this,t)},Bi.prototype.clone=function(){return new Bi(this.center,this.radius,this.startAngle,this.angle)},Bi.prototype.setRadius=function(t){return this.radius=t,this};const T_=Bi;function Ei(){Ai.apply(this,arguments)}(Ai=M.Class)&&(Ei.__proto__=Ai),((Ei.prototype=Object.create(Ai&&Ai.prototype)).constructor=Ei).prototype.createRing=function(t,e){var i=t.startAngle+180,o=t.angle+i,r=((0===t.angle||0<t.angle&&i===o)&&(o+=.001),new M.geometry.Point(t.center.x,t.center.y)),n=Math.max(t.radius,0),t=Math.max(t.innerRadius,0),n=new M.geometry.Arc(r,{startAngle:i,endAngle:o,radiusX:n,radiusY:n}),e=M.drawing.Path.fromArc(n,e).close();return t?(n.radiusX=n.radiusY=t,n=n.pointAt(o),e.lineTo(n.x,n.y),e.arc(o,i,t,t,!0)):e.lineTo(r.x,r.y),e},(i=Ei).current=new i;const M_=i;function Ri(t){Si.call(this),this.children=[],this.options=O({},this.options,this.initUserOptions(t))}(Si=M.Class)&&(Ri.__proto__=Si),((Ri.prototype=Object.create(Si&&Si.prototype)).constructor=Ri).prototype.initUserOptions=function(t){return t},Ri.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},Ri.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},Ri.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},Ri.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},Ri.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},Ri.prototype.translateChildren=function(t,e){for(var i=this.children,o=i.length,r=0;r<o;r++)i[r].box.translate(t,e)},Ri.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var i=t[e];this.children.push(i),i.parent=this}},Ri.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},Ri.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this).parent&&this.parent.appendVisual(this.visual)},Ri.prototype.renderChildren=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)t[i].renderVisual()},Ri.prototype.createVisual=function(){this.visual=new M.drawing.Group({zIndex:this.options.zIndex,visible:_(this.options.visible,!0)})},Ri.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=M.drawing.Animation.create(this.visual,this.options.animation))},Ri.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):k(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},Ri.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},Ri.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},Ri.prototype.stackVisual=function(t){for(var e=t.options.zIndex||0,i=this.visual.children,o=i.length,r=0;r<o;r++){var n=i[r];if(_(n.options.zIndex,0)>e)break}this.visual.insert(r,t)},Ri.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)}},Ri.prototype.closest=function(t){for(var e=this,i=!1;e&&!i;)(i=t(e))||(e=e.parent);if(i)return e},Ri.prototype.renderComplete=function(){},Ri.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)},Ri.prototype.toggleHighlight=function(t,e){var i=this,o=(this.options||{}).highlight||{},r=o.visual,n=this._highlight;if(!n){var s={fill:{color:a,opacity:e||.2},stroke:{color:a,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);k(n.options.zIndex)||(n.options.zIndex=_(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},Ri.prototype.toggleFocusHighlight=function(t){var e,i=(this.options||{}).focusHighlight||{},o=this._focusHighlight;(t||o)&&(o||(e=this.getRoot().options.background,e=w_(e),e={fill:{opacity:i.opacity,color:i.color},stroke:Object.assign({},{color:e},i.border),zIndex:i.zIndex},o=this._focusHighlight=this.createFocusHighlight(e),this.appendVisual(o)),o.visible(t))},Ri.prototype.createGradientOverlay=function(t,e,i){i=new M.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(i),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},Ri.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},Ri.prototype.supportsPointInactiveOpacity=function(){return!0},(t=Ri).prototype.options={};const O_=t;var Vi={dots:M.drawing.dotsPattern,verticalStripes:M.drawing.verticalStripesPattern,crosshatch:M.drawing.crosshatchPattern,diagonalStripes:M.drawing.diagonalStripesPattern,grid:M.drawing.gridPattern},zi,i,ji,t,Di,t,Fi,i;function Hi(t,e,i){i=Ot(t=t)?t(i):t,t=i&&Vi[i.type];return t?t(Object.assign({},e,i)):e}function Ni(t){zi.call(this,t),this.options.margin=w(this.options.margin),this.options.padding=w(this.options.padding)}(zi=O_)&&(Ni.__proto__=zi),((Ni.prototype=Object.create(zi&&zi.prototype)).constructor=Ni).prototype.reflow=function(t){function e(){o.align(t,y,r.align),o.align(t,v,r.vAlign),o.paddingBox=i.clone().unpad(l).unpad(c)}var i,o=this,r=this.options,n=r.width,s=r.height,a=r.shrinkToFit,h=n&&s,l=r.margin,p=r.padding,c=r.border.width,u=t.clone();h&&(u.x2=u.x1+n,u.y2=u.y1+s),a&&u.unpad(l).unpad(c).unpad(p),zi.prototype.reflow.call(this,u),i=h?this.box=new R(0,0,n,s):this.box,a&&h?(e(),u=this.contentBox=this.paddingBox.clone().unpad(p)):(u=this.contentBox=i.clone(),i.pad(p).pad(c).pad(l),e()),this.translateChildren(i.x1-u.x1+l.left+c+p.left,i.y1-u.y1+l.top+c+p.top);for(var d=this.children,f=0;f<d.length;f++){var g=d[f];g.reflow(g.box)}},Ni.prototype.align=function(t,e,i){this.box.align(t,e,i)},Ni.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},Ni.prototype.createVisual=function(){zi.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(M.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},Ni.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:_(e.opacity,t.opacity),dashType:e.dashType},fill:Hi(t.pattern,{color:t.background,opacity:t.opacity},void 0),cursor:t.cursor}},e(i=Ni,{align:C,vAlign:T,margin:{},padding:{},border:{color:Z,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const L_=i;function Ui(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)}function Gi(t,e){ji.call(this,t),this.pointData=e}(ji=L_)&&(Gi.__proto__=ji),((Gi.prototype=Object.create(ji&&ji.prototype)).constructor=Gi).prototype.getElement=function(){var t,e,i=this.options,o=this.paddingBox,r=i.type,n=i.rotation,s=o.center(),a=o.width()/2,h=o.height()/2;return i.visible&&this.hasBox()?(e=this.visualStyle(),r===Q?t=new M.drawing.Circle(new M.geometry.Circle([L(o.x1+a,K),L(o.y1+h,K)],Math.min(a,h)),e):"triangle"===r?t=M.drawing.Path.fromPoints([[o.x1+a,o.y1],[o.x1,o.y2],[o.x2,o.y2]],e).close():r===$?((t=new M.drawing.MultiPath(e)).moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),t.moveTo(o.x1,o.y2).lineTo(o.x2,o.y1)):(h=o.toRect(),r===ut&&(a=_(i.borderRadius,h.width()/5),h.setCornerRadius(a)),t=M.drawing.Path.fromRect(h,e)),n&&t.transform(M.geometry.transform().rotate(-n,[s.x,s.y])),t.options.zIndex=i.zIndex,t):null},Gi.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()},Gi.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}},Gi.prototype.createVisual=function(){this.visual=this.createElement(),Ui(this.visual,this.options.accessibilityOptions)},e(t=Gi,{type:Q,align:b,vAlign:b});const I_=t,B_={glass:{type:"linear",rotation:0,stops:[{offset:0,color:a,opacity:0},{offset:.25,color:a,opacity:.3},{offset:1,color:a,opacity:0}]},sharpBevel:{type:i="radial",stops:[{offset:0,color:a,opacity:.55},{offset:.65,color:a,opacity:0},{offset:.95,color:a,opacity:.25}]},roundedBevel:{type:i,stops:[{offset:.33,color:a,opacity:.06},{offset:.83,color:a,opacity:.2},{offset:.95,color:a,opacity:0}]},roundedGlass:{type:i,supportVML:!1,stops:[{offset:0,color:a,opacity:0},{offset:.5,color:a,opacity:.3},{offset:.99,color:a,opacity:0}]},sharpGlass:{type:i,supportVML:!1,stops:[{offset:0,color:a,opacity:.2},{offset:.15,color:a,opacity:.15},{offset:.17,color:a,opacity:.35},{offset:.85,color:a,opacity:.05},{offset:.87,color:a,opacity:.15},{offset:.99,color:a,opacity:0}]},bubbleShadow:{type:i,center:[.5,.5],radius:.5}};function Wi(t){Di.call(this,t);t=this.options;t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),this.gradients={}}(Di=O_)&&(Wi.__proto__=Di),((Wi.prototype=Object.create(Di&&Di.prototype)).constructor=Wi).prototype.reflow=function(){var t=this.options,e=this.children,i=new R(0,0,t.width,t.height);this.box=i.unpad(t.margin);for(var o,r,n,s,a,h,l,p,c,u,d,f=0;f<e.length;f++)e[f].reflow(i),o=i,r=e[f].box,d=u=c=p=l=h=a=s=n=void 0,i=(o.x1===r.x1&&o.y1===r.y1&&o.x2===r.x2&&o.y2===r.y2?r:(n=Math.min(o.x1,r.x1),s=Math.max(o.x1,r.x1),a=Math.min(o.x2,r.x2),h=Math.max(o.x2,r.x2),l=Math.min(o.y1,r.y1),p=Math.max(o.y1,r.y1),c=Math.min(o.y2,r.y2),u=Math.max(o.y2,r.y2),(d=[])[0]=new R(s,l,a,p),d[1]=new R(n,p,s,c),d[2]=new R(a,p,h,c),d[3]=new R(s,c,a,u),o.x1===n&&o.y1===l||r.x1===n&&r.y1===l?(d[4]=new R(n,l,s,p),d[5]=new R(a,c,h,u)):(d[4]=new R(a,l,h,p),d[5]=new R(n,c,s,u)),Gt(d,function(t){return 0<t.height()&&0<t.width()})[0]))||new R},Wi.prototype.createVisual=function(){this.visual=new M.drawing.Group,this.createBackground()},Wi.prototype.createBackground=function(){var t=this.options,e=t.border||{},i=this.box.clone().pad(t.margin).unpad(e.width),i=M.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(i)},Wi.prototype.getRoot=function(){return this},Wi.prototype.createGradient=function(t){var e,s,i=this.gradients,o=pe(t),r=B_[t.gradient];return i[o]?e=i[o]:(s=Object.assign({},r,t),"linear"===r.type?e=new M.drawing.LinearGradient(s):(t.innerRadius&&(s.stops=function(){for(var t=s.stops,e=s.innerRadius/s.radius*100,i=t.length,o=[],r=0;r<i;r++){var n=Object.assign({},t[r]);n.offset=(n.offset*(100-e)+e)/100,o.push(n)}return o}()),(e=new M.drawing.RadialGradient(s)).supportVML=!1!==r.supportVML),i[o]=e),e},Wi.prototype.cleanGradients=function(){var t,e=this.gradients;for(t in e)e[t]._observers=[]},Wi.prototype.size=function(){var t=this.options;return new R(0,0,t.width,t.height)},e(t=Wi,{width:600,height:400,background:a,border:{color:Z,width:0},margin:w(5),zIndex:-2});const E_=t;function Xi(t){Fi.call(this,t),this._initDirection()}(Fi=O_)&&(Xi.__proto__=Fi),((Xi.prototype=Object.create(Fi&&Fi.prototype)).constructor=Xi).prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=y,this.elementAxis=v,this.groupSizeField=yt,this.elementSizeField=rt,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=v,this.elementAxis=y,this.groupSizeField=rt,this.elementSizeField=yt,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},Xi.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},Xi.prototype.reflowChildren=function(){var t=this,e=t.box,i=t.elementAxis,o=t.groupAxis,r=t.elementSizeField,n=t.groupSizeField,t=this.groupOptions(),s=t.groups,a=t.groupsSize,t=t.maxGroupElementsSize,h=s.length,l=e[o+1]+this.alignStart(a,e[n]());if(h){for(var p=l,c=0;c<h;c++){for(var u=s[c],d=u.groupElements,f=e[i+1],g=d.length,y=0;y<g;y++){var v=d[y],m=this.elementSize(v),x=p+this.alignStart(m[n],u.groupSize),_=new R;_[o+1]=x,_[o+2]=x+m[n],_[i+1]=f,_[i+2]=f+m[r],v.reflow(_),f+=m[r]+this.elementSpacing}p+=u.groupSize+this.groupSpacing}e[o+1]=l,e[o+2]=l+a,e[i+2]=e[i+1]+t}},Xi.prototype.alignStart=function(t,e){var i=0,o=this.options.align;return o===P||o===S?i=e-t:o===b&&(i=(e-t)/2),i},Xi.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=L(e[o]()),h=i.length,l=[],p=0,c=0,u=0,d=0,f=[],g=0;g<h;g++){var y=i[g],v=(y.box||y.reflow(e),this.elementSize(y));this.options.wrap&&L(c+n+v[o])>a&&(l.push({groupElements:f,groupSize:p,groupElementsSize:c}),d=Math.max(d,c),u+=s+p,c=p=0,f=[]),p=Math.max(p,v[r]),0<c&&(c+=n),c+=v[o],f.push(y)}return l.push({groupElements:f,groupSize:p,groupElementsSize:c}),{groups:l,groupsSize:u+=p,maxGroupElementsSize:d=Math.max(d,c)}},Xi.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},Xi.prototype.createVisual=function(){},e(i=Xi,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const R_=i;var Yi,qi=M.drawing.Text,t;function Zi(t,e){Yi.call(this,e),this.content=t,this.reflow(new R)}(Yi=O_)&&(Zi.__proto__=Yi),((Zi.prototype=Object.create(Yi&&Yi.prototype)).constructor=Zi).prototype.reflow=function(t){var e=this.options,e=e.size=M.drawing.util.measureText(this.content,{font:e.font});this.baseline=e.baseline,this.box=new R(t.x1,t.y1,t.x1+e.width,t.y1+e.height)},Zi.prototype.createVisual=function(){var t=this.options,e=t.font,i=t.color,o=t.opacity,r=t.cursor,n=t.stroke,t=t.paintOrder;this.visual=new qi(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:i,opacity:o},cursor:r,stroke:n,paintOrder:t})},e(t=Zi,{font:tt,color:Z});const V_=t;function Qi(t){var e=t.origin,t=t.bottomRight();return new R(e.x,e.y,t.x,t.y)}var Ki,$i=/\n/m,Ji,i,to,t,eo,i;function io(t,e,i){Ki.call(this,e),this.content=t,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new R)}(Ki=L_)&&(io.__proto__=Ki),((io.prototype=Object.create(Ki&&Ki.prototype)).constructor=io).prototype._initContainer=function(){var t=this.options,e=String(this.content).split($i),i=new R_({vertical:!0,align:t.align,wrap:!1}),o=O({},t,{opacity:1,animation:null});this.container=i,this.append(i);for(var r=0;r<e.length;r++){var n=new V_(e[r].trim(),o);i.append(n)}},io.prototype.reflow=function(t){var e,i=this.options,o=i.visual;this.container.options.align=i.align,o&&!this._boxReflow?((e=t).hasSize()||(this._boxReflow=!0,this.reflow(e),this._boxReflow=!1,e=this.box),(o=this.visual=o(this.visualContext(e)))&&(e=Qi(o.clippedBBox()||new M.geometry.Rect),o.options.zIndex=i.zIndex),this.box=this.contentBox=this.paddingBox=e):(Ki.prototype.reflow.call(this,t),i.rotation&&(o=w(i.margin),e=this.box.unpad(o),this.targetBox=t,this.normalBox=e.clone(),(e=this.rotate()).translate(o.left-o.right,o.top-o.bottom),this.rotatedBox=e.clone(),e.pad(o)))},io.prototype.createVisual=function(){var t=this.options;this.visual=new M.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()&&(t=M.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()),this.visual.append(t))},io.prototype.renderVisual=function(){var t;this.options.visible&&(this.options.visual?((t=this.visual)&&!k(t.options.noclip)&&(t.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()):Ki.prototype.renderVisual.call(this))},io.prototype.visualContext=function(t){var e=this,i={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,crea