text: /*
  * Kendo UI Complete v2012.1.515 (http://kendoui.com)
  * Copyright 2012 Telerik AD. All rights reserved.
  *
  * Kendo UI Complete commercial licenses may be obtained at http://kendoui.com/complete-license
  * If you do not own a commercial license, this file shall be governed by the trial license terms.
  */
  (function(){function W(a,b){var c=[],d,e;a=a?a.toLowerCase():null;if(a&&a!=z&&b){d=C[a];for(e=0;e<d.length;e++)c.push(d[e]*b);return"stroke-dasharray='"+c.join(" ")+"' "}return""}function V(a){return c.round(a)+.5}function T(a){this.view=a}function S(a){this.view=a}var a=jQuery,b=document,c=Math,d=window.kendo,e=d.Class,f=d.dataviz,g=f.Box2D,h=f.ExpandAnimation,i=f.Point2D,j=f.ViewBase,k=f.ViewElement,l=d.deepExtend,m=f.defined,n=f.round,o=f.renderTemplate,p=f.rotatePoint,q=f.uniqueId,r="butt",s=f.CLIP,t=f.COORD_PRECISION,u=f.DEFAULT_WIDTH,v=f.DEFAULT_HEIGHT,w=f.DEFAULT_FONT,x="none",y="radial",z="solid",A="square",B="http://www.w3.org/2000/svg",C={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},D="transparent",E="undefined",F=j.extend({init:function(a){var b=this;j.fn.init.call(b,a),b.decorators.push(new S(b),new T(b)),f.ui.Chart&&b.decorators.push(new f.BarAnimationDecorator(b),new f.PieAnimationDecorator(b)),b.decorators.push(new U(b),new f.FadeAnimationDecorator(b)),f.Gauge&&b.decorators.push(new f.RadialPointerAnimationDecorator(b),new f.ArrowPointerAnimationDecorator(b),new f.BarIndicatorAnimationDecorator(b)),b.template=F.template,b.template||(b.template=F.template=o("<?xml version='1.0' ?><svg xmlns='"+B+"' version='1.1' "+"width='#= d.options.width #px' height='#= d.options.height #px' "+"style='position: relative; display: block;'>"+"#= d.renderDefinitions() #"+"#= d.renderContent() #</svg>"))},options:{width:u,height:v,idPrefix:""},renderTo:function(a){var b=this,c;b.setupAnimations(),X(a,b.render()),c=a.firstChild.nextSibling,b.alignToScreen(c),b.playAnimations();return c},renderDefinitions:function(){var a=this,b=j.fn.renderDefinitions.call(a);return b.length>0?"<defs>"+b+"</defs>":""},renderElement:function(a){var c=b.createElement("div"),d;X(c,"<?xml version='1.0' ?><svg xmlns='"+B+"' version='1.1'>"+a.render()+"</svg>"),d=c.firstChild.nextSibling.firstChild;return d},createGroup:function(a){return this.decorate(new N(a))},createText:function(a,b){return this.decorate(new G(a,b))},createRect:function(a,b){return this.decorate(new I(a.points(),!0,b))},createLine:function(a,b,c,d,e){return this.decorate(new I([new i(a,b),new i(c,d)],!1,e))},createPolyline:function(a,b,c){return this.decorate(new I(a,b,c))},createCircle:function(a,b,c){return this.decorate(new M(a,b,c))},createSector:function(a,b){return this.decorate(new L(a,b))},createRing:function(a,b){return this.decorate(new J(a,b))},createPin:function(a,b){return this.decorate(new K(a,b))},createGradient:function(a){return a.type===y?new R(a):new Q(a)},alignToScreen:function(a){var b;try{b=a.getScreenCTM?a.getScreenCTM():null}catch(c){}if(b){var d=-b.e%1,e=-b.f%1,f=a.style;if(d!==0||e!==0)f.left=d+"px",f.top=e+"px"}}});F.fromModel=function(a){var b=new F(a.options);[].push.apply(b.children,a.getViewElements(b));return b},F.available=f.supportsSVG,F.preference=100,f.ui.registerView(F);var G=k.extend({init:function(a,b){var c=this;k.fn.init.call(c,b),c.content=a,c.template=G.template,c.template||(c.template=G.template=o("<text #= d.renderAttr(\"id\", d.options.id) # #= d.renderDataAttributes() # x='#= Math.round(d.options.x) #' y='#= Math.round(d.options.y + d.options.baseline) #' fill-opacity='#= d.options.fillOpacity #' #= d.options.rotation ? d.renderRotation() : '' # style='font: #= d.options.font #' fill='#= d.options.color #'>#= d.content #</text>"))},options:{x:0,y:0,baseline:0,font:w,size:{width:0,height:0},fillOpacity:1},refresh:function(b){var c=this.options;a(b).attr({"fill-opacity":c.fillOpacity})},clone:function(){var a=this;return new G(a.content,l({},a.options))},renderRotation:function(){var a=this,b=a.options,c=b.size,d=n(b.x+c.normalWidth/2,t),e=n(b.y+c.normalHeight/2,t),f=n(b.x+c.width/2,t),g=n(b.y+c.height/2,t),h=n(f-d,t),i=n(g-e,t);return"transform='translate("+h+","+i+") "+"rotate("+b.rotation+","+d+","+e+")'"}}),H=k.extend({init:function(a){var b=this;k.fn.init.call(b,a),b.template=H.template,b.template||(b.template=H.template=o("<path #= d.renderAttr(\"id\", d.options.id) ##= d.renderDataAttributes() # d='#= d.renderPoints() #' #= d.renderAttr(\"stroke\", d.options.stroke) # #= d.renderAttr(\"stroke-width\", d.options.strokeWidth) ##= d.renderDashType() # stroke-linecap='#= d.renderLinecap() #' stroke-linejoin='round' fill-opacity='#= d.options.fillOpacity #' stroke-opacity='#= d.options.strokeOpacity #' fill='#= d.renderFill() #'></path>"))},options:{fill:"",fillOpacity:1,strokeOpacity:1,rotation:[0,0,0]},refresh:function(b){var c=this.options;a(b).attr({d:this.renderPoints(),"fill-opacity":c.fillOpacity,"stroke-opacity":c.strokeOpacity})},clone:function(){var a=this;return new H(l({},a.options))},renderPoints:function(){},renderDashType:function(){var a=this,b=a.options;return W(b.dashType,b.strokeWidth)},renderLinecap:function(){var a=this.options.dashType;return a&&a!=z?r:A},renderFill:function(){var a=this.options.fill;if(a&&a!==D)return a;return x}}),I=H.extend({init:function(a,b,c){var d=this;H.fn.init.call(d,c),d.points=a,d.closed=b},renderPoints:function(){var a=this,b=a.points,c,d=b.length,e=function(b){var c=a.options.rotation;return p(b.x,b.y,c[1],c[2],-c[0])},f="M"+a._print(e(b[0]));for(c=1;c<d;c++)f+=" "+a._print(e(b[c]));a.closed&&(f+=" z");return f},clone:function(){var a=this;return new I(l([],a.points),a.closed,l({},a.options))},_print:function(a){var b=this,c=b.options,d=c.strokeWidth,e=c.align!==!1&&d&&d%2!==0,f=e?V:n;return f(a.x,t)+" "+f(a.y,t)}}),J=H.extend({init:function(a,b){var c=this;H.fn.init.call(c,b),c.pathTemplate=J.pathTemplate,c.pathTemplate||(c.pathTemplate=J.pathTemplate=o("M #= d.firstOuterPoint.x # #= d.firstOuterPoint.y # A#= d.r # #= d.r # 0 #= d.isReflexAngle ? '1' : '0' #,1 #= d.secondOuterPoint.x # #= d.secondOuterPoint.y # L #= d.secondInnerPoint.x # #= d.secondInnerPoint.y # A#= d.ir # #= d.ir # 0 #= d.isReflexAngle ? '1' : '0' #,0 #= d.firstInnerPoint.x # #= d.firstInnerPoint.y # z")),c.config=a||{}},renderPoints:function(){var a=this,b=a.config,d=b.startAngle,e=b.angle+d,f=e-d>180,g=c.max(b.r,0),h=c.max(b.ir,0),i=b.c,j=b.point(d),k=b.point(d,!0),l,m;e=e-d===360?e-.001:e,l=b.point(e),m=b.point(e,!0);return a.pathTemplate({firstOuterPoint:j,secondOuterPoint:l,isReflexAngle:f,r:g,ir:h,cx:i.x,cy:i.y,firstInnerPoint:k,secondInnerPoint:m})}}),K=H.extend({init:function(a,b){var c=this;H.fn.init.call(c,b),c.pathTemplate=K.pathTemplate,c.pathTemplate||(c.pathTemplate=K.pathTemplate=o("M #= d.origin.x # #= d.origin.y # #= d.as.x # #= d.as.y # A#= d.r # #= d.r # 0 #= d.isReflexAngle ? '1' : '0' #,0 #= d.ae.x # #= d.ae.y # z")),c.config=a||new f.Pin},renderPoints:function(){var a=this,b=a.config,d=b.radius,e=c.PI/180,f=b.arcAngle,g=d*c.sin(f*e/2),h=b.height-d*(1-c.cos(f*e/2)),i=b.origin,j={x:i.x+g,y:i.y-h},k={x:i.x-g,y:i.y-h},l=function(c,d){var e=a.options.rotation,f=b.rotation;c=p(c.x,c.y,e[1],e[2],-e[0]),d&&(c=p(c.x,c.y,i.x,i.y,f));return c};i=l(i);return a.pathTemplate({origin:i,as:l(j,!0),ae:l(k,!0),r:d,isReflexAngle:f>180})}}),L=J.extend({init:function(a,b){var c=this;J.fn.init.call(c,a,b),c.pathTemplate=L.pathTemplate,c.pathTemplate||(c.pathTemplate=L.pathTemplate=o("M #= d.firstOuterPoint.x # #= d.firstOuterPoint.y # A#= d.r # #= d.r # 0 #= d.isReflexAngle ? '1' : '0' #,1 #= d.secondOuterPoint.x # #= d.secondOuterPoint.y # L #= d.cx # #= d.cy # z"))},options:{fill:"",fillOpacity:1,strokeOpacity:1,strokeLineCap:A},clone:function(){var a=this;return new L(l({},a.config),l({},a.options))}}),M=k.extend({init:function(a,b,c){var d=this;k.fn.init.call(d,c),d.center=a,d.radius=b,d.template=M.template,d.template||(d.template=M.template=o("<circle #= d.renderAttr(\"id\", d.options.id) # #= d.renderDataAttributes() #cx='#= d.center[0] #' cy='#= d.center[1] #' r='#= d.radius #' #= d.renderAttr(\"stroke\", d.options.stroke) # #= d.renderAttr(\"stroke-width\", d.options.strokeWidth) #fill-opacity='#= d.options.fillOpacity #' stroke-opacity='#= d.options.strokeOpacity #'  fill='#= d.options.fill || \"none\" #'></circle>"))},options:{fill:"",fillOpacity:1,strokeOpacity:1}}),N=k.extend({init:function(a){var b=this;k.fn.init.call(b,a),b.template=N.template,b.template||(b.template=N.template=o('<g#= d.renderAttr("id", d.options.id) ##= d.renderDataAttributes() ##= d.renderAttr("clip-path", d.options.clipPath) #>#= d.renderContent() #</g>'))}}),O=k.extend({init:function(a){var b=this;k.fn.init.call(b,a),b.template=O.template,b.template||(b.template=O.template=o('<clipPath#= d.renderAttr("id", d.options.id) #>#= d.renderContent() #</clipPath>'))}}),P=k.extend({init:function(a){var b=this;k.fn.init.call(b,a)},options:{id:""},renderStops:function(){var a=this,b=a.options.stops,c=a.stopTemplate,d,e=b.length,f,g="";for(d=0;d<e;d++)f=b[d],g+=c(f);return g}}),Q=P.extend({init:function(a){var b=this;P.fn.init.call(b,a),b.template=Q.template,b.stopTemplate=Q.stopTemplate,b.template||(b.template=Q.template=o("<linearGradient id='#= d.options.id #' gradientTransform='rotate(#= d.options.rotation #)'> #= d.renderStops() #</linearGradient>"),b.stopTemplate=Q.stopTemplate=o("<stop offset='#= Math.round(d.offset * 100) #%' style='stop-color:#= d.color #;stop-opacity:#= d.opacity #' />"))},options:{rotation:0}}),R=P.extend({init:function(a){var b=this;P.fn.init.call(b,a),b.template=R.template,b.stopTemplate=R.stopTemplate,b.template||(b.template=R.template=o("<radialGradient id='#= d.options.id #' cx='#= d.options.cx #' cy='#= d.options.cy #' fx='#= d.options.cx #' fy='#= d.options.cy #' r='#= d.options.r #' gradientUnits='userSpaceOnUse'>#= d.renderStops() #</radialGradient>"),b.stopTemplate=R.stopTemplate=o("<stop offset='#= Math.round(d.offset * 100) #%' style='stop-color:#= d.color #;stop-opacity:#= d.opacity #' />"))}});S.prototype={decorate:function(a){var b=this,c=b.view,d=a.options,e=d.id,f,g;if(d.overlay){a.options.id=q(),f=c.createGroup(),g=a.clone(),f.children.push(a,g),g.options.id=e,g.options.fill=d.overlay;return f}return a}},T.prototype={decorate:function(a){var b=this,c=a.options;c.fill=b.getPaint(c.fill);return a},getPaint:function(a){var b=this,c=b.view,d=b.baseUrl(),e=c.definitions,f,g,h;if(a&&m(a.gradient)){f=c.buildGradient(a);if(f){g=f.id,h=e[g],h||(h=c.createGradient(f),e[g]=h);return"url("+d+"#"+h.options.id+")"}return x}return a},baseUrl:function(){var c=b.getElementsByTagName("base")[0],d="",e=b.location.href,f=e.indexOf("#");c&&!a.browser.msie&&(f!==-1&&(e=e.substring(0,f)),d=e);return d}};var U=e.extend({init:function(a){this.view=a,this.clipId=q()},decorate:function(a){var b=this,c=b.view,d=b.clipId,e=c.options,f=a.options.animation,i=c.definitions,j=i[d],k;f&&f.type===s&&e.transitions&&(j||(j=new O({id:d}),k=c.createRect(new g(0,0,e.width,e.height),{id:q()}),j.children.push(k),i[d]=j,c.animations.push(new h(k,{size:e.width}))),a.options.clipPath="url(#"+d+")");return a}}),X=function(a,b){a.innerHTML=b};(function(){var a="<svg xmlns='"+B+"'></svg>",c=b.createElement("div"),d=typeof DOMParser!=E;c.innerHTML=a,d&&c.firstChild.namespaceURI!=B&&(X=function(a,c){var d=new DOMParser,e=d.parseFromString(c,"text/xml"),f=b.adoptNode(e.documentElement);a.innerHTML="",a.appendChild(f)})})(),l(f,{SVGCircle:M,SVGClipAnimationDecorator:U,SVGClipPath:O,SVGGradientDecorator:T,SVGGroup:N,SVGLine:I,SVGLinearGradient:Q,SVGOverlayDecorator:S,SVGPath:H,SVGRadialGradient:R,SVGRing:J,SVGSector:L,SVGText:G,SVGView:F})})(jQuery)