/** * Kendo UI v2016.1.112 (http://www.telerik.com/kendo-ui) * Copyright 2016 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(t,define){define("util/main.min",["kendo.core.min"],t)}(function(){return function(){function t(t){return typeof t!==F}function e(t,e){var i=n(e);return R.round(t*i)/i}function n(t){return t?R.pow(10,t):1}function i(t,e,n){return R.max(R.min(t,n),e)}function r(t){return t*D}function o(t){return t/D}function s(t){return"number"==typeof t&&!isNaN(t)}function a(e,n){return t(e)?e:n}function h(t){return t*t}function l(t){var e,n=[];for(e in t)n.push(e+t[e]);return n.sort().join("")}function c(t){var e,n=2166136261;for(e=0;t.length>e;++e)n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24),n^=t.charCodeAt(e);return n>>>0}function u(t){return c(l(t))}function f(t){var e,n=t.length,i=M,r=L;for(e=0;n>e;e++)r=R.max(r,t[e]),i=R.min(i,t[e]);return{min:i,max:r}}function d(t){return f(t).min}function p(t){return f(t).max}function m(t){return v(t).min}function g(t){return v(t).max}function v(t){var e,n,i,r=M,o=L;for(e=0,n=t.length;n>e;e++)i=t[e],null!==i&&isFinite(i)&&(r=R.min(r,i),o=R.max(o,i));return{min:r===M?void 0:r,max:o===L?void 0:o}}function x(t){return t?t[t.length-1]:void 0}function y(t,e){return t.push.apply(t,e),t}function w(t){return z.template(t,{useWithBlock:!1,paramName:"d"})}function b(e,n){return t(n)&&null!==n?" "+e+"='"+n+"' ":""}function C(t){var e,n="";for(e=0;t.length>e;e++)n+=b(t[e][0],t[e][1]);return n}function _(e){var n,i,r="";for(n=0;e.length>n;n++)i=e[n][1],t(i)&&(r+=e[n][0]+":"+i+";");return""!==r?r:void 0}function T(t){return"string"!=typeof t&&(t+="px"),t}function k(t){var e,n,i=[];if(t)for(e=z.toHyphens(t).split("-"),n=0;e.length>n;n++)i.push("k-pos-"+e[n]);return i.join(" ")}function E(e){return""===e||null===e||"none"===e||"transparent"===e||!t(e)}function S(t){for(var e={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"},n=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],i="";t>0;)n[0]>t?n.shift():(i+=e[n[0]],t-=n[0]);return i}function A(t){var e,n,i,r,o;for(t=t.toLowerCase(),e={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},n=0,i=0,r=0;t.length>r;++r){if(o=e[t.charAt(r)],!o)return null;n+=o,o>i&&(n-=2*i),i=o}return n}function N(t){var e=Object.create(null);return function(){var n,i="";for(n=arguments.length;--n>=0;)i+=":"+arguments[n];return i in e?e[i]:t.apply(this,arguments)}}function P(t){for(var e,n,i=[],r=0,o=t.length;o>r;)e=t.charCodeAt(r++),e>=55296&&56319>=e&&o>r?(n=t.charCodeAt(r++),56320==(64512&n)?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--)):i.push(e);return i}function O(t){return t.map(function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)}).join("")}var R=Math,z=window.kendo,B=z.deepExtend,D=R.PI/180,M=Number.MAX_VALUE,L=-Number.MAX_VALUE,F="undefined",I=Date.now;I||(I=function(){return(new Date).getTime()}),B(z,{util:{MAX_NUM:M,MIN_NUM:L,append:y,arrayLimits:f,arrayMin:d,arrayMax:p,defined:t,deg:o,hashKey:c,hashObject:u,isNumber:s,isTransparent:E,last:x,limitValue:i,now:I,objectKey:l,round:e,rad:r,renderAttr:b,renderAllAttr:C,renderPos:k,renderSize:T,renderStyle:_,renderTemplate:w,sparseArrayLimits:v,sparseArrayMin:m,sparseArrayMax:g,sqr:h,valueOrDefault:a,romanToArabic:A,arabicToRoman:S,memoize:N,ucs2encode:O,ucs2decode:P}}),z.drawing.util=z.util,z.dataviz.util=z.util}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("util/text-metrics",["kendo.core","util/main"],t)}(function(){!function(t){function e(t,e,n){return l.current.measure(t,e,n)}var n=document,i=window.kendo,r=i.Class,o=i.util,s=o.defined,a=r.extend({init:function(t){this._size=t,this._length=0,this._map={}},put:function(t,e){var n=this,i=n._map,r={key:t,value:e};i[t]=r,n._head?(n._tail.newer=r,r.older=n._tail,n._tail=r):n._head=n._tail=r,n._length>=n._size?(i[n._head.key]=null,n._head=n._head.newer,n._head.older=null):n._length++},get:function(t){var e=this,n=e._map[t];return n?(n===e._head&&n!==e._tail&&(e._head=n.newer,e._head.older=null),n!==e._tail&&(n.older&&(n.older.newer=n.newer,n.newer.older=n.older),n.older=e._tail,n.newer=null,e._tail.newer=n,e._tail=n),n.value):void 0}}),h=t("
")[0],l=r.extend({init:function(t){this._cache=new a(1e3),this._initOptions(t)},options:{baselineMarkerSize:1},measure:function(e,i,r){var a,l,c,u,f,d=o.objectKey(i),p=o.hashKey(e+d),m=this._cache.get(p);if(m)return m;a={width:0,height:0,baseline:0},l=r?r:h,c=this._baselineMarker().cloneNode(!1);for(u in i)f=i[u],s(f)&&(l.style[u]=f);return t(l).text(e),l.appendChild(c),n.body.appendChild(l),(e+"").length&&(a.width=l.offsetWidth-this.options.baselineMarkerSize,a.height=l.offsetHeight,a.baseline=c.offsetTop+this.options.baselineMarkerSize),a.width>0&&a.height>0&&this._cache.put(p,a),l.parentNode.removeChild(l),a},_baselineMarker:function(){return t("
")[0]}});l.current=new l,i.util.TextMetrics=l,i.util.LRUCache=a,i.util.measureText=e}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("util/base64.min",["util/main.min"],t)}(function(){return function(){function t(t){var n,i,r,s,a,h,l,c="",u=0;for(t=e(t);t.length>u;)n=t.charCodeAt(u++),i=t.charCodeAt(u++),r=t.charCodeAt(u++),s=n>>2,a=(3&n)<<4|i>>4,h=(15&i)<<2|r>>6,l=63&r,isNaN(i)?h=l=64:isNaN(r)&&(l=64),c=c+o.charAt(s)+o.charAt(a)+o.charAt(h)+o.charAt(l);return c}function e(t){var e,n,i="";for(e=0;t.length>e;e++)n=t.charCodeAt(e),128>n?i+=r(n):2048>n?(i+=r(192|n>>>6),i+=r(128|63&n)):65536>n&&(i+=r(224|n>>>12),i+=r(128|n>>>6&63),i+=r(128|63&n));return i}var n=window.kendo,i=n.deepExtend,r=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i(n.util,{encodeBase64:t,encodeUTF8:e})}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("mixins/observers.min",["kendo.core.min"],t)}(function(){return function(t){var e=Math,n=window.kendo,i=n.deepExtend,r=t.inArray,o={observers:function(){return this._observers=this._observers||[]},addObserver:function(t){return this._observers?this._observers.push(t):this._observers=[t],this},removeObserver:function(t){var e=this.observers(),n=r(t,e);return-1!=n&&e.splice(n,1),this},trigger:function(t,e){var n,i,r=this._observers;if(r&&!this._suspended)for(i=0;r.length>i;i++)n=r[i],n[t]&&n[t](e);return this},optionsChange:function(t){this.trigger("optionsChange",t)},geometryChange:function(t){this.trigger("geometryChange",t)},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=e.max((this._suspended||0)-1,0),this},_observerField:function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)}};i(n,{mixins:{ObserversMixin:o}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/geometry.min",["util/main.min","mixins/observers.min"],t)}(function(){return function(){function t(t){return null===t?null:t instanceof m?t:new m(t)}function e(t){return t&&x.isFunction(t.matrix)?t.matrix():t}function n(t,e,n,i){var r=0,o=0;return i&&(r=g.atan2(i.c*n,i.a*e),0!==i.b&&(o=g.atan2(i.d*n,i.b*e))),{x:r,y:o}}function i(t,e){for(;e>t;)t+=90;return t}function r(t,e){var n,i,r;for(n=0;e.length>n;n++)i=e[n],r=i.charAt(0).toUpperCase()+i.substring(1,i.length),t["set"+r]=o(i),t["get"+r]=s(i)}function o(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function s(t){return function(){return this[t]}}function a(t,e,n){t>e&&(e+=360);var i=g.abs(e-t);return n||(i=360-i),i}function h(t,e,n,i,r,o){var s=E((r-t)/n,3),a=E((o-e)/i,3);return E(k(g.atan2(a,s)))}function l(t,e,n,i,r,o,s,l){var c,u,f,d,p,m,x,y,w,b,C,_,T,k,E,S,A,N;if(e!==i)w=n-t,b=i-e,C=v(r,2),_=v(o,2),T=(_*w*(t+n)+C*b*(e+i))/(2*C*b),k=T-i,E=-(w*_)/(C*b),p=1/C+v(E,2)/_,m=2*(E*k/_-n/C),x=v(n,2)/C+v(k,2)/_-1,y=g.sqrt(v(m,2)-4*p*x),c=(-m-y)/(2*p),u=T+E*c,f=(-m+y)/(2*p),d=T+E*f;else{if(t===n)return!1;m=-2*i,x=v((n-t)*o/(2*r),2)+v(i,2)-v(o,2),y=g.sqrt(v(m,2)-4*x),c=f=(t+n)/2,u=(-m-y)/2,d=(-m+y)/2}return S=h(c,u,r,o,t,e),A=h(c,u,r,o,n,i),N=a(S,A,l),(s&&180>=N||!s&&N>180)&&(c=f,u=d,S=h(c,u,r,o,t,e),A=h(c,u,r,o,n,i)),{center:new P(c,u),startAngle:S,endAngle:A}}var c,u,f,d,p,m,g=Math,v=g.pow,x=window.kendo,y=x.Class,w=x.deepExtend,b=x.mixins.ObserversMixin,C=x.util,_=C.defined,T=C.rad,k=C.deg,E=C.round,S=g.PI/2,A=C.MIN_NUM,N=C.MAX_NUM,P=y.extend({init:function(t,e){this.x=t||0,this.y=e||0},equals:function(t){return t&&t.x===this.x&&t.y===this.y},clone:function(){return new P(this.x,this.y)},rotate:function(e,n){return this.transform(t().rotate(e,n))},translate:function(t,e){return this.x+=t,this.y+=e,this.geometryChange(),this},translateWith:function(t){return this.translate(t.x,t.y)},move:function(t,e){return this.x=this.y=0,this.translate(t,e)},scale:function(t,e){return _(e)||(e=t),this.x*=t,this.y*=e,this.geometryChange(),this},scaleCopy:function(t,e){return this.clone().scale(t,e)},transform:function(t){var n=e(t),i=this.x,r=this.y;return this.x=n.a*i+n.c*r+n.e,this.y=n.b*i+n.d*r+n.f,this.geometryChange(),this},transformCopy:function(t){var e=this.clone();return t&&e.transform(t),e},distanceTo:function(t){var e=this.x-t.x,n=this.y-t.y;return g.sqrt(e*e+n*n)},round:function(t){return this.x=E(this.x,t),this.y=E(this.y,t),this.geometryChange(),this},toArray:function(t){var e=_(t),n=e?E(this.x,t):this.x,i=e?E(this.y,t):this.y;return[n,i]}});r(P.fn,["x","y"]),w(P.fn,b),P.fn.toString=function(t,e){var n=this.x,i=this.y;return _(t)&&(n=E(n,t),i=E(i,t)),e=e||" ",n+e+i},P.create=function(t,e){return _(t)?t instanceof P?t:1===arguments.length&&2===t.length?new P(t[0],t[1]):new P(t,e):void 0},P.min=function(){var t,e,n=C.MAX_NUM,i=C.MAX_NUM;for(t=0;t=t.left&&t.right>=e.left&&e.bottom>=t.top&&t.bottom>=e.top?u.fromPoints(new P(g.max(t.left,e.left),g.max(t.top,e.top)),new P(g.min(t.right,e.right),g.min(t.bottom,e.bottom))):void 0},f=y.extend({init:function(t,e){this.setCenter(t||new P),this.setRadius(e||0)},setCenter:function(t){return this._observerField("center",P.create(t)),this.geometryChange(),this},getCenter:function(){return this.center},equals:function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},clone:function(){return new f(this.center.clone(),this.radius)},pointAt:function(t){return this._pointAt(T(t))},bbox:function(t){var e,i,r,o,s=P.maxPoint(),a=P.minPoint(),h=n(this.center,this.radius,this.radius,t);for(e=0;4>e;e++)i=this._pointAt(h.x+e*S).transformCopy(t),r=this._pointAt(h.y+e*S).transformCopy(t),o=new P(i.x,r.y),s=P.min(s,o),a=P.max(a,o);return u.fromPoints(s,a)},_pointAt:function(t){var e=this.center,n=this.radius;return new P(e.x-n*g.cos(t),e.y-n*g.sin(t))}}),r(f.fn,["radius"]),w(f.fn,b),d=y.extend({init:function(t,e){this.setCenter(t||new P),e=e||{},this.radiusX=e.radiusX,this.radiusY=e.radiusY||e.radiusX,this.startAngle=e.startAngle,this.endAngle=e.endAngle,this.anticlockwise=e.anticlockwise||!1},clone:function(){return new d(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},setCenter:function(t){return this._observerField("center",P.create(t)),this.geometryChange(),this},getCenter:function(){return this.center},MAX_INTERVAL:45,pointAt:function(t){var e=this.center,n=T(t);return new P(e.x+this.radiusX*g.cos(n),e.y+this.radiusY*g.sin(n))},curvePoints:function(){var t,e,n,i=this.startAngle,r=this.anticlockwise?-1:1,o=[this.pointAt(i)],s=i,a=this._arcInterval(),h=a.endAngle-a.startAngle,l=g.ceil(h/this.MAX_INTERVAL),c=h/l;for(t=1;l>=t;t++)e=s+r*c,n=this._intervalCurvePoints(s,e),o.push(n.cp1,n.cp2,n.p2),s=e;return o},bbox:function(t){for(var e,r,o=this,s=o._arcInterval(),a=s.startAngle,h=s.endAngle,l=n(this.center,this.radiusX,this.radiusY,t),c=k(l.x),f=k(l.y),d=o.pointAt(a).transformCopy(t),p=o.pointAt(h).transformCopy(t),m=P.min(d,p),g=P.max(d,p),v=i(c,a),x=i(f,a);h>v||h>x;)h>v&&(e=o.pointAt(v).transformCopy(t),v+=90),h>x&&(r=o.pointAt(x).transformCopy(t),x+=90),d=new P(e.x,r.y),m=P.min(m,d),g=P.max(g,d);return u.fromPoints(m,g)},_arcInterval:function(){var t,e=this.startAngle,n=this.endAngle,i=this.anticlockwise;return i&&(t=e,e=n,n=t),(e>n||i&&e===n)&&(n+=360),{startAngle:e,endAngle:n}},_intervalCurvePoints:function(t,e){var n=this,i=n.pointAt(t),r=n.pointAt(e),o=n._derivativeAt(t),s=n._derivativeAt(e),a=(T(e)-T(t))/3,h=new P(i.x+a*o.x,i.y+a*o.y),l=new P(r.x-a*s.x,r.y-a*s.y);return{p1:i,cp1:h,cp2:l,p2:r}},_derivativeAt:function(t){var e=this,n=T(t);return new P(-e.radiusX*g.sin(n),e.radiusY*g.cos(n))}}),r(d.fn,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]),w(d.fn,b),d.fromPoints=function(t,e,n,i,r,o){var s=l(t.x,t.y,e.x,e.y,n,i,r,o);return new d(s.center,{startAngle:s.startAngle,endAngle:s.endAngle,radiusX:n,radiusY:i,anticlockwise:0===o})},p=y.extend({init:function(t,e,n,i,r,o){this.a=t||0,this.b=e||0,this.c=n||0,this.d=i||0,this.e=r||0,this.f=o||0},multiplyCopy:function(t){return new p(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)},invert:function(){var t=this.a,e=this.b,n=this.c,i=this.d,r=this.e,o=this.f,s=t*i-e*n;return 0===s?null:new p(i/s,-e/s,-n/s,t/s,(n*o-i*r)/s,(e*r-t*o)/s)},clone:function(){return new p(this.a,this.b,this.c,this.d,this.e,this.f)},equals:function(t){return t?this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d&&this.e===t.e&&this.f===t.f:!1},round:function(t){return this.a=E(this.a,t),this.b=E(this.b,t),this.c=E(this.c,t),this.d=E(this.d,t),this.e=E(this.e,t),this.f=E(this.f,t),this},toArray:function(t){var e,n=[this.a,this.b,this.c,this.d,this.e,this.f];if(_(t))for(e=0;n.length>e;e++)n[e]=E(n[e],t);return n}}),p.fn.toString=function(t,e){return this.toArray(t).join(e||",")},p.translate=function(t,e){return new p(1,0,0,1,t,e)},p.unit=function(){return new p(1,0,0,1,0,0)},p.rotate=function(t,e,n){var i=new p;return i.a=g.cos(T(t)),i.b=g.sin(T(t)),i.c=-i.b,i.d=i.a,i.e=e-e*i.a+n*i.b||0,i.f=n-n*i.a-e*i.b||0,i},p.scale=function(t,e){return new p(t,0,0,e,0,0)},p.IDENTITY=p.unit(),m=y.extend({init:function(t){this._matrix=t||p.unit()},clone:function(){return new m(this._matrix.clone())},equals:function(t){return t&&t._matrix.equals(this._matrix)},_optionsChange:function(){this.optionsChange({field:"transform",value:this})},translate:function(t,e){return this._matrix=this._matrix.multiplyCopy(p.translate(t,e)),this._optionsChange(),this},scale:function(t,e,n){return _(e)||(e=t),n&&(n=P.create(n),this._matrix=this._matrix.multiplyCopy(p.translate(n.x,n.y))),this._matrix=this._matrix.multiplyCopy(p.scale(t,e)),n&&(this._matrix=this._matrix.multiplyCopy(p.translate(-n.x,-n.y))),this._optionsChange(),this},rotate:function(t,e){return e=P.create(e)||P.ZERO,this._matrix=this._matrix.multiplyCopy(p.rotate(t,e.x,e.y)),this._optionsChange(),this},multiply:function(t){var n=e(t);return this._matrix=this._matrix.multiplyCopy(n),this._optionsChange(),this},matrix:function(t){return t?(this._matrix=t,this._optionsChange(),this):this._matrix}}),w(m.fn,b),w(x,{geometry:{Arc:d,Circle:f,Matrix:p,Point:P,Rect:u,Size:c,Transformation:m,transform:t,toMatrix:e}}),x.dataviz.geometry=x.geometry}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/core.min",["drawing/geometry.min"],t)}(function(){!function(t){var e,n,i,r=t.noop,o=Object.prototype.toString,s=window.kendo,a=s.Class,h=s.ui.Widget,l=s.deepExtend,c=s.util,u=c.defined,f=h.extend({init:function(t,e){this.options=l({},this.options,e),h.fn.init.call(this,t,this.options),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._visual=new s.drawing.Group,this.options.width&&this.element.css("width",this.options.width),this.options.height&&this.element.css("height",this.options.height)},options:{name:"Surface"},events:["click","mouseenter","mouseleave","resize"],draw:function(t){this._visual.children.push(t)},clear:function(){this._visual.children=[]},destroy:function(){this._visual=null,h.fn.destroy.call(this)},exportVisual:function(){return this._visual},getSize:function(){return{width:this.element.width(),height:this.element.height()}},setSize:function(t){this.element.css({width:t.width,height:t.height}),this._size=t,this._resize()},eventTarget:function(e){for(var n,i=t(e.touch?e.touch.initialTouch:e.target);!n&&i.length>0&&(n=i[0]._kendoNode,!i.is(this.element)&&0!==i.length);)i=i.parent();return n?n.srcElement:void 0},_resize:r,_handler:function(t){var e=this;return function(n){var i=e.eventTarget(n);i&&e.trigger(t,{element:i,originalEvent:n})}}});s.ui.plugin(f),f.create=function(t,e){return i.current.create(t,e)},e=a.extend({init:function(t){this.childNodes=[],this.parent=null,t&&(this.srcElement=t,this.observe())},destroy:function(){var t,e;for(this.srcElement&&this.srcElement.removeObserver(this),t=this.childNodes,e=0;t.length>e;e++)this.childNodes[e].destroy();this.parent=null},load:r,observe:function(){this.srcElement&&this.srcElement.addObserver(this)},append:function(t){this.childNodes.push(t),t.parent=this},insertAt:function(t,e){this.childNodes.splice(e,0,t),t.parent=this},remove:function(t,e){var n,i=t+e;for(n=t;i>n;n++)this.childNodes[n].removeSelf();this.childNodes.splice(t,e)},removeSelf:function(){this.clear(),this.destroy()},clear:function(){this.remove(0,this.childNodes.length)},invalidate:function(){this.parent&&this.parent.invalidate()},geometryChange:function(){this.invalidate()},optionsChange:function(){this.invalidate()},childrenChange:function(t){"add"===t.action?this.load(t.items,t.index):"remove"===t.action&&this.remove(t.index,t.items.length),this.invalidate()}}),n=a.extend({init:function(t,e){var n,i;this.prefix=e||"";for(n in t)i=t[n],i=this._wrap(i,n),this[n]=i},get:function(t){return s.getter(t,!0)(this)},set:function(t,e){var n,i=s.getter(t,!0)(this);i!==e&&(n=this._set(t,this._wrap(e,t)),n||this.optionsChange({field:this.prefix+t,value:e}))},_set:function(t,e){var i,r,o,a=t.indexOf(".")>=0;if(a)for(i=t.split("."),r="";i.length>1;){if(r+=i.shift(),o=s.getter(r,!0)(this),o||(o=new n({},r+"."),o.addObserver(this),this[r]=o),o instanceof n)return o.set(i.join("."),e),a;r+="."}return this._clear(t),s.setter(t)(this,e),a},_clear:function(t){var e=s.getter(t,!0)(this);e&&e.removeObserver&&e.removeObserver(this)},_wrap:function(t,e){var i=o.call(t);return null!==t&&u(t)&&"[object Object]"===i&&(t instanceof n||t instanceof a||(t=new n(t,this.prefix+e+".")),t.addObserver(this)),t}}),l(n.fn,s.mixins.ObserversMixin),i=function(){this._items=[]},i.prototype={register:function(t,e,n){var i=this._items,r=i[0],o={name:t,type:e,order:n};!r||r.order>n?i.unshift(o):i.push(o)},create:function(t,e){var n,i,r=this._items,o=r[0];if(e&&e.type)for(n=e.type.toLowerCase(),i=0;r.length>i;i++)if(r[i].name===n){o=r[i];break}return o?new o.type(t,e):void s.logToConsole("Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG, VML and Canvas. User agent: "+navigator.userAgent+"\n- The Kendo UI scripts are not fully loaded")}},i.current=new i,l(s,{drawing:{DASH_ARRAYS:{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]},Color:s.Color,BaseNode:e,OptionsStore:n,Surface:f,SurfaceFactory:i}}),s.dataviz.drawing=s.drawing}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/mixins.min",["drawing/core.min"],t)}(function(){!function(){var t=window.kendo,e=t.deepExtend,n=t.util.defined,i="gradient",r={extend:function(t){t.fill=this.fill,t.stroke=this.stroke},fill:function(t,e){var r,o=this.options;return n(t)?(t&&t.nodeType!=i?(r={color:t},n(e)&&(r.opacity=e),o.set("fill",r)):o.set("fill",t),this):o.get("fill")},stroke:function(t,e,i){return n(t)?(this.options.set("stroke.color",t),n(e)&&this.options.set("stroke.width",e),n(i)&&this.options.set("stroke.opacity",i),this):this.options.get("stroke")}},o={extend:function(t,e){t.traverse=function(t){var n,i,r=this[e];for(n=0;r.length>n;n++)i=r[n],i.traverse?i.traverse(t):t(i);return this}}};e(t.drawing,{mixins:{Paintable:r,Traversable:o}})}()},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/shapes.min",["drawing/core.min","drawing/mixins.min","util/text-metrics","mixins/observers.min"],t)}(function(){!function(t){function e(t,e,n){var i,r,o,s;for(r=0;t.length>r;r++)o=t[r],o.visible()&&(s=e?o.bbox(n):o.rawBBox(),s&&(i=i?Y.Rect.union(i,s):s));return i}function n(t,e){var n,i,r,o;for(i=0;t.length>i;i++)r=t[i],r.visible()&&(o=r.clippedBBox(e),o&&(n=n?Y.Rect.union(n,o):o));return n}function i(t,e){t.origin.x-=e,t.origin.y-=e,t.size.width+=2*e,t.size.height+=2*e}function r(t,e){for(var n=0;e.length>n;n++)t[e[n]]=o(e[n])}function o(t){var e="_"+t;return function(t){return rt(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}function s(t,e){for(var n=0;e.length>n;n++)t[e[n]]=a(e[n])}function a(t){var e="_"+t;return function(t){return rt(t)?(this._observerField(e,W.create(t)),this.geometryChange(),this):this[e]}}function h(t,e){for(var n=0;e.length>n;n++)t[e[n]]=l(e[n])}function l(t){return function(e){return rt(e)?(this.options.set(t,e),this):this.options.get(t)}}function c(){return"kdef"+mt++}function u(t,e,n){C(t,e,n,"x","width")}function f(t,e,n){C(t,e,n,"y","height")}function d(t){b(w(t),"x","y","width")}function p(t){b(w(t),"y","x","height")}function m(t,e){return v(t,e,"x","y","width")}function g(t,e){return v(t,e,"y","x","height")}function v(t,e,n,i,r){var o,s,a,h,l=[],c=y(t,e,r),u=e.origin.clone();for(h=0;c.length>h;h++)for(a=c[h],o=a[0],u[i]=o.bbox.origin[i],k(u,o.bbox,o.element),o.bbox.origin[n]=u[n],b(a,n,i,r),l.push([]),s=0;a.length>s;s++)l[h].push(a[s].element);return l}function x(t,e){var n,i,r=t.clippedBBox(),o=r.size,s=e.size;(o.width>s.width||o.height>s.height)&&(n=Z.min(s.width/o.width,s.height/o.height),i=t.transform()||Y.transform(),i.scale(n,n),t.transform(i))}function y(t,e,n){var i,r,o,s,a=e.size[n],h=0,l=[],c=[],u=function(){c.push({element:i,bbox:o})};for(s=0;t.length>s;s++)i=t[s],o=i.clippedBBox(),o&&(r=o.size[n],h+r>a?c.length?(l.push(c),c=[],u(),h=r):(u(),l.push(c),c=[],h=0):(u(),h+=r));return c.length&&l.push(c),l}function w(t){var e,n,i,r=[];for(i=0;t.length>i;i++)e=t[i],n=e.clippedBBox(),n&&r.push({element:e,bbox:n});return r}function b(t,e,n,i){var r,o,s,a,h;if(t.length>1)for(r=t[0].bbox,o=new W,h=1;t.length>h;h++)s=t[h].element,a=t[h].bbox,o[e]=r.origin[e]+r.size[i],o[n]=a.origin[n],k(o,a,s),a.origin[e]=o[e],r=a}function C(t,e,n,i,r){var o,s,a;for(n=n||"start",a=0;t.length>a;a++)o=t[a].clippedBBox(),o&&(s=o.origin.clone(),s[i]=_(o.size[r],e,n,i,r),k(s,o,t[a]))}function _(t,e,n,i,r){var o;return o=n==gt?e.origin[i]:n==vt?e.origin[i]+e.size[r]-t:e.origin[i]+(e.size[r]-t)/2}function T(t,e,n){var i=n.transform()||Y.transform(),r=i.matrix();r.e+=t,r.f+=e,i.matrix(r),n.transform(i)}function k(t,e,n){T(t.x-e.origin.x,t.y-e.origin.y,n)}var E,S,A,N,P,O,R,z,B,D,M,L,F,I,G,j,$,U=window.kendo,V=U.Class,X=U.deepExtend,Y=U.geometry,W=Y.Point,q=Y.Size,H=Y.Matrix,J=Y.toMatrix,Q=U.drawing,K=Q.OptionsStore,Z=Math,tt=Z.pow,et=U.util,nt=et.append,it=et.arrayLimits,rt=et.defined,ot=et.last,st=et.valueOrDefault,at=U.mixins.ObserversMixin,ht=t.inArray,lt=[].push,ct=[].pop,ut=[].splice,ft=[].shift,dt=[].slice,pt=[].unshift,mt=1,gt="start",vt="end",xt="horizontal",yt=V.extend({nodeType:"Element",init:function(t){this._initOptions(t)},_initOptions:function(t){var e,n;t=t||{},e=t.transform,n=t.clip,e&&(t.transform=Y.transform(e)),n&&!n.id&&(n.id=c()),this.options=new K(t),this.options.addObserver(this)},transform:function(t){return rt(t)?void this.options.set("transform",Y.transform(t)):this.options.get("transform")},parentTransform:function(){for(var t,e,n=this;n.parent;)n=n.parent,t=n.transform(),t&&(e=t.matrix().multiplyCopy(e||H.unit()));return e?Y.transform(e):void 0},currentTransform:function(t){var e,n,i=this.transform(),r=J(i);return rt(t)||(t=this.parentTransform()),e=J(t),n=r&&e?e.multiplyCopy(r):r||e,n?Y.transform(n):void 0},visible:function(t){return rt(t)?(this.options.set("visible",t),this):this.options.get("visible")!==!1},clip:function(t){var e=this.options;return rt(t)?(t&&!t.id&&(t.id=c()),e.set("clip",t),this):e.get("clip")},opacity:function(t){return rt(t)?(this.options.set("opacity",t),this):st(this.options.get("opacity"),1)},clippedBBox:function(t){var e,n=this._clippedBBox(t);return n?(e=this.clip(),e?Y.Rect.intersect(n,e.bbox(t)):n):void 0},_clippedBBox:function(t){return this.bbox(t)}});X(yt.fn,at),E=V.extend({init:function(t){t=t||[],this.length=0,this._splice(0,t.length,t)},elements:function(t){return t?(this._splice(0,this.length,t),this._change(),this):this.slice(0)},push:function(){var t=arguments,e=lt.apply(this,t);return this._add(t),e},slice:dt,pop:function(){var t=this.length,e=ct.apply(this);return t&&this._remove([e]),e},splice:function(t,e){var n=dt.call(arguments,2),i=this._splice(t,e,n);return this._change(),i},shift:function(){var t=this.length,e=ft.apply(this);return t&&this._remove([e]),e},unshift:function(){var t=arguments,e=pt.apply(this,t);return this._add(t),e},indexOf:function(t){var e,n,i=this;for(e=0,n=i.length;n>e;e++)if(i[e]===t)return e;return-1},_splice:function(t,e,n){var i=ut.apply(this,[t,e].concat(n));return this._clearObserver(i),this._setObserver(n),i},_add:function(t){this._setObserver(t),this._change()},_remove:function(t){this._clearObserver(t),this._change()},_setObserver:function(t){for(var e=0;t.length>e;e++)t[e].addObserver(this)},_clearObserver:function(t){for(var e=0;t.length>e;e++)t[e].removeObserver(this)},_change:function(){}}),X(E.fn,at),S=yt.extend({nodeType:"Group",init:function(t){yt.fn.init.call(this,t),this.children=[]},childrenChange:function(t,e,n){this.trigger("childrenChange",{action:t,items:e,index:n})},append:function(){return nt(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this},insert:function(t,e){return this.children.splice(t,0,e),e.parent=this,this.childrenChange("add",[e],t),this},insertAt:function(t,e){return this.insert(e,t)},remove:function(t){var e=ht(t,this.children);return e>=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this},removeAt:function(t){if(t>=0&&this.children.length>t){var e=this.children[t];this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)}return this},clear:function(){var t=this.children;return this.children=[],this._reparent(t,null),this.childrenChange("remove",t,0),this},bbox:function(t){return e(this.children,!0,this.currentTransform(t))},rawBBox:function(){return e(this.children,!1)},_clippedBBox:function(t){return n(this.children,this.currentTransform(t))},currentTransform:function(t){return yt.fn.currentTransform.call(this,t)||null},_reparent:function(t,e){var n,i,r;for(n=0;t.length>n;n++)i=t[n],r=i.parent,r&&r!=this&&r.remove&&r.remove(i),i.parent=e}}),Q.mixins.Traversable.extend(S.fn,"children"),A=yt.extend({nodeType:"Text",init:function(t,e,n){yt.fn.init.call(this,n),this.content(t),this.position(e||new Y.Point),this.options.font||(this.options.font="12px sans-serif"),rt(this.options.fill)||this.fill("#000")},content:function(t){return rt(t)?(this.options.set("content",t),this):this.options.get("content")},measure:function(){var t=et.measureText(this.content(),{font:this.options.get("font")});return t},rect:function(){var t=this.measure(),e=this.position().clone();return new Y.Rect(e,[t.width,t.height])},bbox:function(t){var e=J(this.currentTransform(t));return this.rect().bbox(e)},rawBBox:function(){return this.rect().bbox()}}),Q.mixins.Paintable.extend(A.fn),s(A.fn,["position"]),N=yt.extend({nodeType:"Circle",init:function(t,e){yt.fn.init.call(this,e),this.geometry(t||new Y.Circle),rt(this.options.stroke)||this.stroke("#000")},bbox:function(t){var e=J(this.currentTransform(t)),n=this._geometry.bbox(e),r=this.options.get("stroke.width");return r&&i(n,r/2),n},rawBBox:function(){return this._geometry.bbox()}}),Q.mixins.Paintable.extend(N.fn),r(N.fn,["geometry"]),P=yt.extend({nodeType:"Arc",init:function(t,e){yt.fn.init.call(this,e),this.geometry(t||new Y.Arc),rt(this.options.stroke)||this.stroke("#000")},bbox:function(t){var e=J(this.currentTransform(t)),n=this.geometry().bbox(e),r=this.options.get("stroke.width");return r&&i(n,r/2),n},rawBBox:function(){return this.geometry().bbox()},toPath:function(){var t,e=new z,n=this.geometry().curvePoints();if(n.length>0)for(e.moveTo(n[0].x,n[0].y),t=1;n.length>t;t+=3)e.curveTo(n[t],n[t+1],n[t+2]);return e}}),Q.mixins.Paintable.extend(P.fn),r(P.fn,["geometry"]),O=E.extend({ _change:function(){this.geometryChange()}}),R=V.extend({init:function(t,e,n){this.anchor(t||new W),this.controlIn(e),this.controlOut(n)},bboxTo:function(t,e){var n,i=this.anchor().transformCopy(e),r=t.anchor().transformCopy(e);return n=this.controlOut()&&t.controlIn()?this._curveBoundingBox(i,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),r):this._lineBoundingBox(i,r)},_lineBoundingBox:function(t,e){return Y.Rect.fromPoints(t,e)},_curveBoundingBox:function(t,e,n,i){var r=[t,e,n,i],o=this._curveExtremesFor(r,"x"),s=this._curveExtremesFor(r,"y"),a=it([o.min,o.max,t.x,i.x]),h=it([s.min,s.max,t.y,i.y]);return Y.Rect.fromPoints(new W(a.min,h.min),new W(a.max,h.max))},_curveExtremesFor:function(t,e){var n=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:this._calculateCurveAt(n.min,e,t),max:this._calculateCurveAt(n.max,e,t)}},_calculateCurveAt:function(t,e,n){var i=1-t;return tt(i,3)*n[0][e]+3*tt(i,2)*t*n[1][e]+3*tt(t,2)*i*n[2][e]+tt(t,3)*n[3][e]},_curveExtremes:function(t,e,n,i){var r,o,s=t-3*e+3*n-i,a=-2*(t-2*e+n),h=t-e,l=Z.sqrt(a*a-4*s*h),c=0,u=1;return 0===s?0!==a&&(c=u=-h/a):isNaN(l)||(c=(-a+l)/(2*s),u=(-a-l)/(2*s)),r=Z.max(Z.min(c,u),0),(0>r||r>1)&&(r=0),o=Z.min(Z.max(c,u),1),(o>1||0>o)&&(o=1),{min:r,max:o}}}),s(R.fn,["anchor","controlIn","controlOut"]),X(R.fn,at),z=yt.extend({nodeType:"Path",init:function(t){yt.fn.init.call(this,t),this.segments=new O,this.segments.addObserver(this),rt(this.options.stroke)||(this.stroke("#000"),rt(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))},moveTo:function(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this},lineTo:function(t,e){var n=rt(e)?new W(t,e):t,i=new R(n);return this.segments.push(i),this},curveTo:function(t,e,n){var i,r;return this.segments.length>0&&(i=ot(this.segments),r=new R(n,e),this.suspend(),i.controlOut(t),this.resume(),this.segments.push(r)),this},arc:function(t,e,n,i,r){var o,s,a,h,l;return this.segments.length>0&&(o=ot(this.segments),s=o.anchor(),a=et.rad(t),h=new W(s.x-n*Z.cos(a),s.y-i*Z.sin(a)),l=new Y.Arc(h,{startAngle:t,endAngle:e,radiusX:n,radiusY:i,anticlockwise:r}),this._addArcSegments(l)),this},arcTo:function(t,e,n,i,r){var o,s,a;return this.segments.length>0&&(o=ot(this.segments),s=o.anchor(),a=Y.Arc.fromPoints(s,t,e,n,i,r),this._addArcSegments(a)),this},_addArcSegments:function(t){var e,n;for(this.suspend(),e=t.curvePoints(),n=1;e.length>n;n+=3)this.curveTo(e[n],e[n+1],e[n+2]);this.resume(),this.geometryChange()},close:function(){return this.options.closed=!0,this.geometryChange(),this},bbox:function(t){var e=J(this.currentTransform(t)),n=this._bbox(e),r=this.options.get("stroke.width");return r&&i(n,r/2),n},rawBBox:function(){return this._bbox()},_bbox:function(t){var e,n,i,r,o=this.segments,s=o.length;if(1===s)n=o[0].anchor().transformCopy(t),e=new Y.Rect(n,q.ZERO);else if(s>0)for(i=1;s>i;i++)r=o[i-1].bboxTo(o[i],t),e=e?Y.Rect.union(e,r):r;return e}}),Q.mixins.Paintable.extend(z.fn),z.fromRect=function(t,e){return new z(e).moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close()},z.fromPoints=function(t,e){var n,i,r;if(t){for(n=new z(e),i=0;t.length>i;i++)r=W.create(t[i]),r&&(0===i?n.moveTo(r):n.lineTo(r));return n}},z.fromArc=function(t,e){var n=new z(e),i=t.startAngle,r=t.pointAt(i);return n.moveTo(r.x,r.y),n.arc(i,t.endAngle,t.radiusX,t.radiusY,t.anticlockwise),n},B=yt.extend({nodeType:"MultiPath",init:function(t){yt.fn.init.call(this,t),this.paths=new O,this.paths.addObserver(this),rt(this.options.stroke)||this.stroke("#000")},moveTo:function(t,e){var n=new z;return n.moveTo(t,e),this.paths.push(n),this},lineTo:function(t,e){return this.paths.length>0&&ot(this.paths).lineTo(t,e),this},curveTo:function(t,e,n){return this.paths.length>0&&ot(this.paths).curveTo(t,e,n),this},arc:function(t,e,n,i,r){return this.paths.length>0&&ot(this.paths).arc(t,e,n,i,r),this},arcTo:function(t,e,n,i,r){return this.paths.length>0&&ot(this.paths).arcTo(t,e,n,i,r),this},close:function(){return this.paths.length>0&&ot(this.paths).close(),this},bbox:function(t){return e(this.paths,!0,this.currentTransform(t))},rawBBox:function(){return e(this.paths,!1)},_clippedBBox:function(t){return n(this.paths,this.currentTransform(t))}}),Q.mixins.Paintable.extend(B.fn),D=yt.extend({nodeType:"Image",init:function(t,e,n){yt.fn.init.call(this,n),this.src(t),this.rect(e||new Y.Rect)},src:function(t){return rt(t)?(this.options.set("src",t),this):this.options.get("src")},bbox:function(t){var e=J(this.currentTransform(t));return this._rect.bbox(e)},rawBBox:function(){return this._rect.bbox()}}),r(D.fn,["rect"]),M=V.extend({init:function(t,e,n){this.options=new K({offset:t,color:e,opacity:rt(n)?n:1}),this.options.addObserver(this)}}),h(M.fn,["offset","color","opacity"]),X(M.fn,at),M.create=function(t){if(rt(t)){var e;return e=t instanceof M?t:t.length>1?new M(t[0],t[1],t[2]):new M(t.offset,t.color,t.opacity)}},L=E.extend({_change:function(){this.optionsChange({field:"stops"})}}),F=V.extend({nodeType:"gradient",init:function(t){this.stops=new L(this._createStops(t.stops)),this.stops.addObserver(this),this._userSpace=t.userSpace,this.id=c()},userSpace:function(t){return rt(t)?(this._userSpace=t,this.optionsChange(),this):this._userSpace},_createStops:function(t){var e,n=[];for(t=t||[],e=0;t.length>e;e++)n.push(M.create(t[e]));return n},addStop:function(t,e,n){this.stops.push(new M(t,e,n))},removeStop:function(t){var e=this.stops.indexOf(t);e>=0&&this.stops.splice(e,1)}}),X(F.fn,at,{optionsChange:function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},geometryChange:function(){this.optionsChange()}}),I=F.extend({init:function(t){t=t||{},F.fn.init.call(this,t),this.start(t.start||new W),this.end(t.end||new W(1,0))}}),s(I.fn,["start","end"]),G=F.extend({init:function(t){t=t||{},F.fn.init.call(this,t),this.center(t.center||new W),this._radius=rt(t.radius)?t.radius:1,this._fallbackFill=t.fallbackFill},radius:function(t){return rt(t)?(this._radius=t,this.geometryChange(),this):this._radius},fallbackFill:function(t){return rt(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill}}),s(G.fn,["center"]),j=yt.extend({nodeType:"Rect",init:function(t,e){yt.fn.init.call(this,e),this.geometry(t||new Y.Rect),rt(this.options.stroke)||this.stroke("#000")},bbox:function(t){var e=J(this.currentTransform(t)),n=this._geometry.bbox(e),r=this.options.get("stroke.width");return r&&i(n,r/2),n},rawBBox:function(){return this._geometry.bbox()}}),Q.mixins.Paintable.extend(j.fn),r(j.fn,["geometry"]),$=S.extend({init:function(t,e){S.fn.init.call(this,U.deepExtend({},this._defaults,e)),this._rect=t,this._fieldMap={}},_defaults:{alignContent:gt,justifyContent:gt,alignItems:gt,spacing:0,orientation:xt,lineSpacing:0,wrap:!0},rect:function(t){return t?(this._rect=t,this):this._rect},_initMap:function(){var t=this.options,e=this._fieldMap;t.orientation==xt?(e.sizeField="width",e.groupsSizeField="height",e.groupAxis="x",e.groupsAxis="y"):(e.sizeField="height",e.groupsSizeField="width",e.groupAxis="y",e.groupsAxis="x")},reflow:function(){var t,e,n,i,r,o,s,a,h,l,c,u,f,d,p,m,g,v,x,y,w,b,C,T,E,S;if(this._rect&&0!==this.children.length){for(this._initMap(),this.options.transform&&this.transform(null),t=this.options,e=this._fieldMap,n=this._rect,i=this._initGroups(),r=i.groups,o=i.groupsSize,s=e.sizeField,a=e.groupsSizeField,h=e.groupAxis,l=e.groupsAxis,c=_(o,n,t.alignContent,l,a),u=new W,f=new W,d=new Y.Size,y=0;r.length>y;y++){for(v=r[y],u[h]=p=_(v.size,n,t.justifyContent,h,s),u[l]=c,d[s]=v.size,d[a]=v.lineSize,x=new Y.Rect(u,d),w=0;v.bboxes.length>w;w++)g=v.elements[w],m=v.bboxes[w],f[h]=p,f[l]=_(m.size[a],x,t.alignItems,l,a),k(f,m,g),p+=m.size[s]+t.spacing;c+=v.lineSize+t.lineSpacing}!t.wrap&&v.size>n.size[s]&&(b=n.size[s]/x.size[s],C=x.topLeft().scale(b,b),T=x.size[a]*b,E=_(T,n,t.alignContent,l,a),S=Y.transform(),"x"===h?S.translate(n.origin.x-C.x,E-C.y):S.translate(E-C.x,n.origin.y-C.y),S.scale(b,b),this.transform(S))}},_initGroups:function(){var t,e,n,i=this.options,r=this.children,o=i.lineSpacing,s=this._fieldMap.sizeField,a=-o,h=[],l=this._newGroup(),c=function(){h.push(l),a+=l.lineSize+o};for(n=0;r.length>n;n++)e=r[n],t=r[n].clippedBBox(),e.visible()&&t&&(i.wrap&&l.size+t.size[s]+i.spacing>this._rect.size[s]?0===l.bboxes.length?(this._addToGroup(l,t,e),c(),l=this._newGroup()):(c(),l=this._newGroup(),this._addToGroup(l,t,e)):this._addToGroup(l,t,e));return l.bboxes.length&&c(),{groups:h,groupsSize:a}},_addToGroup:function(t,e,n){t.size+=e.size[this._fieldMap.sizeField]+this.options.spacing,t.lineSize=Math.max(e.size[this._fieldMap.groupsSizeField],t.lineSize),t.bboxes.push(e),t.elements.push(n)},_newGroup:function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}),X(Q,{align:u,Arc:P,Circle:N,Element:yt,ElementsArray:E,fit:x,Gradient:F,GradientStop:M,Group:S,Image:D,Layout:$,LinearGradient:I,MultiPath:B,Path:z,RadialGradient:G,Rect:j,Segment:R,stack:d,Text:A,vAlign:f,vStack:p,vWrap:g,wrap:m})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/parser.min",["drawing/shapes.min"],t)}(function(){!function(t){function e(t){var e=[];return t.replace(m,function(t,n){e.push(parseFloat(n))}),e}function n(t,e,n){var i,r=e?0:1;for(i=0;t.length>i;i+=2)t.splice(i+r,0,n)}function i(t,e){return t&&e?e.scaleCopy(2).translate(-t.x,-t.y):void 0}function r(t,e,n){var i=1/3;return e=e.clone().scale(2/3),{controlOut:e.clone().translateWith(t.scaleCopy(i)),controlIn:e.translateWith(n.scaleCopy(i))}}var o=window.kendo,s=o.drawing,a=o.geometry,h=o.Class,l=a.Point,c=o.deepExtend,u=t.trim,f=o.util,d=f.last,p=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,m=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,g="m",v="z",x=h.extend({parse:function(t,n){var i,r=new s.MultiPath(n),o=new l;return t.replace(p,function(t,n,s,a){var h=n.toLowerCase(),l=h===n,c=e(u(s));if(h===g&&(l?(o.x+=c[0],o.y+=c[1]):(o.x=c[0],o.y=c[1]),r.moveTo(o.x,o.y),c.length>2&&(h="l",c.splice(0,2))),y[h])y[h](r,{parameters:c,position:o,isRelative:l,previousCommand:i}),a&&a.toLowerCase()===v&&r.close();else if(h!==g)throw Error("Error while parsing SVG path. Unsupported command: "+h);i=h}),r}}),y={l:function(t,e){var n,i,r=e.parameters,o=e.position;for(n=0;r.length>n;n+=2)i=new l(r[n],r[n+1]),e.isRelative&&i.translateWith(o),t.lineTo(i.x,i.y),o.x=i.x,o.y=i.y},c:function(t,e){var n,i,r,o,s=e.parameters,a=e.position;for(o=0;s.length>o;o+=6)n=new l(s[o],s[o+1]),i=new l(s[o+2],s[o+3]),r=new l(s[o+4],s[o+5]),e.isRelative&&(i.translateWith(a),n.translateWith(a),r.translateWith(a)),t.curveTo(n,i,r),a.x=r.x,a.y=r.y},v:function(t,e){var i=e.isRelative?0:e.position.x;n(e.parameters,!0,i),this.l(t,e)},h:function(t,e){var i=e.isRelative?0:e.position.y;n(e.parameters,!1,i),this.l(t,e)},a:function(t,e){var n,i,r,o,s,a,h=e.parameters,c=e.position;for(n=0;h.length>n;n+=7)i=h[n],r=h[n+1],o=h[n+3],s=h[n+4],a=new l(h[n+5],h[n+6]),e.isRelative&&a.translateWith(c),t.arcTo(a,i,r,o,s),c.x=a.x,c.y=a.y},s:function(t,e){var n,r,o,s,a,h=e.parameters,c=e.position,u=e.previousCommand;for(("s"==u||"c"==u)&&(s=d(d(t.paths).segments).controlIn()),a=0;h.length>a;a+=4)o=new l(h[a],h[a+1]),r=new l(h[a+2],h[a+3]),e.isRelative&&(o.translateWith(c),r.translateWith(c)),n=s?i(s,c):c.clone(),s=o,t.curveTo(n,o,r),c.x=r.x,c.y=r.y},q:function(t,e){var n,i,o,s,a=e.parameters,h=e.position;for(s=0;a.length>s;s+=4)o=new l(a[s],a[s+1]),i=new l(a[s+2],a[s+3]),e.isRelative&&(o.translateWith(h),i.translateWith(h)),n=r(h,o,i),t.curveTo(n.controlOut,n.controlIn,i),h.x=i.x,h.y=i.y},t:function(t,e){var n,o,s,a,h,c=e.parameters,u=e.position,f=e.previousCommand;for(("q"==f||"t"==f)&&(a=d(d(t.paths).segments),o=a.controlIn().clone().translateWith(u.scaleCopy(-1/3)).scale(1.5)),h=0;c.length>h;h+=2)s=new l(c[h],c[h+1]),e.isRelative&&s.translateWith(u),o=o?i(o,u):u.clone(),n=r(u,o,s),t.curveTo(n.controlOut,n.controlIn,s),u.x=s.x,u.y=s.y}};x.current=new x,s.Path.parse=function(t,e){return x.current.parse(t,e)},c(s,{PathParser:x})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/svg.min",["drawing/shapes.min","util/main.min"],t)}(function(){!function(t){function e(t){var e,n,i,r;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(o){}e&&(n=-e.e%1,i=-e.f%1,r=t.style,(0!==n||0!==i)&&(r.left=n+"px",r.top=i+"px"))}function n(){var t=document.getElementsByTagName("base")[0],e="",n=document.location.href,i=n.indexOf("#");return t&&!c.support.browser.msie&&(-1!==i&&(n=n.substring(0,i)),e=n),e}function i(t){return"url("+n()+"#"+t+")"}function r(t){var e,n,i,r=new B,o=t.clippedBBox();return o&&(e=o.getOrigin(),n=new d.Group,n.transform(f.transform().translate(-e.x,-e.y)),n.children.push(t),t=n),r.load([t]),i=""+r.render()+"",r.destroy(),i}function o(e,n){var i=r(e);return n&&n.raw||(i="data:image/svg+xml;base64,"+m.encodeBase64(i)),t.Deferred().resolve(i).promise()}function s(t,e){return"clip"==t||"fill"==t&&(!e||e.nodeType==T)}function a(t){if(!t||!t.indexOf||t.indexOf("&")<0)return t;var e=a._element;return e.innerHTML=t,e.textContent||e.innerText}var h,l=document,c=window.kendo,u=c.deepExtend,f=c.geometry,d=c.drawing,p=d.BaseNode,m=c.util,g=m.defined,v=m.isTransparent,x=m.renderAttr,y=m.renderAllAttr,w=m.renderTemplate,b=t.inArray,C="butt",_=d.DASH_ARRAYS,T="gradient",k="none",E=".kendo",S="solid",A=" ",N="http://www.w3.org/2000/svg",P="transform",O="undefined",R=d.Surface.extend({init:function(t,n){d.Surface.fn.init.call(this,t,n),this._root=new B(this.options),J(this.element[0],this._template(this)),this._rootElement=this.element[0].firstElementChild,e(this._rootElement),this._root.attachTo(this._rootElement),this.element.on("click"+E,this._click),this.element.on("mouseover"+E,this._mouseenter),this.element.on("mouseout"+E,this._mouseleave),this.resize()},type:"svg",destroy:function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,this.element.off(E)),d.Surface.fn.destroy.call(this)},translate:function(t){var e=c.format("{0} {1} {2} {3}",Math.round(t.x),Math.round(t.y),this._size.width,this._size.height);this._offset=t,this._rootElement.setAttribute("viewBox",e)},draw:function(t){d.Surface.fn.draw.call(this,t),this._root.load([t])},clear:function(){d.Surface.fn.clear.call(this),this._root.clear()},svg:function(){return""+this._template(this)},exportVisual:function(){var t,e=this._visual,n=this._offset;return n&&(t=new d.Group,t.children.push(e),t.transform(f.transform().translate(-n.x,-n.y)),e=t),e},_resize:function(){this._offset&&this.translate(this._offset)},_template:w("#= d._root.render() #")}),z=p.extend({init:function(t){p.fn.init.call(this,t),this.definitions={}},destroy:function(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),p.fn.destroy.call(this)},load:function(t,e){var n,i,r,o,s=this,a=s.element;for(o=0;t.length>o;o++)i=t[o],r=i.children,n=new H[i.nodeType](i),g(e)?s.insertAt(n,e):s.append(n),n.createDefinitions(),r&&r.length>0&&n.load(r),a&&n.attachTo(a,e)},root:function(){for(var t=this;t.parent;)t=t.parent;return t},attachTo:function(t,e){var n,i=l.createElement("div");J(i,""+this.render()+""),n=i.firstChild.firstChild,n&&(g(e)?t.insertBefore(n,t.childNodes[e]||null):t.appendChild(n),this.setElement(n))},setElement:function(t){var e,n,i=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=t,this.element._kendoNode=this,n=0;i.length>n;n++)e=t.childNodes[n],i[n].setElement(e)},clear:function(){var t,e;for(this.clearDefinitions(),this.element&&(this.element.innerHTML=""),t=this.childNodes,e=0;t.length>e;e++)t[e].destroy();this.childNodes=[]},removeSelf:function(){if(this.element){var t=this.element.parentNode;t&&t.removeChild(this.element),this.element=null}p.fn.removeSelf.call(this)},template:w("#= d.renderChildren() #"),render:function(){return this.template(this)},renderChildren:function(){var t,e=this.childNodes,n="";for(t=0;e.length>t;t++)n+=e[t].render();return n},optionsChange:function(t){var e=t.field,n=t.value;"visible"===e?this.css("display",n?"":k):h[e]&&s(e,n)?this.updateDefinition(e,n):"opacity"===e&&this.attr("opacity",n),p.fn.optionsChange.call(this,t)},attr:function(t,e){this.element&&this.element.setAttribute(t,e)},allAttr:function(t){for(var e=0;t.length>e;e++)this.attr(t[e][0],t[e][1])},css:function(t,e){this.element&&(this.element.style[t]=e)},allCss:function(t){for(var e=0;t.length>e;e++)this.css(t[e][0],t[e][1])},removeAttr:function(t){this.element&&this.element.removeAttribute(t)},mapTransform:function(t){var e=[];return t&&e.push([P,"matrix("+t.matrix().toString(6)+")"]),e},renderTransform:function(){return y(this.mapTransform(this.srcElement.transform()))},transformChange:function(t){t?this.allAttr(this.mapTransform(t)):this.removeAttr(P)},mapStyle:function(){var t=this.srcElement.options,e=[["cursor",t.cursor]];return t.visible===!1&&e.push(["display",k]),e},renderStyle:function(){return x("style",m.renderStyle(this.mapStyle(!0)))},renderOpacity:function(){return x("opacity",this.srcElement.options.opacity)},createDefinitions:function(){var t,e,n,i,r=this.srcElement,o=this.definitions;if(r){n=r.options;for(e in h)t=n.get(e),t&&s(e,t)&&(o[e]=t,i=!0);i&&this.definitionChange({action:"add",definitions:o})}},definitionChange:function(t){this.parent&&this.parent.definitionChange(t)},updateDefinition:function(t,e){var n=this.definitions,r=n[t],o=h[t],s={};r&&(s[t]=r,this.definitionChange({action:"remove",definitions:s}),delete n[t]),e?(s[t]=e,this.definitionChange({action:"add",definitions:s}),n[t]=e,this.attr(o,i(e.id))):r&&this.removeAttr(o)},clearDefinitions:function(){var t,e=this.definitions;for(t in e){this.definitionChange({action:"remove",definitions:e}),this.definitions={};break}},renderDefinitions:function(){return y(this.mapDefinitions())},mapDefinitions:function(){var t,e=this.definitions,n=[];for(t in e)n.push([h[t],i(e[t].id)]);return n}}),B=z.extend({init:function(t){z.fn.init.call(this),this.options=t,this.defs=new D},attachTo:function(t){this.element=t,this.defs.attachTo(t.firstElementChild)},clear:function(){p.fn.clear.call(this)},template:w("#=d.defs.render()##= d.renderChildren() #"),definitionChange:function(t){this.defs.definitionChange(t)}}),D=z.extend({init:function(){z.fn.init.call(this),this.definitionMap={}},attachTo:function(t){this.element=t},template:w("#= d.renderChildren()#"),definitionChange:function(t){var e=t.definitions,n=t.action;"add"==n?this.addDefinitions(e):"remove"==n&&this.removeDefinitions(e)},createDefinition:function(t,e){var n;return"clip"==t?n=M:"fill"==t&&(e instanceof d.LinearGradient?n=Y:e instanceof d.RadialGradient&&(n=W)),new n(e)},addDefinitions:function(t){for(var e in t)this.addDefinition(e,t[e])},addDefinition:function(t,e){var n,i=this.definitionMap,r=e.id,o=this.element,s=i[r];s?s.count++:(n=this.createDefinition(t,e),i[r]={element:n,count:1},this.append(n),o&&n.attachTo(this.element))},removeDefinitions:function(t){for(var e in t)this.removeDefinition(t[e])},removeDefinition:function(t){var e=this.definitionMap,n=t.id,i=e[n];i&&(i.count--,0===i.count&&(this.remove(b(i.element,this.childNodes),1),delete e[n]))}}),M=z.extend({init:function(t){z.fn.init.call(this),this.srcElement=t,this.id=t.id,this.load([t])},template:w("#= d.renderChildren()#")}),L=z.extend({template:w("#= d.renderChildren() #"),optionsChange:function(t){t.field==P&&this.transformChange(t.value),z.fn.optionsChange.call(this,t)}}),F=z.extend({geometryChange:function(){this.attr("d",this.renderData()),this.invalidate()},optionsChange:function(t){switch(t.field){case"fill":t.value?this.allAttr(this.mapFill(t.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:t.value}));break;case"stroke":t.value?this.allAttr(this.mapStroke(t.value)):this.removeAttr("stroke");break;case P:this.transformChange(t.value);break;default:var e=this.attributeMap[t.field];e&&this.attr(e,t.value)}z.fn.optionsChange.call(this,t)},attributeMap:{"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},content:function(){this.element&&(this.element.textContent=this.srcElement.content())},renderData:function(){return this.printPath(this.srcElement)},printPath:function(t){var e,n,i,r,o,s=t.segments,a=s.length;if(a>0){for(e=[],o=1;a>o;o++)i=this.segmentType(s[o-1],s[o]),i!==r&&(r=i,e.push(i)),e.push("L"===i?this.printPoints(s[o].anchor()):this.printPoints(s[o-1].controlOut(),s[o].controlIn(),s[o].anchor()));return n="M"+this.printPoints(s[0].anchor())+A+e.join(A),t.options.closed&&(n+="Z"),n}},printPoints:function(){var t,e=arguments,n=e.length,i=[];for(t=0;n>t;t++)i.push(e[t].toString(3));return i.join(A)},segmentType:function(t,e){return t.controlOut()&&e.controlIn()?"C":"L"},mapStroke:function(t){var e=[];return t&&!v(t.color)?(e.push(["stroke",t.color]),e.push(["stroke-width",t.width]),e.push(["stroke-linecap",this.renderLinecap(t)]),e.push(["stroke-linejoin",t.lineJoin]),g(t.opacity)&&e.push(["stroke-opacity",t.opacity]),g(t.dashType)&&e.push(["stroke-dasharray",this.renderDashType(t)])):e.push(["stroke",k]),e},renderStroke:function(){return y(this.mapStroke(this.srcElement.options.stroke))},renderDashType:function(t){var e,n,i,r=t.width||1,o=t.dashType;if(o&&o!=S){for(e=_[o.toLowerCase()],n=[],i=0;e.length>i;i++)n.push(e[i]*r);return n.join(" ")}},renderLinecap:function(t){var e=t.dashType,n=t.lineCap;return e&&e!=S?C:n},mapFill:function(t){var e=[];return t&&t.nodeType==T||(t&&!v(t.color)?(e.push(["fill",t.color]),g(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",k])),e},renderFill:function(){return y(this.mapFill(this.srcElement.options.fill))},template:w("")}),I=F.extend({renderData:function(){return this.printPath(this.srcElement.toPath())}}),G=F.extend({renderData:function(){var t,e,n=this.srcElement.paths;if(n.length>0){for(t=[],e=0;n.length>e;e++)t.push(this.printPath(n[e]));return t.join(" ")}}}),j=F.extend({geometryChange:function(){var t=this.center();this.attr("cx",t.x),this.attr("cy",t.y),this.attr("r",this.radius()),this.invalidate()},center:function(){return this.srcElement.geometry().center},radius:function(){return this.srcElement.geometry().radius},template:w("")}),$=F.extend({geometryChange:function(){var t=this.pos();this.attr("x",t.x),this.attr("y",t.y),this.invalidate()},optionsChange:function(t){"font"===t.field?(this.attr("style",m.renderStyle(this.mapStyle())),this.geometryChange()):"content"===t.field&&F.fn.content.call(this,this.srcElement.content()),F.fn.optionsChange.call(this,t)},mapStyle:function(t){var e=F.fn.mapStyle.call(this,t),n=this.srcElement.options.font;return t&&(n=c.htmlEncode(n)),e.push(["font",n]),e},pos:function(){var t=this.srcElement.position(),e=this.srcElement.measure();return t.clone().setY(t.y+e.baseline)},renderContent:function(){var t=this.srcElement.content();return t=a(t),t=c.htmlEncode(t)},template:w("#= d.renderContent() #")}),U=F.extend({geometryChange:function(){this.allAttr(this.mapPosition()),this.invalidate()},optionsChange:function(t){"src"===t.field&&this.allAttr(this.mapSource()),F.fn.optionsChange.call(this,t)},mapPosition:function(){var t=this.srcElement.rect(),e=t.topLeft();return[["x",e.x],["y",e.y],["width",t.width()+"px"],["height",t.height()+"px"]]},renderPosition:function(){return y(this.mapPosition())},mapSource:function(t){var e=this.srcElement.src();return t&&(e=c.htmlEncode(e)),[["xlink:href",e]]},renderSource:function(){return y(this.mapSource(!0))},template:w("")}),V=z.extend({template:w(""),renderOffset:function(){return x("offset",this.srcElement.offset())},mapStyle:function(){var t=this.srcElement;return[["stop-color",t.color()],["stop-opacity",t.opacity()]]},optionsChange:function(t){"offset"==t.field?this.attr(t.field,t.value):("color"==t.field||"opacity"==t.field)&&this.css("stop-"+t.field,t.value)}}),X=z.extend({init:function(t){z.fn.init.call(this,t),this.id=t.id,this.loadStops()},loadStops:function(){var t,e,n=this.srcElement,i=n.stops,r=this.element;for(e=0;i.length>e;e++)t=new V(i[e]),this.append(t),r&&t.attachTo(r)},optionsChange:function(t){"gradient.stops"==t.field?(p.fn.clear.call(this),this.loadStops()):t.field==T&&this.allAttr(this.mapCoordinates())},renderCoordinates:function(){return y(this.mapCoordinates())},mapSpace:function(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]}}),Y=X.extend({template:w("#= d.renderChildren()#"),mapCoordinates:function(){var t=this.srcElement,e=t.start(),n=t.end(),i=[["x1",e.x],["y1",e.y],["x2",n.x],["y2",n.y],this.mapSpace()];return i}}),W=X.extend({template:w("#= d.renderChildren()#"),mapCoordinates:function(){var t=this.srcElement,e=t.center(),n=t.radius(),i=[["cx",e.x],["cy",e.y],["r",n],this.mapSpace()];return i}}),q=F.extend({geometryChange:function(){var t=this.srcElement.geometry();this.attr("x",t.origin.x),this.attr("y",t.origin.y),this.attr("width",t.size.width),this.attr("height",t.size.height),this.invalidate()},size:function(){return this.srcElement.geometry().size},origin:function(){return this.srcElement.geometry().origin},template:w("")}),H={Group:L,Text:$,Path:F,MultiPath:G,Circle:j,Arc:I,Image:U,Rect:q},J=function(t,e){t.innerHTML=e};!function(){var t="",e=l.createElement("div"),n=typeof DOMParser!=O;e.innerHTML=t,n&&e.firstChild.namespaceURI!=N&&(J=function(t,e){var n=new DOMParser,i=n.parseFromString(e,"text/xml"),r=l.adoptNode(i.documentElement);t.innerHTML="",t.appendChild(r)})}(),a._element=document.createElement("span"),h={clip:"clip-path",fill:"fill"},c.support.svg=function(){return l.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}(),c.support.svg&&d.SurfaceFactory.current.register("svg",R,10),u(d,{exportSVG:o,svg:{ArcNode:I,CircleNode:j,ClipNode:M,DefinitionNode:D,GradientStopNode:V,GroupNode:L,ImageNode:U,LinearGradientNode:Y,MultiPathNode:G,Node:z,PathNode:F,RadialGradientNode:W,RectNode:q,RootNode:B,Surface:R,TextNode:$,_exportGroup:r}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/canvas.min",["drawing/shapes.min","kendo.color.min"],t)}(function(){!function(t){function e(e,n){var i,r,o,s,a,h,l={width:"800px",height:"600px",cors:"Anonymous"},c=e.clippedBBox();return c&&(i=c.getOrigin(),r=new b.Group,r.transform(w.transform().translate(-i.x,-i.y)),r.children.push(e),e=r,o=c.getSize(),l.width=o.width+"px",l.height=o.height+"px"),n=p(l,n),s=t("
").css({display:"none",width:n.width,height:n.height}).appendTo(document.body),a=new S(s,n),a.draw(e),h=a.image(),h.always(function(){a.destroy(),s.remove()}),h}function n(t,e){var n,i,r;for(r=0;e.length>r;r++)i=e[r],n=d.parseColor(i.color()),n.a*=i.opacity(),t.addColorStop(i.offset(),n.toCssRgba())}var i,r,o,s,a,h,l,c,u,f=document,d=window.kendo,p=d.deepExtend,m=d.util,g=m.defined,v=m.isTransparent,x=m.renderTemplate,y=m.valueOrDefault,w=d.geometry,b=d.drawing,C=b.BaseNode,_="butt",T=b.DASH_ARRAYS,k=1e3/60,E="solid",S=b.Surface.extend({init:function(e,n){b.Surface.fn.init.call(this,e,n),this.element[0].innerHTML=this._template(this);var r=this.element[0].firstElementChild;r.width=t(e).width(),r.height=t(e).height(),this._rootElement=r,this._root=new i(r)},destroy:function(){b.Surface.fn.destroy.call(this),this._root&&(this._root.destroy(),this._root=null)},type:"canvas",draw:function(t){b.Surface.fn.draw.call(this,t),this._root.load([t],void 0,this.options.cors)},clear:function(){b.Surface.fn.clear.call(this),this._root.clear()},image:function(){var e,n=this._root,i=this._rootElement,r=[];return n.traverse(function(t){t.loading&&r.push(t.loading)}),e=t.Deferred(),t.when.apply(t,r).done(function(){n._invalidate();try{var t=i.toDataURL();e.resolve(t)}catch(r){e.reject(r)}}).fail(function(t){e.reject(t)}),e.promise()},_resize:function(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.invalidate()},_template:x("")}),A=C.extend({init:function(t){C.fn.init.call(this,t),t&&this.initClip()},initClip:function(){var t=this.srcElement.clip();t&&(this.clip=t,t.addObserver(this))},clear:function(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),C.fn.clear.call(this)},clearClip:function(){this.clip&&(this.clip.removeObserver(this),delete this.clip)},setClip:function(t){this.clip&&(t.beginPath(),r.fn.renderPoints(t,this.clip),t.clip())},optionsChange:function(t){"clip"==t.field&&(this.clearClip(),this.initClip()),C.fn.optionsChange.call(this,t)},setTransform:function(t){if(this.srcElement){var e=this.srcElement.transform();e&&t.transform.apply(t,e.matrix().toArray(6))}},loadElements:function(t,e,n){var i,r,o,s,a=this;for(s=0;t.length>s;s++)r=t[s],o=r.children,i=new u[r.nodeType](r,n),o&&o.length>0&&i.load(o,e,n),g(e)?a.insertAt(i,e):a.append(i)},load:function(t,e,n){this.loadElements(t,e,n),this.invalidate()},setOpacity:function(t){if(this.srcElement){var e=this.srcElement.opacity();g(e)&&this.globalAlpha(t,e)}},globalAlpha:function(t,e){e&&t.globalAlpha&&(e*=t.globalAlpha),t.globalAlpha=e},visible:function(){var t=this.srcElement;return!t||t&&t.options.visible!==!1}}),N=A.extend({renderTo:function(t){var e,n,i;if(this.visible()){for(t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),e=this.childNodes,n=0;e.length>n;n++)i=e[n],i.visible()&&i.renderTo(t);t.restore()}}});b.mixins.Traversable.extend(N.fn,"childNodes"),i=N.extend({init:function(e){N.fn.init.call(this),this.canvas=e,this.ctx=e.getContext("2d");var n=t.proxy(this._invalidate,this);this.invalidate=d.throttle(function(){d.animationFrame(n)},k)},destroy:function(){N.fn.destroy.call(this),this.canvas=null,this.ctx=null},load:function(t,e,n){this.loadElements(t,e,n),this._invalidate()},_invalidate:function(){this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))}}),b.mixins.Traversable.extend(i.fn,"childNodes"),r=A.extend({renderTo:function(t){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),this.renderPoints(t,this.srcElement),this.setLineDash(t),this.setLineCap(t),this.setLineJoin(t),this.setFill(t), this.setStroke(t),t.restore()},setFill:function(t){var e=this.srcElement.options.fill,n=!1;return e&&("gradient"==e.nodeType?(this.setGradientFill(t,e),n=!0):v(e.color)||(t.fillStyle=e.color,t.save(),this.globalAlpha(t,e.opacity),t.fill(),t.restore(),n=!0)),n},setGradientFill:function(t,e){var i,r,o,s,a=this.srcElement.rawBBox();e instanceof b.LinearGradient?(r=e.start(),o=e.end(),i=t.createLinearGradient(r.x,r.y,o.x,o.y)):e instanceof b.RadialGradient&&(s=e.center(),i=t.createRadialGradient(s.x,s.y,0,s.x,s.y,e.radius())),n(i,e.stops),t.save(),e.userSpace()||t.transform(a.width(),0,0,a.height(),a.origin.x,a.origin.y),t.fillStyle=i,t.fill(),t.restore()},setStroke:function(t){var e=this.srcElement.options.stroke;return e&&!v(e.color)&&e.width>0?(t.strokeStyle=e.color,t.lineWidth=y(e.width,1),t.save(),this.globalAlpha(t,e.opacity),t.stroke(),t.restore(),!0):void 0},dashType:function(){var t=this.srcElement.options.stroke;return t&&t.dashType?t.dashType.toLowerCase():void 0},setLineDash:function(t){var e,n=this.dashType();n&&n!=E&&(e=T[n],t.setLineDash?t.setLineDash(e):(t.mozDash=e,t.webkitLineDash=e))},setLineCap:function(t){var e=this.dashType(),n=this.srcElement.options.stroke;e&&e!==E?t.lineCap=_:n&&n.lineCap&&(t.lineCap=n.lineCap)},setLineJoin:function(t){var e=this.srcElement.options.stroke;e&&e.lineJoin&&(t.lineJoin=e.lineJoin)},renderPoints:function(t,e){var n,i,r,o,s,a,h=e.segments;if(0!==h.length){for(n=h[0],i=n.anchor(),t.moveTo(i.x,i.y),r=1;h.length>r;r++)n=h[r],i=n.anchor(),o=h[r-1],s=o.controlOut(),a=n.controlIn(),s&&a?t.bezierCurveTo(s.x,s.y,a.x,a.y,i.x,i.y):t.lineTo(i.x,i.y);e.options.closed&&t.closePath()}}}),o=r.extend({renderPoints:function(t){var e,n=this.srcElement.paths;for(e=0;n.length>e;e++)r.fn.renderPoints(t,n[e])}}),s=r.extend({renderPoints:function(t){var e=this.srcElement.geometry(),n=e.center,i=e.radius;t.arc(n.x,n.y,i,0,2*Math.PI)}}),a=r.extend({renderPoints:function(t){var e=this.srcElement.toPath();r.fn.renderPoints.call(this,t,e)}}),h=r.extend({renderTo:function(t){var e=this.srcElement,n=e.position(),i=e.measure();t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),t.font=e.options.font,this.setFill(t)&&t.fillText(e.content(),n.x,n.y+i.baseline),this.setStroke(t)&&(this.setLineDash(t),t.strokeText(e.content(),n.x,n.y+i.baseline)),t.restore()}}),l=r.extend({init:function(e,n){r.fn.init.call(this,e),this.onLoad=t.proxy(this.onLoad,this),this.onError=t.proxy(this.onError,this),this.loading=t.Deferred();var i=this.img=new Image;n&&!/^data:/i.test(e.src())&&(i.crossOrigin=n),i.src=e.src(),i.complete?this.onLoad():(i.onload=this.onLoad,i.onerror=this.onError)},renderTo:function(t){"resolved"===this.loading.state()&&(t.save(),this.setTransform(t),this.setClip(t),this.drawImage(t),t.restore())},optionsChange:function(e){"src"===e.field?(this.loading=t.Deferred(),this.img.src=this.srcElement.src()):r.fn.optionsChange.call(this,e)},onLoad:function(){this.loading.resolve(),this.invalidate()},onError:function(){this.loading.reject(Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))},drawImage:function(t){var e=this.srcElement.rect(),n=e.topLeft();t.drawImage(this.img,n.x,n.y,e.width(),e.height())}}),c=r.extend({renderPoints:function(t){var e=this.srcElement.geometry(),n=e.origin,i=e.size;t.rect(n.x,n.y,i.width,i.height)}}),u={Group:N,Text:h,Path:r,MultiPath:o,Circle:s,Arc:a,Image:l,Rect:c},d.support.canvas=function(){return!!f.createElement("canvas").getContext}(),d.support.canvas&&b.SurfaceFactory.current.register("canvas",S,20),p(d.drawing,{exportImage:e,canvas:{ArcNode:a,CircleNode:s,GroupNode:N,ImageNode:l,MultiPathNode:o,Node:A,PathNode:r,RectNode:c,RootNode:i,Surface:S,TextNode:h}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/vml.min",["drawing/shapes.min","kendo.color.min"],t)}(function(){!function(t){function e(){if(u.namespaces&&!u.namespaces.kvml){u.namespaces.add("kvml","urn:schemas-microsoft-com:vml");var t=u.styleSheets.length>30?u.styleSheets[0]:u.createStyleSheet();t.addRule(".kvml","behavior:url(#default#VML)")}}function n(t){var e=u.createElement("kvml:"+t);return e.className="kvml",e}function i(t){var e,n=t.length,i=[];for(e=0;n>e;e++)i.push(t[e].scaleCopy(R).toString(0,","));return i.join(" ")}function r(t,e){var n,r,s,a,h,l=t.segments,c=l.length;if(c>0){for(n=[],h=1;c>h;h++)s=o(l[h-1],l[h]),s!==a&&(a=s,n.push(s)),n.push("l"===s?i([l[h].anchor()]):i([l[h-1].controlOut(),l[h].controlIn(),l[h].anchor()]));return r="m "+i([l[0].anchor()])+" "+n.join(" "),t.options.closed&&(r+=" x"),e!==!0&&(r+=" e"),r}}function o(t,e){return t.controlOut()&&e.controlIn()?"c":"l"}function s(t){return 0===t.indexOf("fill")||0===t.indexOf(B)}function a(t,e,n){var i,r=n*N(e.opacity(),1);return i=t?h(t,e.color(),r):h(e.color(),"#fff",1-r)}function h(t,e,n){var i=new _(t),r=new _(e),o=l(i.r,r.r,n),s=l(i.g,r.g,n),a=l(i.b,r.b,n);return new _(o,s,a).toHex()}function l(t,e,n){return f.round(n*e+(1-n)*t)}var c,u=document,f=Math,d=f.atan2,p=f.ceil,m=f.sqrt,g=window.kendo,v=g.deepExtend,x=t.noop,y=g.drawing,w=y.BaseNode,b=g.geometry,C=b.toMatrix,_=g.Color,T=g.util,k=T.isTransparent,E=T.defined,S=T.deg,A=T.round,N=T.valueOrDefault,P="none",O=".kendo",R=100,z=R*R,B="gradient",D=4,M=y.Surface.extend({init:function(t,n){y.Surface.fn.init.call(this,t,n),e(),this.element.empty(),this._root=new F,this._root.attachTo(this.element[0]),this.element.on("click"+O,this._click),this.element.on("mouseover"+O,this._mouseenter),this.element.on("mouseout"+O,this._mouseleave)},type:"vml",destroy:function(){this._root&&(this._root.destroy(),this._root=null,this.element.off(O)),y.Surface.fn.destroy.call(this)},draw:function(t){y.Surface.fn.draw.call(this,t),this._root.load([t],void 0,null)},clear:function(){y.Surface.fn.clear.call(this),this._root.clear()}}),L=w.extend({init:function(t){w.fn.init.call(this,t),this.createElement(),this.attachReference()},observe:x,destroy:function(){this.element&&(this.element._kendoNode=null,this.element=null),w.fn.destroy.call(this)},clear:function(){var t,e;for(this.element&&(this.element.innerHTML=""),t=this.childNodes,e=0;t.length>e;e++)t[e].destroy();this.childNodes=[]},removeSelf:function(){this.element&&(this.element.parentNode.removeChild(this.element),this.element=null),w.fn.removeSelf.call(this)},createElement:function(){this.element=u.createElement("div")},attachReference:function(){this.element._kendoNode=this},load:function(t,e,n,i){var r,o,s,a,h,l;for(i=N(i,1),this.srcElement&&(i*=N(this.srcElement.options.opacity,1)),r=0;t.length>r;r++)o=t[r],s=o.children,a=o.currentTransform(n),h=i*N(o.options.opacity,1),l=new ht[o.nodeType](o,a,h),s&&s.length>0&&l.load(s,e,a,i),E(e)?this.insertAt(l,e):this.append(l),l.attachTo(this.element,e)},attachTo:function(t,e){E(e)?t.insertBefore(this.element,t.children[e]||null):t.appendChild(this.element)},optionsChange:function(t){"visible"==t.field&&this.css("display",t.value!==!1?"":P)},setStyle:function(){this.allCss(this.mapStyle())},mapStyle:function(){var t=[];return this.srcElement&&this.srcElement.options.visible===!1&&t.push(["display",P]),t},mapOpacityTo:function(t,e){var n=N(this.opacity,1);n*=N(e,1),t.push(["opacity",n])},attr:function(t,e){this.element&&(this.element[t]=e)},allAttr:function(t){for(var e=0;t.length>e;e++)this.attr(t[e][0],t[e][1])},css:function(t,e){this.element&&(this.element.style[t]=e)},allCss:function(t){for(var e=0;t.length>e;e++)this.css(t[e][0],t[e][1])}}),F=L.extend({createElement:function(){L.fn.createElement.call(this),this.allCss([["width","100%"],["height","100%"],["position","relative"],["visibility","visible"]])},attachReference:x}),I=g.Class.extend({init:function(t,e){this.srcElement=t,this.observer=e,t.addObserver(this)},geometryChange:function(){this.observer.optionsChange({field:"clip",value:this.srcElement})},clear:function(){this.srcElement.removeObserver(this)}}),G=L.extend({init:function(t){L.fn.init.call(this,t),t&&this.initClip()},observe:function(){w.fn.observe.call(this)},mapStyle:function(){var t=L.fn.mapStyle.call(this);return this.srcElement&&this.srcElement.clip()&&t.push(["clip",this.clipRect()]),t},optionsChange:function(t){"clip"==t.field&&(this.clearClip(),this.initClip(),this.setClip()),L.fn.optionsChange.call(this,t)},clear:function(){this.clearClip(),L.fn.clear.call(this)},initClip:function(){this.srcElement.clip()&&(this.clip=new I(this.srcElement.clip(),this),this.clip.observer=this)},clearClip:function(){this.clip&&(this.clip.clear(),this.clip=null,this.css("clip",this.clipRect()))},setClip:function(){this.clip&&this.css("clip",this.clipRect())},clipRect:function(){var t,e,n,i=c,r=this.srcElement.clip();return r&&(t=this.clipBBox(r),e=t.topLeft(),n=t.bottomRight(),i=g.format("rect({0}px {1}px {2}px {3}px)",e.y,n.x,n.y,e.x)),i},clipBBox:function(t){var e=this.srcElement.rawBBox().topLeft(),n=t.rawBBox();return n.origin.translate(-e.x,-e.y),n}}),j=G.extend({createElement:function(){L.fn.createElement.call(this),this.setStyle()},attachTo:function(t,e){this.css("display",P),L.fn.attachTo.call(this,t,e),this.srcElement.options.visible!==!1&&this.css("display","")},_attachTo:function(t){var e=document.createDocumentFragment();e.appendChild(this.element),t.appendChild(e)},mapStyle:function(){var t=G.fn.mapStyle.call(this);return t.push(["position","absolute"]),t.push(["white-space","nowrap"]),t},optionsChange:function(t){"transform"===t.field&&this.refreshTransform(),"opacity"===t.field&&this.refreshOpacity(),G.fn.optionsChange.call(this,t)},refreshTransform:function(t){var e,n=this.srcElement.currentTransform(t),i=this.childNodes,r=i.length;for(this.setClip(),e=0;r>e;e++)i[e].refreshTransform(n)},currentOpacity:function(){var t=N(this.srcElement.options.opacity,1);return this.parent&&this.parent.currentOpacity&&(t*=this.parent.currentOpacity()),t},refreshOpacity:function(){var t,e=this.childNodes,n=e.length,i=this.currentOpacity();for(t=0;n>t;t++)e[t].refreshOpacity(i)},initClip:function(){if(G.fn.initClip.call(this),this.clip){var t=this.clip.srcElement.bbox(this.srcElement.currentTransform());t&&(this.css("width",t.width()+t.origin.x),this.css("height",t.height()+t.origin.y))}},clipBBox:function(t){return t.bbox(this.srcElement.currentTransform())},clearClip:function(){G.fn.clearClip.call(this)}}),$=L.extend({init:function(t,e){this.opacity=e,L.fn.init.call(this,t)},createElement:function(){this.element=n("stroke"),this.setOpacity()},optionsChange:function(t){0===t.field.indexOf("stroke")&&this.setStroke()},refreshOpacity:function(t){this.opacity=t,this.setStroke()},setStroke:function(){this.allAttr(this.mapStroke())},setOpacity:function(){this.setStroke()},mapStroke:function(){var t,e=this.srcElement.options.stroke,n=[];return e&&!k(e.color)&&0!==e.width?(n.push(["on","true"]),n.push(["color",e.color]),n.push(["weight",(e.width||1)+"px"]),this.mapOpacityTo(n,e.opacity),E(e.dashType)&&n.push(["dashstyle",e.dashType]),E(e.lineJoin)&&n.push(["joinstyle",e.lineJoin]),E(e.lineCap)&&(t=e.lineCap.toLowerCase(),"butt"===t&&(t="butt"===t?"flat":t),n.push(["endcap",t]))):n.push(["on","false"]),n}}),U=L.extend({init:function(t,e,n){this.opacity=n,L.fn.init.call(this,t)},createElement:function(){this.element=n("fill"),this.setFill()},optionsChange:function(t){s(t.field)&&this.setFill()},refreshOpacity:function(t){this.opacity=t,this.setOpacity()},setFill:function(){this.allAttr(this.mapFill())},setOpacity:function(){this.setFill()},attr:function(t,e){var n,i=this.element;if(i){for(n=t.split(".");n.length>1;)i=i[n.shift()];i[n[0]]=e}},mapFill:function(){var t=this.srcElement.fill(),e=[["on","false"]];return t&&(t.nodeType==B?e=this.mapGradient(t):k(t.color)||(e=this.mapFillColor(t))),e},mapFillColor:function(t){var e=[["on","true"],["color",t.color]];return this.mapOpacityTo(e,t.opacity),e},mapGradient:function(t){var e,n=this.srcElement.options,i=n.fallbackFill||t.fallbackFill&&t.fallbackFill();return e=t instanceof y.LinearGradient?this.mapLinearGradient(t):t instanceof y.RadialGradient&&t.supportVML?this.mapRadialGradient(t):i?this.mapFillColor(i):[["on","false"]]},mapLinearGradient:function(t){var e=t.start(),n=t.end(),i=T.deg(d(n.y-e.y,n.x-e.x)),r=[["on","true"],["type",B],["focus",0],["method","none"],["angle",270-i]];return this.addColors(r),r},mapRadialGradient:function(t){var e=this.srcElement.rawBBox(),n=t.center(),i=(n.x-e.origin.x)/e.width(),r=(n.y-e.origin.y)/e.height(),o=[["on","true"],["type","gradienttitle"],["focus","100%"],["focusposition",i+" "+r],["method","none"]];return this.addColors(o),o},addColors:function(t){var e,n,i=this.srcElement.options,r=N(this.opacity,1),o=[],s=i.fill.stops,h=i.baseColor,l=this.element.colors?"colors.value":"colors",c=a(h,s[0],r),u=a(h,s[s.length-1],r);for(n=0;s.length>n;n++)e=s[n],o.push(f.round(100*e.offset())+"% "+a(h,e,r));t.push([l,o.join(",")],["color",c],["color2",u])}}),V=L.extend({init:function(t,e){this.transform=e,L.fn.init.call(this,t)},createElement:function(){this.element=n("skew"),this.setTransform()},optionsChange:function(t){"transform"===t.field&&this.refresh(this.srcElement.currentTransform())},refresh:function(t){this.transform=t,this.setTransform()},transformOrigin:function(){return"-0.5,-0.5"},setTransform:function(){this.allAttr(this.mapTransform())},mapTransform:function(){var t=this.transform,e=[],n=C(t);return n?(n.round(D),e.push(["on","true"],["matrix",[n.a,n.c,n.b,n.d,0,0].join(",")],["offset",n.e+"px,"+n.f+"px"],["origin",this.transformOrigin()])):e.push(["on","false"]),e}}),X=G.extend({init:function(t,e,n){this.fill=this.createFillNode(t,e,n),this.stroke=new $(t,n),this.transform=this.createTransformNode(t,e),G.fn.init.call(this,t)},attachTo:function(t,e){this.fill.attachTo(this.element),this.stroke.attachTo(this.element),this.transform.attachTo(this.element),L.fn.attachTo.call(this,t,e)},createFillNode:function(t,e,n){return new U(t,e,n)},createTransformNode:function(t,e){return new V(t,e)},createElement:function(){this.element=n("shape"),this.setCoordsize(),this.setStyle()},optionsChange:function(t){s(t.field)?this.fill.optionsChange(t):0===t.field.indexOf("stroke")?this.stroke.optionsChange(t):"transform"===t.field?this.transform.optionsChange(t):"opacity"===t.field&&(this.fill.setOpacity(),this.stroke.setOpacity()),G.fn.optionsChange.call(this,t)},refreshTransform:function(t){this.transform.refresh(this.srcElement.currentTransform(t))},refreshOpacity:function(t){t*=N(this.srcElement.options.opacity,1),this.fill.refreshOpacity(t),this.stroke.refreshOpacity(t)},mapStyle:function(t,e){var n,i=G.fn.mapStyle.call(this);return t&&e||(t=e=R),i.push(["position","absolute"],["width",t+"px"],["height",e+"px"]),n=this.srcElement.options.cursor,n&&i.push(["cursor",n]),i},setCoordsize:function(){this.allAttr([["coordorigin","0 0"],["coordsize",z+" "+z]])}}),Y=L.extend({createElement:function(){this.element=n("path"),this.setPathData()},geometryChange:function(){this.setPathData()},setPathData:function(){this.attr("v",this.renderData())},renderData:function(){return r(this.srcElement)}}),W=X.extend({init:function(t,e,n){this.pathData=this.createDataNode(t),X.fn.init.call(this,t,e,n)},attachTo:function(t,e){this.pathData.attachTo(this.element),X.fn.attachTo.call(this,t,e)},createDataNode:function(t){return new Y(t)},geometryChange:function(){this.pathData.geometryChange(),X.fn.geometryChange.call(this)}}),q=Y.extend({renderData:function(){var t,e,n,i=this.srcElement.paths;if(i.length>0){for(t=[],e=0;i.length>e;e++)n=i.length-1>e,t.push(r(i[e],n));return t.join(" ")}}}),H=W.extend({createDataNode:function(t){return new q(t)}}),J=V.extend({transformOrigin:function(){var t=this.srcElement.geometry().bbox(),e=t.center(),n=-p(e.x)/p(t.width()),i=-p(e.y)/p(t.height());return n+","+i}}),Q=X.extend({createElement:function(){this.element=n("oval"),this.setStyle()},createTransformNode:function(t,e){return new J(t,e)},geometryChange:function(){X.fn.geometryChange.call(this),this.setStyle(),this.refreshTransform()},mapStyle:function(){var t=this.srcElement.geometry(),e=t.radius,n=t.center,i=p(2*e),r=X.fn.mapStyle.call(this,i,i);return r.push(["left",p(n.x-e)+"px"],["top",p(n.y-e)+"px"]),r}}),K=Y.extend({renderData:function(){return r(this.srcElement.toPath())}}),Z=W.extend({createDataNode:function(t){return new K(t)}}),tt=Y.extend({createElement:function(){Y.fn.createElement.call(this),this.attr("textpathok",!0)},renderData:function(){var t=this.srcElement.rect(),e=t.center();return"m "+i([new b.Point(t.topLeft().x,e.y)])+" l "+i([new b.Point(t.bottomRight().x,e.y)])}}),et=L.extend({createElement:function(){this.element=n("textpath"),this.attr("on",!0),this.attr("fitpath",!1),this.setStyle(),this.setString()},optionsChange:function(t){"content"===t.field?this.setString():this.setStyle(),L.fn.optionsChange.call(this,t)},mapStyle:function(){return[["font",this.srcElement.options.font]]},setString:function(){this.attr("string",this.srcElement.content())}}),nt=W.extend({init:function(t,e,n){this.path=new et(t),W.fn.init.call(this,t,e,n)},createDataNode:function(t){return new tt(t)},attachTo:function(t,e){this.path.attachTo(this.element),W.fn.attachTo.call(this,t,e)},optionsChange:function(t){("font"===t.field||"content"===t.field)&&(this.path.optionsChange(t),this.pathData.geometryChange(t)),W.fn.optionsChange.call(this,t)}}),it=Y.extend({renderData:function(){var t=this.srcElement.rect(),e=(new y.Path).moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close();return r(e)}}),rt=V.extend({init:function(t,e,n){this.opacity=n,V.fn.init.call(this,t,e)},createElement:function(){this.element=n("fill"),this.attr("type","frame"),this.attr("rotate",!0),this.setOpacity(),this.setSrc(),this.setTransform()},optionsChange:function(t){"src"===t.field&&this.setSrc(),V.fn.optionsChange.call(this,t)},geometryChange:function(){this.refresh()},refreshOpacity:function(t){this.opacity=t,this.setOpacity()},setOpacity:function(){var t=[];this.mapOpacityTo(t,this.srcElement.options.opacity),this.allAttr(t)},setSrc:function(){this.attr("src",this.srcElement.src())},mapTransform:function(){var t,e,n,i,r,o,s,a,h=this.srcElement,l=h.rawBBox(),c=l.center(),u=R/2,f=R,p=l.width()/f,g=l.height()/f,v=0,x=this.transform;return x?(n=C(x),i=m(n.a*n.a+n.b*n.b),r=m(n.c*n.c+n.d*n.d),p*=i,g*=r,o=S(d(n.b,n.d)),s=S(d(-n.c,n.a)),v=(o+s)/2,0!==v?(a=h.bbox().center(),t=(a.x-u)/f,e=(a.y-u)/f):(t=(c.x*i+n.e-u)/f,e=(c.y*r+n.f-u)/f)):(t=(c.x-u)/f,e=(c.y-u)/f),p=A(p,D),g=A(g,D),t=A(t,D),e=A(e,D),v=A(v,D),[["size",p+","+g],["position",t+","+e],["angle",v]]}}),ot=W.extend({createFillNode:function(t,e,n){return new rt(t,e,n)},createDataNode:function(t){return new it(t)},optionsChange:function(t){("src"===t.field||"transform"===t.field)&&this.fill.optionsChange(t),W.fn.optionsChange.call(this,t)},geometryChange:function(){this.fill.geometryChange(),W.fn.geometryChange.call(this)},refreshTransform:function(t){W.fn.refreshTransform.call(this,t),this.fill.refresh(this.srcElement.currentTransform(t))}}),st=Y.extend({renderData:function(){var t=this.srcElement.geometry(),e=["m",i([t.topLeft()]),"l",i([t.topRight(),t.bottomRight(),t.bottomLeft()]),"x e"];return e.join(" ")}}),at=W.extend({createDataNode:function(t){return new st(t)}}),ht={Group:j,Text:nt,Path:W,MultiPath:H,Circle:Q,Arc:Z,Image:ot,Rect:at};g.support.vml=function(){var t=g.support.browser;return t.msie&&9>t.version}(),c="inherit",g.support.browser.msie&&8>g.support.browser.version&&(c="rect(auto auto auto auto)"),g.support.vml&&y.SurfaceFactory.current.register("vml",M,30),v(y,{vml:{ArcDataNode:K,ArcNode:Z,CircleTransformNode:J,CircleNode:Q,FillNode:U,GroupNode:j,ImageNode:ot,ImageFillNode:rt,ImagePathDataNode:it,MultiPathDataNode:q,MultiPathNode:H,Node:L,PathDataNode:Y,PathNode:W,RectDataNode:st,RectNode:at,RootNode:F,StrokeNode:$,Surface:M,TextNode:nt,TextPathNode:et,TextPathDataNode:tt,TransformNode:V}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/html.min",["kendo.color.min","drawing/shapes.min","util/main.min","util/text-metrics"],t)}(function(){!function(t,e,n){"use strict";function i(n,i){function o(e){var n=new st.Group,r=e.getBoundingClientRect();return O(n,[1,0,0,1,-r.left,-r.top]),dt._clipbox=!1,dt._matrix=at.Matrix.unit(),dt._stackingContext={element:e,group:n},dt._avoidLinks=i.avoidLinks===!0?"a":i.avoidLinks,t(e).addClass("k-pdf-export"),tt(e,n),t(e).removeClass("k-pdf-export"),n}function s(e){return null!=e?("string"==typeof e&&(e=kendo.template(e.replace(/^\s+|\s+$/g,""))),"function"==typeof e?function(n){var i=e(n);return i?t(i)[0]:void 0}:function(){return t(e).clone()[0]}):void 0}function a(e){var n,i,r,o,s=e.cloneNode(!1);if(1==e.nodeType){n=t(e),i=t(s),o=n.data();for(r in o)i.data(r,o[r]);if(/^canvas$/i.test(e.tagName))s.getContext("2d").drawImage(e,0,0);else for(r=e.firstChild;r;r=r.nextSibling)s.appendChild(a(r))}return s}function h(n,i,r,o,h,l,c){function u(){function t(){setTimeout(function(){n({pages:_,container:k})},10)}var e,i;("-"!=r||h)&&d(T),e=g(),T.parentNode.insertBefore(e,T),e.appendChild(T),b?(i=_.length,_.forEach(function(e,n){var r=b({element:e,pageNum:n+1,totalPages:_.length});r&&(e.appendChild(r),f(r,function(){0===--i&&t()}))})):t()}function d(n){var i,o,s,a,l=y(n),c=e(w(l,"padding-bottom")),u=e(w(l,"border-bottom-width")),f=E;for(E+=c+u,i=!0,o=n.firstChild;o;o=o.nextSibling)if(1==o.nodeType){if(i=!1,s=t(o),s.is(r)){m(o);continue}if(!h){d(o);continue}if(!/^(?:static|relative)$/.test(w(y(o),"position")))continue;a=v(o),1==a?m(o):a&&(s.data("kendoChart")||/^(?:img|tr|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(o.tagName))?m(o):d(o)}else 3==o.nodeType&&h&&(x(o,i),i=!1);E=f}function p(t){var e=t.parentNode,n=e.firstChild;if(t===n)return!0;if(t===e.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\S/.test(n.data)}return!1}function m(e){var n,i,r;return 1==e.nodeType&&e!==T&&p(e)?m(e.parentNode):(n=t(e).closest("table").find("colgroup"),i=g(),r=C.createRange(),r.setStartBefore(T),r.setEndBefore(e),i.appendChild(r.extractContents()),T.parentNode.insertBefore(i,T),void(n[0]&&n.clone().prependTo(t(e).closest("table"))))}function g(){var e=C.createElement("KENDO-PDF-PAGE");return t(e).css({display:"block",boxSizing:"content-box",width:o||"auto",padding:l.top+"px "+l.right+"px "+l.bottom+"px "+l.left+"px",position:"relative",height:h||"auto",overflow:h||o?"hidden":"visible",clear:"both"}),c&&c.pageClassName&&(e.className=c.pageClassName),_.push(e),e}function v(t){var e,n,i=t.getBoundingClientRect();return 0===i.width||0===i.height?0:(e=T.getBoundingClientRect().top,n=h-E,i.height>n?3:i.top-e>n?1:i.bottom-e>n?2:0)}function x(t,e){var n,i,r,o,s;/\S/.test(t.data)&&(n=t.data.length,i=C.createRange(),i.selectNodeContents(t),r=v(i),r&&(o=t,1==r?m(e?t.parentNode:t):(!function a(e,n,r){return i.setEnd(t,n),e==n||n==r?n:v(i)?a(e,e+n>>1,n):a(n,n+r>>1,r)}(0,n>>1,n),!/\S/.test(""+i)&&e?m(t.parentNode):(o=t.splitText(i.endOffset),s=g(),i.setStartBefore(T),s.appendChild(i.extractContents()),T.parentNode.insertBefore(s,T))),x(o)))}var b=s(c.template),C=i.ownerDocument,_=[],T=a(i),k=C.createElement("KENDO-PDF-DOCUMENT"),E=0;t(T).find("tfoot").each(function(){this.parentNode.appendChild(this)}),t(T).find("ol").each(function(){t(this).children().each(function(t){this.setAttribute("kendo-split-index",t)})}),t(k).css({display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),o&&(t(k).css({width:o,paddingLeft:l.left,paddingRight:l.right}),t(T).css({overflow:"hidden"})),k.appendChild(T),i.parentNode.insertBefore(k,i),c.beforePageBreak?setTimeout(function(){c.beforePageBreak(k,u)},15):setTimeout(u,15)}i||(i={});var l=t.Deferred();if(n=t(n)[0],!n)return l.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw Error("window.getComputedStyle is missing. You are using an unsupported browser, or running in IE8 compatibility mode. Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");return kendo.pdf&&kendo.pdf.defineFont(r(n.ownerDocument)),f(n,function(){var t,e=i&&i.forcePageBreak,r=i&&i.paperSize&&"auto"!=i.paperSize,s=r&&kendo.pdf.getPaperOptions(function(t,e){return t in i?i[t]:e}),a=r&&s.paperSize[0],c=r&&s.paperSize[1],u=i.margin&&s.margin;e||c?(u||(u={left:0,top:0,right:0,bottom:0}),t=new st.Group({pdf:{multiPage:!0,paperSize:r?s.paperSize:"auto"}}),h(function(e){if(i.progress){var n=!1,r=0;!function s(){e.pages.length>r?(t.append(o(e.pages[r])),i.progress({pageNum:++r,totalPages:e.pages.length,cancel:function(){n=!0}}),n?e.container.parentNode.removeChild(e.container):setTimeout(s)):(e.container.parentNode.removeChild(e.container),l.resolve(t))}()}else e.pages.forEach(function(e){t.append(o(e))}),e.container.parentNode.removeChild(e.container),l.resolve(t)},n,e,a?a-u.left-u.right:null,c?c-u.top-u.bottom:null,u,i)):l.resolve(o(n))}),l.promise()}function r(t){function e(t){if(t){var e=null;try{e=t.cssRules}catch(n){}e&&i(t,e)}}function n(t){var e,n=w(t.style,"src");return n?rt(n).reduce(function(t,e){var n=ot(e);return n&&t.push(n),t},[]):(e=ot(t.cssText),e?[e]:[])}function i(t,i){var o,s,a,h,l,c,u;for(o=0;i.length>o;++o)switch(s=i[o],s.type){case 3:e(s.styleSheet);break;case 5:a=s.style,h=rt(w(a,"font-family")),l=/^([56789]00|bold)$/i.test(w(a,"font-weight")),c="italic"==w(a,"font-style"),u=n(s),u.length>0&&r(t,h,l,c,u[0])}}function r(t,e,n,i,r){/^data:/i.test(r)||/^[^\/:]+:\/\//.test(r)||/^\//.test(r)||(r=(t.href+"").replace(/[^\/]*$/,"")+r),e.forEach(function(t){t=t.replace(/^(['"]?)(.*?)\1$/,"$2"),n&&(t+="|bold"),i&&(t+="|italic"),o[t]=r})}var o,s;for(null==t&&(t=document),o={},s=0;t.styleSheets.length>s;++s)e(t.styleSheets[s]);return o}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t){return t="_counter_"+t,dt[t]}function a(t){var e=[],n=dt;for(t="_counter_"+t;n;)o(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}function h(t,e){var n=dt;for(t="_counter_"+t;n&&!o(n,t);)n=Object.getPrototypeOf(n);n||(n=dt._root),n[t]=(n[t]||0)+(null==e?1:e)}function l(t,e){t="_counter_"+t,dt[t]=null==e?0:e}function c(t,n,i){var r,o,s;for(r=0;t.length>r;)o=t[r++],s=e(t[r]),isNaN(s)?n(o,i):(n(o,s),++r)}function u(t,e){var n=kendo.parseColor(t);return n&&(n=n.toRGB(),e?n=n.toCssRgba():0===n.a&&(n=null)),n}function f(t,e){function n(t){ft[t]||(ft[t]=!0,o.push(t))}function i(){--r<=0&&e()}var r,o=[];!function s(t){/^img$/i.test(t.tagName)&&n(t.src),it(w(y(t),"background-image")).forEach(function(t){"url"==t.type&&n(t.url)}),t.children&&ht.call(t.children).forEach(s)}(t),r=o.length,0===r&&i(),o.forEach(function(t){var e=ft[t]=new Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?i():(e.onload=i,e.onerror=function(){ft[t]=null,i()})})}function d(t){var e,i="";do e=t%26,i=String.fromCharCode(97+e)+i,t=n.floor(t/26);while(t>0);return i}function p(t,e,n){var i,r;dt=Object.create(dt),dt[t.tagName.toLowerCase()]={element:t,style:e},i=w(e,"text-decoration"),i&&"none"!=i&&(r=w(e,"color"),i.split(/\s+/g).forEach(function(t){dt[t]||(dt[t]=r)})),x(e)&&(dt._stackingContext={element:t,group:n})}function m(){dt=Object.getPrototypeOf(dt)}function g(t){if(null!=dt._clipbox){var e=t.bbox(dt._matrix);dt._clipbox=dt._clipbox?at.Rect.intersect(dt._clipbox,e):e}}function v(){var t=dt._clipbox;return null==t?!0:t?0===t.width()||0===t.height():void 0}function x(t){function e(e){return w(t,e)}return"none"!=e("transform")||"static"!=e("position")&&"auto"!=e("z-index")||e("opacity")<1?!0:void 0}function y(t,e){return window.getComputedStyle(t,e||null)}function w(t,e){return t.getPropertyValue(e)||lt.webkit&&t.getPropertyValue("-webkit-"+e)||lt.mozilla&&t.getPropertyValue("-moz-"+e)||lt.opera&&t.getPropertyValue("-o-"+e)||lt.msie&&t.getPropertyValue("-ms-"+e)}function b(t,e,n,i){t.setProperty(e,n,i),lt.webkit?t.setProperty("-webkit-"+e,n,i):lt.mozilla?t.setProperty("-moz-"+e,n,i):lt.opera?t.setProperty("-o-"+e,n,i):lt.msie&&(t.setProperty("-ms-"+e,n,i),e="ms"+e.replace(/(^|-)([a-z])/g,function(t,e,n){return e+n.toUpperCase()}),t[e]=n)}function C(t){var e,n,i,r;if((lt.msie||lt.chrome)&&(e=t.getClientRects(),i=0,3>=e.length)){for(r=0;e.length>r;++r)1>=e[r].width?i++:n=e[r];if(i==e.length-1)return n}return t.getBoundingClientRect()}function _(t,n){return n="border-"+n,{width:e(w(t,n+"-width")),style:w(t,n+"-style"),color:u(w(t,n+"-color"),!0)}}function T(t,e){var n=t.style.cssText,i=e();return t.style.cssText=n,i}function k(t,n){var i=w(t,"border-"+n+"-radius").split(/\s+/g).map(e);return 1==i.length&&i.push(i[0]),B({x:i[0],y:i[1]})}function E(t){var e=t.getBoundingClientRect();return e=S(e,"border-*-width",t),e=S(e,"padding-*",t)}function S(t,n,i){var r,o,s,a,h;return"string"==typeof n?(r=y(i),o=e(w(r,n.replace("*","top"))),s=e(w(r,n.replace("*","right"))),a=e(w(r,n.replace("*","bottom"))),h=e(w(r,n.replace("*","left")))):"number"==typeof n&&(o=s=a=h=n),{top:t.top+o,right:t.right-s,bottom:t.bottom-a,left:t.left+h,width:t.right-t.left-s-h,height:t.bottom-t.top-a-o}}function A(t){var n,i,r=w(t,"transform");return"none"==r?null:(n=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(r),n?(i=w(t,"transform-origin"),n=n[1].split(/\s*,\s*/g).map(e),i=i.split(/\s+/g).map(e),{matrix:n,origin:i}):void 0)}function N(t){return 180*t/n.PI%360}function P(t){var i=e(t);return/grad$/.test(t)?n.PI*i/200:/rad$/.test(t)?i:/turn$/.test(t)?n.PI*i*2:/deg$/.test(t)?n.PI*i/180:void 0}function O(t,e){return e=new at.Matrix(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function R(t,e){t.clip(e)}function z(t,e,n,i){for(var r=new at.Arc([e,n],i).curvePoints(),o=1;r.length>o;)t.curveTo(r[o++],r[o++],r[o++])}function B(t){return(0>=t.x||0>=t.y)&&(t.x=t.y=0),t}function D(t,e,i,r,o){var s=n.max(0,e.x),a=n.max(0,e.y),h=n.max(0,i.x),l=n.max(0,i.y),c=n.max(0,r.x),u=n.max(0,r.y),f=n.max(0,o.x),d=n.max(0,o.y),p=n.min(t.width/(s+h),t.height/(l+u),t.width/(c+f),t.height/(d+a));return 1>p&&(s*=p,a*=p,h*=p,l*=p,c*=p,u*=p,f*=p,d*=p),{tl:{x:s,y:a},tr:{x:h,y:l},br:{x:c,y:u},bl:{x:f,y:d}}}function M(t,n,i){var r,o,s,a,h,l,c,u,f=y(t),d=k(f,"top-left"),p=k(f,"top-right"),m=k(f,"bottom-left"),g=k(f,"bottom-right");return("padding"==i||"content"==i)&&(r=_(f,"top"),o=_(f,"right"),s=_(f,"bottom"),a=_(f,"left"),d.x-=a.width,d.y-=r.width,p.x-=o.width,p.y-=r.width,g.x-=o.width,g.y-=s.width,m.x-=a.width,m.y-=s.width,"content"==i&&(h=e(w(f,"padding-top")),l=e(w(f,"padding-right")),c=e(w(f,"padding-bottom")),u=e(w(f,"padding-left")),d.x-=u,d.y-=h,p.x-=l,p.y-=h,g.x-=l,g.y-=c,m.x-=u,m.y-=c)),"number"==typeof i&&(d.x-=i,d.y-=i,p.x-=i,p.y-=i,g.x-=i,g.y-=i,m.x-=i,m.y-=i),L(n,d,p,g,m)}function L(t,e,n,i,r){var o=D(t,e,n,i,r),s=o.tl,a=o.tr,h=o.br,l=o.bl,c=new st.Path({fill:null,stroke:null});return c.moveTo(t.left,t.top+s.y),s.x&&z(c,t.left+s.x,t.top+s.y,{startAngle:-180,endAngle:-90,radiusX:s.x,radiusY:s.y}),c.lineTo(t.right-a.x,t.top),a.x&&z(c,t.right-a.x,t.top+a.y,{startAngle:-90,endAngle:0,radiusX:a.x,radiusY:a.y}),c.lineTo(t.right,t.bottom-h.y),h.x&&z(c,t.right-h.x,t.bottom-h.y,{startAngle:0,endAngle:90,radiusX:h.x,radiusY:h.y}),c.lineTo(t.left+l.x,t.bottom),l.x&&z(c,t.left+l.x,t.bottom-l.y,{startAngle:90,endAngle:180,radiusX:l.x,radiusY:l.y}),c.close()}function F(t,n){var i=e(t)+"";switch(n){case"decimal-leading-zero":return 2>i.length&&(i="0"+i),i;case"lower-roman":return ct(t).toLowerCase();case"upper-roman":return ct(t).toUpperCase();case"lower-latin":case"lower-alpha":return d(t-1);case"upper-latin":case"upper-alpha":return d(t-1).toUpperCase();default:return i}}function I(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),a(t).map(function(t){return F(t,e)}).join(n)):F(s(t)||0,e)}var i,r=rt(e,/^\s+/),o=[];return r.forEach(function(e){var r;(i=/^\s*(["'])(.*)\1\s*$/.exec(e))?o.push(i[2].replace(/\\([0-9a-f]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))})):(i=/^\s*counter\((.*?)\)\s*$/.exec(e))?(r=rt(i[1]),o.push(n(r[0],r[1]))):(i=/^\s*counters\((.*?)\)\s*$/.exec(e))?(r=rt(i[1]), o.push(n(r[0],r[2],r[1]))):o.push((i=/^\s*attr\((.*?)\)\s*$/.exec(e))?t.getAttribute(i[1])||"":e)}),o.join("")}function G(t){var e,n;if(t.cssText)return t.cssText;for(e=[],n=0;t.length>n;++n)e.push(t[n]+": "+w(t,t[n]));return e.join(";\n")}function j(t,n){function i(n,i){var o,s=y(t,n);s.content&&"normal"!=s.content&&"none"!=s.content&&"0px"!=s.width&&(o=t.ownerDocument.createElement(ut),o.style.cssText=G(s),o.textContent=I(t,s.content),t.insertBefore(o,i),":before"!=n||/absolute|fixed/.test(w(o.style,"position"))||(o.style.marginLeft=e(w(o.style,"margin-left"))-o.offsetWidth+"px"),r.push(o))}if(t.tagName==ut)return void $(t,n);var r=[];i(":before",t.firstChild),i(":after",null),$(t,n),r.forEach(function(e){t.removeChild(e)})}function $(i,r){function o(t){var e,n,r,o,s,a;if(/^td$/i.test(i.tagName)&&(e=dt.table,e&&"collapse"==w(e.style,"border-collapse"))){if(n=_(e.style,"left").width,r=_(e.style,"top").width,0===n&&0===r)return t;if(o=e.element.getBoundingClientRect(),s=e.element.rows[0].cells[0],a=s.getBoundingClientRect(),a.top==o.top||a.left==o.left)return ht.call(t).map(function(t){return{left:t.left+n,top:t.top+r,right:t.right+n,bottom:t.bottom+r,height:t.height,width:t.width}})}return t}function s(t,e,i,o,s,a,h,l){function c(e,r,o){var s=n.PI/2*e/(e+i),a={x:r.x-e,y:r.y-i},h=new st.Path({fill:{color:t},stroke:null}).moveTo(0,0);O(h,o),z(h,0,r.y,{startAngle:-90,endAngle:-N(s),radiusX:r.x,radiusY:r.y}),a.x>0&&a.y>0?(h.lineTo(a.x*n.cos(s),r.y-a.y*n.sin(s)),z(h,0,r.y,{startAngle:-N(s),endAngle:-90,radiusX:a.x,radiusY:a.y,anticlockwise:!0})):a.x>0?h.lineTo(a.x,i).lineTo(0,i):h.lineTo(a.x,i).lineTo(a.x,0),f.append(h.close())}if(!(0>=i)){var u,f=new st.Group;O(f,l),r.append(f),B(a),B(h),u=new st.Path({fill:{color:t},stroke:null}),f.append(u),u.moveTo(a.x?n.max(a.x,o):0,0).lineTo(e-(h.x?n.max(h.x,s):0),0).lineTo(e-n.max(h.x,s),i).lineTo(n.max(a.x,o),i).close(),a.x&&c(o,a,[-1,0,0,1,a.x,0]),h.x&&c(s,h,[1,0,0,1,e-h.x,0])}}function a(e){var n,o,s=new st.Group;for(R(s,L(e,X,Y,H,q)),r.append(s),"A"==i.tagName&&i.href&&!/^#?$/.test(t(i).attr("href"))&&(dt._avoidLinks&&t(i).is(dt._avoidLinks)||(s._pdfLink={url:i.href,top:e.top,right:e.right,bottom:e.bottom,left:e.left})),K&&(n=new st.Path({fill:{color:K.toCssRgba()},stroke:null}),n.moveTo(e.left,e.top).lineTo(e.right,e.top).lineTo(e.right,e.bottom).lineTo(e.left,e.bottom).close(),s.append(n)),o=f.length;--o>=0;)h(s,e,f[o],p[o%p.length],m[o%m.length],v[o%v.length],x[o%x.length])}function h(t,n,r,o,s,a,h){function l(t,n,r,l,c){function u(){for(;g.origin.x>n.left;)g.origin.x-=r}function f(){for(;g.origin.y>n.top;)g.origin.y-=l}function d(){for(;n.right>g.origin.x;)c(t,g.clone()),g.origin.x+=r}var p,m,g,v,x=r/l,y=n;if("content-box"==a?(y=S(y,"border-*-width",i),y=S(y,"padding-*",i)):"padding-box"==a&&(y=S(y,"border-*-width",i)),/^\s*auto(\s+auto)?\s*$/.test(h)||(p=h.split(/\s+/g),r=/%$/.test(p[0])?y.width*e(p[0])/100:e(p[0]),l=1==p.length||"auto"==p[1]?r/x:/%$/.test(p[1])?y.height*e(p[1])/100:e(p[1])),m=(s+"").split(/\s+/),1==m.length&&(m[1]="50%"),m[0]=/%$/.test(m[0])?e(m[0])/100*(y.width-r):e(m[0]),m[1]=/%$/.test(m[1])?e(m[1])/100*(y.height-l):e(m[1]),g=new at.Rect([y.left+m[0],y.top+m[1]],[r,l]),"no-repeat"==o)c(t,g);else if("repeat-x"==o)u(),d();else if("repeat-y"==o)for(f();n.bottom>g.origin.y;)c(t,g.clone()),g.origin.y+=l;else if("repeat"==o)for(u(),f(),v=g.origin.clone();n.bottom>g.origin.y;)g.origin.x=v.x,d(),g.origin.y+=l}if(r&&"none"!=r)if("url"==r.type){if(/^url\(\"data:image\/svg/i.test(r.url))return;var c=ft[r.url];c&&c.width>0&&c.height>0&&l(t,n,c.width,c.height,function(t,e){t.append(new st.Image(r.url,e))})}else{if("linear"!=r.type)return;l(t,n,n.width,n.height,U(r))}}function l(){function t(t){T(i,function(){i.style.position="relative";var e=i.ownerDocument.createElement(ut);e.style.position="absolute",e.style.boxSizing="border-box","outside"==n?(e.style.width="6em",e.style.left="-6.8em",e.style.textAlign="right"):e.style.left="0px",t(e),i.insertBefore(e,i.firstChild),tt(e,r),i.removeChild(e)})}function e(t){var e,n=i.parentNode.children,r=i.getAttribute("kendo-split-index");if(null!=r)return t(0|r,n.length);for(e=0;n.length>e;++e)if(n[e]===i)return t(e,n.length)}var n,o=w(F,"list-style-type");if("none"!=o)switch(n=w(F,"list-style-position"),o){case"circle":case"disc":case"square":t(function(t){t.style.fontSize="60%",t.style.lineHeight="200%",t.style.paddingRight="0.5em",t.style.fontFamily="DejaVu Serif",t.innerHTML={disc:"●",circle:"◯",square:"■"}[o]});break;case"decimal":case"decimal-leading-zero":t(function(t){e(function(e){++e,"decimal-leading-zero"==o&&2>(e+"").length&&(e="0"+e),t.innerHTML=e+"."})});break;case"lower-roman":case"upper-roman":t(function(t){e(function(e){e=ct(e+1),"upper-roman"==o&&(e=e.toUpperCase()),t.innerHTML=e+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":t(function(t){e(function(e){e=d(e),/^upper/i.test(o)&&(e=e.toUpperCase()),t.innerHTML=e+"."})})}}function c(t,e,n){function o(t){return{x:t.y,y:t.x}}var h,l,c,u,f,d,p,m;if(0!==t.width&&0!==t.height&&(a(t),h=$.width>0&&(e&&"ltr"==J||n&&"rtl"==J),l=G.width>0&&(n&&"ltr"==J||e&&"rtl"==J),0!==I.width||0!==$.width||0!==G.width||0!==j.width)){if(I.color==G.color&&I.color==j.color&&I.color==$.color&&I.width==G.width&&I.width==j.width&&I.width==$.width&&h&&l)return t=S(t,I.width/2),c=M(i,t,I.width/2),c.options.stroke={color:I.color,width:I.width},void r.append(c);if(0===X.x&&0===Y.x&&0===H.x&&0===q.x&&2>I.width&&2>$.width&&2>G.width&&2>j.width)return I.width>0&&r.append(new st.Path({stroke:{width:I.width,color:I.color}}).moveTo(t.left,t.top+I.width/2).lineTo(t.right,t.top+I.width/2)),j.width>0&&r.append(new st.Path({stroke:{width:j.width,color:j.color}}).moveTo(t.left,t.bottom-j.width/2).lineTo(t.right,t.bottom-j.width/2)),h&&r.append(new st.Path({stroke:{width:$.width,color:$.color}}).moveTo(t.left+$.width/2,t.top).lineTo(t.left+$.width/2,t.bottom)),void(l&&r.append(new st.Path({stroke:{width:G.width,color:G.color}}).moveTo(t.right-G.width/2,t.top).lineTo(t.right-G.width/2,t.bottom)));u=D(t,X,Y,H,q),f=u.tl,d=u.tr,p=u.br,m=u.bl,s(I.color,t.width,I.width,$.width,G.width,f,d,[1,0,0,1,t.left,t.top]),s(j.color,t.width,j.width,G.width,$.width,p,m,[-1,0,0,-1,t.right,t.bottom]),s($.color,t.height,$.width,j.width,I.width,o(m),o(f),[0,-1,1,0,t.left,t.bottom]),s(G.color,t.height,G.width,I.width,j.width,o(d),o(p),[0,1,-1,0,t.right,t.top])}}var f,p,m,v,x,b,C,E,A,P,F=y(i),I=_(F,"top"),G=_(F,"right"),j=_(F,"bottom"),$=_(F,"left"),X=k(F,"top-left"),Y=k(F,"top-right"),q=k(F,"bottom-left"),H=k(F,"bottom-right"),J=w(F,"direction"),K=w(F,"background-color");if(K=u(K),f=it(w(F,"background-image")),p=rt(w(F,"background-repeat")),m=rt(w(F,"background-position")),v=rt(w(F,"background-origin")),x=rt(w(F,"background-size")),lt.msie&&10>lt.version&&(m=rt(i.currentStyle.backgroundPosition)),b=S(i.getBoundingClientRect(),"border-*-width",i),function(){var t,n,i,o,s,a,h,l=w(F,"clip"),c=/^\s*rect\((.*)\)\s*$/.exec(l);c&&(t=c[1].split(/[ ,]+/g),n="auto"==t[0]?b.top:e(t[0])+b.top,i="auto"==t[1]?b.right:e(t[1])+b.left,o="auto"==t[2]?b.bottom:e(t[2])+b.top,s="auto"==t[3]?b.left:e(t[3])+b.left,a=new st.Group,h=(new st.Path).moveTo(s,n).lineTo(i,n).lineTo(i,o).lineTo(s,o).close(),R(a,h),r.append(a),r=a,g(h))}(),P=w(F,"display"),"table-row"==P)for(C=[],E=0,A=i.children;A.length>E;++E)C.push(A[E].getBoundingClientRect());else C=i.getClientRects(),1==C.length&&(C=[i.getBoundingClientRect()]);for(C=o(C),E=0;C.length>E;++E)c(C[E],0===E,E==C.length-1);return C.length>0&&"list-item"==P&&l(C[0]),function(){function t(){var t=M(i,b,"padding"),e=new st.Group;R(e,t),r.append(e),r=e,g(t)}W(i)?t():/^(hidden|auto|scroll)/.test(w(F,"overflow"))?t():/^(hidden|auto|scroll)/.test(w(F,"overflow-x"))?t():/^(hidden|auto|scroll)/.test(w(F,"overflow-y"))&&t()}(),V(i,r)||Q(i,r),r}function U(t){return function(i,r){var o,s,a,h,l,c,u,f,d,p,m,g,v,x=r.width(),y=r.height();switch(t.type){case"linear":switch(o=null!=t.angle?t.angle:n.PI,t.to){case"top":o=0;break;case"left":o=-n.PI/2;break;case"bottom":o=n.PI;break;case"right":o=n.PI/2;break;case"top left":case"left top":o=-n.atan2(y,x);break;case"top right":case"right top":o=n.atan2(y,x);break;case"bottom left":case"left bottom":o=n.PI+n.atan2(y,x);break;case"bottom right":case"right bottom":o=n.PI-n.atan2(y,x)}t.reverse&&(o-=n.PI),o%=2*n.PI,0>o&&(o+=2*n.PI),s=n.abs(x*n.sin(o))+n.abs(y*n.cos(o)),a=n.atan(x*n.tan(o)/y),h=n.sin(a),l=n.cos(a),c=n.abs(h)+n.abs(l),u=c/2*h,f=c/2*l,o>n.PI/2&&3*n.PI/2>=o&&(u=-u,f=-f),d=[],p=0,m=t.stops.map(function(n,i){var r,o=n.percent;return o?o=e(o)/100:n.length?o=e(n.length)/s:0===i?o=0:i==t.stops.length-1&&(o=1),r={color:n.color.toCssRgba(),offset:o},null!=o?(p=o,d.forEach(function(t,e){var n=t.stop;n.offset=t.left+(p-t.left)*(e+1)/(d.length+1)}),d=[]):d.push({left:p,stop:r}),r}),g=[.5-u,.5+f],v=[.5+u,.5-f],i.append(st.Path.fromRect(r).stroke(null).fill(new st.LinearGradient({start:g,end:v,stops:m,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}function V(e,n){var i,r,o,s;return e.getAttribute(kendo.attr("role"))&&(i=kendo.widgetInstance(t(e)),i&&(i.exportDOMVisual||i.exportVisual))?(r=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())?(o=new st.Group,o.children.push(r),s=e.getBoundingClientRect(),o.transform(at.transform().translate(s.left,s.top)),n.append(o),!0):!1:void 0}function X(t,e,n){var i=E(t),r=new at.Rect([i.left,i.top],[i.width,i.height]),o=new st.Image(e,r);R(o,M(t,i,"content")),n.append(o)}function Y(t,n){var i=y(t),r=y(n),o=e(w(i,"z-index")),s=e(w(r,"z-index")),a=w(i,"position"),h=w(r,"position");return isNaN(o)&&isNaN(s)?/static|absolute/.test(a)&&/static|absolute/.test(h)?0:"static"==a?-1:"static"==h?1:0:isNaN(o)?0===s?0:s>0?-1:1:isNaN(s)?0===o?0:o>0?1:-1:e(o)-e(s)}function W(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}function q(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}function H(t,e){var i=y(t),r=w(i,"color"),o=t.getBoundingClientRect();"checkbox"==t.type?(e.append(st.Path.fromRect(new at.Rect([o.left+1,o.top+1],[o.width-2,o.height-2])).stroke(r,1)),t.checked&&e.append((new st.Path).stroke(r,1.2).moveTo(o.left+.22*o.width,o.top+.55*o.height).lineTo(o.left+.45*o.width,o.top+.75*o.height).lineTo(o.left+.78*o.width,o.top+.22*o.width))):(e.append(new st.Circle(new at.Circle([(o.left+o.right)/2,(o.top+o.bottom)/2],n.min(o.width-2,o.height-2)/2)).stroke(r,1)),t.checked&&e.append(new st.Circle(new at.Circle([(o.left+o.right)/2,(o.top+o.bottom)/2],n.min(o.width-8,o.height-8)/2)).fill(r).stroke(null)))}function J(t,e){var n,i,r,o,s,a=t.tagName.toLowerCase();if("input"==a&&("checkbox"==t.type||"radio"==t.type))return H(t,e);if(n=t.parentNode,i=t.ownerDocument,r=i.createElement(ut),r.style.cssText=G(y(t)),r.style.display="inline-block","input"==a&&(r.style.whiteSpace="pre"),("select"==a||"textarea"==a)&&(r.style.overflow="auto"),"select"==a)if(t.multiple)for(s=0;t.options.length>s;++s)o=i.createElement(ut),o.style.cssText=G(y(t.options[s])),o.style.display="block",o.textContent=t.options[s].textContent,r.appendChild(o);else o=q(t),o&&(r.textContent=o.textContent);else r.textContent=t.value;n.insertBefore(r,t),r.scrollLeft=t.scrollLeft,r.scrollTop=t.scrollTop,Q(r,e),n.removeChild(r)}function Q(t,e){var n,i,r,o,s,a,h,l,c;switch(dt._stackingContext.element===t&&(dt._stackingContext.group=e),t.tagName.toLowerCase()){case"img":X(t,t.src,e);break;case"canvas":try{X(t,t.toDataURL("image/png"),e)}catch(u){}break;case"textarea":case"input":case"select":J(t,e);break;default:for(n=[],i=[],r=[],o=[],s=t.firstChild;s;s=s.nextSibling)switch(s.nodeType){case 3:/\S/.test(s.data)&&K(t,s,e);break;case 1:a=y(s),h=w(a,"display"),l=w(a,"float"),c=w(a,"position"),"static"!=c?o.push(s):"inline"!=h?"none"!=l?i.push(s):n.push(s):r.push(s)}n.sort(Y).forEach(function(t){tt(t,e)}),i.sort(Y).forEach(function(t){tt(t,e)}),r.sort(Y).forEach(function(t){tt(t,e)}),o.sort(Y).forEach(function(t){tt(t,e)})}}function K(t,i,r){function o(){var t,e,r,o,a,h,f,d=c,p=l.substr(c).search(/\S/);if(c+=p,0>p||c>=u)return!0;if(g.setStart(i,c),g.setEnd(i,c+1),t=C(g),e=!1,b&&(p=l.substr(c).search(/\s/),p>=0&&(g.setEnd(i,c+p),r=g.getBoundingClientRect(),r.bottom==t.bottom&&(t=r,e=!0,c+=p))),!e){if(p=function m(e,n,r){g.setEnd(i,n);var o=C(g);return o.bottom!=t.bottom&&n>e?m(e,e+n>>1,n):o.right!=t.right?(t=o,r>n?m(n,n+r>>1,r):n):n}(c,n.min(u,c+E),u),p==c)return!0;if(c=p,p=(""+g).search(/\s+$/),0===p)return;p>0&&(g.setEnd(i,g.startOffset+p),t=g.getBoundingClientRect())}if(lt.msie&&(t=g.getClientRects()[0]),o=""+g,/^(?:pre|pre-wrap)$/i.test(_)){if(/\t/.test(o)){for(a=0,p=d;g.startOffset>p;++p)h=l.charCodeAt(p),9==h?a+=8-a%8:10==h||13==h?a=0:a++;for(;(p=o.search(" "))>=0;)f=" ".substr(0,8-(a+p)%8),o=o.substr(0,p)+f+o.substr(p+1)}}else o=o.replace(/\s+/g," ");s(o,t)}function s(t,e){var n,i,o;lt.msie&&!isNaN(d)&&(n=kendo.util.measureText(t,{font:p}),i=(e.top+e.bottom-n.height)/2,e={top:i,right:e.right,bottom:i+n.height,left:e.left,height:n.height,width:e.right-e.left}),o=new nt(t,new at.Rect([e.left,e.top],[e.width,e.height]),{font:p,fill:{color:m}}),r.append(o),a(e)}function a(t){function e(e,n){var i,o;e&&(i=f/12,o=new st.Path({stroke:{width:i,color:e}}),n-=i,o.moveTo(t.left,n).lineTo(t.right,n),r.append(o))}e(dt.underline,t.bottom),e(dt["line-through"],t.bottom-t.height/2.7),e(dt.overline,t.top)}var h,l,c,u,f,d,p,m,g,x,b,_,T,k,E;if(!v()&&(h=y(t),!(e(w(h,"text-indent"))<-500)&&(l=i.data,c=0,u=l.search(/\S\s*$/)+1,u&&(f=w(h,"font-size"),d=w(h,"line-height"),p=[w(h,"font-style"),w(h,"font-variant"),w(h,"font-weight"),f,w(h,"font-family")].join(" "),f=e(f),d=e(d),0!==f)))){for(m=w(h,"color"),g=t.ownerDocument.createRange(),x=w(h,"text-align"),b="justify"==x,_=w(h,"white-space"),lt.msie&&(T=h.textOverflow,"ellipsis"==T&&(k=t.style.textOverflow,t.style.textOverflow="clip")),E=t.getBoundingClientRect().width/f*5,0===E&&(E=500);!o(););lt.msie&&"ellipsis"==T&&(t.style.textOverflow=k)}}function Z(t,n,i){var r,o,s,a,h,l;for("auto"!=i?(r=dt._stackingContext.group,i=e(i)):(r=n,i=0),o=r.children,s=0;o.length>s&&!(null!=o[s]._dom_zIndex&&o[s]._dom_zIndex>i);++s);return a=new st.Group,r.insertAt(a,s),a._dom_zIndex=i,r!==n&&dt._clipbox&&(h=dt._matrix.invert(),l=dt._clipbox.transformCopy(h),R(a,st.Path.fromRect(l))),a}function tt(t,n){var i,r,o,s,a,u,f,d=y(t),g=w(d,"counter-reset");g&&c(rt(g,/^\s+/),l,0),i=w(d,"counter-increment"),i&&c(rt(i,/^\s+/),h,1),/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(t.tagName)||null!=dt._clipbox&&(r=e(w(d,"opacity")),o=w(d,"visibility"),s=w(d,"display"),0!==r&&"hidden"!=o&&"none"!=s&&(a=A(d),f=w(d,"z-index"),(a||1>r)&&"auto"==f&&(f=0),u=Z(t,n,f),1>r&&u.opacity(r*u.opacity()),p(t,d,u),a?T(t,function(){var e,n,i,r;b(t.style,"transform","none","important"),b(t.style,"transition","none","important"),"static"==w(d,"position")&&b(t.style,"position","relative","important"),e=t.getBoundingClientRect(),n=e.left+a.origin[0],i=e.top+a.origin[1],r=[1,0,0,1,-n,-i],r=et(r,a.matrix),r=et(r,[1,0,0,1,n,i]),r=O(u,r),dt._matrix=dt._matrix.multiplyCopy(r),j(t,u)}):j(t,u),m()))}function et(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],h=e[0],l=e[1],c=e[2],u=e[3],f=e[4],d=e[5];return[n*h+i*c,n*l+i*u,r*h+o*c,r*l+o*u,s*h+a*c+f,s*l+a*u+d]}var nt,it,rt,ot,st=kendo.drawing,at=kendo.geometry,ht=Array.prototype.slice,lt=kendo.support.browser,ct=kendo.util.arabicToRoman,ut="KENDO-PSEUDO-ELEMENT",ft={},dt={};dt._root=dt,nt=st.Text.extend({nodeType:"Text",init:function(t,e,n){st.Text.fn.init.call(this,t,e.getOrigin(),n),this._pdfRect=e},rect:function(){return this._pdfRect},rawBBox:function(){return this._pdfRect}}),st.drawDOM=i,i.getFontFaces=r,it=function(){function t(t){function p(){var e=a.exec(t);e&&(t=t.substr(e[1].length))}function m(e){p();var n=e.exec(t);return n?(t=t.substr(n[1].length),n[1]):void 0}function g(){var e,r,o=kendo.parseColor(t,!0);return o?(t=t.substr(o.match[0].length),o=o.toRGB(),(e=m(i))||(r=m(n)),{color:o,length:e,percent:r}):void 0}function v(e){var i,o,a,u,f,d,p=[],v=!1;if(m(h)){for(i=m(s),i?(i=P(i),m(c)):(o=m(r),"to"==o?o=m(r):o&&/^-/.test(e)&&(v=!0),a=m(r),m(c)),/-moz-/.test(e)&&null==i&&null==o&&(u=m(n),f=m(n),v=!0,"0%"==u?o="left":"100%"==u&&(o="right"),"0%"==f?a="top":"100%"==f&&(a="bottom"),m(c));t&&!m(l)&&(d=g());)p.push(d),m(c);return{type:"linear",angle:i,to:o&&a?o+" "+a:o?o:a?a:null,stops:p,reverse:v}}}function x(){if(m(h)){var t=m(f);return t=t.replace(/^['"]+|["']+$/g,""),m(l),{type:"url",url:t}}}var y,w=t;return o(d,w)?d[w]:((y=m(e))?y=v(y):(y=m(u))&&(y=x()),d[w]=y||{type:"none"})}var e=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,n=/^([-0-9.]+%)/,i=/^([-0-9.]+px)/,r=/^(left|right|top|bottom|to|center)\W/,s=/^([-0-9.]+(deg|grad|rad|turn))/,a=/^(\s+)/,h=/^(\()/,l=/^(\))/,c=/^(,)/,u=/^(url)\(/,f=/^(.*?)\)/,d={},p={};return function(e){return o(p,e)?p[e]:p[e]=rt(e).map(t)}}(),rt=function(){var t={};return function(e,n){function i(t){return f=t.exec(e.substr(l))}function r(t){return t.replace(/^\s+|\s+$/g,"")}var s,a,h,l,c,u,f;if(n||(n=/^\s*,\s*/),s=e+n,o(t,s))return t[s];for(a=[],h=0,l=0,c=0,u=!1;e.length>l;)!u&&i(/^[\(\[\{]/)?(c++,l++):!u&&i(/^[\)\]\}]/)?(c--,l++):!u&&i(/^[\"\']/)?(u=f[0],l++):"'"==u&&i(/^\\\'/)?l+=2:'"'==u&&i(/^\\\"/)?l+=2:"'"==u&&i(/^\'/)?(u=!1,l++):'"'==u&&i(/^\"/)?(u=!1,l++):i(n)?(!u&&!c&&l>h&&(a.push(r(e.substring(h,l))),h=l+f[0].length),l+=f[0].length):l++;return l>h&&a.push(r(e.substring(h,l))),t[s]=a}}(),ot=function(){var t={};return function(e){var n,i=t[e];return i||((n=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(e))?i=t[e]=n[2]:(n=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(e))&&(i=t[e]=n[2])),i}}()}(window.kendo.jQuery,parseFloat,Math)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/animation.min",["drawing/geometry.min","drawing/core.min"],t)}(function(){!function(t){var e=t.noop,n=window.kendo,i=n.Class,r=n.util,o=n.animationFrame,s=n.deepExtend,a=i.extend({init:function(t,e){var n=this;n.options=s({},n.options,e),n.element=t},options:{duration:500,easing:"swing"},setup:e,step:e,play:function(){var e=this,n=e.options,i=t.easing[n.easing],s=n.duration,a=n.delay||0,h=r.now()+a,l=h+s;0===s?(e.step(1),e.abort()):setTimeout(function(){var t=function(){var n,a,c,u;e._stopped||(n=r.now(),a=r.limitValue(n-h,0,s),c=a/s,u=i(c,a,0,1,s),e.step(u),l>n?o(t):e.abort())};t()},a)},abort:function(){this._stopped=!0},destroy:function(){this.abort()}}),h=function(){this._items=[]};h.prototype={register:function(t,e){this._items.push({name:t,type:e})},create:function(t,e){var n,i,r,o=this._items;if(e&&e.type)for(i=e.type.toLowerCase(),r=0;o.length>r;r++)if(o[r].name.toLowerCase()===i){n=o[r];break}return n?new n.type(t,e):void 0}},h.current=new h,a.create=function(t,e,n){return h.current.create(t,e,n)},s(n.drawing,{Animation:a,AnimationFactory:h})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("kendo.drawing.min",["kendo.color.min","util/main.min","util/text-metrics","util/base64.min","mixins/observers.min","drawing/geometry.min","drawing/core.min","drawing/mixins.min","drawing/shapes.min","drawing/parser.min","drawing/svg.min","drawing/canvas.min","drawing/vml.min","drawing/html.min","drawing/animation.min"],t)}(function(){},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}); //# sourceMappingURL=kendo.drawing.min.js.map