text: module.exports=function(t){function i(e){if(n[e])return n[e].exports;var o=n[e]={exports:{},id:e,loaded:!1};return t[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}var n={};return i.m=t,i.c=n,i.p="",i(0)}({0:function(t,i,n){t.exports=n(900)},3:function(t,i){t.exports=function(){throw Error("define cannot be used indirect")}},893:function(t,i){t.exports=require("../../kendo.drawing")},896:function(t,i){t.exports=require("../../kendo.core")},900:function(t,i,n){var e,o,s;!function(r,define){o=[n(896),n(893)],e=r,s="function"==typeof e?e.apply(i,o):e,!(void 0!==s&&(t.exports=s))}(function(){!function(t){function i(t){return Array.isArray(t)}function n(t,n){var e,o,s=i(n)?n:[n];for(e=0;e<s.length;e++)o=s[e],t.className.indexOf(o)===-1&&(t.className+=" "+o)}function e(t,i){t&&t.className&&(t.className=t.className.replace(i,"").replace(Li," "))}function o(t){var i,n=.5;for(t.options.stroke&&kendo.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2===0&&(n=0),i=0;i<t.segments.length;i++)t.segments[i].anchor().round(0).translate(n,n);return t}function s(t,i){return-t.x*i.y+t.y*i.x<0}function r(t){return"number"==typeof t&&!isNaN(t)}function a(t){return typeof t===xi}function l(t){return r(t)||a(t)&&isFinite(t)}function h(t){return"object"==typeof t}function u(t){return r(t)?t+"px":t}function c(t){return Ui.test(t)}function f(t,n){var e,o,s,r,l,f=a(n)?[n]:n;if(i(f)){for(e={},o=window.getComputedStyle(t),s=0;s<f.length;s++)r=f[s],e[r]=c(r)?parseFloat(o[r]):o[r];return e}if(h(n))for(l in n)t.style[l]=u(n[l])}function p(t,i){void 0===i&&(i=0);var n={top:0,right:0,bottom:0,left:0};return"number"==typeof t?n[vi]=n[di]=n[Ht]=n[si]=t:(n[vi]=t[vi]||i,n[di]=t[di]||i,n[Ht]=t[Ht]||i,n[si]=t[si]||i),n}function d(t){void 0===t&&(t={});var i;return t.template?t.template=i=zi.compile(t.template):Et(t.content)&&(i=t.content),i}function g(t,i){var n,e=t.length,o=[];for(n=0;n<e;n++)i(t[n])&&o.push(t[n]);return o}function m(t,i){var n,e;if(t.className)for(n=i.split(" "),e=0;e<n.length;e++)if(t.className.indexOf(n[e])!==-1)return!0}function x(t,i){if(i)return i.indexOf(t)!==-1}function v(t,i,n){return kendo.drawing.util.round(t+(i-t)*n,qt)}function b(t,i){var n,e,o=t.length,s=[];for(n=0;n<o;n++)e=i(t[n]),kendo.drawing.util.defined(e)&&s.push(e);return s}function y(t){var i=0;return t.wheelDelta&&(i=-t.wheelDelta/120,i=i>0?Math.ceil(i):Math.floor(i)),t.detail&&(i=kendo.drawing.util.round(t.detail/3)),i}function w(t,i){var n=t.prototype;n.options=n.options?zt({},n.options,i):i}function M(t){var i,n,e,o=ri,s=ai;for(i=0,n=t.length;i<n;i++)e=t[i],null!==e&&isFinite(e)&&(o=Math.min(o,e),s=Math.max(s,e));return{min:o===ri?void 0:o,max:s===ai?void 0:s}}function T(t,i){var n,e;for(n=0;n<t.length;n++)if(e=t[n],i(e,n,t))return e}function S(t){var i,n=t.match(ln);return null===n||2!==n.length?an.unit():(i=n[1].split(",").map(function(t){return parseFloat(t)}),new(Function.prototype.bind.apply(an,[null].concat(i))))}function R(t){var i=getComputedStyle(t).transform;return"none"===i?an.unit():S(i)}function k(t){var i,n,e;if(!t)return an.unit();for(i=R(t),n=t.parentElement;n;)e=R(n),i=i.multiplyCopy(e),n=n.parentElement;return i.b=i.c=i.e=i.f=0,i}function L(t){var i=new kendo.Color(t).isDark();return i?wi:Nt}function U(t){return fn()?new cn(t):new un(t)}function j(t,i){var n,e,o,s=en(i-t,Zt-1);if(0===s){if(0===i)return.1;s=Math.abs(i)}return n=Math.pow(10,Math.floor(Math.log(s)/Math.log(10))),e=en(s/n,Zt),o=1,o=e<1.904762?.2:e<4.761904?.5:e<9.523809?1:2,en(n*o,Zt)}function A(t,i,n,e,o){var s=nn(o);return new pn(n+(t-n)*Math.cos(s)+(i-e)*Math.sin(s),e-(t-n)*Math.sin(s)+(i-e)*Math.cos(s))}function I(t,i){return t-i}function B(t,i){var n,e,o,s,r,a,l,h,u;return t.x1===i.x1&&t.y1===i.y1&&t.x2===i.x2&&t.y2===i.y2?i:(n=Math.min(t.x1,i.x1),e=Math.max(t.x1,i.x1),o=Math.min(t.x2,i.x2),s=Math.max(t.x2,i.x2),r=Math.min(t.y1,i.y1),a=Math.max(t.y1,i.y1),l=Math.min(t.y2,i.y2),h=Math.max(t.y2,i.y2),u=[],u[0]=new dn(e,r,o,a),u[1]=new dn(n,a,e,l),u[2]=new dn(o,a,s,l),u[3]=new dn(e,l,o,h),t.x1===n&&t.y1===r||i.x1===n&&i.y1===r?(u[4]=new dn(n,r,e,a),u[5]=new dn(o,l,s,h)):(u[4]=new dn(o,r,s,a),u[5]=new dn(n,l,e,h)),g(u,function(t){return t.height()>0&&t.width()>0})[0])}function C(i){var n,e,o=i.stops,s=i.innerRadius/i.radius*100,r=o.length,a=[];for(n=0;n<r;n++)e=t.extend({},o[n]),e.offset=(e.offset*(100-s)+s)/100,a.push(e);return a}function P(t){var i=t.origin,n=t.bottomRight();return new dn(i.x,i.y,n.x,n.y)}function O(t,i){var n=t.tickX,e=t.tickY,s=t.position,r=new jt({stroke:{width:i.width,color:i.color}});return t.vertical?r.moveTo(n,s).lineTo(n+i.size,s):r.moveTo(s,e).lineTo(s,e+i.size),o(r),r}function _(t,i){var n=t.lineStart,e=t.lineEnd,s=t.position,r=new jt({stroke:{width:i.width,color:i.color,dashType:i.dashType}});return t.vertical?r.moveTo(n,s).lineTo(e,s):r.moveTo(s,n).lineTo(s,e),o(r),r}function D(t,i){var n=t.getTime()-i,e=t.getTimezoneOffset()-i.getTimezoneOffset();return n-e*qn}function z(t,i){return new Date(t.getTime()+i)}function E(t){var i;return t instanceof Date?i=t:t&&(i=new Date(t)),i}function V(t,i){var n,e;if(void 0===i&&(i=0),n=0,e=t.getDay(),!isNaN(e))for(;e!==i;)0===e?e=6:e--,n++;return z(t,-n*Wn)}function G(t,i){return 0===i&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function F(t,i){var n,e=new Date(t);return e.setMinutes(0,0,0),n=(t.getTimezoneOffset()-e.getTimezoneOffset())*qn,z(e,n+i*Kn)}function N(t,i,n,e){var o,s,r=t;return t&&(o=E(t),s=o.getHours(),n===Hn?(r=new Date(o.getFullYear()+i,0,1),G(r,0)):n===Nn?(r=new Date(o.getFullYear(),o.getMonth()+i,1),G(r,s)):n===Fn?(r=N(V(o,e),7*i,Gn),G(r,s)):n===Gn?(r=new Date(o.getFullYear(),o.getMonth(),o.getDate()+i),G(r,s)):n===Vn?r=F(o,i):n===En?(r=z(o,i*qn),r.getSeconds()>0&&r.setSeconds(0)):n===zn?r=z(o,i*Xn):n===Dn&&(r=z(o,i)),n!==Dn&&r.getMilliseconds()>0&&r.setMilliseconds(0)),r}function H(t,i,n){return N(E(t),0,i,n)}function Y(t,i,n){var e=E(t);return e&&H(e,i,n).getTime()===e.getTime()?e:N(e,1,i,n)}function X(t,i){return t&&i?t.getTime()-i.getTime():-1}function q(t,i){return t.getTime()-i}function K(t){var n,e;if(i(t)){for(n=[],e=0;e<t.length;e++)n.push(K(t[e]));return n}if(t)return E(t).getTime()}function W(t,i){return t&&i?K(t)===K(i):t===i}function J(t,i,n){return D(t,i)/$n[n]}function Q(t,i,n,e){var o,s=E(t),r=E(i);return o=n===Nn?s.getMonth()-r.getMonth()+12*(s.getFullYear()-r.getFullYear())+J(s,new Date(s.getFullYear(),s.getMonth()),Gn)/new Date(s.getFullYear(),s.getMonth()+1,0).getDate():n===Hn?s.getFullYear()-r.getFullYear()+Q(s,new Date(s.getFullYear(),0),Nn,1)/12:n===Gn||n===Fn?J(s,r,n):q(s,i)/$n[n],o/e}function Z(t,i,n){var e;return e=n===Hn?i.getFullYear()-t.getFullYear():n===Nn?12*Z(t,i,Hn)+i.getMonth()-t.getMonth():n===Gn?Math.floor(q(i,t)/Wn):Math.floor(q(i,t)/$n[n])}function $(t,i){for(var n,e,o=0,s=i.length-1;o<=s;)if(n=Math.floor((o+s)/2),e=i[n],e<t)o=n+1;else{if(!(e>t)){for(;W(i[n-1],t);)n--;return n}s=n-1}return i[n]<=t?n:n-1}function tt(t,i){var n;return n=a(i)?t.parseDate(i)||E(i):E(i)}function it(t,n){var e,o;if(i(n)){for(e=[],o=0;o<n.length;o++)e.push(tt(t,n[o]));return e}return tt(t,n)}function nt(t,i){return r(t.weekStartDay)?t.weekStartDay:i&&i.firstDay?i.firstDay():0}function et(t,i){var n,e;if(t instanceof Date){for(n=i.length,e=0;e<n;e++)if(W(i[e],t))return e;return-1}return i.indexOf(t)}function ot(t){var i=t._range;return i||(i=t._range=M(t),i.min=E(i.min),i.max=E(i.max)),i}function st(t,i,n){for(var e,o,s,r=ot(t.categories),a=(t.max||r.max)-(t.min||r.min),l=t.autoBaseUnitSteps,h=t.maxDateGroups,u=t.baseUnit===ae,c=i?re.indexOf(i):0,f=u?re[c++]:t.baseUnit,p=a/$n[f],d=p;!o||p>=h;){e=e||l[f].slice(0);do s=e.shift();while(s&&i===f&&s<n);if(s)o=s,p=d/o;else{if(f===Zi(re)){o=Math.ceil(d/h);break}if(!u){p>h&&(o=Math.ceil(d/h));break}f=re[c++]||Zi(re),d=a/$n[f],e=null}}t.baseUnitStep=o,t.baseUnit=f}function rt(t){var i,n,e,o,s,r=t.categories,a=Xi(r)?r.length:0,l=ri;for(e=0;e<a;e++)o=r[e],o&&i&&(s=D(o,i),s>0&&(l=Math.min(l,s),n=l>=Zn?Hn:l>=Qn-3*Wn?Nn:l>=Jn?Fn:l>=Wn?Gn:l>=Kn?Vn:l>=qn?En:zn)),i=o;t.baseUnit=n||Gn}function at(t){var i=(t.baseUnit||"").toLowerCase(),n=i!==ae&&!x(i,re);return n&&rt(t),i!==ae&&t.baseUnitStep!==se||st(t),t}function lt(t,i,n){var e,o,s;if(!t&&!i)return 0;if(t>=0&&i>=0){if(o=t===i?0:t,s=(i-o)/i,n===!1||!n&&s>oe)return 0;e=Math.max(0,o-(i-o)/2)}else e=t;return e}function ht(t,i,n){var e,o,s;if(!t&&!i)return 1;if(t<=0&&i<=0){if(o=t===i?0:i,s=Math.abs((o-t)/o),n===!1||!n&&s>oe)return 0;e=Math.min(0,o-(t-o)/2)}else e=i;return e}function ut(t,i){return en(Math.floor(t/i)*i,Zt)}function ct(t,i){return en(Math.ceil(t/i)*i,Zt)}function ft(t){return Math.max(Math.min(t,ne),-ne)}function pt(t,i,n){var e=n.narrowRange,o=lt(t,i,e),s=ht(t,i,e),r=j(o,s),a={majorUnit:r};return n.roundToMajorUnit!==!1&&(o<0&&xt(o,r,1/3)&&(o-=r),s>0&&xt(s,r,1/3)&&(s+=r)),a.min=ut(o,r),a.max=ct(s,r),a}function dt(t,i){return{min:Xi(i.min)?Math.min(t.min,i.min):t.min,max:Xi(i.max)?Math.max(t.max,i.max):t.max,majorUnit:t.majorUnit}}function gt(t,i){var n,e;for(n=0;n<i.length;n++)e=i[n],null===t[e]&&(t[e]=void 0)}function mt(t,i){var n,e,o,s,r=i;return i&&(gt(i,["min","max"]),n=Xi(i.min),e=Xi(i.max),o=n||e,o&&i.min===i.max&&(i.min>0?i.min=0:i.max=1),i.majorUnit?(t.min=ut(t.min,i.majorUnit),t.max=ct(t.max,i.majorUnit)):o&&(r=zt(t,i),t.majorUnit=j(r.min,r.max))),t.minorUnit=(r.majorUnit||t.majorUnit)/5,s=zt(t,r),s.min>=s.max&&(n&&!e?s.max=s.min+s.majorUnit:!n&&e&&(s.min=s.max-s.majorUnit)),s}function xt(t,i,n){var e=en(Math.abs(t%i),Zt),o=i*(1-n);return 0===e||e>o}function vt(t){var i=Vn;return t>=Zn?i=Hn:t>=Qn?i=Nn:t>=Jn?i=Fn:t>=Wn&&(i=Gn),i}function bt(t,i,n){var e=n.min||t,o=n.max||i,s=n.baseUnit||(o&&e?vt(D(o,e)):Vn),r=$n[s],a=n.weekStartDay||0,l=H(K(e)-1,s,a)||E(o),h=Y(K(o)+1,s,a),u=n.majorUnit?n.majorUnit:void 0,c=u||ct(j(l.getTime(),h.getTime()),r)/r,f=Z(l,h,s),p=ct(f,c),d=p-f,g=Math.floor(d/2),m=d-g;return n.baseUnit||delete n.baseUnit,n.baseUnit=n.baseUnit||s,n.min=n.min||N(l,-g,s,a),n.max=n.max||N(h,m,s,a),n.minorUnit=n.minorUnit||c/5,n.majorUnit=c,n}function yt(t,i,n,e){var o=n.min,s=n.max;return Xi(n.axisCrossingValue)&&n.axisCrossingValue<=0&&Tt(),Xi(e.max)?e.max<=0&&Tt():s=i,Xi(e.min)?e.min<=0&&Tt():o=t,{min:o,max:s}}function wt(t,i,n){var e=n.majorUnit,o=t;return t<=0?o=i<=1?Math.pow(e,-2):1:n.narrowRange||(o=Math.pow(e,Math.floor(St(t,e)))),o}function Mt(t,i){var n,e=en(St(t,i),Zt)%1;return n=t<=0?i:0!==e&&(e<.3||e>.9)?Math.pow(i,St(t,i)+.2):Math.pow(i,Math.ceil(St(t,i)))}function Tt(){throw Error("Non positive values cannot be used for a logarithmic axis")}function St(t,i){return Math.log(t)/Math.log(i)}function Rt(t,i){return 180-Math.abs(Math.abs(t-i)-180)}function kt(t){return t<=0?-1:1}var Lt,Ut,jt,At,It,Bt,Ct,Pt,Ot,_t,Dt,zt,Et,Vt,Gt,Ft,Nt,Ht,Yt,Xt,qt,Kt,Wt,Jt,Qt,Zt,$t,ti,ii,ni,ei,oi,si,ri,ai,li,hi,ui,ci,fi,pi,di,gi,mi,xi,vi,bi,yi,wi,Mi,Ti,Si,Ri,ki,Li,Ui,ji,Ai,Ii,Bi,Ci,Pi,Oi,_i,Di,zi,Ei,Vi,Gi,Fi,Ni,Hi,Yi,Xi,qi,Ki,Wi,Ji,Qi,Zi,$i,tn,nn,en,on,sn,rn,an,ln,hn,un,cn,fn,pn,dn,gn,mn,xn,vn,bn,yn,wn,Mn,Tn,Sn,Rn,kn,Ln,Un,jn,An,In,Bn,Cn,Pn,On,_n,Dn,zn,En,Vn,Gn,Fn,Nn,Hn,Yn,Xn,qn,Kn,Wn,Jn,Qn,Zn,$n,te,ie,ne,ee,oe,se,re,ae,le,he,ue,ce,fe,pe,de,ge,me,xe,ve,be,ye,we,Me,Te,Se;window.kendo.dataviz=window.kendo.dataviz||{},Lt=kendo.drawing,Ut=Lt.util,jt=Lt.Path,At=Lt.Group,It=kendo.Class,Bt=kendo.geometry,Ct=Bt.Rect,Pt=Bt.Circle,Ot=Bt.transform,_t=Bt.Segment,Dt=kendo.dataviz,zt=kendo.deepExtend,Et=kendo.isFunction,Vt=kendo.getter,Gt="arc",Ft="axisLabelClick",Nt="#000",Ht="bottom",Yt="center",Xt="circle",qt=3,Kt="cross",Wt="date",Jt="12px sans-serif",Qt=400,Zt=10,$t=600,ti="end",ii=/\{\d+:?/,ni="height",ei=100,oi="inside",si="left",ri=Number.MAX_VALUE,ai=-Number.MAX_VALUE,li="none",hi="noteClick",ui="noteHover",ci="noteLeave",fi="object",pi="outside",di="right",gi="roundedRect",mi="start",xi="string",vi="top",bi="triangle",yi="value",wi="#fff",Mi="width",Ti="x",Si="y",Ri=1,ki={ARC:Gt,AXIS_LABEL_CLICK:Ft,BLACK:Nt,BOTTOM:Ht,CENTER:Yt,CIRCLE:Xt,COORD_PRECISION:qt,CROSS:Kt,DATE:Wt,DEFAULT_FONT:Jt,DEFAULT_HEIGHT:Qt,DEFAULT_PRECISION:Zt,DEFAULT_WIDTH:$t,END:ti,FORMAT_REGEX:ii,HEIGHT:ni,HIGHLIGHT_ZINDEX:ei,INSIDE:oi,LEFT:si,MAX_VALUE:ri,MIN_VALUE:ai,NONE:li,NOTE_CLICK:hi,NOTE_HOVER:ui,NOTE_LEAVE:ci,OBJECT:fi,OUTSIDE:pi,RIGHT:di,ROUNDED_RECT:gi,START:mi,STRING:xi,TOP:vi,TRIANGLE:bi,VALUE:yi,WHITE:wi,WIDTH:Mi,X:Ti,Y:Si,DEFAULT_SERIES_OPACITY:Ri},Li=/\s+/g,Ui=/width|height|top|left|bottom|right/i,ji={format:function(t,i){return i},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},Ai=ji,Ii=It.extend({}),Ii.register=function(t){Ai=t},Object.defineProperties&&Object.defineProperties(Ii,{implementation:{get:function(){return Ai}}}),Bi=/\{(\d+)(:[^\}]+)?\}/g,Ci=It.extend({init:function(t){this._intlService=t},auto:function(t){for(var i,n=[],e=arguments.length-1;e-- >0;)n[e]=arguments[e+1];return i=this.intl,a(t)&&t.match(ii)?i.format.apply(i,[t].concat(n)):i.toString(n[0],t)},localeAuto:function(t,i,n){var e,o=this.intl;return e=a(t)&&t.match(ii)?t.replace(Bi,function(t,e,s){var r=i[parseInt(e,10)];return o.toString(r,s?s.substring(1):"",n)}):o.toString(i[0],t,n)}}),Object.defineProperties&&Object.defineProperties(Ci.fn,{intl:{get:function(){return this._intlService||Ii.implementation},set:function(t){this._intlService=t}}}),Pi=It.extend({init:function(t,i){void 0===i&&(i={}),this._intlService=i.intlService,this.sender=i.sender||t,this.format=new Ci(i.intlService),this.chart=t,this.rtl=!!i.rtl},notify:function(t,i){this.chart&&this.chart.trigger(t,i)},isPannable:function(t){var i=((this.chart||{}).options||{}).pannable;return i&&i.lock!==t}}),Object.defineProperties&&Object.defineProperties(Pi.fn,{intl:{get:function(){return this._intlService||Ii.implementation},set:function(t){this._intlService=t,this.format.intl=t}}}),_i=It.extend({}),_i.register=function(t){Oi=t},_i.create=function(t,i){if(Oi)return Oi.create(t,i)},Di={compile:function(t){return t}},zi=It.extend({}),zi.register=function(t){Di=t},zi.compile=function(t){return Di.compile(t)},Ei={ChartService:Pi,DomEventsBuilder:_i,FormatService:Ci,IntlService:Ii,TemplateService:zi},Vi=function(){this._map={}},Vi.prototype.get=function(t){return this._map[this._key(t)]},Vi.prototype.set=function(t,i){this._map[this._key(t)]=i},Vi.prototype._key=function(t){return t instanceof Date?t.getTime():t},Gi="trigger",Fi=It.extend({init:function(t,i){this.observer=t,this.handlerMap=zt({},this.handlerMap,i)},trigger:function(t,i){var n,e=this,o=e.observer,s=e.handlerMap;return s[t]?n=this.callObserver(s[t],i):o[Gi]&&(n=this.callObserver(Gi,t,i)),n},callObserver:function(t){for(var i=[],n=arguments.length-1;n-- >0;)i[n]=arguments[n+1];return this.observer[t].apply(this.observer,i)},requiresHandlers:function(t){var i,n=this;if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(i=0;i<t.length;i++)if(n.handlerMap[t[i]])return!0}}),Ni=kendo.drawing.util,Hi=Ni.append,Yi=Ni.bindEvents,Xi=Ni.defined,qi=Ni.deg,Ki=Ni.elementOffset,Wi=Ni.elementSize,Ji=Ni.eventElement,Qi=Ni.eventCoordinates,Zi=Ni.last,$i=Ni.limitValue,tn=Ni.objectKey,nn=Ni.rad,en=Ni.round,on=Ni.unbindEvents,sn=Ni.valueOrDefault,rn=It.extend({}),rn.fetchFonts=function(t,i,n){void 0===n&&(n={depth:0});var e=5;!t||n.depth>e||!document.fonts||Object.keys(t).forEach(function(e){var o=t[e];"dataSource"!==e&&"$"!==e[0]&&o&&("font"===e?i.push(o):"object"==typeof o&&(n.depth++,rn.fetchFonts(o,i,n),n.depth--))})},rn.loadFonts=function(t,i){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(t){return document.fonts.load(t)})}catch(e){kendo.logToConsole(e)}Promise.all(n).then(i,i)}else i()},rn.preloadFonts=function(t,i){var n=[];rn.fetchFonts(t,n),rn.loadFonts(n,i)},an=Bt.Matrix,ln=/matrix\((.*)\)/,hn={},un=It.extend({init:function(t){var i,n=this;for(this._index={},this._values=t?t.slice(0):[],i=0;i<this._values.length;i++)n._index[n._values[i]]=i},values:function(){return this._values.filter(function(t){return t!==hn})},has:function(t){return void 0!==this._index[t]},add:function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},"delete":function(t){var i=this._index[t];void 0!==i&&(this._values[i]=hn,delete this._index[t])},clear:function(){this._index={},this._values=[]}}),Object.defineProperties&&Object.defineProperties(un.fn,{size:{get:function(){return this._values.length}}}),cn=It.extend({init:function(t){this._set=new Set(t)},values:function(){return Array.from(this._set)},has:function(t){return this._set.has(t)},add:function(t){this._set.add(t)},"delete":function(t){this._set["delete"](t)},clear:function(){this._set.clear()}}),Object.defineProperties&&Object.defineProperties(cn.fn,{size:{get:function(){return this._set.size}}}),fn=function(){var t,i=!1;return"function"==typeof Set&&(t=new Set([1]),i=t.has(1)),i},pn=It.extend({init:function(t,i){this.x=t||0,this.y=i||0},clone:function(){return new pn(this.x,this.y)},equals:function(t){return t&&this.x===t.x&&this.y===t.y},rotate:function(t,i){var n=nn(i),e=Math.cos(n),o=Math.sin(n),s=t.x,r=t.y,a=this,l=a.x,h=a.y;return this.x=en(s+(l-s)*e+(h-r)*o,qt),this.y=en(r+(h-r)*e-(l-s)*o,qt),this},multiply:function(t){return this.x*=t,this.y*=t,this},distanceTo:function(t){var i=this.x-t.x,n=this.y-t.y;return Math.sqrt(i*i+n*n)}}),pn.onCircle=function(t,i,n){var e=nn(i);return new pn(t.x-n*Math.cos(e),t.y-n*Math.sin(e))},dn=It.extend({init:function(t,i,n,e){this.x1=t||0,this.y1=i||0,this.x2=n||0,this.y2=e||0},equals:function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},width:function(){return this.x2-this.x1},height:function(){return this.y2-this.y1},translate:function(t,i){return this.x1+=t,this.x2+=t,this.y1+=i,this.y2+=i,this},move:function(t,i){var n=this.height(),e=this.width();return Xi(t)&&(this.x1=t,this.x2=this.x1+e),Xi(i)&&(this.y1=i,this.y2=this.y1+n),this},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},wrapPoint:function(t){var n=i(t),e=n?t[0]:t.x,o=n?t[1]:t.y;return this.wrap(new dn(e,o,e,o)),this},snapTo:function(t,i){return i!==Ti&&i||(this.x1=t.x1,this.x2=t.x2),i!==Si&&i||(this.y1=t.y1,this.y2=t.y2),this},alignTo:function(t,i){var n,e,o=this.height(),s=this.width(),r=i===vi||i===Ht?Si:Ti,a=r===Si?o:s;return i===Yt?(n=t.center(),e=this.center(),this.x1+=n.x-e.x,this.y1+=n.y-e.y):this[r+1]=i===vi||i===si?t[r+1]-a:t[r+2],this.x2=this.x1+s,this.y2=this.y1+o,this},shrink:function(t,i){return this.x2-=t,this.y2-=i,this},expand:function(t,i){return this.shrink(-t,-i),this},pad:function(t){var i=p(t);return this.x1-=i.left,this.x2+=i.right,this.y1-=i.top,this.y2+=i.bottom,this},unpad:function(t){var i=p(t);return i.left=-i.left,i.top=-i.top,i.right=-i.right,i.bottom=-i.bottom,this.pad(i)},clone:function(){return new dn(this.x1,this.y1,this.x2,this.y2)},center:function(){return new pn(this.x1+this.width()/2,this.y1+this.height()/2)},containsPoint:function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},points:function(){return[new pn(this.x1,this.y1),new pn(this.x2,this.y1),new pn(this.x2,this.y2),new pn(this.x1,this.y2)]},getHash:function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},overlaps:function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},rotate:function(t){var i=this.width(),n=this.height(),e=this.center(),o=e.x,s=e.y,r=A(0,0,o,s,t),a=A(i,0,o,s,t),l=A(i,n,o,s,t),h=A(0,n,o,s,t);return i=Math.max(r.x,a.x,l.x,h.x)-Math.min(r.x,a.x,l.x,h.x),n=Math.max(r.y,a.y,l.y,h.y)-Math.min(r.y,a.y,l.y,h.y),this.x2=this.x1+i,this.y2=this.y1+n,this},toRect:function(){return new Ct([this.x1,this.y1],[this.width(),this.height()])},hasSize:function(){return 0!==this.width()&&0!==this.height()},align:function(t,i,n){var e=i+1,o=i+2,s=i===Ti?Mi:ni,r=this[s]();x(n,[si,vi])?(this[e]=t[e],this[o]=this[e]+r):x(n,[di,Ht])?(this[o]=t[o],this[e]=this[o]-r):n===Yt&&(this[e]=t[e]+(t[s]()-r)/2,this[o]=this[e]+r)}}),gn=It.extend({init:function(t,i,n,e,o){this.center=t,this.innerRadius=i,this.radius=n,this.startAngle=e,this.angle=o},clone:function(){return new gn(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},middle:function(){return this.startAngle+this.angle/2},setRadius:function(t,i){return i?this.innerRadius=t:this.radius=t,this},point:function(t,i){var n=nn(t),e=Math.cos(n),o=Math.sin(n),s=i?this.innerRadius:this.radius,r=en(this.center.x-e*s,qt),a=en(this.center.y-o*s,qt);return new pn(r,a)},adjacentBox:function(t,i,n){var e=this.clone().expand(t),o=e.middle(),s=e.point(o),r=i/2,a=n/2,l=Math.sin(nn(o)),h=Math.cos(nn(o)),u=s.x-r,c=s.y-a;return Math.abs(l)<.9&&(u+=r*-h/Math.abs(h)),Math.abs(h)<.9&&(c+=a*-l/Math.abs(l)),new dn(u,c,u+i,c+n)},containsPoint:function(t){var i=this.center,n=this.innerRadius,e=this.radius,o=this.startAngle,r=this.startAngle+this.angle,a=t.x-i.x,l=t.y-i.y,h=new pn(a,l),u=this.point(o),c=new pn(u.x-i.x,u.y-i.y),f=this.point(r),p=new pn(f.x-i.x,f.y-i.y),d=en(a*a+l*l,qt);return(c.equals(h)||s(c,h))&&!s(p,h)&&d>=n*n&&d<=e*e},getBBox:function(){var t,i,n,e=this,o=new dn(ri,ri,ai,ai),s=en(this.startAngle%360),r=en((s+this.angle)%360),a=this.innerRadius,l=[0,90,180,270,s,r].sort(I),h=l.indexOf(s),u=l.indexOf(r);for(t=s===r?l:h<u?l.slice(h,u+1):[].concat(l.slice(0,u+1),l.slice(h,l.length)),i=0;i<t.length;i++)n=e.point(t[i]),o.wrapPoint(n),o.wrapPoint(n,a);return a||o.wrapPoint(this.center),o},expand:function(t){return this.radius+=t,this}}),mn=gn.extend({init:function(t,i,n,e){gn.fn.init.call(this,t,0,i,n,e)},expand:function(t){return gn.fn.expand.call(this,t)},clone:function(){return new mn(this.center,this.radius,this.startAngle,this.angle)},setRadius:function(t){return this.radius=t,this}}),xn=.001,vn=It.extend({createRing:function(t,i){var n,e,o,s,r,a,l=t.startAngle+180,h=t.angle+l;return t.angle>0&&l===h&&(h+=xn),n=new Bt.Point(t.center.x,t.center.y),e=Math.max(t.radius,0),o=Math.max(t.innerRadius,0),s=new Bt.Arc(n,{startAngle:l,endAngle:h,radiusX:e,radiusY:e}),r=jt.fromArc(s,i).close(),o?(s.radiusX=s.radiusY=o,a=s.pointAt(h),r.lineTo(a.x,a.y),r.arc(h,l,o,o,!0)):r.lineTo(n.x,n.y),r}}),vn.current=new vn,bn=It.extend({init:function(t){this.children=[],this.options=zt({},this.options,this.initUserOptions(t))},initUserOptions:function(t){return t},reflow:function(t){var i,n,e,o=this.children;for(n=0;n<o.length;n++)e=o[n],e.reflow(t),i=i?i.wrap(e.box):e.box.clone();this.box=i||t},destroy:function(){var t,i=this.children;for(this.animation&&this.animation.destroy(),t=0;t<i.length;t++)i[t].destroy()},getRoot:function(){var t=this.parent;return t?t.getRoot():null},getSender:function(){var t=this.getService();if(t)return t.sender},getService:function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},translateChildren:function(t,i){var n,e=this.children,o=e.length;for(n=0;n<o;n++)e[n].box.translate(t,i)},append:function(){var t,i,n=arguments,e=this;for(t=0;t<arguments.length;t++)i=n[t],e.children.push(i),i.parent=e},renderVisual:function(){this.options.visible!==!1&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},addVisual:function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},renderChildren:function(){var t,i=this.children,n=i.length;for(t=0;t<n;t++)i[t].renderVisual()},createVisual:function(){this.visual=new At({zIndex:this.options.zIndex,visible:sn(this.options.visible,!0)})},createAnimation:function(){this.visual&&this.options.animation&&(this.animation=Lt.Animation.create(this.visual,this.options.animation))},appendVisual:function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):Xi(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},clipRoot:function(){return this.parent?this.parent.clipRoot():this},stackRoot:function(){return this.parent?this.parent.stackRoot():this},stackVisual:function(t){var i,n,e,o=t.options.zIndex||0,s=this.visual.children,r=s.length;for(i=0;i<r&&(n=s[i],e=sn(n.options.zIndex,0),!(e>o));i++);this.visual.insert(i,t)},traverse:function(t){var i,n,e=this.children,o=e.length;for(i=0;i<o;i++)n=e[i],t(n),n.traverse&&n.traverse(t)},closest:function(t){for(var i=this,n=!1;i&&!n;)n=t(i),n||(i=i.parent);if(n)return i},renderComplete:function(){},hasHighlight:function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&t.visible===!1)},toggleHighlight:function(i,n){var e,o=this,s=(this.options||{}).highlight||{},r=s.visual,a=this._highlight;if(!a){if(e={fill:{color:wi,opacity:n||.2},stroke:{color:wi,width:1,opacity:n||.2}},r){if(a=this._highlight=r(t.extend(this.highlightVisualArgs(),{createVisual:function(){return o.createHighlight(e)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total})),!a)return}else a=this._highlight=this.createHighlight(e);Xi(a.options.zIndex)||(a.options.zIndex=sn(s.zIndex,this.options.zIndex)),this.appendVisual(a)}a.visible(i)},createGradientOverlay:function(i,n,e){var o=new jt(t.extend({stroke:{color:"none"},fill:this.createGradient(e),closed:i.options.closed},n));return o.segments.elements(i.segments.elements()),o},createGradient:function(t){if(this.parent)return this.parent.createGradient(t)},supportsPointInactiveOpacity:function(){return!0}}),bn.prototype.options={},yn=bn.extend({init:function(t){bn.fn.init.call(this,t),this.options.margin=p(this.options.margin),this.options.padding=p(this.options.padding)},reflow:function(t){var i,n,e,o,s=this,r=this.options,a=r.width,l=r.height,h=r.shrinkToFit,u=a&&l,c=r.margin,f=r.padding,p=r.border.width,d=function(){s.align(t,Ti,r.align),s.align(t,Si,r.vAlign),s.paddingBox=i.clone().unpad(c).unpad(p)},g=t.clone();for(u&&(g.x2=g.x1+a,g.y2=g.y1+l),h&&g.unpad(c).unpad(p).unpad(f),bn.fn.reflow.call(this,g),i=u?this.box=new dn(0,0,a,l):this.box,h&&u?(d(),g=this.contentBox=this.paddingBox.clone().unpad(f)):(g=this.contentBox=i.clone(),i.pad(f).pad(p).pad(c),d()),this.translateChildren(i.x1-g.x1+c.left+p+f.left,i.y1-g.y1+c.top+p+f.top),n=this.children,e=0;e<n.length;e++)o=n[e],o.reflow(o.box)},align:function(t,i,n){this.box.align(t,i,n)},hasBox:function(){var t=this.options;return t.border.width||t.background},createVisual:function(){bn.fn.createVisual.call(this);var t=this.options;t.visible&&this.hasBox()&&this.visual.append(jt.fromRect(this.paddingBox.toRect(),this.visualStyle()))},visualStyle:function(){var t=this.options,i=t.border||{};return{stroke:{width:i.width,color:i.color,opacity:sn(i.opacity,t.opacity),dashType:i.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}}}),w(yn,{align:si,vAlign:vi,margin:{},padding:{},border:{color:Nt,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0}),wn=yn.extend({init:function(t,i){yn.fn.init.call(this,t),this.pointData=i},getElement:function(){var t,i,n,e,o=this,s=o.options,r=o.paddingBox,a=s.type,l=s.rotation,h=r.center(),u=r.width()/2,c=r.height()/2;return s.visible&&this.hasBox()?(t=this.visualStyle(),a===Xt?i=new Lt.Circle(new Pt([en(r.x1+u,qt),en(r.y1+c,qt)],Math.min(u,c)),t):a===bi?i=jt.fromPoints([[r.x1+u,r.y1],[r.x1,r.y2],[r.x2,r.y2]],t).close():a===Kt?(i=new Lt.MultiPath(t),i.moveTo(r.x1,r.y1).lineTo(r.x2,r.y2),i.moveTo(r.x1,r.y2).lineTo(r.x2,r.y1)):(n=r.toRect(),a===gi&&(e=sn(s.borderRadius,n.width()/5),n.setCornerRadius(e)),i=jt.fromRect(n,t)),l&&i.transform(Ot().rotate(-l,[h.x,h.y])),i.options.zIndex=s.zIndex,i):null},createElement:function(){var t,i=this,n=this.options.visual,e=this.pointData||{};return t=n?n({value:e.value,dataItem:e.dataItem,sender:this.getSender(),series:e.series,category:e.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return i.getElement()}}):this.getElement()},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}},createVisual:function(){this.visual=this.createElement()}}),w(wn,{type:Xt,align:Yt,vAlign:Yt}),Mn="linear",Tn="radial",Sn={glass:{type:Mn,rotation:0,stops:[{offset:0,color:wi,opacity:0},{offset:.25,color:wi,opacity:.3},{offset:1,color:wi,opacity:0}]},sharpBevel:{type:Tn,stops:[{offset:0,color:wi,opacity:.55},{offset:.65,color:wi,opacity:0},{offset:.95,color:wi,opacity:.25}]},roundedBevel:{type:Tn,stops:[{offset:.33,color:wi,opacity:.06},{offset:.83,color:wi,opacity:.2},{offset:.95,color:wi,opacity:0}]},roundedGlass:{type:Tn,supportVML:!1,stops:[{offset:0,color:wi,opacity:0},{offset:.5,color:wi,opacity:.3},{offset:.99,color:wi,opacity:0}]},sharpGlass:{type:Tn,supportVML:!1,stops:[{offset:0,color:wi,opacity:.2},{offset:.15,color:wi,opacity:.15},{offset:.17,color:wi,opacity:.35},{offset:.85,color:wi,opacity:.05},{offset:.87,color:wi,opacity:.15},{offset:.99,color:wi,opacity:0}]},bubbleShadow:{type:Tn,center:[.5,.5],radius:.5}},Rn=bn.extend({init:function(t){bn.fn.init.call(this,t);var i=this.options;i.width=parseInt(i.width,10),i.height=parseInt(i.height,10),this.gradients={}},reflow:function(){var t,i=this,n=i.options,e=i.children,o=new dn(0,0,n.width,n.height);for(this.box=o.unpad(n.margin),t=0;t<e.length;t++)e[t].reflow(o),o=B(o,e[t].box)||new dn},createVisual:function(){this.visual=new At,this.createBackground()},createBackground:function(){var t=this.options,i=t.border||{},n=this.box.clone().pad(t.margin).unpad(i.width),e=jt.fromRect(n.toRect(),{stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(e)},getRoot:function(){return this},createGradient:function(i){var n,e,o=this.gradients,s=tn(i),r=Sn[i.gradient];return o[s]?n=o[s]:(e=t.extend({},r,i),"linear"===r.type?n=new Lt.LinearGradient(e):(i.innerRadius&&(e.stops=C(e)),n=new Lt.RadialGradient(e),n.supportVML=r.supportVML!==!1),o[s]=n),n},cleanGradients:function(){var t,i=this.gradients;for(t in i)i[t]._observers=[]},size:function(){var t=this.options;return new dn(0,0,t.width,t.height)}}),w(Rn,{width:$t,height:Qt,background:wi,border:{color:Nt,width:0},margin:p(5),zIndex:-2}),kn=bn.extend({init:function(t){bn.fn.init.call(this,t),this._initDirection()},_initDirection:function(){var t=this.options;t.vertical?(this.groupAxis=Ti,this.elementAxis=Si,this.groupSizeField=Mi,this.elementSizeField=ni,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=Si,this.elementAxis=Ti,this.groupSizeField=ni,this.elementSizeField=Mi,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},reflow:function(t){this.box=t.clone(),this.reflowChildren()},reflowChildren:function(){var t,i,n,e,o,s,r,a,l,h,u,c=this,f=this,p=f.box,d=f.elementAxis,g=f.groupAxis,m=f.elementSizeField,x=f.groupSizeField,v=this.groupOptions(),b=v.groups,y=v.groupsSize,w=v.maxGroupElementsSize,M=b.length,T=p[g+1]+this.alignStart(y,p[x]());if(M){for(t=T,i=0;i<M;i++){for(n=b[i],e=n.groupElements,o=p[d+1],s=e.length,r=0;r<s;r++)a=e[r],l=c.elementSize(a),h=t+c.alignStart(l[x],n.groupSize),u=new dn,u[g+1]=h,u[g+2]=h+l[x],u[d+1]=o,u[d+2]=o+l[m],a.reflow(u),o+=l[m]+c.elementSpacing;t+=n.groupSize+c.groupSpacing}p[g+1]=T,p[g+2]=T+y,p[d+2]=p[d+1]+w}},alignStart:function(t,i){var n=0,e=this.options.align;return e===di||e===Ht?n=i-t:e===Yt&&(n=(i-t)/2),n},groupOptions:function(){var t,i,n,e=this,o=this,s=o.box,r=o.children,a=o.elementSizeField,l=o.groupSizeField,h=o.elementSpacing,u=o.groupSpacing,c=en(s[a]()),f=r.length,p=[],d=0,g=0,m=0,x=0,v=[];for(t=0;t<f;t++)i=r[t],i.box||i.reflow(s),n=e.elementSize(i),e.options.wrap&&en(g+h+n[a])>c&&(p.push({groupElements:v,groupSize:d,groupElementsSize:g}),x=Math.max(x,g),m+=u+d,d=0,g=0,v=[]),d=Math.max(d,n[l]),g>0&&(g+=h),g+=n[a],v.push(i);return p.push({groupElements:v,groupSize:d,groupElementsSize:g}),x=Math.max(x,g),m+=d,{groups:p,groupsSize:m,maxGroupElementsSize:x}},
  elementSize:function(t){return{width:t.box.width(),height:t.box.height()}},createVisual:function(){}}),w(kn,{vertical:!0,wrap:!0,vSpacing:0,spacing:0}),Ln=Lt.Text,Un=bn.extend({init:function(t,i){bn.fn.init.call(this,i),this.content=t,this.reflow(new dn)},reflow:function(t){var i=this.options,n=i.size=Ut.measureText(this.content,{font:i.font});this.baseline=n.baseline,this.box=new dn(t.x1,t.y1,t.x1+n.width,t.y1+n.height)},createVisual:function(){var t=this.options,i=t.font,n=t.color,e=t.opacity,o=t.cursor;this.visual=new Ln(this.content,this.box.toRect().topLeft(),{font:i,fill:{color:n,opacity:e},cursor:o})}}),w(Un,{font:Jt,color:Nt}),jn=/\n/m,An=yn.extend({init:function(t,i,n){yn.fn.init.call(this,i),this.content=t,this.data=n,this._initContainer(),this.options._autoReflow!==!1&&this.reflow(new dn)},_initContainer:function(){var t,i,n=this.options,e=(this.content+"").split(jn),o=new kn({vertical:!0,align:n.align,wrap:!1}),s=zt({},n,{opacity:1,animation:null});for(this.container=o,this.append(o),t=0;t<e.length;t++)i=new Un(e[t].trim(),s),o.append(i)},reflow:function(t){var i,n,e,o,s=this.options,r=s.visual;this.container.options.align=s.align,r&&!this._boxReflow?(i=t,i.hasSize()||(this._boxReflow=!0,this.reflow(i),this._boxReflow=!1,i=this.box),n=this.visual=r(this.visualContext(i)),n&&(i=P(n.clippedBBox()||new Ct),n.options.zIndex=s.zIndex),this.box=this.contentBox=this.paddingBox=i):(yn.fn.reflow.call(this,t),s.rotation&&(e=p(s.margin),o=this.box.unpad(e),this.targetBox=t,this.normalBox=o.clone(),o=this.rotate(),o.translate(e.left-e.right,e.top-e.bottom),this.rotatedBox=o.clone(),o.pad(e)))},createVisual:function(){var t,i=this.options;this.visual=new At({transform:this.rotationTransform(),zIndex:i.zIndex,noclip:i.noclip}),this.hasBox()&&(t=jt.fromRect(this.paddingBox.toRect(),this.visualStyle()),this.visual.append(t))},renderVisual:function(){if(this.options.visible)if(this.options.visual){var t=this.visual;t&&!Xi(t.options.noclip)&&(t.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else yn.fn.renderVisual.call(this)},visualContext:function(i){var n=this,e={text:this.content,rect:i.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return n._boxReflow=!0,n.reflow(i),n._boxReflow=!1,n.getDefaultVisual()}};return this.data&&t.extend(e,this.data),e},getDefaultVisual:function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},rotate:function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,Ti,t.align),this.align(this.targetBox,Si,t.vAlign),this.box},rotationTransform:function(){var t,i,n,e,o=this.options.rotation;return o?(t=this.normalBox.center(),i=t.x,n=t.y,e=this.rotatedBox.center(),Ot().translate(e.x-i,e.y-n).rotate(o,[i,n])):null}}),In=bn.extend({init:function(i){bn.fn.init.call(this,i),this.append(new An(this.options.text,t.extend({},this.options,{vAlign:this.options.position})))},reflow:function(t){bn.fn.reflow.call(this,t),this.box.snapTo(t,Ti)}}),In.buildTitle=function(i,n,e){var o,s=i;return"string"==typeof i&&(s={text:i}),s=t.extend({visible:!0},e,s),s&&s.visible&&s.text&&(o=new In(s),n.append(o)),o},w(In,{color:Nt,position:vi,align:Yt,margin:p(5),padding:p(5)}),Bn=An.extend({init:function(t,i,n,e,o){An.fn.init.call(this,i,o),this.text=i,this.value=t,this.index=n,this.dataItem=e,this.reflow(new dn)},visualContext:function(t){var i=An.fn.visualContext.call(this,t);return i.value=this.value,i.dataItem=this.dataItem,i.format=this.options.format,i.culture=this.options.culture,i},click:function(t,i){t.trigger(Ft,{element:Ji(i),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},rotate:function(){var t,i;return this.options.alignRotation!==Yt?(t=this.normalBox.toRect(),i=this.rotationTransform(),this.box=P(t.bbox(i.matrix()))):An.fn.rotate.call(this),this.box},rotationTransform:function(){var t,i,n,e,o,s,r,a,l,h,u,c,f,p,d,g,m,x,v=this.options,b=v.rotation;return b?v.alignRotation===Yt?An.fn.rotationTransform.call(this):(t=Ot().rotate(b).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),e=v.rotationOrigin||vi,o=e===vi||e===Ht?Ti:Si,s=e===vi||e===Ht?Si:Ti,r=e===vi||e===si?n.origin:n.bottomRight(),a=i.topLeft().transformCopy(t),l=i.topRight().transformCopy(t),h=i.bottomRight().transformCopy(t),u=i.bottomLeft().transformCopy(t),c=Ct.fromPoints(a,l,h,u),f={},f[s]=n.origin[s]-c.origin[s],p=Math.abs(a[s]+f[s]-r[s]),d=Math.abs(l[s]+f[s]-r[s]),en(p,Zt)===en(d,Zt)?(g=a,m=l):d<p?(g=l,m=h):(g=a,m=u),x=g[o]+(m[o]-g[o])/2,f[o]=n.center()[o]-x,Ot().translate(f.x,f.y).rotate(b)):null}}),w(Bn,{_autoReflow:!1}),Cn=7,Pn="#fff",On=yn.extend({init:function(t,i,n){yn.fn.init.call(this,i),this.fields=t,this.chartService=n,this.render()},hide:function(){this.options.visible=!1},show:function(){this.options.visible=!0},render:function(){var t,i,n,e,o,s,r,a,l,h,u=this,c=this.options;c.visible&&(t=c.label,i=c.icon,n=new dn,e=function(){return u},o=i.size,s=this.fields.text,Xi(t)&&t.visible&&(l=d(t),l?s=l(this.fields):t.format&&(s=this.chartService.format.auto(t.format,s)),t.color||(t.color=t.position===oi?Pn:i.background),this.label=new An(s,zt({},t)),this.label.aliasFor=e,t.position!==oi||Xi(o)||(i.type===Xt?o=Math.max(this.label.box.width(),this.label.box.height()):(r=this.label.box.width(),a=this.label.box.height()),n.wrap(this.label.box))),i.width=r||o||Cn,i.height=a||o||Cn,h=new wn(zt({},i)),h.aliasFor=e,this.marker=h,this.append(h),this.label&&this.append(this.label),h.reflow(new dn),this.wrapperBox=n.wrap(h.box))},reflow:function(t){var i,n,e,o=this,s=o.options,r=o.label,a=o.marker,l=o.wrapperBox,h=t.center(),u=s.line.length,c=s.position;s.visible&&(x(c,[si,di])?c===si?(e=l.alignTo(t,c).translate(-u,t.center().y-l.center().y),s.line.visible&&(i=[t.x1,h.y],this.linePoints=[i,[e.x2,h.y]],n=e.clone().wrapPoint(i))):(e=l.alignTo(t,c).translate(u,t.center().y-l.center().y),s.line.visible&&(i=[t.x2,h.y],this.linePoints=[i,[e.x1,h.y]],n=e.clone().wrapPoint(i))):c===Ht?(e=l.alignTo(t,c).translate(t.center().x-l.center().x,u),s.line.visible&&(i=[h.x,t.y2],this.linePoints=[i,[h.x,e.y1]],n=e.clone().wrapPoint(i))):(e=l.alignTo(t,c).translate(t.center().x-l.center().x,-u),s.line.visible&&(i=[h.x,t.y1],this.linePoints=[i,[h.x,e.y2]],n=e.clone().wrapPoint(i))),a&&a.reflow(e),r&&(r.reflow(e),a&&(s.label.position===pi&&r.box.alignTo(a.box,c),r.reflow(r.box))),this.contentBox=e,this.targetBox=t,this.box=n||e)},createVisual:function(){yn.fn.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},renderVisual:function(){var i=this,n=this.options,e=n.visual;n.visible&&e?(this.visual=e(t.extend(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:n.background,border:n.background,icon:n.icon,label:n.label,line:n.line,position:n.position,visible:n.visible},createVisual:function(){i.createVisual(),i.renderChildren();var t=i.visual;return delete i.visual,t}})),this.addVisual()):yn.fn.renderVisual.call(this)},createLine:function(){var t,i=this.options.line;this.linePoints&&(t=jt.fromPoints(this.linePoints,{stroke:{color:i.color,width:i.width,dashType:i.dashType}}),o(t),this.visual.append(t))},click:function(t,i){var n=this.eventArgs(i);t.trigger(hi,n)||i.preventDefault()},over:function(t,i){var n=this.eventArgs(i);t.trigger(ui,n)||i.preventDefault()},out:function(t,i){var n=this.eventArgs(i);t.trigger(ci,n)},eventArgs:function(i){var n=this.options;return t.extend(this.fields,{element:Ji(i),text:Xi(n.label)?n.label.text:"",visual:this.visual})}}),w(On,{icon:{visible:!0,type:Xt},label:{position:oi,visible:!0,align:Yt,vAlign:Yt},line:{visible:!0},visible:!0,position:vi,zIndex:2}),_n=bn.extend({init:function(t,i){void 0===i&&(i=new Pi),bn.fn.init.call(this,t),this.chartService=i,this.options.visible||(this.options=zt({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=zt({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==li},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=zt({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.majorTickType!==li},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()},initFields:function(){},labelsRange:function(){return{min:this.options.labels.skip,max:this.labelsCount()}},normalizeLabelRotation:function(t){var i=t.rotation;h(i)&&(t.alignRotation=i.align,t.rotation=i.angle)},createLabels:function(){var t,i,n,e,o=this,s=this.options,r=s.vertical?di:Yt,a=zt({},s.labels,{align:r,zIndex:s.zIndex}),l=Math.max(1,a.step);if(this.clearLabels(),a.visible)for(this.normalizeLabelRotation(a),"auto"===a.rotation&&(a.rotation=0,s.autoRotateLabels=!0),t=this.labelsRange(),i=t.min;i<t.max;i+=l)n={index:i,count:t.max},e=o.createAxisLabel(i,a,n),e&&(o.append(e),o.labels.push(e))},clearLabels:function(){this.children=g(this.children,function(t){return!(t instanceof Bn)}),this.labels=[]},clearTitle:function(){var t=this;this.title&&(this.children=g(this.children,function(i){return i!==t.title}),this.title=void 0)},clear:function(){this.clearLabels(),this.clearTitle()},lineBox:function(){var t=this,i=t.options,n=t.box,e=i.vertical,o=i.labels.mirror,s=o?n.x1:n.x2,r=o?n.y2:n.y1,a=i.line.width||0;return e?new dn(s,n.y1,s,n.y2-a):new dn(n.x1,r,n.x2-a,r)},createTitle:function(){var t,i=this.options,n=zt({rotation:i.vertical?-90:0,text:"",zIndex:1,visualSize:!0},i.title);n.visible&&n.text&&(t=new An(n.text,n),this.append(t),this.title=t)},createNotes:function(){var t,i,n,e=this,o=this.options,s=o.notes,r=s.data||[];for(this.notes=[],t=0;t<r.length;t++)i=zt({},s,r[t]),i.value=e.parseNoteValue(i.value),n=new On({value:i.value,text:i.label.text,dataItem:i},i,e.chartService),n.options.visible&&(Xi(n.options.position)?o.vertical&&!x(n.options.position,[si,di])?n.options.position=o.reverse?si:di:o.vertical||x(n.options.position,[vi,Ht])||(n.options.position=o.reverse?Ht:vi):n.options.position=o.vertical?o.reverse?si:di:o.reverse?Ht:vi,e.append(n),e.notes.push(n))},parseNoteValue:function(t){return t},renderVisual:function(){bn.fn.renderVisual.call(this),this.createPlotBands()},createVisual:function(){bn.fn.createVisual.call(this),this.createBackground(),this.createLine()},gridLinesVisual:function(){var t=this._gridLines;return t||(t=this._gridLines=new At({zIndex:-2}),this.appendVisual(this._gridLines)),t},createTicks:function(t){function i(i,n,s){var a,l=i.length,h=Math.max(1,n.step);if(n.visible)for(a=n.skip;a<l;a+=h)Xi(s)&&a%s===0||(r.tickX=o?e.x2:e.x2-n.size,r.tickY=o?e.y1-n.size:e.y1,r.position=i[a],t.append(O(r,n)))}var n=this.options,e=this.lineBox(),o=n.labels.mirror,s=n.majorTicks.visible?n.majorUnit:0,r={vertical:n.vertical};i(this.getMajorTickPositions(),n.majorTicks),i(this.getMinorTickPositions(),n.minorTicks,s/n.minorUnit)},createLine:function(){var t,i,n=this.options,e=n.line,s=this.lineBox();e.width>0&&e.visible&&(t=new jt({stroke:{width:e.width,color:e.color,dashType:e.dashType}}),t.moveTo(s.x1,s.y1).lineTo(s.x2,s.y2),n._alignLines&&o(t),i=this._lineGroup=new At,i.append(t),this.visual.append(i),this.createTicks(i))},getActualTickSize:function(){var t=this.options,i=0;return t.majorTicks.visible&&t.minorTicks.visible?i=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?i=t.majorTicks.size:t.minorTicks.visible&&(i=t.minorTicks.size),i},createBackground:function(){var t=this,i=t.options,n=t.box,e=i.background;e&&(this._backgroundPath=jt.fromRect(n.toRect(),{fill:{color:e},stroke:null}),this.visual.append(this._backgroundPath))},createPlotBands:function(){var t,i,n,e,o,s,r,a,l,h,u=this,c=this.options,f=c.plotBands||[],p=c.vertical,d=this.plotArea;if(0!==f.length){for(t=this._plotbandGroup=new At({zIndex:-1}),i=g(this.pane.axes,function(t){return t.options.vertical!==u.options.vertical})[0],n=0;n<f.length;n++)e=f[n],o=void 0,s=void 0,r=e.label,a=void 0,p?(o=(i||d.axisX).lineBox(),s=u.getSlot(e.from,e.to,!0)):(o=u.getSlot(e.from,e.to,!0),s=(i||d.axisY).lineBox()),r&&(r.vAlign=r.position||si,a=u.createPlotBandLabel(r,e,new dn(o.x1,s.y1,o.x2,s.y2))),0!==o.width()&&0!==s.height()&&(l=new Ct([o.x1,s.y1],[o.width(),s.height()]),h=jt.fromRect(l,{fill:{color:e.color,opacity:e.opacity},stroke:null}),t.append(h),a&&t.append(a));this.appendVisual(t)}},createPlotBandLabel:function(t,i,n){var e,o,s;return t.visible===!1?null:(e=t.text,Xi(t)&&t.visible&&(s=d(t),s?e=s({text:e,item:i}):t.format&&(e=this.chartService.format.auto(t.format,e)),t.color||(t.color=this.options.labels.color)),o=new An(e,t),o.reflow(n),o.renderVisual(),o.visual)},createGridLines:function(t){function i(t,i,n){var e,o,s=t.length,r=Math.max(1,i.step);if(i.visible)for(e=i.skip;e<s;e+=r)o=en(t[e]),x(o,f)||e%n===0||a&&u===o||(c.position=o,p.append(_(c,i)),f.push(o))}var n=this.options,e=n.minorGridLines,o=n.majorGridLines,s=n.minorUnit,r=n.vertical,a=t.options.line.visible,l=o.visible?n.majorUnit:0,h=t.lineBox(),u=h[r?"y1":"x1"],c={lineStart:h[r?"x1":"y1"],lineEnd:h[r?"x2":"y2"],vertical:r},f=[],p=this.gridLinesVisual();return i(this.getMajorTickPositions(),o),i(this.getMinorTickPositions(),e,l/s),p.children},reflow:function(t){var i,n,e=this,o=e.options,s=e.labels,r=e.title,a=o.vertical,l=s.length,h=a?Mi:ni,u=r?r.box[h]():0,c=this.getActualTickSize()+o.margin+u,f=(this.getRoot()||{}).box||t,p=f[h](),d=0;for(i=0;i<l;i++)n=s[i].box[h](),n+c<=p&&(d=Math.max(d,n));this.box=a?new dn(t.x1,t.y1,t.x1+d+c,t.y2):new dn(t.x1,t.y1,t.x2,t.y1+d+c),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},getLabelsTickPositions:function(){return this.getMajorTickPositions()},labelTickIndex:function(t){return t.index},arrangeLabels:function(){var t,i,n,e,o,s,r,a,l,h=this,u=this,c=u.options,f=u.labels,p=this.labelsBetweenTicks(),d=c.vertical,g=c.labels.mirror,m=this.getLabelsTickPositions();for(t=0;t<f.length;t++)i=f[t],n=h.labelTickIndex(i),e=d?i.box.height():i.box.width(),o=m[n],s=m[n+1],r=void 0,a=void 0,d?(p?(l=o+(s-o)/2,r=l-e/2):r=o-e/2,a=r):p?(r=o,a=s):(r=o-e/2,a=r+e),h.positionLabel(i,g,r,a)},positionLabel:function(t,i,n,e){var o,s,r,a,l,h,u;void 0===e&&(e=n),o=this.options,s=o.vertical,r=this.lineBox(),a=this.getActualTickSize()+o.margin,s?(h=r.x2,i?(h+=a,t.options.rotationOrigin=si):(h-=a+t.box.width(),t.options.rotationOrigin=di),l=t.box.move(h,n)):(u=r.y1,i?(u-=a+t.box.height(),t.options.rotationOrigin=Ht):(u+=a,t.options.rotationOrigin=vi),l=new dn(n,u,e,u+t.box.height())),t.reflow(l)},autoRotateLabelAngle:function(t,i){return t.width()<i?0:t.height()>i?-90:-45},autoRotateLabels:function(){var t,i,n,e,o,s,r,a,l,h=this;if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(t=this.getMajorTickPositions(),i=this.labels,n=Math.min(i.length,t.length-1),e=0,o=0;o<n&&(s=Math.abs(t[o+1]-t[o]),r=i[o].box,a=h.autoRotateLabelAngle(r,s),0!==a&&(e=a),e!==-90);o++);if(0!==e){for(l=0;l<i.length;l++)i[l].options.rotation=e,i[l].reflow(new dn);return!0}},arrangeTitle:function(){var t=this,i=t.options,n=t.title,e=i.labels.mirror,o=i.vertical;n&&(o?(n.options.align=e?di:si,n.options.vAlign=n.options.position):(n.options.align=n.options.position,n.options.vAlign=e?vi:Ht),n.reflow(this.box))},arrangeNotes:function(){var t,i,n,e,o=this;for(t=0;t<this.notes.length;t++)i=o.notes[t],n=i.options.value,e=void 0,Xi(n)?(o.shouldRenderNote(n)?i.show():i.hide(),e=o.noteSlot(n)):i.hide(),i.reflow(e||o.lineBox())},noteSlot:function(t){return this.getSlot(t)},alignTo:function(t){var i=t.lineBox(),n=this.options.vertical,e=n?Si:Ti;this.box.snapTo(i,e),n?this.box.shrink(0,this.lineBox().height()-i.height()):this.box.shrink(this.lineBox().width()-i.width(),0),this.box[e+1]-=this.lineBox()[e+1]-i[e+1],this.box[e+2]-=this.lineBox()[e+2]-i[e+2]},axisLabelText:function(i,n,e){var o,s,r=this,a=d(n),l=function(){return n.format?r.chartService.format.localeAuto(n.format,[i],n.culture):i};return a?(s=t.extend({},e,{get text(){return l()},value:i,format:n.format,culture:n.culture}),o=a(s)):o=l(),o},slot:function(t,i,n){var e=this.getSlot(t,i,n);if(e)return e.toRect()},contentBox:function(){var t,i,n,e=this.box.clone(),o=this.labels;return o.length&&(t=this.options.vertical?Si:Ti,this.chartService.isPannable(t)?(i=this.maxLabelOffset(),e[t+1]-=i.start,e[t+2]+=i.end):(o[0].options.visible&&e.wrap(o[0].box),n=o[o.length-1],n.options.visible&&e.wrap(n.box))),e},maxLabelOffset:function(){var t,i,n,e,o,s=this,r=this.options,a=r.vertical,l=r.reverse,h=this.labelsBetweenTicks(),u=this.getLabelsTickPositions(),c=a?Si:Ti,f=this.labels,p=l?1:0,d=l?0:1,g=0,m=0;for(t=0;t<f.length;t++)i=f[t],n=s.labelTickIndex(i),e=void 0,o=void 0,h?(e=u[n+p],o=u[n+d]):e=o=u[n],g=Math.max(g,e-i.box[c+1]),m=Math.max(m,i.box[c+2]-o);return{start:g,end:m}},limitRange:function(t,i,n,e,o){var s,r,a,l=this.options;return t<n&&o<0&&(!Xi(l.min)||l.min<=n)||e<i&&o>0&&(!Xi(l.max)||e<=l.max)?null:i<n&&o>0||e<t&&o<0?{min:t,max:i}:(s=i-t,r=t,a=i,t<n&&o<0?(r=$i(t,n,e),a=$i(t+s,n+s,e)):i>e&&o>0&&(a=$i(i,n,e),r=$i(i-s,n,e-s)),{min:r,max:a})},valueRange:function(){return{min:this.seriesMin,max:this.seriesMax}},labelsBetweenTicks:function(){return!this.options.justified},prepareUserOptions:function(){}}),w(_n,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:Nt,visible:!0},title:{visible:!0,position:Yt},majorTicks:{align:pi,size:4,skip:0,step:1},minorTicks:{align:pi,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:pi,minorTickType:li,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:Nt,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1}),Dn="milliseconds",zn="seconds",En="minutes",Vn="hours",Gn="days",Fn="weeks",Nn="months",Hn="years",Yn=1,Xn=1e3,qn=60*Xn,Kn=60*qn,Wn=24*Kn,Jn=7*Wn,Qn=31*Wn,Zn=365*Wn,$n={years:Zn,months:Qn,weeks:Jn,days:Wn,hours:Kn,minutes:qn,seconds:Xn,milliseconds:Yn},te=.01,ie=_n.extend({initFields:function(){this._ticks={}},categoriesHash:function(){return""},clone:function(){var i=new ie(t.extend({},this.options,{categories:this.options.srcCategories}),this.chartService);return i.createLabels(),i},initUserOptions:function(t){var i,n,e=t.categories||[],o=Xi(t.min),s=Xi(t.max);return t.srcCategories=t.categories=e,(o||s)&&e.length&&(i=o?Math.floor(t.min):0,n=s?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(i,n)),t},rangeIndices:function(){var t,i=this.options,n=i.categories.length||1,e=r(i.min)?i.min%1:0;return t=r(i.max)&&i.max%1!==0&&i.max<this.totalRange().max?n-(1-i.max%1):n-(i.justified?1:0),{min:e,max:t}},totalRangeIndices:function(t){var i,n,e=this.options,o=r(e.min)?e.min:0;return i=r(e.max)?e.max:r(e.min)?o+e.categories.length:this.totalRange().max||1,t&&(n=this.totalRange(),o=$i(o,0,n.max),i=$i(i,0,n.max)),{min:o,max:i}},range:function(){var t=this.options,i=r(t.min)?t.min:0,n=r(t.max)?t.max:this.totalRange().max;return{min:i,max:n}},roundedRange:function(){return this.range()},totalRange:function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},scaleOptions:function(){var t=this.rangeIndices(),i=t.min,n=t.max,e=this.lineBox(),o=this.options.vertical?e.height():e.width(),s=o/(n-i||1);return{scale:s*(this.options.reverse?-1:1),box:e,min:i,max:n}},arrangeLabels:function(){_n.fn.arrangeLabels.call(this),this.hideOutOfRangeLabels()},hideOutOfRangeLabels:function(){var t,i,n,e,o,s=this,r=s.box,a=s.labels;a.length>0&&(t=this.options.vertical?Si:Ti,i=r[t+1],n=r[t+2],e=a[0],o=Zi(a),(e.box[t+1]>n||e.box[t+2]<i)&&(e.options.visible=!1),(o.box[t+1]>n||o.box[t+2]<i)&&(o.options.visible=!1))},getMajorTickPositions:function(){return this.getTicks().majorTicks},getMinorTickPositions:function(){return this.getTicks().minorTicks},getLabelsTickPositions:function(){return this.getTicks().labelTicks},tickIndices:function(t){for(var i=this.rangeIndices(),n=i.min,e=i.max,o=Math.ceil(e),s=Math.floor(n),r=[];s<=o;)r.push(s),s+=t;return r},getTickPositions:function(t){var i,n=this.options,e=n.vertical,o=n.reverse,s=this.scaleOptions(),r=s.scale,a=s.box,l=s.min,h=a[(e?Si:Ti)+(o?2:1)],u=this.tickIndices(t),c=[];for(i=0;i<u.length;i++)c.push(h+en(r*(u[i]-l),qt));return c},getTicks:function(){var t,i=this.options,n=this._ticks,e=this.rangeIndices(),o=this.lineBox(),s=o.getHash()+e.min+","+e.max+i.reverse+i.justified;return n._hash!==s&&(t=i.minorTicks.visible||i.minorGridLines.visible,n._hash=s,n.labelTicks=this.getTickPositions(1),n.majorTicks=this.filterOutOfRangePositions(n.labelTicks,o),n.minorTicks=t?this.filterOutOfRangePositions(this.getTickPositions(.5),o):[]),n},filterOutOfRangePositions:function(t,i){var n,e,o,s,r;if(!t.length)return t;for(n=this.options.vertical?Si:Ti,e=function(t){return i[n+1]<=t&&t<=i[n+2]},o=t.length-1,s=0;!e(t[s])&&s<=o;)s++;for(r=o;!e(t[r])&&r>=0;)r--;return t.slice(s,r+1)},getSlot:function(t,i,n){var e,o,s=this.options,r=s.reverse,a=s.justified,l=s.vertical,h=this.scaleOptions(),u=h.scale,c=h.box,f=h.min,p=l?Si:Ti,d=c[p+(r?2:1)],g=c.clone(),m=!Xi(i),x=sn(t,0),v=sn(i,x);return v=Math.max(v-1,x),v=Math.max(x,v),e=d+(x-f)*u,o=d+(v+1-f)*u,m&&a&&(o=e),n&&(e=$i(e,c[p+1],c[p+2]),o=$i(o,c[p+1],c[p+2])),g[p+1]=r?o:e,g[p+2]=r?e:o,g},limitSlot:function(t){var i=this.options.vertical,n=i?Si:Ti,e=this.lineBox(),o=t.clone();return o[n+1]=$i(t[n+1],e[n+1],e[n+2]),o[n+2]=$i(t[n+2],e[n+1],e[n+2]),o},slot:function(t,i,n){var e=Math.floor(this.options.min||0),o=t,s=i;return"string"==typeof o?o=this.categoryIndex(o):r(o)&&(o-=e),"string"==typeof s?s=this.categoryIndex(s):r(s)&&(s-=e),_n.fn.slot.call(this,o,s,n)},pointCategoryIndex:function(t){var i,n,e=this.options,o=e.reverse,s=e.justified,r=e.vertical,a=r?Si:Ti,l=this.scaleOptions(),h=l.scale,u=l.box,c=l.min,f=l.max,p=o?f:c,d=u[a+1],g=u[a+2],m=t[a];return m<d||m>g?null:(i=p+(m-d)/h,n=i%1,s?i=Math.round(i):0===n&&i>0&&i--,Math.floor(i))},getCategory:function(t){var i=this.pointCategoryIndex(t);return null===i?null:this.options.categories[i]},categoryIndex:function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},categoryAt:function(t,i){var n=this.options;return(i?n.srcCategories:n.categories)[t]},categoriesCount:function(){return(this.options.categories||[]).length},translateRange:function(t){var i=this.options,n=this.lineBox(),e=i.vertical?n.height():n.width(),o=i.categories.length,s=e/o,r=en(t/s,Zt);return{min:r,max:o+r}},zoomRange:function(t){var i=this.totalRangeIndices(),n=this.totalRange(),e=n.min,o=n.max,s=$i(i.min+t,e,o),r=$i(i.max-t,e,o);if(r-s>0)return{min:s,max:r}},scaleRange:function(t){var i=this.options.categories.length,n=t*i;return{min:-n,max:i+n}},labelsCount:function(){var t=this.labelsRange();return t.max-t.min},labelsRange:function(){var t,i=this.options,n=i.justified,e=i.labels,o=this.totalRangeIndices(!0),s=o.min,r=o.max,a=Math.floor(s);return n?(s=Math.ceil(s),r=Math.floor(r)):(s=Math.floor(s),r=Math.ceil(r)),t=s>e.skip?e.skip+e.step*Math.ceil((s-e.skip)/e.step):e.skip,{min:t-a,max:(i.categories.length?r+(n?1:0):0)-a}},createAxisLabel:function(t,i,n){var e,o=this.options,s=o.dataItems?o.dataItems[t]:null,r=sn(o.categories[t],"");return n.dataItem=s,e=this.axisLabelText(r,i,n),new Bn(r,e,t,s,i)},shouldRenderNote:function(t){var i=this.totalRangeIndices();return Math.floor(i.min)<=t&&t<=Math.ceil(i.max)},noteSlot:function(t){var i=this.options,n=t-Math.floor(i.min||0);return this.getSlot(n)},arrangeNotes:function(){_n.fn.arrangeNotes.call(this),this.hideOutOfRangeNotes()},hideOutOfRangeNotes:function(){var t,i,n,e,o,s=this,r=s.notes,a=s.box;if(r&&r.length)for(t=this.options.vertical?Si:Ti,i=a[t+1],n=a[t+2],e=0;e<r.length;e++)o=r[e],o.box&&(n<o.box[t+1]||o.box[t+2]<i)&&o.hide()},pan:function(t){var i=this.totalRangeIndices(!0),n=this.scaleOptions(),e=n.scale,o=en(t/e,Zt),s=this.totalRange(),r=i.min+o,a=i.max+o;return this.limitRange(r,a,0,s.max,o)},pointsRange:function(t,i){var n=this.options,e=n.reverse,o=n.vertical,s=o?Si:Ti,r=this.totalRangeIndices(!0),a=this.scaleOptions(),l=a.scale,h=a.box,u=h[s+(e?2:1)],c=t[s]-u,f=i[s]-u,p=r.min+c/l,d=r.min+f/l,g=Math.min(p,d),m=Math.max(p,d);if(m-g>=te)return{min:g,max:m}},valueRange:function(){return this.range()},totalIndex:function(t){var i=this.options,n=this._categoriesMap?this._categoriesMap.get(t):et(t,i.srcCategories);return n},currentRangeIndices:function(){var t,i=this.options,n=0;return r(i.min)&&(n=Math.floor(i.min)),t=r(i.max)?i.justified?Math.floor(i.max):Math.ceil(i.max)-1:this.totalCount()-1,{min:n,max:t}},mapCategories:function(){var t,i,n;if(!this._categoriesMap)for(t=this._categoriesMap=new Vi,i=this.options.srcCategories,n=0;n<i.length;n++)t.set(i[n],n)},totalCount:function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)}}),w(ie,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:Nt},labels:{zIndex:1},justified:!1,_deferLabels:!0}),ne=3e5,ee={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},oe=.2,se="auto",re=[Dn,zn,En,Vn,Gn,Fn,Nn,Hn],ae="fit",le=It.extend({init:function(t){this.options=t},displayIndices:function(){return{min:0,max:1}},displayRange:function(){return{}},total:function(){return{}},valueRange:function(){return{}},valueIndex:function(){return-1},values:function(){return[]},totalIndex:function(){return-1},valuesCount:function(){return 0},totalCount:function(){return 0},dateAt:function(){return null}}),he=It.extend({init:function(t,i,n){var e,o,s,r,a,l,h;this.options=n,n.baseUnitStep=n.baseUnitStep||1,e=n.roundToBaseUnit,o=n.justified,this.start=N(t,0,n.baseUnit,n.weekStartDay),s=this.roundToTotalStep(i),r=!o&&W(i,s)&&!n.justifyEnd,this.end=this.roundToTotalStep(i,!o,r?1:0),a=n.min||t,this.valueStart=this.roundToTotalStep(a),this.displayStart=e?this.valueStart:a,l=n.max,l?(h=!o&&W(l,this.roundToTotalStep(l))?-1:0,this.valueEnd=this.roundToTotalStep(l,!1,h),this.displayEnd=e?this.roundToTotalStep(l,!o):n.max):(this.valueEnd=s,this.displayEnd=e||r?this.end:i),this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))},displayRange:function(){return{min:this.displayStart,max:this.displayEnd}},displayIndices:function(){var t,i,n,e,o;return this._indices||(t=this.options,i=t.baseUnit,n=t.baseUnitStep,e=Q(this.displayStart,this.valueStart,i,n),o=Q(this.displayEnd,this.valueStart,i,n),this._indices={min:e,max:o}),this._indices},total:function(){return{min:this.start,max:this.end}},totalCount:function(){var t=this.totalIndex(this.end);return t+(this.options.justified?1:0)},valueRange:function(){return{min:this.valueStart,max:this.valueEnd}},valueIndex:function(t){var i=this.options;return Math.floor(Q(t,this.valueStart,i.baseUnit,i.baseUnitStep))},totalIndex:function(t){var i=this.options;return Math.floor(Q(t,this.start,i.baseUnit,i.baseUnitStep))},dateIndex:function(t){var i=this.options;return Q(t,this.valueStart,i.baseUnit,i.baseUnitStep)},valuesCount:function(){var t=this.valueIndex(this.valueEnd);return t+1},values:function(){var t,i,n,e=this._values;if(!e)for(t=this.options,i=this.valueRange(),this._values=e=[],n=i.min;n<=i.max;)e.push(n),n=N(n,t.baseUnitStep,t.baseUnit,t.weekStartDay);return e},dateAt:function(t,i){var n=this.options;return N(i?this.start:this.valueStart,n.baseUnitStep*t,n.baseUnit,n.weekStartDay)},roundToTotalStep:function(t,i,n){var e=this.options,o=e.baseUnit,s=e.baseUnitStep,r=e.weekStartDay,a=this.start,l=Q(t,a,o,s),h=i?Math.ceil(l):Math.floor(l);return n&&(h+=n),N(a,h*s,o,r)}}),ue=ie.extend({clone:function(){var i=new ue(t.extend({},this.options),this.chartService);return i.createLabels(),i},categoriesHash:function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},initUserOptions:function(t){return t},initFields:function(){var i,n,e,o,s,r,a,l,h;ie.fn.initFields.call(this),i=this.chartService,n=i.intl,e=this.options,o=e.categories||[],o._parsed||(o=it(n,o),o._parsed=!0),e=zt({roundToBaseUnit:!0},e,{categories:o,min:tt(n,e.min),max:tt(n,e.max),weekStartDay:nt(e,n)}),i.panning&&i.isPannable(e.vertical?Si:Ti)&&(e.roundToBaseUnit=!1),e.userSetBaseUnit=e.userSetBaseUnit||e.baseUnit,e.userSetBaseUnitStep=e.userSetBaseUnitStep||e.baseUnitStep,this.options=e,e.srcCategories=o,o.length>0?(s=ot(o),r=e.maxDivisions,this.dataRange=new he(s.min,s.max,at(e)),r?(a=this.dataRange.displayRange(),l=t.extend({},e,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:r}),h=this.dataRange.options,st(l,h.baseUnit,h.baseUnitStep),this.divisionRange=new he(s.min,s.max,l)):this.divisionRange=this.dataRange):(e.baseUnit=e.baseUnit||Gn,this.dataRange=this.divisionRange=new le(e)),this.rangeLabels=[]},tickIndices:function(t){var i,n,e,o,s,r=this,a=r.dataRange,l=r.divisionRange,h=l.valuesCount();if(!this.options.maxDivisions||!h)return ie.fn.tickIndices.call(this,t);for(i=[],n=l.values(),e=0,this.options.justified||(n=n.concat(l.dateAt(h)),e=.5),o=0;o<n.length;o++)i.push(a.dateIndex(n[o])+e),1!==t&&o>=1&&(s=i.length-1,i.splice(o,0,i[s-1]+(i[s]-i[s-1])*t));return i},shouldRenderNote:function(t){var i=this.range(),n=this.options.categories||[];return X(t,i.min)>=0&&X(t,i.max)<=0&&n.length},parseNoteValue:function(t){return tt(this.chartService.intl,t)},noteSlot:function(t){return this.getSlot(t)},translateRange:function(t){var i,n,e=this.options,o=e.baseUnit,s=e.weekStartDay,r=e.vertical,a=this.lineBox(),l=r?a.height():a.width(),h=this.range(),u=l/(h.max-h.min),c=en(t/u,Zt);return h.min&&h.max&&(i=z(e.min||h.min,c),n=z(e.max||h.max,c),h={min:N(i,0,o,s),max:N(n,0,o,s)}),h},scaleRange:function(t){var i,n,e=Math.abs(t),o=this.range(),s=o.min,r=o.max;if(s&&r){for(;e--;)i=q(s,r),n=Math.round(.1*i),t<0?(s=z(s,n),r=z(r,-n)):(s=z(s,-n),r=z(r,n));o={min:s,max:r}}return o},labelsRange:function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},pan:function(t){var i,n,e,o,s,r,a,l,h,u,c,f;return this.isEmpty()?null:(i=this.options,n=this.lineBox(),e=i.vertical?n.height():n.width(),o=this.dataRange.displayRange(),s=o.min,r=o.max,a=this.dataRange.total(),l=e/(r-s),h=en(t/l,Zt)*(i.reverse?-1:1),u=z(s,h),c=z(r,h),f=this.limitRange(K(u),K(c),K(a.min),K(a.max),h),f?(f.min=E(f.min),f.max=E(f.max),f.baseUnit=i.baseUnit,f.baseUnitStep=i.baseUnitStep||1,f.userSetBaseUnit=i.userSetBaseUnit,f.userSetBaseUnitStep=i.userSetBaseUnitStep,f):void 0)},pointsRange:function(t,i){var n,e,o,s,r,a,l;return this.isEmpty()?null:(n=ie.fn.pointsRange.call(this,t,i),e=this.dataRange.displayRange(),o=this.dataRange.displayIndices(),s=q(e.max,e.min)/(o.max-o.min),r=this.options,a=z(e.min,n.min*s),l=z(e.min,n.max*s),{min:a,max:l,baseUnit:r.userSetBaseUnit||r.baseUnit,baseUnitStep:r.userSetBaseUnitStep||r.baseUnitStep})},zoomRange:function(t){var i,n,e,o,s,r,a,l,h,u,c,f,p,d,g,m,x,v,b,y,w;if(this.isEmpty())return null;if(i=this.options,n=i.userSetBaseUnit===ae,e=this.dataRange.total(),o=this.dataRange.displayRange(),s=o.min,r=o.max,a=this.dataRange.options,l=a.weekStartDay,h=a.baseUnit,u=a.baseUnitStep,c=N(s,t*u,h,l),f=N(r,-t*u,h,l),n)if(p=i.autoBaseUnitSteps,d=i.maxDateGroups,g=Zi(p[h])*d*$n[h],m=q(r,s),x=q(f,c),v=re.indexOf(h),x<$n[h]&&h!==Dn)h=re[v-1],b=Zi(p[h]),y=(m-(d-1)*b*$n[h])/2,c=z(s,y),f=z(r,-y);else if(x>g&&h!==Hn){w=0;do{v++,h=re[v],w=0,y=2*$n[h];do b=p[h][w],w++;while(w<p[h].length&&y*b<m)}while(h!==Hn&&y*b<m);y=(y*b-m)/2,y>0&&(c=z(s,-y),f=z(r,y),c=z(c,$i(f,e.min,e.max)-f),f=z(f,$i(c,e.min,e.max)-c))}return c<e.min&&(c=e.min),f>e.max&&(f=e.max),c&&f&&q(f,c)>0?{min:c,max:f,baseUnit:i.userSetBaseUnit||i.baseUnit,baseUnitStep:i.userSetBaseUnitStep||i.baseUnitStep}:void 0},range:function(){return this.dataRange.displayRange()},createLabels:function(){
  ie.fn.createLabels.call(this),this.createRangeLabels()},clearLabels:function(){ie.fn.clearLabels.call(this),this.rangeLabels=[]},arrangeLabels:function(){this.arrangeRangeLabels(),ie.fn.arrangeLabels.call(this)},arrangeRangeLabels:function(){var t,i,n,e,o,s,r,a=this,l=a.options,h=a.rangeLabels;0!==h.length&&(t=this.lineBox(),i=l.vertical,n=l.rangeLabels.mirror||l.labels.mirror,e=h[0],e&&(o=i?t.y1-e.box.height()/2:t.x1,this.positionLabel(e,n,o)),s=h[1],s&&(r=i?t.y2-s.box.height()/2:t.x2,this.positionLabel(s,n,r)))},autoRotateLabels:function(){ie.fn.autoRotateLabels.call(this),this.autoRotateRangeLabels()},hideOutOfRangeLabels:function(){ie.fn.hideOutOfRangeLabels.call(this),this.hideOverlappingLabels()},hideOverlappingLabels:function(){function t(t,i){return!(i.options.visible&&!i.box.overlaps(t.box))&&(i.options.visible=!1,!0)}var i,n,e,o,s,r,a=this,l=a.rangeLabels,h=a.labels;if(0!==l.length){if(i=l[0],i&&i.options.visible)for(n=0;n<h.length&&(e=t(i,h[n]),e);n++);if(o=l[1],o&&o.options.visible)for(s=h.length-1;s>0&&(r=t(o,h[s]),r);--s);}},contentBox:function(){var t,i,n=ie.fn.contentBox.call(this),e=this.rangeLabels;for(t=0;t<e.length;t++)i=e[t],i.options.visible&&n.wrap(i.box);return n},createAxisLabel:function(t,i,n){var e,o,s,r,a;if(void 0===n&&(n={}),e=this.options,o=e.dataItems&&!e.maxDivisions?e.dataItems[t]:null,s=this.divisionRange.dateAt(t),r=i.dateFormats[this.divisionRange.options.baseUnit],i.format=i.format||r,n.dataItem=o,a=this.axisLabelText(s,i,n))return new Bn(s,a,t,o,i)},createRangeLabels:function(){var i,n,e,o,s=this,r=this.divisionRange,a=r.displayStart,l=r.displayEnd,h=this.options,u=t.extend({},h.labels,h.rangeLabels,{align:Yt,zIndex:h.zIndex});u.visible===!0&&(this.normalizeLabelRotation(u),u.alignRotation=Yt,"auto"===u.rotation&&(u.rotation=0,h.autoRotateRangeLabels=!0),i=u.dateFormats[this.divisionRange.options.baseUnit],u.format=u.format||i,n=function(t,i,n){if(n){var e=new Bn(i,n,t,null,u);s.append(e),s.rangeLabels.push(e)}},e=this.axisLabelText(a,u,{index:0,count:2}),n(0,a,e),o=this.axisLabelText(l,u,{index:1,count:2}),n(1,l,o))},autoRotateRangeLabels:function(){var t,i,n=this,e=this.rangeLabels;this.options.autoRotateRangeLabels&&!this.options.vertical&&2===e.length&&(t=function(t,i,e){var o=2*Math.abs(i[e+1]-i[e]),s=n.autoRotateLabelAngle(t.box,o);0!==s&&(t.options.rotation=s,t.reflow(new dn))},i=this.getMajorTickPositions(),t(e[0],i,0),t(e[1],i,i.length-2))},categoryIndex:function(t){return this.dataRange.valueIndex(t)},slot:function(t,i,n){var e,o=this.dataRange,s=t,r=i;if(s instanceof Date&&(s=o.dateIndex(s)),r instanceof Date&&(r=o.dateIndex(r)),e=this.getSlot(s,r,n))return e.toRect()},getSlot:function(t,i,n){var e=t,o=i;return typeof e===fi&&(e=this.categoryIndex(e)),typeof o===fi&&(o=this.categoryIndex(o)),ie.fn.getSlot.call(this,e,o,n)},valueRange:function(){var t=this.options,i=ot(t.srcCategories);return{min:E(i.min),max:E(i.max)}},categoryAt:function(t,i){return this.dataRange.dateAt(t,i)},categoriesCount:function(){return this.dataRange.valuesCount()},rangeIndices:function(){return this.dataRange.displayIndices()},labelsBetweenTicks:function(){return!this.divisionRange.options.justified},prepareUserOptions:function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},getCategory:function(t){var i=this.pointCategoryIndex(t);return null===i?null:this.dataRange.dateAt(i)},totalIndex:function(t){return this.dataRange.totalIndex(t)},currentRangeIndices:function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},totalRange:function(){return this.dataRange.total()},totalCount:function(){return this.dataRange.totalCount()},isEmpty:function(){return!this.options.srcCategories.length},roundedRange:function(){var i,n,e;return this.options.roundToBaseUnit!==!1||this.isEmpty()?this.range():(i=this.options,n=ot(i.srcCategories),e=new he(n.min,n.max,t.extend({},i,{justified:!1,roundToBaseUnit:!0,justifyEnd:i.justified})),e.displayRange())}}),w(ue,{type:Wt,labels:{dateFormats:ee},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10}),ce=Math.pow(10,-Zt+1),fe=_n.extend({init:function(i,n,e,o){_n.fn.init.call(this,t.extend({},e,{seriesMin:i,seriesMax:n}),o)},initUserOptions:function(t){var i=pt(t.seriesMin,t.seriesMax,t);return this.totalOptions=dt(i,t),mt(i,t)},initFields:function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},clone:function(){return new fe(this.seriesMin,this.seriesMax,t.extend({},this.options),this.chartService)},startValue:function(){return 0},range:function(){var t=this.options;return{min:t.min,max:t.max}},getDivisions:function(t){var i,n;return 0===t?1:(i=this.options,n=i.max-i.min,Math.floor(en(n/t,qt))+1)},getTickPositions:function(t,i){var n,e=this.options,o=e.vertical,s=e.reverse,r=this.lineBox(),a=o?r.height():r.width(),l=e.max-e.min,h=a/l,u=t*h,c=this.getDivisions(t),f=(o?-1:1)*(s?-1:1),p=1===f?1:2,d=[],g=r[(o?Si:Ti)+p],m=0;for(i&&(m=i/t),n=0;n<c;n++)n%m!==0&&d.push(en(g,qt)),g+=u*f;return d},getMajorTickPositions:function(){return this.getTickPositions(this.options.majorUnit)},getMinorTickPositions:function(){return this.getTickPositions(this.options.minorUnit)},getSlot:function(t,i,n){var e,o,s,r,a,l,h,u,c,f,p,d,g,m;return void 0===n&&(n=!1),e=this.options,o=e.vertical,s=e.reverse,r=o?Si:Ti,a=this.lineBox(),l=a[r+(s?2:1)],h=o?a.height():a.width(),u=s?-1:1,c=u*(h/(e.max-e.min)),f=new dn(a.x1,a.y1,a.x1,a.y1),p=t,d=i,Xi(p)||(p=d||0),Xi(d)||(d=p||0),n&&(p=Math.max(Math.min(p,e.max),e.min),d=Math.max(Math.min(d,e.max),e.min)),o?(g=e.max-Math.max(p,d),m=e.max-Math.min(p,d)):(g=Math.min(p,d)-e.min,m=Math.max(p,d)-e.min),f[r+1]=ft(l+c*(s?m:g)),f[r+2]=ft(l+c*(s?g:m)),f},getValue:function(t){var i,n=this.options,e=n.vertical,o=n.reverse,s=+n.max,r=+n.min,a=e?Si:Ti,l=this.lineBox(),h=l[a+(o?2:1)],u=e?l.height():l.width(),c=o?-1:1,f=c*(t[a]-h),p=(s-r)/u,d=f*p;return f<0||f>u?null:(i=e?s-d:r+d,en(i,Zt))},translateRange:function(t){var i=this.options,n=i.vertical,e=i.reverse,o=i.max,s=i.min,r=this.lineBox(),a=n?r.height():r.width(),l=o-s,h=a/l,u=en(t/h,Zt);return!n&&!e||n&&e||(u=-u),{min:s+u,max:o+u,offset:u}},scaleRange:function(t){var i=this.options,n=-t*i.majorUnit;return{min:i.min-n,max:i.max+n}},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(t,i,n){var e=this.options,o=en(e.min+t*e.majorUnit,Zt),s=this.axisLabelText(o,i,n);return new Bn(o,s,t,null,i)},shouldRenderNote:function(t){var i=this.range();return i.min<=t&&t<=i.max},pan:function(t){var i=this.translateRange(t);return this.limitRange(i.min,i.max,this.totalMin,this.totalMax,i.offset)},pointsRange:function(t,i){var n=this.getValue(t),e=this.getValue(i),o=Math.min(n,e),s=Math.max(n,e);if(this.isValidRange(o,s))return{min:o,max:s}},zoomRange:function(t){var i=this,n=i.totalMin,e=i.totalMax,o=this.scaleRange(t),s=$i(o.min,n,e),r=$i(o.max,n,e);if(this.isValidRange(s,r))return{min:s,max:r}},isValidRange:function(t,i){return i-t>ce}}),w(fe,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Nt},labels:{format:"#.####################"},zIndex:1}),pe=_n.extend({init:function(t,i,n,e){var o,s=E(t),r=E(i),a=e.intl,l=n||{};l=zt(l||{},{min:tt(a,l.min),max:tt(a,l.max),axisCrossingValue:it(a,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:nt(l,a)}),l=bt(s,r,l),_n.fn.init.call(this,l,e),this.intlService=a,this.seriesMin=s,this.seriesMax=r,o=l.weekStartDay||0,this.totalMin=K(H(K(s)-1,l.baseUnit,o)),this.totalMax=K(Y(K(r)+1,l.baseUnit,o))},clone:function(){return new pe(this.seriesMin,this.seriesMax,t.extend({},this.options),this.chartService)},range:function(){var t=this.options;return{min:t.min,max:t.max}},getDivisions:function(t){var i=this.options;return Math.floor(Z(i.min,i.max,i.baseUnit)/t+1)},getTickPositions:function(t){var i,n,e,o=this.options,s=o.vertical,r=this.lineBox(),a=(s?-1:1)*(o.reverse?-1:1),l=1===a?1:2,h=r[(s?Si:Ti)+l],u=this.getDivisions(t),c=q(o.max,o.min),f=s?r.height():r.width(),p=f/c,d=o.weekStartDay||0,g=[h];for(i=1;i<u;i++)n=N(o.min,i*t,o.baseUnit,d),e=h+q(n,o.min)*p*a,g.push(en(e,qt));return g},getMajorTickPositions:function(){return this.getTickPositions(this.options.majorUnit)},getMinorTickPositions:function(){return this.getTickPositions(this.options.minorUnit)},getSlot:function(t,i,n){return fe.prototype.getSlot.call(this,tt(this.intlService,t),tt(this.intlService,i),n)},getValue:function(t){var i=fe.prototype.getValue.call(this,t);return null!==i?E(i):null},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(t,i,n){var e,o,s=this.options,r=t*s.majorUnit,a=s.weekStartDay||0,l=s.min;return r>0&&(l=N(l,r,s.baseUnit,a)),e=i.dateFormats[s.baseUnit],i.format=i.format||e,o=this.axisLabelText(l,i,n),new Bn(l,o,t,null,i)},translateRange:function(t,i){var n=this.options,e=n.baseUnit,o=n.weekStartDay||0,s=this.lineBox(),r=n.vertical?s.height():s.width(),a=this.range(),l=r/q(a.max,a.min),h=en(t/l,Zt)*(n.reverse?-1:1),u=z(n.min,h),c=z(n.max,h);return i||(u=N(u,0,e,o),c=N(c,0,e,o)),{min:u,max:c,offset:h}},scaleRange:function(t){for(var i,n,e=this.options,o=e.min,s=e.max,r=Math.abs(t);r--;)i=q(o,s),n=Math.round(.1*i),t<0?(o=z(o,n),s=z(s,-n)):(o=z(o,-n),s=z(s,n));return{min:o,max:s}},shouldRenderNote:function(t){var i=this.range();return X(t,i.min)>=0&&X(t,i.max)<=0},pan:function(t){var i=this.translateRange(t,!0),n=this.limitRange(K(i.min),K(i.max),this.totalMin,this.totalMax,i.offset);if(n)return{min:E(n.min),max:E(n.max)}},pointsRange:function(t,i){var n=this.getValue(t),e=this.getValue(i),o=Math.min(n,e),s=Math.max(n,e);return{min:E(o),max:E(s)}},zoomRange:function(t){var i=this.scaleRange(t),n=E($i(K(i.min),this.totalMin,this.totalMax)),e=E($i(K(i.max),this.totalMin,this.totalMax));return{min:n,max:e}}}),w(pe,{type:Wt,majorGridLines:{visible:!0,width:1,color:Nt},labels:{dateFormats:ee}}),de=10,ge=_n.extend({init:function(t,i,n,e){var o=zt({majorUnit:de,min:t,max:i},n),s=o.majorUnit,r=Mt(i,s),a=wt(t,i,o),l=yt(a,r,o,n);o.max=l.max,o.min=l.min,o.minorUnit=n.minorUnit||en(s-1,Zt),_n.fn.init.call(this,o,e),this.totalMin=Xi(n.min)?Math.min(a,n.min):a,this.totalMax=Xi(n.max)?Math.max(r,n.max):r,this.logMin=en(St(l.min,s),Zt),this.logMax=en(St(l.max,s),Zt),this.seriesMin=t,this.seriesMax=i,this.createLabels()},clone:function(){return new ge(this.seriesMin,this.seriesMax,t.extend({},this.options),this.chartService)},startValue:function(){return this.options.min},getSlot:function(t,i,n){var e,o,s=this,r=s.options,a=s.logMin,l=s.logMax,h=r.reverse,u=r.vertical,c=r.majorUnit,f=u?Si:Ti,p=this.lineBox(),d=p[f+(h?2:1)],g=u?p.height():p.width(),m=h?-1:1,x=m*(g/(l-a)),v=new dn(p.x1,p.y1,p.x1,p.y1),b=t,y=i;return Xi(b)||(b=y||1),Xi(y)||(y=b||1),b<=0||y<=0?null:(n&&(b=Math.max(Math.min(b,r.max),r.min),y=Math.max(Math.min(y,r.max),r.min)),b=St(b,c),y=St(y,c),u?(e=l-Math.max(b,y),o=l-Math.min(b,y)):(e=Math.min(b,y)-a,o=Math.max(b,y)-a),v[f+1]=ft(d+x*(h?o:e)),v[f+2]=ft(d+x*(h?e:o)),v)},getValue:function(t){var i,n=this,e=n.options,o=n.logMin,s=n.logMax,r=e.reverse,a=e.vertical,l=e.majorUnit,h=this.lineBox(),u=a===r?1:-1,c=1===u?1:2,f=a?h.height():h.width(),p=(s-o)/f,d=a?Si:Ti,g=h[d+c],m=u*(t[d]-g),x=m*p;return m<0||m>f?null:(i=o+x,en(Math.pow(l,i),Zt))},range:function(){var t=this.options;return{min:t.min,max:t.max}},scaleRange:function(t){var i=this.options.majorUnit,n=-t;return{min:Math.pow(i,this.logMin-n),max:Math.pow(i,this.logMax+n)}},translateRange:function(t){var i=this,n=i.options,e=i.logMin,o=i.logMax,s=n.reverse,r=n.vertical,a=n.majorUnit,l=this.lineBox(),h=r?l.height():l.width(),u=h/(o-e),c=en(t/u,Zt);return!r&&!s||r&&s||(c=-c),{min:Math.pow(a,e+c),max:Math.pow(a,o+c),offset:c}},labelsCount:function(){var t=Math.floor(this.logMax),i=Math.floor(t-this.logMin)+1;return i},getMajorTickPositions:function(){var t=[];return this.traverseMajorTicksPositions(function(i){t.push(i)},{step:1,skip:0}),t},createTicks:function(t){function i(i,n){h.tickX=r?a.x2:a.x2-n.size,h.tickY=r?a.y1-n.size:a.y1,h.position=i,t.append(O(h,n))}var n=this.options,e=n.majorTicks,o=n.minorTicks,s=n.vertical,r=n.labels.mirror,a=this.lineBox(),l=[],h={vertical:s};return e.visible&&this.traverseMajorTicksPositions(i,e),o.visible&&this.traverseMinorTicksPositions(i,o),l},createGridLines:function(t){function i(t,i){x(t,l)||(a.position=t,h.append(_(a,i)),l.push(t))}var n=this.options,e=n.minorGridLines,o=n.majorGridLines,s=n.vertical,r=t.lineBox(),a={lineStart:r[s?"x1":"y1"],lineEnd:r[s?"x2":"y2"],vertical:s},l=[],h=this.gridLinesVisual();return o.visible&&this.traverseMajorTicksPositions(i,o),e.visible&&this.traverseMinorTicksPositions(i,e),h.children},traverseMajorTicksPositions:function(t,i){var n,e,o=this._lineOptions(),s=o.lineStart,r=o.step,a=this,l=a.logMin,h=a.logMax;for(n=Math.ceil(l)+i.skip;n<=h;n+=i.step)e=en(s+r*(n-l),Zt),t(e,i)},traverseMinorTicksPositions:function(t,i){var n,e,o,s,r,a=this,l=this.options,h=l.min,u=l.max,c=l.minorUnit,f=l.majorUnit,p=this._lineOptions(),d=p.lineStart,g=p.step,m=this,x=m.logMin,v=m.logMax,b=Math.floor(x);for(n=b;n<v;n++)for(e=a._minorIntervalOptions(n),o=i.skip;o<c&&(s=e.value+o*e.minorStep,!(s>u));o+=i.step)s>=h&&(r=en(d+g*(St(s,f)-x),Zt),t(r,i))},createAxisLabel:function(t,i,n){var e=Math.ceil(this.logMin+t),o=Math.pow(this.options.majorUnit,e),s=this.axisLabelText(o,i,n);return new Bn(o,s,t,null,i)},shouldRenderNote:function(t){var i=this.range();return i.min<=t&&t<=i.max},pan:function(t){var i=this.translateRange(t);return this.limitRange(i.min,i.max,this.totalMin,this.totalMax,i.offset)},pointsRange:function(t,i){var n=this.getValue(t),e=this.getValue(i),o=Math.min(n,e),s=Math.max(n,e);return{min:o,max:s}},zoomRange:function(t){var i=this,n=i.options,e=i.totalMin,o=i.totalMax,s=this.scaleRange(t),r=$i(s.min,e,o),a=$i(s.max,e,o),l=n.majorUnit,h=a>r&&n.min&&n.max&&en(St(n.max,l)-St(n.min,l),Zt)<1,u=!(n.min===e&&n.max===o)&&en(St(a,l)-St(r,l),Zt)>=1;if(h||u)return{min:r,max:a}},_minorIntervalOptions:function(t){var i=this.options,n=i.minorUnit,e=i.majorUnit,o=Math.pow(e,t),s=Math.pow(e,t+1),r=s-o,a=r/n;return{value:o,minorStep:a}},_lineOptions:function(){var t=this.options,i=t.reverse,n=t.vertical,e=n?Si:Ti,o=this.lineBox(),s=n===i?1:-1,r=1===s?1:2,a=n?o.height():o.width(),l=s*(a/(this.logMax-this.logMin)),h=o[e+r];return{step:l,lineStart:h,lineBox:o}}}),w(ge,{type:"log",majorUnit:de,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Nt},zIndex:1,_deferLabels:!0}),me={createGridLines:function(t){var i,n,e=this.options,o=Math.abs(this.box.center().y-t.lineBox().y1),s=[],r=!1;return e.majorGridLines.visible&&(i=this.majorGridLineAngles(t),r=!0,s=this.renderMajorGridLines(i,o,e.majorGridLines)),e.minorGridLines.visible&&(n=this.minorGridLineAngles(t,r),Hi(s,this.renderMinorGridLines(n,o,e.minorGridLines,t,r))),s},renderMajorGridLines:function(t,i,n){return this.renderGridLines(t,i,n)},renderMinorGridLines:function(t,i,n,e,o){var s=this.radiusCallback&&this.radiusCallback(i,e,o);return this.renderGridLines(t,i,n,s)},renderGridLines:function(t,i,n,e){var o,s,r={stroke:{width:n.width,color:n.color,dashType:n.dashType}},a=this.box.center(),l=new Pt([a.x,a.y],i),h=this.gridLinesVisual();for(o=0;o<t.length;o++)s=new jt(r),e&&(l.radius=e(t[o])),s.moveTo(l.center).lineTo(l.pointAt(t[o]+180)),h.append(s);return h.children},gridLineAngles:function(t,i,n,e,o){var s=this,r=this.intervals(i,n,e,o),a=t.options,l=a.visible&&(a.line||{}).visible!==!1;return b(r,function(t){var i=s.intervalAngle(t);if(!l||90!==i)return i})}},xe=ie.extend({range:function(){return{min:0,max:this.options.categories.length}},reflow:function(t){this.box=t,this.reflowLabels()},lineBox:function(){return this.box},reflowLabels:function(){var t,i,n=this,e=this,o=e.labels,s=e.options.labels,r=s.skip||0,a=s.step||1,l=new dn;for(t=0;t<o.length;t++)o[t].reflow(l),i=o[t].box,o[t].reflow(n.getSlot(r+t*a).adjacentBox(0,i.width(),i.height()))},intervals:function(t,i,n,e){var o,s,r,a,l,h,u,c,f;for(void 0===e&&(e=!1),o=this.options,s=o.categories.length,r=s/t||1,a=360/r,l=i||0,h=n||1,u=[],c=0,f=l;f<r;f+=h)c=o.reverse?360-f*a:f*a,c=en(c,qt)%360,e&&x(c,e)||u.push(c);return u},majorIntervals:function(){return this.intervals(1)},minorIntervals:function(){return this.intervals(.5)},intervalAngle:function(t){return(360+t+this.options.startAngle)%360},majorAngles:function(){var t=this;return b(this.majorIntervals(),function(i){return t.intervalAngle(i)})},createLine:function(){return[]},majorGridLineAngles:function(t){var i=this.options.majorGridLines;return this.gridLineAngles(t,1,i.skip,i.step)},minorGridLineAngles:function(t,i){var n=this.options,e=n.minorGridLines,o=n.majorGridLines,s=i?this.intervals(1,o.skip,o.step):null;return this.gridLineAngles(t,.5,e.skip,e.step,s)},radiusCallback:function(t,i,n){var e,o,s,r;if(i.options.type!==Gt)return e=nn(360/(2*this.options.categories.length)),o=Math.cos(e)*t,s=this.majorAngles(),r=function(i){return!n&&x(i,s)?t:o}},createPlotBands:function(){var t,i,n,e,o,s,r,a=this,l=this.options.plotBands||[],h=this._plotbandGroup=new At({zIndex:-1});for(t=0;t<l.length;t++)i=l[t],n=a.plotBandSlot(i),e=a.getSlot(i.from),o=i.from-Math.floor(i.from),n.startAngle+=o*e.angle,s=Math.ceil(i.to)-i.to,n.angle-=(s+o)*e.angle,r=vn.current.createRing(n,{fill:{color:i.color,opacity:i.opacity},stroke:{opacity:i.opacity}}),h.append(r);this.appendVisual(h)},plotBandSlot:function(t){return this.getSlot(t.from,t.to-1)},getSlot:function(t,i){var n,e,o,s,r=this.options,a=r.justified,l=this.box,h=this.majorAngles(),u=h.length,c=360/u,f=t;return r.reverse&&!a&&(f=(f+1)%u),f=$i(Math.floor(f),0,u-1),n=h[f],a&&(n-=c/2,n<0&&(n+=360)),e=$i(Math.ceil(i||f),f,u-1),o=e-f+1,s=c*o,new gn(l.center(),0,l.height()/2,n,s)},slot:function(t,i){var n=this.getSlot(t,i),e=n.startAngle+180,o=e+n.angle;return new Bt.Arc([n.center.x,n.center.y],{startAngle:e,endAngle:o,radiusX:n.radius,radiusY:n.radius})},pointCategoryIndex:function(t){var i,n,e=this,o=this.options.categories.length,s=null;for(i=0;i<o;i++)if(n=e.getSlot(i),n.containsPoint(t)){s=i;break}return s}}),w(xe,{startAngle:90,labels:{margin:p(10)},majorGridLines:{visible:!0},justified:!0}),zt(xe.prototype,me),ve=_n.extend({init:function(t,i){_n.fn.init.call(this,t,i);var n=this.options;n.minorUnit=n.minorUnit||n.majorUnit/2},getDivisions:function(t){return fe.prototype.getDivisions.call(this,t)-1},reflow:function(t){this.box=t,this.reflowLabels()},reflowLabels:function(){var t,i,n=this,e=this,o=e.options,s=e.labels,r=e.options.labels,a=r.skip||0,l=r.step||1,h=new dn,u=this.intervals(o.majorUnit,a,l);for(t=0;t<s.length;t++)s[t].reflow(h),i=s[t].box,s[t].reflow(n.getSlot(u[t]).adjacentBox(0,i.width(),i.height()))},lineBox:function(){return this.box},intervals:function(t,i,n,e){var o,s,r,a,l,h,u;for(void 0===e&&(e=!1),o=this.options.min,s=this.getDivisions(t),r=[],a=i||0,l=n||1,h=a;h<s;h+=l)u=(360+o+h*t)%360,e&&x(u,e)||r.push(u);return r},majorIntervals:function(){return this.intervals(this.options.majorUnit)},minorIntervals:function(){return this.intervals(this.options.minorUnit)},intervalAngle:function(t){return(540-t-this.options.startAngle)%360},createLine:function(){return[]},majorGridLineAngles:function(t){var i=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,i.skip,i.step)},minorGridLineAngles:function(t,i){var n=this.options,e=n.minorGridLines,o=n.majorGridLines,s=i?this.intervals(n.majorUnit,o.skip,o.step):null;return this.gridLineAngles(t,n.minorUnit,e.skip,e.step,s)},plotBandSlot:function(t){return this.getSlot(t.from,t.to)},getSlot:function(t,i){var n,e=this,o=e.options,s=e.box,r=o.startAngle,a=$i(t,o.min,o.max),l=$i(i||a,a,o.max);return o.reverse&&(a*=-1,l*=-1),a=(540-a-r)%360,l=(540-l-r)%360,l<a&&(n=a,a=l,l=n),new gn(s.center(),0,s.height()/2,a,l-a)},slot:function(t,i){var n,e,o,s,r,a,l;return void 0===i&&(i=t),n=this.options,e=360-n.startAngle,o=this.getSlot(t,i),s=Math.min(t,i),r=Math.max(t,i),n.reverse?(a=s,l=r):(a=360-r,l=360-s),a=(a+e)%360,l=(l+e)%360,new Bt.Arc([o.center.x,o.center.y],{startAngle:a,endAngle:l,radiusX:o.radius,radiusY:o.radius})},getValue:function(t){var i=this.options,n=this.box.center(),e=t.x-n.x,o=t.y-n.y,s=Math.round(qi(Math.atan2(o,e))),r=i.startAngle;return i.reverse||(s*=-1,r*=-1),(s+r+360)%360},valueRange:function(){return{min:0,max:2*Math.PI}}}),w(ve,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:p(10)},majorGridLines:{color:Nt,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),zt(ve.prototype,me,{createPlotBands:xe.prototype.createPlotBands,majorAngles:xe.prototype.majorAngles,range:fe.prototype.range,labelsCount:fe.prototype.labelsCount,createAxisLabel:fe.prototype.createAxisLabel}),be={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t,i,n,e,o,s,r,a,l,h,u=this,c=this.options,f=c.majorGridLines.type,p=c.plotBands;for(void 0===p&&(p=[]),t=this.plotArea.polarAxis,i=t.majorAngles(),n=t.box.center(),e=this._plotbandGroup=new At({zIndex:-1}),o=0;o<p.length;o++)s=p[o],r={fill:{color:s.color,opacity:s.opacity},stroke:{opacity:s.opacity}},a=u.getSlot(s.from,s.to,!0),l=new gn(n,n.y-a.y2,n.y-a.y1,0,360),h=void 0,h=f===Gt?vn.current.createRing(l,r):jt.fromPoints(u.plotBandPoints(l,i),r).close(),e.append(h);this.appendVisual(e)},plotBandPoints:function(t,i){var n,e=[],o=[],s=[t.center.x,t.center.y],r=new Pt(s,t.innerRadius),a=new Pt(s,t.radius);for(n=0;n<i.length;n++)e.push(r.pointAt(i[n]+180)),o.push(a.pointAt(i[n]+180));return e.reverse(),e.push(e[0]),o.push(o[0]),o.concat(e)},createGridLines:function(t){var i,n=this.options,e=this.radarMajorGridLinePositions(),o=t.majorAngles(),s=t.box.center(),r=[];return n.majorGridLines.visible&&(r=this.renderGridLines(s,e,o,n.majorGridLines)),n.minorGridLines.visible&&(i=this.radarMinorGridLinePositions(),Hi(r,this.renderGridLines(s,i,o,n.minorGridLines))),r},renderGridLines:function(t,i,n,e){var o,s,r,a,l,h,u,c={stroke:{width:e.width,color:e.color,dashType:e.dashType}},f=e.skip;for(void 0===f&&(f=0),o=e.step,void 0===o&&(o=0),s=this.gridLinesVisual(),r=f;r<i.length;r+=o)if(a=t.y-i[r],a>0)if(l=new Pt([t.x,t.y],a),e.type===Gt)s.append(new Lt.Circle(l,c));else{for(h=new jt(c),u=0;u<n.length;u++)h.lineTo(l.pointAt(n[u]+180));h.close(),s.append(h)}return s.children},getValue:function(t){var i,n,e,o,s,r,a,l=this.lineBox(),h=this.plotArea.polarAxis,u=h.majorAngles(),c=h.box.center(),f=t.distanceTo(c),p=f;return this.options.majorGridLines.type!==Gt&&u.length>1&&(i=t.x-c.x,n=t.y-c.y,e=(qi(Math.atan2(n,i))+540)%360,u.sort(function(t,i){return Rt(t,e)-Rt(i,e)}),o=Rt(u[0],u[1])/2,s=Rt(e,u[0]),r=90-o,a=180-s-r,p=f*(Math.sin(nn(a))/Math.sin(nn(r)))),this.axisType().prototype.getValue.call(this,new pn(l.x1,l.y2-p))}},ye=fe.extend({radarMajorGridLinePositions:function(){return this.getTickPositions(this.options.majorUnit)},radarMinorGridLinePositions:function(){var t=this.options,i=0;return t.majorGridLines.visible&&(i=t.majorUnit),this.getTickPositions(t.minorUnit,i)},axisType:function(){return fe}}),zt(ye.prototype,be),we=ge.extend({radarMajorGridLinePositions:function(){var t=[];return this.traverseMajorTicksPositions(function(i){t.push(i)},this.options.majorGridLines),t},radarMinorGridLinePositions:function(){var t=[];return this.traverseMinorTicksPositions(function(i){t.push(i)},this.options.minorGridLines),t},axisType:function(){return ge}}),zt(we.prototype,be),Me=.333,Te=.01,Se=It.extend({init:function(t){this.closed=t},process:function(t){var i,n,e,o,s,r,a,l,h,u,c,f,p,d,g=this,m=t.slice(0),x=[],v=this.closed,b=m.length;if(b>2&&(this.removeDuplicates(0,m),b=m.length),b<2||2===b&&m[0].equals(m[1]))return x;for(i=m[0],n=m[1],e=m[2],x.push(new _t(i));i.equals(m[b-1]);)v=!0,m.pop(),b--;if(2===b)return o=this.tangent(i,n,Ti,Si),Zi(x).controlOut(this.firstControlPoint(o,i,n,Ti,Si)),x.push(new _t(n,this.secondControlPoint(o,i,n,Ti,Si))),x;for(v?(i=m[b-1],n=m[0],e=m[1],a=this.controlPoints(i,n,e),s=a[1],r=a[0]):(l=this.tangent(i,n,Ti,Si),s=this.firstControlPoint(l,i,n,Ti,Si)),h=s,u=0;u<=b-3;u++)g.removeDuplicates(u,m),b=m.length,u+3<=b&&(i=m[u],n=m[u+1],e=m[u+2],c=g.controlPoints(i,n,e),Zi(x).controlOut(h),h=c[1],f=c[0],x.push(new _t(n,f)));return v?(i=m[b-2],n=m[b-1],e=m[0],p=this.controlPoints(i,n,e),Zi(x).controlOut(h),x.push(new _t(n,p[0])),Zi(x).controlOut(p[1]),x.push(new _t(e,r))):(d=this.tangent(n,e,Ti,Si),Zi(x).controlOut(h),x.push(new _t(e,this.secondControlPoint(d,n,e,Ti,Si)))),x},removeDuplicates:function(t,i){for(;i[t+1]&&(i[t].equals(i[t+1])||i[t+1].equals(i[t+2]));)i.splice(t+1,1)},invertAxis:function(t,i,n){var e,o,s=!1;return t.x===i.x?s=!0:i.x===n.x?(i.y<n.y&&t.y<=i.y||n.y<i.y&&i.y<=t.y)&&(s=!0):(e=this.lineFunction(t,i),o=this.calculateFunction(e,n.x),t.y<=i.y&&n.y<=o||i.y<=t.y&&n.y>=o||(s=!0)),s},isLine:function(t,i,n){var e=this.lineFunction(t,i),o=this.calculateFunction(e,n.x);return t.x===i.x&&i.x===n.x||en(o,1)===en(n.y,1)},lineFunction:function(t,i){var n=(i.y-t.y)/(i.x-t.x),e=t.y-n*t.x;return[e,n]},controlPoints:function(t,i,n){var e,o,s,r,a,l,h=Ti,u=Si,c=!1,f=!1;return this.isLine(t,i,n)?e=this.tangent(t,i,Ti,Si):(o={x:this.isMonotonicByField(t,i,n,Ti),y:this.isMonotonicByField(t,i,n,Si)},o.x&&o.y?(e=this.tangent(t,n,Ti,Si),c=!0):(this.invertAxis(t,i,n)&&(h=Si,u=Ti),o[h]?e=0:(s=n[u]<t[u]&&t[u]<=i[u]||t[u]<n[u]&&i[u]<=t[u]?kt((n[u]-t[u])*(i[h]-t[h])):-kt((n[h]-t[h])*(i[u]-t[u])),e=Te*s,f=!0))),r=this.secondControlPoint(e,t,i,h,u),f&&(a=h,h=u,u=a),l=this.firstControlPoint(e,i,n,h,u),c&&(this.restrictControlPoint(t,i,r,e),this.restrictControlPoint(i,n,l,e)),[r,l]},restrictControlPoint:function(t,i,n,e){t.y<i.y?i.y<n.y?(n.x=t.x+(i.y-t.y)/e,n.y=i.y):n.y<t.y&&(n.x=i.x-(i.y-t.y)/e,n.y=t.y):n.y<i.y?(n.x=t.x-(t.y-i.y)/e,n.y=i.y):t.y<n.y&&(n.x=i.x+(t.y-i.y)/e,n.y=t.y)},tangent:function(t,i,n,e){var o,s=i[n]-t[n],r=i[e]-t[e];return o=0===s?0:r/s},isMonotonicByField:function(t,i,n,e){return n[e]>i[e]&&i[e]>t[e]||n[e]<i[e]&&i[e]<t[e]},firstControlPoint:function(t,i,n,e,o){var s=i[e],r=n[e],a=(r-s)*Me;return this.point(s+a,i[o]+a*t,e,o)},secondControlPoint:function(t,i,n,e,o){var s=i[e],r=n[e],a=(r-s)*Me;return this.point(r-a,n[o]-a*t,e,o)},point:function(t,i,n,e){var o=new Bt.Point;return o[n]=t,o[e]=i,o},calculateFunction:function(t,i){var n,e=t.length,o=0;for(n=0;n<e;n++)o+=Math.pow(i,n)*t[n];return o}}),Dt.Gradients=Sn,kendo.deepExtend(kendo.dataviz,{constants:ki,services:Ei,autoMajorUnit:j,Point:pn,Box:dn,Ring:gn,Sector:mn,ShapeBuilder:vn,ShapeElement:wn,ChartElement:bn,BoxElement:yn,RootElement:Rn,FloatElement:kn,Text:Un,TextBox:An,Title:In,AxisLabel:Bn,Axis:_n,Note:On,CategoryAxis:ie,DateCategoryAxis:ue,DateValueAxis:pe,NumericAxis:fe,LogarithmicAxis:ge,PolarAxis:ve,RadarCategoryAxis:xe,RadarNumericAxis:ye,RadarLogarithmicAxis:we,CurveProcessor:Se,rectToBox:P,addClass:n,removeClass:e,alignPathToPixel:o,clockwise:s,convertableToNumber:l,deepExtend:zt,elementStyles:f,getSpacing:p,getTemplate:d,getter:Vt,grep:g,hasClasses:m,HashMap:Vi,inArray:x,interpolateValue:v,InstanceObserver:Fi,isArray:i,isFunction:Et,isNumber:r,isObject:h,isString:a,map:b,mousewheelDelta:y,FontLoader:rn,setDefaultOptions:w,sparseArrayLimits:M,styleValue:u,find:T,elementScale:k,autoTextColor:L,createHashSet:U,append:Hi,bindEvents:Yi,Class:It,defined:Xi,deg:qi,elementOffset:Ki,elementSize:Wi,eventElement:Ji,eventCoordinates:Qi,last:Zi,limitValue:$i,logToConsole:kendo.logToConsole,objectKey:tn,rad:nn,round:en,unbindEvents:on,valueOrDefault:sn,absoluteDateDiff:D,addDuration:N,addTicks:z,ceilDate:Y,dateComparer:X,dateDiff:q,dateEquals:W,dateIndex:Q,duration:Z,floorDate:H,lteDateIndex:$,startOfWeek:V,toDate:E,parseDate:tt,parseDates:it,toTime:K,firstDay:nt})}(window.kendo.jQuery)},n(3))}});