text: /*
  * Kendo UI v2015.1.318 (http://www.telerik.com/kendo-ui)
  * Copyright 2015 Telerik AD. All rights reserved.
  *
  * Kendo UI commercial licenses may be obtained at
  * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
  * If you do not own a commercial license, this file shall be governed by the trial license terms.
  */
  !function(e,define){define(["./kendo.dataviz.chart.min","./kendo.drawing.min"],e)}(function(){return function(e,t){function n(e,t){return e.value.x-t.value.x}function i(e,t){return 180-C.abs(C.abs(e-t)-180)}var r,o,a,s,l,c,d,u,h,p,f,g,m,v,_,y,w,b,k,x,C=Math,S=window.kendo,T=S.deepExtend,D=S.util,A=D.append,E=S.drawing,I=S.geometry,M=S.dataviz,P=M.AreaSegment,F=M.Axis,B=M.AxisGroupRangeTracker,z=M.BarChart,R=M.Box2D,L=M.CategoryAxis,H=M.CategoricalChart,O=M.CategoricalPlotArea,N=M.ChartElement,V=M.CurveProcessor,U=M.DonutSegment,W=M.LineChart,j=M.LineSegment,q=M.LogarithmicAxis,G=M.NumericAxis,$=M.PlotAreaBase,Y=M.PlotAreaFactory,Q=M.Point2D,K=M.Ring,X=M.ScatterChart,Z=M.ScatterLineChart,J=M.SeriesBinder,et=M.ShapeBuilder,tt=M.SplineSegment,nt=M.SplineAreaSegment,it=M.getSpacing,rt=M.filterSeriesByType,ot=D.limitValue,at=M.round,st="arc",lt="#000",ct=M.COORD_PRECISION,dt=.15,ut=C.PI/180,ht="log",pt="plotAreaClick",ft="polarArea",gt="polarLine",mt="polarScatter",vt="radarArea",_t="radarColumn",yt="radarLine",wt="smooth",bt="x",kt="y",xt="zero",Ct=[ft,gt,mt],St=[vt,_t,yt],Tt={createGridLines:function(e){var t,n,i=this,r=i.options,o=C.abs(i.box.center().y-e.lineBox().y1),a=!1,s=[];return r.majorGridLines.visible&&(t=i.majorGridLineAngles(e),a=!0,s=i.renderGridLines(t,o,r.majorGridLines)),r.minorGridLines.visible&&(n=i.minorGridLineAngles(e,a),A(s,i.renderGridLines(n,o,r.minorGridLines))),s},renderGridLines:function(e,t,n){var i,r,o={stroke:{width:n.width,color:n.color,dashType:n.dashType}},a=this.box.center(),s=new I.Circle([a.x,a.y],t),l=this.gridLinesVisual();for(i=0;e.length>i;i++)r=new E.Path(o),r.moveTo(s.center).lineTo(s.pointAt(e[i])),l.append(r);return l.children},gridLineAngles:function(n,i,r){var o=this,a=o.intervals(i,r);return e.map(a,function(e){var i=o.intervalAngle(e);return n.options.visible&&90===i?t:i})}},Dt=L.extend({options:{startAngle:90,labels:{margin:it(10)},majorGridLines:{visible:!0},justified:!0},range:function(){return{min:0,max:this.options.categories.length}},reflow:function(e){this.box=e,this.reflowLabels()},lineBox:function(){return this.box},reflowLabels:function(){var e,t,n=this,i=new R,r=n.labels;for(t=0;r.length>t;t++)r[t].reflow(i),e=r[t].box,r[t].reflow(n.getSlot(t).adjacentBox(0,e.width(),e.height()))},intervals:function(e,t){var n,i=this,r=i.options,o=r.categories.length,a=0,s=0,l=o/e||1,c=360/l,d=[];for(t&&(s=360/(o/t)),n=0;l>n;n++)a=at(a,ct),a%s!==0&&d.push(a%360),r.reverse?a=360+a-c:a+=c;return d},majorIntervals:function(){return this.intervals(1)},minorIntervals:function(){return this.intervals(.5)},intervalAngle:function(e){return(360+e+this.options.startAngle)%360},majorAngles:function(){return e.map(this.majorIntervals(),e.proxy(this.intervalAngle,this))},createLine:function(){return[]},majorGridLineAngles:function(e){return this.gridLineAngles(e,1)},minorGridLineAngles:function(e,t){return this.gridLineAngles(e,.5,t?1:0)},createPlotBands:function(){var e,t,n,i,r,o,a,s=this,l=s.options,c=l.plotBands||[],d=this._plotbandGroup=new E.Group({zIndex:-1});for(e=0;c.length>e;e++)t=c[e],n=s.plotBandSlot(t),i=s.getSlot(t.from),r=t.from-C.floor(t.from),n.startAngle+=r*i.angle,o=C.ceil(t.to)-t.to,n.angle-=(o+r)*i.angle,a=et.current.createRing(n,{fill:{color:t.color,opacity:t.opacity},stroke:{opacity:t.opacity}}),d.append(a);s.appendVisual(d)},plotBandSlot:function(e){return this.getSlot(e.from,e.to-1)},getSlot:function(e,t){var n,i,r,o=this,a=o.options,s=a.justified,l=o.box,c=o.majorAngles(),d=c.length,u=360/d;return a.reverse&&!s&&(e=(e+1)%d),e=ot(C.floor(e),0,d-1),i=c[e],s&&(i-=u/2,0>i&&(i+=360)),t=ot(C.ceil(t||e),e,d-1),n=t-e+1,r=u*n,new K(l.center(),0,l.height()/2,i,r)},slot:function(e,t){var n=this.getSlot(e,t),i=n.startAngle+180,r=i+n.angle;return new I.Arc([n.c.x,n.c.y],{startAngle:i,endAngle:r,radiusX:n.r,radiusY:n.r})},pointCategoryIndex:function(e){var t,n,i=this,r=null,o=i.options.categories.length;for(t=0;o>t;t++)if(n=i.getSlot(t),n.containsPoint(e)){r=t;break}return r}});T(Dt.fn,Tt),r={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var e,t,n,i,r,o,a=this,s=a.options,l=s.plotBands||[],c=s.majorGridLines.type,d=a.plotArea.polarAxis,u=d.majorAngles(),h=d.box.center(),p=this._plotbandGroup=new E.Group({zIndex:-1});for(e=0;l.length>e;e++)t=l[e],n={fill:{color:t.color,opacity:t.opacity},stroke:{opacity:t.opacity}},i=a.getSlot(t.from,t.to,!0),r=new K(h,h.y-i.y2,h.y-i.y1,0,360),o=c===st?et.current.createRing(r,n):E.Path.fromPoints(a.plotBandPoints(r,u),n).close(),p.append(o);a.appendVisual(p)},plotBandPoints:function(e,t){var n,i=[],r=[],o=[e.c.x,e.c.y],a=new I.Circle(o,e.ir),s=new I.Circle(o,e.r);for(n=0;t.length>n;n++)i.push(a.pointAt(t[n])),r.push(s.pointAt(t[n]));return i.reverse(),i.push(i[0]),r.push(r[0]),r.concat(i)},createGridLines:function(e){var t,n=this,i=n.options,r=n.radarMajorGridLinePositions(),o=e.majorAngles(),a=e.box.center(),s=[];return i.majorGridLines.visible&&(s=n.renderGridLines(a,r,o,i.majorGridLines)),i.minorGridLines.visible&&(t=n.radarMinorGridLinePositions(),A(s,n.renderGridLines(a,t,o,i.minorGridLines))),s},renderGridLines:function(e,t,n,i){var r,o,a,s,l,c={stroke:{width:i.width,color:i.color,dashType:i.dashType}},d=this.gridLinesVisual();for(o=0;t.length>o;o++)if(r=e.y-t[o],r>0)if(s=new I.Circle([e.x,e.y],r),i.type===st)d.append(new E.Circle(s,c));else{for(l=new E.Path(c),a=0;n.length>a;a++)l.lineTo(s.pointAt(n[a]));l.close(),d.append(l)}return d.children},getValue:function(e){var t,n,r,o,a,s,l,c=this,d=c.options,u=c.lineBox(),h=c.plotArea.polarAxis,p=h.majorAngles(),f=h.box.center(),g=e.distanceTo(f),m=g;return d.majorGridLines.type!==st&&p.length>1&&(t=e.x-f.x,n=e.y-f.y,r=(C.atan2(n,t)/ut+540)%360,p.sort(function(e,t){return i(e,r)-i(t,r)}),o=i(p[0],p[1])/2,a=i(r,p[0]),s=90-o,l=180-a-s,m=g*(C.sin(l*ut)/C.sin(s*ut))),c.axisType().fn.getValue.call(c,new Q(u.x1,u.y2-m))}},o=G.extend({radarMajorGridLinePositions:function(){return this.getTickPositions(this.options.majorUnit)},radarMinorGridLinePositions:function(){var e=this,t=e.options,n=0;return t.majorGridLines.visible&&(n=t.majorUnit),e.getTickPositions(t.minorUnit,n)},axisType:function(){return G}}),T(o.fn,r),a=q.extend({radarMajorGridLinePositions:function(){var e=this,t=[];return e.traverseMajorTicksPositions(function(e){t.push(e)},e.options.majorGridLines),t},radarMinorGridLinePositions:function(){var e=this,t=[];return e.traverseMinorTicksPositions(function(e){t.push(e)},e.options.minorGridLines),t},axisType:function(){return q}}),T(a.fn,r),s=F.extend({init:function(e){var t=this;F.fn.init.call(t,e),e=t.options,e.minorUnit=e.minorUnit||t.options.majorUnit/2},options:{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:it(10)},majorGridLines:{color:lt,visible:!0,width:1},minorGridLines:{color:"#aaa"}},getDivisions:function(e){return G.fn.getDivisions.call(this,e)-1},reflow:function(e){this.box=e,this.reflowLabels()},reflowLabels:function(){var e,t,n=this,i=new R,r=n.majorIntervals(),o=n.labels;for(t=0;o.length>t;t++)o[t].reflow(i),e=o[t].box,o[t].reflow(n.getSlot(r[t]).adjacentBox(0,e.width(),e.height()))},lineBox:function(){return this.box},intervals:function(e,t){var n,i=this,r=i.options,o=i.getDivisions(e),a=r.min,s=[];for(t&&(t/=e),n=0;o>n;n++)n%t!==0&&s.push((360+a)%360),a+=e;return s},majorIntervals:function(){return this.intervals(this.options.majorUnit)},minorIntervals:function(){return this.intervals(this.options.minorUnit)},intervalAngle:function(e){return(360+e-this.options.startAngle)%360},majorAngles:Dt.fn.majorAngles,createLine:function(){return[]},majorGridLineAngles:function(e){return this.gridLineAngles(e,this.options.majorUnit)},minorGridLineAngles:function(e,t){return this.gridLineAngles(e,this.options.minorUnit,t?this.options.majorUnit:0)},createPlotBands:Dt.fn.createPlotBands,plotBandSlot:function(e){return this.getSlot(e.from,e.to)},getSlot:function(e,t){var n,i=this,r=i.options,o=r.startAngle,a=i.box;return e=ot(e,r.min,r.max),t=ot(t||e,e,r.max),r.reverse&&(e*=-1,t*=-1),e=(540-e-o)%360,t=(540-t-o)%360,e>t&&(n=e,e=t,t=n),new K(a.center(),0,a.height()/2,e,t-e)},slot:function(e,t){var n,i,r,o,a=this.options,s=360-a.startAngle,l=this.getSlot(e,t);return M.util.defined(t)||(t=e),r=C.min(e,t),o=C.max(e,t),a.reverse?(n=r,i=o):(n=360-o,i=360-r),n=(n+s)%360,i=(i+s)%360,new I.Arc([l.c.x,l.c.y],{startAngle:n,endAngle:i,radiusX:l.r,radiusY:l.r})},getValue:function(e){var t=this,n=t.options,i=t.box.center(),r=e.x-i.x,o=e.y-i.y,a=C.round(C.atan2(o,r)/ut),s=n.startAngle;return n.reverse||(a*=-1,s*=-1),(a+s+360)%360},range:G.fn.range,labelsCount:G.fn.labelsCount,createAxisLabel:G.fn.createAxisLabel}),T(s.fn,Tt),l=N.extend({options:{gap:1,spacing:0},reflow:function(e){var t,n,i=this,r=i.options,o=i.children,a=r.gap,s=r.spacing,l=o.length,c=l+a+s*(l-1),d=e.angle/c,u=e.startAngle+d*(a/2);for(n=0;l>n;n++)t=e.clone(),t.startAngle=u,t.angle=d,o[n].sector&&(t.r=o[n].sector.r),o[n].reflow(t),o[n].sector=t,u+=d+d*s}}),c=N.extend({reflow:function(e){var t,n,i=this,r=i.options.isReversed,o=i.children,a=o.length,s=r?a-1:0,l=r?-1:1;for(i.box=new R,n=s;n>=0&&a>n;n+=l)t=o[n].sector,t.startAngle=e.startAngle,t.angle=e.angle}}),d=U.extend({init:function(e,t){U.fn.init.call(this,e,null,t)},options:{overlay:{gradient:null},labels:{distance:10}}}),u=z.extend({pointType:function(){return d},clusterType:function(){return l},stackType:function(){return c},categorySlot:function(e,t){return e.getSlot(t)},pointSlot:function(e,t){var n=e.clone(),i=e.c.y;return n.r=i-t.y1,n.ir=i-t.y2,n},reflow:H.fn.reflow,reflowPoint:function(e,t){e.sector=t,e.reflow()},options:{clip:!1,animation:{type:"pie"}},createAnimation:function(){this.options.animation.center=this.box.toRect().center(),z.fn.createAnimation.call(this)}}),h=W.extend({options:{clip:!1},pointSlot:function(e,t){var n=e.c.y-t.y1,i=Q.onCircle(e.c,e.middle(),n);return new R(i.x,i.y,i.x,i.y)},createSegment:function(e,t,n){var i,r,o=t.style;return r=o==wt?tt:j,i=new r(e,t,n),e.length===t.data.length&&(i.options.closed=!0),i}}),p=P.extend({points:function(){return j.fn.points.call(this,this.stackPoints)}}),f=nt.extend({areaPoints:function(){return[]}}),g=h.extend({createSegment:function(e,t,n,i){var r,o,a=this,s=a.options,l=s.isStacked,c=(t.line||{}).style;return c===wt?(o=new f(e,i,l,t,n),o.options.closed=!0):(l&&n>0&&i&&(r=i.linePoints.slice(0).reverse()),e.push(e[0]),o=new p(e,r,t,n)),o},seriesMissingValues:function(e){return e.missingValues||xt}}),m=X.extend({pointSlot:function(e,t){var n=e.c.y-t.y1,i=Q.onCircle(e.c,e.startAngle,n);return new R(i.x,i.y,i.x,i.y)},options:{clip:!1}}),v=Z.extend({pointSlot:m.fn.pointSlot,options:{clip:!1}}),_=P.extend({points:function(){var e=this,t=e.parent,n=t.plotArea,i=n.polarAxis,r=i.box.center(),o=e.stackPoints,a=j.fn.points.call(e,o);return a.unshift([r.x,r.y]),a.push([r.x,r.y]),a}}),y=nt.extend({areaPoints:function(){var e=this,t=e.parent,n=t.plotArea,i=n.polarAxis,r=i.box.center();return[r]},points:function(){var e,t=this,n=t.parent,i=n.plotArea,r=i.polarAxis,o=r.box.center(),a=new V(!1),s=j.fn.points.call(this);return s.push(o),e=a.process(s),e.splice(e.length-3,e.length-1),t.curvePoints=e,e}}),w=v.extend({createSegment:function(e,t,n){var i,r=(t.line||{}).style;return i=r==wt?new y(e,null,!1,t,n):new _(e,[],t,n)},seriesMissingValues:function(e){return e.missingValues||xt},sortPoints:function(e){return e.sort(n)}}),b=$.extend({init:function(e,t){var n=this;n.valueAxisRangeTracker=new B,$.fn.init.call(n,e,t)},render:function(){var e=this;e.addToLegend(e.series),e.createPolarAxis(),e.createCharts(),e.createValueAxis()},createValueAxis:function(){var e,t,n,i,r=this,s=r.valueAxisRangeTracker,l=s.query(),c=r.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});c.type===ht?(n=a,i={min:.1,max:1}):(n=o,i={min:0,max:1}),e=s.query(name)||l||i,e&&l&&(e.min=C.min(e.min,l.min),e.max=C.max(e.max,l.max)),t=new n(e.min,e.max,c),r.valueAxis=t,r.appendAxis(t)},reflowAxes:function(){var e,t=this,n=t.options.plotArea,i=t.valueAxis,r=t.polarAxis,o=t.box,a=C.min(o.width(),o.height())*dt,s=it(n.padding||{},a),l=o.clone().unpad(s),c=l.clone().shrink(0,l.height()/2);r.reflow(l),i.reflow(c),e=i.lineBox().height()-i.box.height(),i.reflow(i.box.unpad({top:e})),t.axisBox=l,t.alignAxes(l)},alignAxes:function(){var e=this,t=e.valueAxis,n=t.getSlot(t.options.min),i=t.options.reverse?2:1,r=e.polarAxis.getSlot(0).c,o=t.box.translate(r.x-n[bt+i],r.y-n[kt+i]);t.reflow(o)},backgroundBox:function(){return this.box}}),k=b.extend({options:{categoryAxis:{categories:[]},valueAxis:{}},createPolarAxis:function(){var e,t=this;e=new Dt(t.options.categoryAxis),t.polarAxis=e,t.categoryAxis=e,t.appendAxis(e)},valueAxisOptions:function(e){var t=this;return t._hasBarCharts&&T(e,{majorGridLines:{type:st},minorGridLines:{type:st}}),t._isStacked100&&T(e,{roundToMajorUnit:!1,labels:{format:"P0"}}),T(e,t.options.valueAxis)},appendChart:O.fn.appendChart,createCharts:function(){var e=this,t=e.filterVisibleSeries(e.series),n=e.panes[0];e.createAreaChart(rt(t,[vt]),n),e.createLineChart(rt(t,[yt]),n),e.createBarChart(rt(t,[_t]),n)},chartOptions:function(e){var t,n,i={series:e},r=e[0];return r&&(t=this.filterVisibleSeries(e),n=r.stack,i.isStacked=n&&t.length>1,i.isStacked100=n&&"100%"===n.type&&t.length>1,i.isStacked100&&(this._isStacked100=!0)),i},createAreaChart:function(e,t){if(0!==e.length){var n=new g(this,this.chartOptions(e));this.appendChart(n,t)}},createLineChart:function(e,t){if(0!==e.length){var n=new h(this,this.chartOptions(e));this.appendChart(n,t)}},createBarChart:function(e,t){var n,i,r;0!==e.length&&(n=e[0],i=this.chartOptions(e),i.gap=n.gap,i.spacing=n.spacing,r=new u(this,i),this.appendChart(r,t),this._hasBarCharts=!0)},seriesCategoryAxis:function(){return this.categoryAxis},click:function(t,n){var i,r,o=this,a=t._eventCoordinates(n),s=new Q(a.x,a.y);i=o.categoryAxis.getCategory(s),r=o.valueAxis.getValue(s),null!==i&&null!==r&&t.trigger(pt,{element:e(n.target),category:i,value:r})},createCrosshairs:e.noop}),x=b.extend({options:{xAxis:{},yAxis:{}},createPolarAxis:function(){var e,t=this;e=new s(t.options.xAxis),t.polarAxis=e,t.axisX=e,t.appendAxis(e)},valueAxisOptions:function(e){var t=this;return T(e,{majorGridLines:{type:st},minorGridLines:{type:st}},t.options.yAxis)},createValueAxis:function(){var e=this;b.fn.createValueAxis.call(e),e.axisY=e.valueAxis},appendChart:function(e,t){var n=this;n.valueAxisRangeTracker.update(e.yAxisRanges),$.fn.appendChart.call(n,e,t)},createCharts:function(){var e=this,t=e.filterVisibleSeries(e.series),n=e.panes[0];e.createLineChart(rt(t,[gt]),n),e.createScatterChart(rt(t,[mt]),n),e.createAreaChart(rt(t,[ft]),n)},createLineChart:function(e,t){if(0!==e.length){var n=this,i=new v(n,{series:e});n.appendChart(i,t)}},createScatterChart:function(e,t){if(0!==e.length){var n=this,i=new m(n,{series:e});n.appendChart(i,t)}},createAreaChart:function(e,t){if(0!==e.length){var n=this,i=new w(n,{series:e});n.appendChart(i,t)}},click:function(t,n){var i,r,o=this,a=t._eventCoordinates(n),s=new Q(a.x,a.y);i=o.axisX.getValue(s),r=o.axisY.getValue(s),null!==i&&null!==r&&t.trigger(pt,{element:e(n.target),x:i,y:r})},createCrosshairs:e.noop}),Y.current.register(x,Ct),Y.current.register(k,St),J.current.register(Ct,[bt,kt],["color"]),J.current.register(St,["value"],["color"]),M.DefaultAggregates.current.register(St,{value:"max",color:"first"}),T(M,{PolarAreaChart:w,PolarAxis:s,PolarLineChart:v,PolarPlotArea:x,RadarAreaChart:g,RadarBarChart:u,RadarCategoryAxis:Dt,RadarClusterLayout:l,RadarLineChart:h,RadarNumericAxis:o,RadarPlotArea:k,SplinePolarAreaSegment:y,SplineRadarAreaSegment:f,RadarStackLayout:c})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});