/
var
/
www
/
html
/
sugar14
/
cache
/
include
/
javascript
/
Upload File
HOME
!function(e,define){define("kendo.core.min",["jquery"],e)}(function(){return function(e,t,n){function r(){}function o(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var n=e.charAt(0),r=e.substring(1);return"="===n?"+("+r+")+":":"===n?"+$kendoHtmlEncode("+r+")+":";"+e+";$kendoOutput+="}function i(e,t,n){return e+="",t=t||2,n=t-e.length,n?B[t].substring(0,n)+e:e}function a(e){var t=e.css(Ce.support.transitions.css+"box-shadow")||e.css("box-shadow"),n=t?t.match(Re)||[0,0,0,0,0]:[0,0,0,0,0],r=_e.max(+n[3],+(n[4]||0));return{left:-n[1]+r,right:+n[1]+r,bottom:+n[2]+r}}function s(n,r){var o,i,a,s,l,c,d=Ce._outerWidth,f=Ce._outerHeight,p=n.parent(),m=d(t);return p.removeClass("k-animation-container-sm"),p.hasClass("k-animation-container")?u(n,r):(i=n[0].style.width,a=n[0].style.height,s=Ne.test(i),l=Ne.test(a),c=n.hasClass("k-tooltip")||n.is(".k-menu-horizontal.k-context-menu"),o=s||l,!s&&(!r||r&&i||c)&&(i=r?d(n)+1:d(n)),(!l&&(!r||r&&a)||n.is(".k-menu-horizontal.k-context-menu"))&&(a=f(n)),n.wrap(e("<div/>").addClass("k-animation-container").css({width:i,height:a})),p=n.parent(),o&&n.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),m<d(p)&&(p.addClass("k-animation-container-sm"),u(n,r)),p}function u(e,t){var n,r=Ce._outerWidth,o=Ce._outerHeight,i=e.parent(".k-animation-container"),a=i[0].style;i.is(":hidden")&&i.css({display:"",position:""}),n=Ne.test(a.width)||Ne.test(a.height),n||i.css({width:t?r(e)+1:r(e),height:o(e),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})}function l(e){var t=1,n=arguments.length;for(t=1;t<n;t++)c(e,arguments[t]);return e}function c(e,n){var r,o,i,a,s,u=Ce.data.ObservableArray,l=Ce.data.LazyObservableArray,d=Ce.data.DataSource,f=Ce.data.HierarchicalDataSource;for(r in n)o=n[r],i=typeof o,a=i===$e&&null!==o?o.constructor:null,!a||a===Array||a===u||a===l||a===d||a===f||a===RegExp||Ce.isFunction(t.ArrayBuffer)&&a===ArrayBuffer?i!==Ye&&(e[r]=o):o instanceof Date?e[r]=new Date(o.getTime()):F(o.clone)?e[r]=o.clone():(s=e[r],e[r]=typeof s===$e?s||{}:{},c(e[r],o));return e}function d(e,t,r){for(var o in t)if(t.hasOwnProperty(o)&&t[o].test(e))return o;return r!==n?r:e}function f(e){return e.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})}function p(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})}function m(t,n){var r,o={};return document.defaultView&&document.defaultView.getComputedStyle?(r=document.defaultView.getComputedStyle(t,""),n&&e.each(n,function(e,t){o[t]=r.getPropertyValue(t)})):(r=t.currentStyle,n&&e.each(n,function(e,t){o[t]=r[p(t)]})),Ce.size(o)||(o=r),o}function h(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=m(e,["overflow"]).overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1}function g(t,r){var o,i,a=Fe.browser.webkit,s=Fe.browser.mozilla,u=Fe.browser.version;return t instanceof e&&r!==n?(t.each(function(e,t){g(t,r)}),n):(o=t instanceof e?t[0]:t)?(i=Fe.isRtl(t),r===n?i&&a&&(u<85||Fe.browser.safari)?o.scrollWidth-o.clientWidth-o.scrollLeft:Math.abs(o.scrollLeft):(o.scrollLeft=i&&a&&(u<85||Fe.browser.safari)?o.scrollWidth-o.clientWidth-r:i&&(s||a)&&r>0?-r:r,n)):n}function y(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function v(e,n,r){var o,i,a;return n||(n="offset"),o=e[n](),i={top:o.top,right:o.right,bottom:o.bottom,left:o.left},Fe.browser.msie&&(Fe.pointers||Fe.msPointers)&&!r&&(a=Fe.isRtl(e)?1:-1,i.top-=t.pageYOffset-document.documentElement.scrollTop,i.left-=t.pageXOffset+a*document.documentElement.scrollLeft),i}function b(e){var t={};return De("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function w(e){return new Ce.effects.Element(e)}function M(e,t,n,r){return typeof e===We&&(F(t)&&(r=t,t=400,n=!1),F(n)&&(r=n,n=!1),typeof t===Be&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:r}),Oe({effects:{},duration:400,reverse:!1,init:Ee,teardown:Ee,hide:!1},e,{completeCallback:e.complete,complete:Ee})}function x(t,n,r,o,i){for(var a,s=0,u=t.length;s<u;s++)a=e(t[s]),a.queue(function(){q.promise(a,M(n,r,o,i))});return t}function S(e,t,n,r){return t&&(t=t.split(" "),De(t,function(t,n){e.toggleClass(n,r)})),e}function T(e){return(""+e).replace(J,"&").replace(V,"<").replace(Q,">").replace(G,""").replace(K,"'")}function k(e){var n;try{n=t.decodeURIComponent(e)}catch(r){n=e.replace(/%u([\dA-F]{4})|%([\dA-F]{2})/gi,function(e,t,n){return String.fromCharCode(parseInt("0x"+(t||n),16))})}return n}function C(e,t){var r;return 0===t.indexOf("data")&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(ae,"-$1"),r=e.getAttribute("data-"+Ce.ns+t),null===r?r=n:"null"===r?r=null:"true"===r?r=!0:"false"===r?r=!1:je.test(r)&&"mask"!=t?r=parseFloat(r):oe.test(r)&&!ie.test(r)&&(r=Function("return ("+r+")")()),r}function O(t,r,o){var i,a,s={},u=t.getAttribute("data-"+Ce.ns+"role");for(i in r)a=C(t,i),a!==n&&(re.test(i)&&"drawer"!=u&&("string"==typeof a?e("#"+a).length?a=Ce.template(e("#"+a).html()):o&&(a=Ce.template(o[a])):a=t.getAttribute(i)),s[i]=a);return s}function D(t,n){return e.contains(t,n)?-1:1}function z(){var t=e(this);return e.inArray(t.attr("data-"+Ce.ns+"role"),["slider","rangeslider","breadcrumb"])>-1||t.is(":visible")}function A(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&E(e)}function E(t){return e.expr.pseudos.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function _(e,t){return new _.fn.init(e,t)}var H,F,N,P,R,j,U,W,I,$,L,B,Y,q,J,V,G,K,Q,Z,X,ee,te,ne,re,oe,ie,ae,se,ue,le,ce,de,fe,pe,me,he,ge,ye,ve,be,we,Me,xe,Se,Te,ke,Ce=t.kendo=t.kendo||{cultures:{}},Oe=e.extend,De=e.each,ze=e.isArray,Ae=e.proxy,Ee=e.noop,_e=Math,He=t.JSON||{},Fe={},Ne=/%/,Pe=/\{(\d+)(:[^\}]+)?\}/g,Re=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,je=/^(\+|-?)\d+(\.?)\d*$/,Ue="function",We="string",Ie="number",$e="object",Le="null",Be="boolean",Ye="undefined",qe={},Je={},Ve=[].slice,Ge=function(){var e,t,r,o,i,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[u]||{},u++),"object"==typeof s||jQuery.isFunction(s)||(s={}),u===l&&(s=this,u--);u<l;u++)if(null!=(i=arguments[u]))for(o in i)"filters"!=o&&"concat"!=o&&":"!=o&&(e=s[o],r=i[o],s!==r&&(c&&r&&(jQuery.isPlainObject(r)||(t=jQuery.isArray(r)))?(t?(t=!1,a=e&&jQuery.isArray(e)?e:[]):a=e&&jQuery.isPlainObject(e)?e:{},s[o]=Ge(c,a,r)):r!==n&&(s[o]=r)));return s};Ce.version="2021.2.616".replace(/^\s+|\s+$/g,""),r.extend=function(e){var t,n,r=function(){},o=this,i=e&&e.init?e.init:function(){o.apply(this,arguments)};r.prototype=o.prototype,n=i.fn=i.prototype=new r;for(t in e)n[t]=null!=e[t]&&e[t].constructor===Object?Oe(!0,{},r.prototype[t],e[t]):e[t];return n.constructor=i,i.extend=o.extend,i},r.prototype._initOptions=function(e){this.options=l({},this.options,e)},F=Ce.isFunction=function(e){return"function"==typeof e},N=function(){this._defaultPrevented=!0},P=function(){return this._defaultPrevented===!0},R=r.extend({init:function(){this._events={}},bind:function(e,t,r){var o,i,a,s,u,l=this,c=typeof e===We?[e]:e,d=typeof t===Ue;if(t===n){for(o in e)l.bind(o,e[o]);return l}for(o=0,i=c.length;o<i;o++)e=c[o],s=d?t:t[e],s&&(r&&(a=s,s=function(){l.unbind(e,s),a.apply(l,arguments)},s.original=a),u=l._events[e]=l._events[e]||[],u.push(s));return l},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,r,o,i,a=this,s=typeof e===We?[e]:e,u=typeof t===Ue;for(n=0,r=s.length;n<r;n++)e=s[n],o=u?t:t[e],o&&(i=a._events[e]=a._events[e]||[],i.unshift(o));return a},trigger:function(e,t){var n,r,o=this,i=o._events[e];if(i){for(t=t||{},t.sender=o,t._defaultPrevented=!1,t.preventDefault=N,t.isDefaultPrevented=P,i=i.slice(),n=0,r=i.length;n<r;n++)i[n].call(o,t);return t._defaultPrevented===!0}return!1},unbind:function(e,t){var r,o=this,i=o._events[e];if(e===n)o._events={};else if(i)if(t)for(r=i.length-1;r>=0;r--)i[r]!==t&&i[r].original!==t||i.splice(r,1);else o._events[e]=[];return o}}),j=/^\w+/,U=/\$\{([^}]*)\}/g,W=/\\\}/g,I=/__CURLY__/g,$=/\\#/g,L=/__SHARP__/g,B=["","0","00","000","0000"],H={paramName:"data",useWithBlock:!0,render:function(e,t){var n,r,o="";for(n=0,r=t.length;n<r;n++)o+=e(t[n]);return o},compile:function(e,t){var n,r,i,a=Oe({},this,t),s=a.paramName,u=s.match(j)[0],l=a.useWithBlock,c="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(F(e))return e;for(c+=l?"with("+s+"){":"",c+="$kendoOutput=",r=e.replace(W,"__CURLY__").replace(U,"#=$kendoHtmlEncode($1)#").replace(I,"}").replace($,"__SHARP__").split("#"),i=0;i<r.length;i++)c+=o(r[i],i%2===0);c+=l?";}":";",c+="return $kendoOutput;",c=c.replace(L,"#");try{return n=Function(u,c),n._slotCount=Math.floor(r.length/2),n}catch(d){throw Error(Ce.format("Invalid template:'{0}' Generated code:'{1}'",e,c))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=s[e];return typeof t===We?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(i,a){var s,l,c,d,f,p,m=n,h=a[i];if(h&&typeof h===$e&&typeof h.toJSON===Ue&&(h=h.toJSON(i)),typeof o===Ue&&(h=o.call(a,i,h)),p=typeof h,p===We)return e(h);if(p===Ie)return isFinite(h)?h+"":Le;if(p===Be||p===Le)return h+"";if(p===$e){if(!h)return Le;if(n+=r,f=[],"[object Array]"===u.apply(h)){for(d=h.length,s=0;s<d;s++)f[s]=t(s,h)||Le;return c=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+m+"]":"["+f.join(",")+"]",n=m,c}if(o&&typeof o===$e)for(d=o.length,s=0;s<d;s++)typeof o[s]===We&&(l=o[s],c=t(l,h),c&&f.push(e(l)+(n?": ":":")+c));else for(l in h)Object.hasOwnProperty.call(h,l)&&(c=t(l,h),c&&f.push(e(l)+(n?": ":":")+c));return c=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+m+"}":"{"+f.join(",")+"}",n=m,c}}var n,r,o,a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},u={}.toString;typeof Date.prototype.toJSON!==Ue&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?i(e.getUTCFullYear(),4)+"-"+i(e.getUTCMonth()+1)+"-"+i(e.getUTCDate())+"T"+i(e.getUTCHours())+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof He.stringify!==Ue&&(He.stringify=function(e,i,a){var s;if(n="",r="",typeof a===Ie)for(s=0;s<a;s+=1)r+=" ";else typeof a===We&&(r=a);if(o=i,i&&typeof i!==Ue&&(typeof i!==$e||typeof i.length!==Ie))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function t(e){if(e){if(e.numberFormat)return e;if(typeof e===We){var t=Ce.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function r(e){return e&&(e=t(e)),e||Ce.cultures.current}function o(e,t,o){o=r(o);var a=o.calendars.standard,s=a.days,u=a.months;return t=a.patterns[t]||t,t.replace(c,function(t){var r,o,l;return"d"===t?o=e.getDate():"dd"===t?o=i(e.getDate()):"ddd"===t?o=s.namesAbbr[e.getDay()]:"dddd"===t?o=s.names[e.getDay()]:"M"===t?o=e.getMonth()+1:"MM"===t?o=i(e.getMonth()+1):"MMM"===t?o=u.namesAbbr[e.getMonth()]:"MMMM"===t?o=u.names[e.getMonth()]:"yy"===t?o=i(e.getFullYear()%100):"yyyy"===t?o=i(e.getFullYear(),4):"h"===t?o=e.getHours()%12||12:"hh"===t?o=i(e.getHours()%12||12):"H"===t?o=e.getHours():"HH"===t?o=i(e.getHours()):"m"===t?o=e.getMinutes():"mm"===t?o=i(e.getMinutes()):"s"===t?o=e.getSeconds():"ss"===t?o=i(e.getSeconds()):"f"===t?o=_e.floor(e.getMilliseconds()/100):"ff"===t?(o=e.getMilliseconds(),o>99&&(o=_e.floor(o/10)),o=i(o)):"fff"===t?o=i(e.getMilliseconds(),3):"tt"===t?o=e.getHours()<12?a.AM[0]:a.PM[0]:"zzz"===t?(r=e.getTimezoneOffset(),l=r<0,o=(""+_e.abs(r/60)).split(".")[0],r=_e.abs(r)-60*o,o=(l?"+":"-")+i(o),o+=":"+i(r)):"zz"!==t&&"z"!==t||(o=e.getTimezoneOffset()/60,l=o<0,o=(""+_e.abs(o)).split(".")[0],o=(l?"+":"-")+("zz"===t?i(o):o)),o!==n?o:t.slice(1,t.length-1)})}function a(e,t,o){var i,a,l,c,w,M,x,S,T,k,C,O,D,z,A,E,_,H,F,N,P,R,j,U,W,I,$,L,B,Y,q,J,V,G;if(o=r(o),i=o.numberFormat,a=i[h],l=i.decimals,c=i.pattern[0],w=[],C=e<0,E=m,_=m,q=-1,e===n)return m;if(!isFinite(e))return e;if(!t)return o.name.length?e.toLocaleString():""+e;if(k=d.exec(t)){if(t=k[1].toLowerCase(),x="c"===t,S="p"===t,(x||S)&&(i=x?i.currency:i.percent,a=i[h],l=i.decimals,M=i.symbol,c=i.pattern[C?0:1]),T=k[2],T&&(l=+T),"e"===t)return V=T?e.toExponential(l):e.toExponential(),V.replace(h,i[h]);if(S&&(e*=100),e=u(e,l),C=e<0,e=e.split(h),O=e[0],D=e[1],C&&(O=O.substring(1)),_=s(O,0,O.length,i),D&&(_+=a+D),"n"===t&&!C)return _;for(e=m,H=0,F=c.length;H<F;H++)N=c.charAt(H),e+="n"===N?_:"$"===N||"%"===N?M:N;return e}if((t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1)&&(t=t.replace(f,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return w.push(n),b})),t=t.split(";"),C&&t[1])t=t[1],R=!0;else if(0===e&&t[2]){if(t=t[2],t.indexOf(y)==-1&&t.indexOf(v)==-1)return t}else t=t[0];if(L=t.indexOf("%"),B=t.indexOf("$"),S=L!=-1,x=B!=-1,S&&(e*=100),x&&"\\"===t[B-1]&&(t=t.split("\\").join(""),x=!1),(x||S)&&(i=x?i.currency:i.percent,a=i[h],l=i.decimals,M=i.symbol),P=t.indexOf(g)>-1,P&&(t=t.replace(p,m)),j=t.indexOf(h),F=t.length,j!=-1)if(D=(""+e).split("e"),D=D[1]?u(e,Math.abs(D[1])):D[0],D=D.split(h)[1]||m,W=t.lastIndexOf(v)-j,U=t.lastIndexOf(y)-j,I=W>-1,$=U>-1,H=D.length,I||$||(t=t.substring(0,j)+t.substring(j+1),F=t.length,j=-1,H=0),I&&W>U)H=W;else if(U>W)if($&&H>U){for(G=u(e,U,C);G.charAt(G.length-1)===v&&U>0&&U>W;)U--,G=u(e,U,C);H=U}else I&&H<W&&(H=W);if(e=u(e,H,C),U=t.indexOf(y),Y=W=t.indexOf(v),q=U==-1&&W!=-1?W:U!=-1&&W==-1?U:U>W?W:U,U=t.lastIndexOf(y),W=t.lastIndexOf(v),J=U==-1&&W!=-1?W:U!=-1&&W==-1?U:U>W?U:W,q==F&&(J=q),q!=-1){for(_=(""+e).split(h),O=_[0],D=_[1]||m,z=O.length,A=D.length,C&&e*-1>=0&&(C=!1),e=t.substring(0,q),C&&!R&&(e+="-"),H=q;H<F;H++){if(N=t.charAt(H),j==-1){if(J-H<z){e+=O;break}}else if(W!=-1&&W<H&&(E=m),j-H<=z&&j-H>-1&&(e+=O,H=j),j===H){e+=(D?a:m)+D,H+=J-j+1;continue}N===v?(e+=N,E=N):N===y&&(e+=E)}if(P&&(e=s(e,q+(C&&!R?1:0),Math.max(J,z+q),i)),J>=q&&(e+=t.substring(J+1)),x||S){for(_=m,H=0,F=e.length;H<F;H++)N=e.charAt(H),_+="$"===N||"%"===N?M:N;e=_}if(F=w.length)for(H=0;H<F;H++)e=e.replace(b,w[H])}return e}var s,u,l,c=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,f=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,p=/\,/g,m="",h=".",g=",",y="#",v="0",b="??",w="en-US",M={}.toString;Ce.cultures["en-US"]={name:w,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{name:"US Dollar",abbr:"USD",pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0,twoDigitYearMax:2029}}},Ce.culture=function(e){var r,o=Ce.cultures;return e===n?o.current:(r=t(e)||o[w],r.calendar=r.calendars.standard,o.current=r,n)},Ce.findCulture=t,Ce.getCulture=r,Ce.culture(w),s=function(e,t,r,o){var i,a,s,u,l,c,d=e.indexOf(o[h]),f=o.groupSize.slice(),p=f.shift();if(r=d!==-1?d:r+1,i=e.substring(t,r),a=i.length,a>=p){for(s=a,u=[];s>-1;)if(l=i.substring(s-p,s),l&&u.push(l),s-=p,c=f.shift(),p=c!==n?c:p,0===p){s>0&&u.push(i.substring(0,s));break}i=u.reverse().join(o[g]),e=e.substring(0,t)+i+e.substring(r)}return e},u=function(e,t,n){return t=t||0,e=(""+e).split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),n&&(e=-e),e=(""+e).split("e"),e=+(e[0]+"e"+(e[1]?+e[1]-t:-t)),e.toFixed(Math.min(t,20))},l=function(e,t,r){if(t){if("[object Date]"===M.call(e))return o(e,t,r);if(typeof e===Ie)return a(e,t,r)}return e!==n?e:""},Ce.format=function(e){var t=arguments;return e.replace(Pe,function(e,n,r){var o=t[parseInt(n,10)+1];return l(o,r?r.substring(1):"")})},Ce._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},Ce._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},Ce._round=u,Ce._outerWidth=function(t,n){return e(t).outerWidth(n||!1)||0},Ce._outerHeight=function(t,n){return e(t).outerHeight(n||!1)||0},Ce.toString=l}(),function(){function t(e,t,n){return!(e>=t&&e<=n)}function r(e){return e.charAt(0)}function o(t){return e.map(t,r)}function i(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,r=[];t<n;t++)r[t]=(e[t]+"").toLowerCase();return r}function s(e){var t,n={};for(t in e)n[t]=a(e[t]);return n}function u(e,r,a,u){if(!e)return null;var l,c,d,f,p,g,y,v,b,M,x,S,T,k=function(e){for(var t=0;r[R]===e;)t++,R++;return t>0&&(R-=1),t},C=function(t){var n=w[t]||RegExp("^\\d{1,"+t+"}"),r=e.substr(j,t).match(n);return r?(r=r[0],j+=r.length,parseInt(r,10)):null},O=function(t,n){for(var r,o,i,a=0,s=t.length,u=0,l=0;a<s;a++)r=t[a],o=r.length,i=e.substr(j,o),n&&(i=i.toLowerCase()),i==r&&o>u&&(u=o,l=a);return u?(j+=u,l+1):null},D=function(){var t=!1;return e.charAt(j)===r[R]&&(j++,t=!0),t},z=a.calendars.standard,A=null,E=null,_=null,H=null,F=null,N=null,P=null,R=0,j=0,U=!1,W=new Date,I=z.twoDigitYearMax||2029,$=W.getFullYear();for(r||(r="d"),f=z.patterns[r],f&&(r=f),r=r.split(""),d=r.length;R<d;R++)if(l=r[R],U)"'"===l?U=!1:D();else if("d"===l){if(c=k("d"),z._lowerDays||(z._lowerDays=s(z.days)),null!==_&&c>2)continue;if(_=c<3?C(2):O(z._lowerDays[3==c?"namesAbbr":"names"],!0),null===_||t(_,1,31))return null}else if("M"===l){if(c=k("M"),z._lowerMonths||(z._lowerMonths=s(z.months)),E=c<3?C(2):O(z._lowerMonths[3==c?"namesAbbr":"names"],!0),null===E||t(E,1,12))return null;E-=1}else if("y"===l){if(c=k("y"),A=C(c),null===A)return null;2==c&&("string"==typeof I&&(I=$+parseInt(I,10)),A=$-$%100+A,A>I&&(A-=100))}else if("h"===l){if(k("h"),H=C(2),12==H&&(H=0),null===H||t(H,0,11))return null}else if("H"===l){if(k("H"),H=C(2),null===H||t(H,0,23))return null}else if("m"===l){if(k("m"),F=C(2),null===F||t(F,0,59))return null}else if("s"===l){if(k("s"),N=C(2),null===N||t(N,0,59))return null}else if("f"===l){if(c=k("f"),T=e.substr(j,c).match(w[3]),P=C(c),null!==P&&(P=parseFloat("0."+T[0],10),P=Ce._round(P,3),P*=1e3),null===P||t(P,0,999))return null}else if("t"===l){if(c=k("t"),v=z.AM,b=z.PM,1===c&&(v=o(v),b=o(b)),p=O(b),!p&&!O(v))return null}else if("z"===l){if(g=!0,c=k("z"),"Z"===e.substr(j,1)){D();continue}if(y=e.substr(j,6).match(c>2?h:m),!y)return null;if(y=y[0].split(":"),M=y[0],x=y[1],!x&&M.length>3&&(j=M.length-2,x=M.substring(j),M=M.substring(0,j)),M=parseInt(M,10),t(M,-12,13))return null;if(c>2&&(x=y[0][0]+x,x=parseInt(x,10),isNaN(x)||t(x,-59,59)))return null}else if("'"===l)U=!0,D();else if(!D())return null;return u&&!/^\s*$/.test(e.substr(j))?null:(S=null!==H||null!==F||N||null,null===A&&null===E&&null===_&&S?(A=$,E=W.getMonth(),_=W.getDate()):(null===A&&(A=$),null===_&&(_=1)),p&&H<12&&(H+=12),g?(M&&(H+=-M),x&&(F+=-x),e=new Date(Date.UTC(A,E,_,H,F,N,P))):(e=new Date(A,E,_,H,F,N,P),i(e,H)),A<100&&e.setFullYear(A),e.getDate()!==_&&g===n?null:e)}function l(e){var t="-"===e.substr(0,1)?-1:1;return e=e.substring(1),e=60*parseInt(e.substr(0,2),10)+parseInt(e.substring(2),10),t*e}function c(e){var t,n,r,o=_e.max(v.length,b.length),i=e.calendar||e.calendars.standard,a=i.patterns,s=[];for(r=0;r<o;r++){for(t=v[r],n=0;n<t.length;n++)s.push(a[t[n]]);s=s.concat(b[r])}return s}function d(e,t,n,r){var o,i,a,s;if("[object Date]"===M.call(e))return e;if(o=0,i=null,e&&0===e.indexOf("/D")&&(i=g.exec(e)))return i=i[1],s=y.exec(i.substring(1)),i=new Date(parseInt(i,10)),s&&(s=l(s[0]),i=Ce.timezone.apply(i,0),i=Ce.timezone.convert(i,0,-1*s)),i;for(n=Ce.getCulture(n),t||(t=c(n)),t=ze(t)?t:[t],a=t.length;o<a;o++)if(i=u(e,t[o],n,r))return i;return i}var f=/\u00A0/g,p=/[eE][\-+]?[0-9]+/,m=/[+|\-]\d{1,2}/,h=/[+|\-]\d{1,2}:?\d{2}/,g=/^\/Date\((.*?)\)\/$/,y=/[+-]\d*/,v=[[],["G","g","F"],["D","d","y","m","T","t"]],b=[["yyyy-MM-ddTHH:mm:ss.fffffffzzz","yyyy-MM-ddTHH:mm:ss.fffffff","yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:ss.fff","ddd MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mmzzz","yyyy-MM-ddTHH:mmzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss"],["yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm","yyyy/MM/dd HH:mm"],["yyyy/MM/dd","yyyy-MM-dd","HH:mm:ss","HH:mm"]],w={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},M={}.toString;Ce.parseDate=function(e,t,n){return d(e,t,n,!1)},Ce.parseExactDate=function(e,t,n){return d(e,t,n,!0)},Ce.parseInt=function(e,t){var n=Ce.parseFloat(e,t);return n&&(n=0|n),n},Ce.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===Ie)return e;e=""+e,t=Ce.getCulture(t);var r,o,i=t.numberFormat,a=i.percent,s=i.currency,u=s.symbol,l=a.symbol,c=e.indexOf("-");return p.test(e)?(e=parseFloat(e.replace(i["."],".")),isNaN(e)&&(e=null),e):c>0?null:(c=c>-1,e.indexOf(u)>-1||n&&n.toLowerCase().indexOf("c")>-1?(i=s,r=i.pattern[0].replace("$",u).split("n"),e.indexOf(r[0])>-1&&e.indexOf(r[1])>-1&&(e=e.replace(r[0],"").replace(r[1],""),c=!0)):e.indexOf(l)>-1&&(o=!0,i=a,u=l),e=e.replace("-","").replace(u,"").replace(f," ").split(i[","].replace(f," ")).join("").replace(i["."],"."),e=parseFloat(e),isNaN(e)?e=null:c&&(e*=-1),e&&o&&(e/=100),e)}}(),function(){var r,o,i,a,s,u,l,c,f,p,m;Fe._scrollbar=n,Fe.scrollbar=function(e){if(isNaN(Fe._scrollbar)||e){var t,n=document.createElement("div");return n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML=" ",document.body.appendChild(n),Fe._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return Fe._scrollbar},Fe.isRtl=function(t){return e(t).closest(".k-rtl").length>0},r=document.createElement("table");try{r.innerHTML="<tr><td></td></tr>",Fe.tbodyInnerHtml=!0}catch(h){Fe.tbodyInnerHtml=!1}Fe.touch="ontouchstart"in t,o=document.documentElement.style,i=Fe.transitions=!1,a=Fe.transforms=!1,s="HTMLElement"in t?HTMLElement.prototype:[],Fe.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in o||"msPerspective"in o,Fe.cssFlexbox="flexWrap"in o||"WebkitFlexWrap"in o||"msFlexWrap"in o,De(["Moz","webkit","O","ms"],function(){var e,t=""+this,n=typeof r.style[t+"Transition"]===We;if(n||typeof r.style[t+"Transform"]===We)return e=t.toLowerCase(),a={css:"ms"!=e?"-"+e+"-":"",prefix:t,event:"o"===e||"webkit"===e?e:""},n&&(i=a,i.event=i.event?i.event+"TransitionEnd":"transitionend"),!1}),r=null,Fe.transforms=a,Fe.transitions=i,Fe.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{Fe.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,Fe.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(h){Fe.screenWidth=t.screen.availWidth,Fe.screenHeight=t.screen.availHeight}Fe.detectOS=function(e){var n,r,o=!1,i=[],a=!/mobile safari/i.test(e),s={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},u={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},l={tablet:/playbook|ipad|fire/i},c={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(r in s)if(s.hasOwnProperty(r)&&(i=e.match(s[r]))){if("windows"==r&&"plugins"in navigator)return!1;o={},o.device=r,o.tablet=d(r,l,!1),o.browser=d(e,c,"default"),o.name=d(r,u),o[o.name]=!0,o.majorVersion=i[2],o.minorVersion=(i[3]||"0").replace("_","."),n=o.minorVersion.replace(".","").substr(0,2),o.flatVersion=o.majorVersion+n+Array(3-(n.length<3?n.length:2)).join("0"),o.cordova=typeof t.PhoneGap!==Ye||typeof t.cordova!==Ye,o.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||o.cordova,o.android&&(Fe.devicePixelRatio<1.5&&o.flatVersion<400||a)&&(Fe.screenWidth>800||Fe.screenHeight>800)&&(o.tablet=r);break}return o},u=Fe.mobileOS=Fe.detectOS(navigator.userAgent),Fe.wpDevicePixelRatio=u.wp?screen.width/320:0,Fe.hasNativeScrolling=!1,(u.ios||u.android&&u.majorVersion>2||u.wp)&&(Fe.hasNativeScrolling=u),Fe.delayedClick=function(){if(Fe.touch){if(u.ios)return!0;if(u.android)return!Fe.browser.chrome||!(Fe.browser.version<32)&&!(e("meta[name=viewport]").attr("content")||"").match(/user-scalable=no/i)}return!1},Fe.mouseAndTouchPresent=Fe.touch&&!(Fe.mobileOS.ios||Fe.mobileOS.android),Fe.detectBrowser=function(e){var t,n=!1,r=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(t in o)if(o.hasOwnProperty(t)&&(r=e.match(o[t]))){n={},n[t]=!0,n[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||r[2],10);break}return n},Fe.browser=Fe.detectBrowser(navigator.userAgent),Fe.detectClipboardAccess=function(){var e={copy:!!document.queryCommandSupported&&document.queryCommandSupported("copy"),cut:!!document.queryCommandSupported&&document.queryCommandSupported("cut"),paste:!!document.queryCommandSupported&&document.queryCommandSupported("paste")};return Fe.browser.chrome&&(e.paste=!1,Fe.browser.version>=43&&(e.copy=!0,e.cut=!0)),e},Fe.clipboard=Fe.detectClipboardAccess(),Fe.zoomLevel=function(){var e,n,r;try{return e=Fe.browser,n=0,r=document.documentElement,e.msie&&11==e.version&&r.scrollHeight>r.clientHeight&&!Fe.touch&&(n=Fe.scrollbar()),Fe.touch?r.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(o){return 1}},function(t){var n="",r=e(document.documentElement),o=parseInt(t.version,10);t.msie?n="ie":t.mozilla?n="ff":t.safari?n="safari":t.webkit?n="webkit":t.opera?n="opera":t.edge&&(n="edge"),n&&(n="k-"+n+" k-"+n+o),Fe.mobileOS&&(n+=" k-mobile"),Fe.cssFlexbox||(n+=" k-no-flexbox"),r.addClass(n)}(Fe.browser),Fe.eventCapture=document.documentElement.addEventListener,l=document.createElement("input"),Fe.placeholder="placeholder"in l,Fe.propertyChangeEvent="onpropertychange"in l,Fe.input=function(){for(var e,t=["number","date","time","month","week","datetime","datetime-local"],n=t.length,r="test",o={},i=0;i<n;i++)e=t[i],l.setAttribute("type",e),l.value=r,o[e.replace("-","")]="text"!==l.type&&l.value!==r;return o}(),l.style.cssText="float:left;",Fe.cssFloat=!!l.style.cssFloat,l=null,Fe.stableSort=function(){var e,t=513,n=[{index:0,field:"b"}];for(e=1;e<t;e++)n.push({index:e,field:"a"});return n.sort(function(e,t){return e.field>t.field?1:e.field<t.field?-1:0}),1===n[0].index}(),Fe.matchesSelector=s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.matchesSelector||s.matches||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),r=n.length;r--;)if(n[r]==this)return!0;return!1},Fe.matchMedia="matchMedia"in t,Fe.pushState=t.history&&t.history.pushState,Fe.hashChange="onhashchange"in t,Fe.customElements="registerElement"in t.document,c=Fe.browser.chrome,f=Fe.browser.crios,p=Fe.browser.mozilla,m=Fe.browser.safari,Fe.msPointers=!c&&t.MSPointerEvent,Fe.pointers=!c&&!f&&!p&&!m&&t.PointerEvent,Fe.kineticScrollNeeded=u&&(Fe.touch||Fe.msPointers||Fe.pointers)}(),Y={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},q={},e.extend(q,{enabled:!0,Element:function(t){this.element=e(t)},promise:function(e,t){e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.hide&&e.data("olddisplay",e.css("display")).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}}),q.promiseShim=q.promise,"kendoAnimate"in e.fn||Oe(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,r){return x(this,e,t,n,r)},kendoAddClass:function(e,t){return Ce.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return Ce.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return Ce.toggleClass(this,e,t,n)}}),J=/&/g,V=/</g,G=/"/g,K=/'/g,Q=/>/g,Z=function(e){return e.target},Fe.touch&&(Z=function(e){var t="originalEvent"in e?e.originalEvent.changedTouches:"changedTouches"in e?e.changedTouches:null;return t?document.elementFromPoint(t[0].clientX,t[0].clientY):e.target},De(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),Fe.touch?Fe.mobileOS?(Fe.mousedown="touchstart",Fe.mouseup="touchend",Fe.mousemove="touchmove",Fe.mousecancel="touchcancel",Fe.click="touchend",Fe.resize="orientationchange"):(Fe.mousedown="mousedown touchstart",Fe.mouseup="mouseup touchend",Fe.mousemove="mousemove touchmove",Fe.mousecancel="mouseleave touchcancel",Fe.click="click",Fe.resize="resize"):Fe.pointers?(Fe.mousemove="pointermove",Fe.mousedown="pointerdown",Fe.mouseup="pointerup",Fe.mousecancel="pointercancel",Fe.click="pointerup",Fe.resize="orientationchange resize"):Fe.msPointers?(Fe.mousemove="MSPointerMove",Fe.mousedown="MSPointerDown",Fe.mouseup="MSPointerUp",Fe.mousecancel="MSPointerCancel",Fe.click="MSPointerUp",Fe.resize="orientationchange resize"):(Fe.mousemove="mousemove",Fe.mousedown="mousedown",Fe.mouseup="mouseup",Fe.mousecancel="mouseleave",Fe.click="click",Fe.resize="resize"),X=function(e,t){var n,r,o,i,a=t||"d",s=1;for(r=0,o=e.length;r<o;r++)i=e[r],""!==i&&(n=i.indexOf("["),0!==n&&(n==-1?i="."+i:(s++,i="."+i.substring(0,n)+" || {})"+i.substring(n))),s++,a+=i+(r<o-1?" || {})":")"));return Array(s).join("(")+a},ee=/^([a-z]+:)?\/\//i,Oe(Ce,{widgets:[],_widgetRegisteredCallbacks:[],ui:Ce.ui||{},fx:Ce.fx||w,effects:Ce.effects||q,mobile:Ce.mobile||{},data:Ce.data||{},dataviz:Ce.dataviz||{},drawing:Ce.drawing||{},spreadsheet:{messages:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},support:Ce.support||Fe,animate:Ce.animate||x,ns:"",attr:function(e){return"data-"+Ce.ns+e},getShadows:a,wrap:s,deepExtend:l,getComputedStyles:m,isScrollable:h,scrollLeft:g,size:y,toCamelCase:p,toHyphens:f,getOffset:Ce.getOffset||v,parseEffects:Ce.parseEffects||b,toggleClass:Ce.toggleClass||S,directions:Ce.directions||Y,Observable:R,Class:r,Template:H,template:Ae(H.compile,H), render:Ae(H.render,H),stringify:Ae(He.stringify,He),eventTarget:Z,htmlEncode:T,unescape:k,isLocalUrl:function(e){return e&&!ee.test(e)},expr:function(e,t,n){return e=e||"",typeof t==We&&(n=t,t=!1),n=n||"d",e&&"["!==e.charAt(0)&&(e="."+e),t?(e=e.replace(/"([^.]*)\.([^"]*)"/g,'"$1_$DOT$_$2"'),e=e.replace(/'([^.]*)\.([^']*)'/g,"'$1_$DOT$_$2'"),e=X(e.split("."),n),e=e.replace(/_\$DOT\$_/g,".")):e=n+e,e},getter:function(e,t){var n=e+t;return qe[n]=qe[n]||Function("d","return "+Ce.expr(e,t))},setter:function(e){return Je[e]=Je[e]||Function("d,value",Ce.expr(e)+"=value")},accessor:function(e){return{get:Ce.getter(e),set:Ce.setter(e)}},guid:function(){var e,t,n="",r="abcdef";for(n+=r[Math.floor(Math.random()*Math.floor(r.length))],e=1;e<32;e++)t=16*_e.random()|0,8!=e&&12!=e&&16!=e&&20!=e||(n+="-"),n+=(12==e?4:16==e?3&t|8:t).toString(16);return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+Ce.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(e){var t,n=e.split(" ");if(n)for(t=0;t<n.length;t++)"view"!=n[t]&&(n[t]=n[t].replace(/(\w*)(view|bar|strip|over)$/,"$1-$2"));return n.join(" ").replace(/(\S+)/g,"kendo-mobile-$1,").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},onWidgetRegistered:function(e){for(var t=0,n=Ce.widgets.length;t<n;t++)e(Ce.widgets[t]);Ce._widgetRegisteredCallbacks.push(e)},logToConsole:function(e,r){var o=t.console;!Ce.suppressLog&&n!==o&&o.log&&o[r||"log"](e)}}),te=R.extend({init:function(e,t){var n,r,o=this;o.element=Ce.jQuery(e).handler(o),o.angular("init",t),R.fn.init.call(o),n=t?t.dataSource:null,t&&(r=(o.componentTypes||{})[(t||{}).componentType]),n&&(t=Oe({},t,{dataSource:{}})),t=o.options=Oe(!0,{},o.options,o.defaults,r||{},t),n&&(t.dataSource=n),o.element.attr(Ce.attr("role"))||o.element.attr(Ce.attr("role"),(t.name||"").toLowerCase()),o.element.data("kendo"+t.prefix+t.name,o),o.bind(o.events,t)},events:[],options:{prefix:""},_hasBindingTarget:function(){return!!this.element[0].kendoBindingTarget},_tabindex:function(e){e=e||this.wrapper;var t=this.element,n="tabindex",r=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(r)?0:r)},setOptions:function(t){this._setEvents(t),e.extend(this.options,t)},_setEvents:function(e){for(var t,n=this,r=0,o=n.events.length;r<o;r++)t=n.events[r],n.options[t]&&e[t]&&(n.unbind(t,n.options[t]),n._events&&n._events[t]&&delete n._events[t]);n.bind(n.events,e)},resize:function(e){var t=this.getSize(),n=this._size;(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this._size=t,this._resize(t,e),this.trigger("resize",t))},getSize:function(){return Ce.dimensions(this.element)},size:function(e){return e?(this.setSize(e),n):this.getSize()},setSize:e.noop,_resize:e.noop,destroy:function(){var e=this;e.element.removeData("kendo"+e.options.prefix+e.options.name),e.element.removeData("handler"),e.unbind()},_destroy:function(){this.destroy()},angular:function(){},_muteAngularRebind:function(e){this._muteRebind=!0,e.call(this),this._muteRebind=!1}}),ne=te.extend({dataItems:function(){return this.dataSource.flatView()},_angularItems:function(t){var n=this;n.angular(t,function(){return{elements:n.items(),data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})}}),Ce.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},Ce.notify=Ee,re=/template$/i,oe=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,ie=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]+\]$/,ae=/([A-Z])/g,Ce.initWidget=function(r,o,i){var a,s,u,l,c,d,f,p,m,h,g,y,v;if(i?i.roles&&(i=i.roles):i=Ce.ui.roles,r=r.nodeType?r:r[0],d=r.getAttribute("data-"+Ce.ns+"role")){m=d.indexOf(".")===-1,u=m?i[d]:Ce.getter(d)(t),g=e(r).data(),y=u?"kendo"+u.fn.options.prefix+u.fn.options.name:"",h=m?RegExp("^kendo.*"+d+"$","i"):RegExp("^"+y+"$","i");for(v in g)if(v.match(h)){if(v!==y)return g[v];a=g[v]}if(u){for(p=C(r,"dataSource"),o=e.extend({},O(r,e.extend({},u.fn.options,u.fn.defaults)),o),p&&(o.dataSource=typeof p===We?Ce.getter(p)(t):p),l=0,c=u.fn.events.length;l<c;l++)s=u.fn.events[l],f=C(r,s),f!==n&&(o[s]=Ce.getter(f)(t));return a?e.isEmptyObject(o)||a.setOptions(o):a=new u(r,o),a}}},Ce.rolesFromNamespaces=function(e){var t,n,r=[];for(e[0]||(e=[Ce.ui,Ce.dataviz.ui]),t=0,n=e.length;t<n;t++)r[t]=e[t].roles;return Oe.apply(null,[{}].concat(r.reverse()))},Ce.init=function(t){var n=Ce.rolesFromNamespaces(Ve.call(arguments,1));e(t).find("[data-"+Ce.ns+"role]").addBack().each(function(){Ce.initWidget(this,{},n)})},Ce.destroy=function(t){e(t).find("[data-"+Ce.ns+"role]").addBack().each(function(){var t,n=e(this).data();for(t in n)0===t.indexOf("kendo")&&typeof n[t].destroy===Ue&&n[t].destroy()})},Ce.resize=function(t,n){var r,o=e(t).find("[data-"+Ce.ns+"role]").addBack().filter(z);o.length&&(r=e.makeArray(o),r.sort(D),e.each(r,function(){var t=Ce.widgetInstance(e(this));t&&t.resize(n)}))},Ce.parseOptions=O,Oe(Ce.ui,{Widget:te,DataBoundWidget:ne,roles:{},progress:function(t,n,r){var o,i,a,s,u,l=t.find(".k-loading-mask"),c=Ce.support,d=c.browser;r=e.extend({},{width:"100%",height:"100%",top:t.scrollTop(),opacity:!1},r),u=r.opacity?"k-loading-mask k-opaque":"k-loading-mask",n?l.length||(o=c.isRtl(t),i=o?"right":"left",s=Ce.scrollLeft(t),a=d.webkit&&o?t[0].scrollWidth-t.width()-2*s:0,l=e(Ce.format("<div class='{0}'><span class='k-loading-text'>{1}</span><div class='k-loading-image'></div><div class='k-loading-color'></div></div>",u,Ce.ui.progress.messages.loading)).width(r.width).height(r.height).css("top",r.top).css(i,Math.abs(s)+a).prependTo(t)):l&&l.remove()},plugin:function(t,r,o){var i,a,s,u,l=t.fn.options.name;for(r=r||Ce.ui,o=o||"",r[l]=t,r.roles[l.toLowerCase()]=t,i="getKendo"+o+l,l="kendo"+o+l,a={name:l,widget:t,prefix:o||""},Ce.widgets.push(a),s=0,u=Ce._widgetRegisteredCallbacks.length;s<u;s++)Ce._widgetRegisteredCallbacks[s](a);e.fn[l]=function(r){var o,i=this;return typeof r===We?(o=Ve.call(arguments,1),this.each(function(){var t,a,s=e.data(this,l);if(!s)throw Error(Ce.format("Cannot call method '{0}' of {1} before it is initialized",r,l));if(t=s[r],typeof t!==Ue)throw Error(Ce.format("Cannot find method '{0}' of {1}",r,l));if(a=t.apply(s,o),a!==n)return i=a,!1})):this.each(function(){return new t(this,r)}),i},e.fn[l].widget=t,e.fn[i]=function(){return this.data(l)}}}),Ce.ui.progress.messages={loading:"Loading..."},se={bind:function(){return this},nullObject:!0,options:{}},ue=te.extend({init:function(e,t){te.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){te.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(Ce.roleSelector("view splitview modalview drawer"));return Ce.widgetInstance(e,Ce.mobile.ui)||se},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(Ce.roleSelector("view layout modalview drawer splitview"));return Ce.widgetInstance(e.eq(0),Ce.mobile.ui)||se}}),Oe(Ce.mobile,{init:function(e){Ce.init(e,Ce.mobile.ui,Ce.ui,Ce.dataviz.ui)},appLevelNativeScrolling:function(){return Ce.mobile.application&&Ce.mobile.application.options&&Ce.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:ue,DataBoundWidget:ne.extend(ue.prototype),roles:{},plugin:function(e){Ce.ui.plugin(e,Ce.mobile.ui,"Mobile")}}}),l(Ce.dataviz,{init:function(e){Ce.init(e,Ce.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){Ce.ui.plugin(e,Ce.dataviz.ui)}},roles:{}}),Ce.touchScroller=function(t,n){return n||(n={}),n.useNative=!0,e(t).map(function(t,r){return r=e(r),!(!Fe.kineticScrollNeeded||!Ce.mobile.ui.Scroller||r.data("kendoMobileScroller"))&&(r.kendoMobileScroller(n),r.data("kendoMobileScroller"))})[0]},Ce.preventDefault=function(e){e.preventDefault()},Ce.widgetInstance=function(e,n){var r,o,i,a,s,u=e.data(Ce.ns+"role"),l=[],c=e.data("kendoView");if(u){if("content"===u&&(u="scroller"),"editortoolbar"===u&&(i=e.data("kendoEditorToolbar")))return i;if("view"===u&&c)return c;if(n)if(n[0])for(r=0,o=n.length;r<o;r++)l.push(n[r].roles[u]);else l.push(n.roles[u]);else l=[Ce.ui.roles[u],Ce.dataviz.ui.roles[u],Ce.mobile.ui.roles[u]];for(u.indexOf(".")>=0&&(l=[Ce.getter(u)(t)]),r=0,o=l.length;r<o;r++)if(a=l[r],a&&(s=e.data("kendo"+a.fn.options.prefix+a.fn.options.name)))return s}},Ce.onResize=function(n){var r=n;return Fe.mobileOS.android&&(r=function(){setTimeout(n,600)}),e(t).on(Fe.resize,r),r},Ce.unbindResize=function(n){e(t).off(Fe.resize,n)},Ce.attrValue=function(e,t){return e.data(Ce.ns+t)},Ce.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr.pseudos,{kendoFocusable:function(t){var n=e.attr(t,"tabindex");return A(t,!isNaN(n)&&n>-1)}}),le=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],ce="label, input, [data-rel=external]",de={setupMouseMute:function(){var t,n=0,r=le.length,o=document.documentElement;if(!de.mouseTrap&&Fe.eventCapture)for(de.mouseTrap=!0,de.bustClick=!1,de.captureMouse=!1,t=function(t){de.captureMouse&&("click"===t.type?de.bustClick&&!e(t.target).is(ce)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};n<r;n++)o.addEventListener(le[n],t,!0)},muteMouse:function(e){de.captureMouse=!0,e.data.bustClick&&(de.bustClick=!0),clearTimeout(de.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(de.mouseTrapTimeoutID),de.mouseTrapTimeoutID=setTimeout(function(){de.captureMouse=!1,de.bustClick=!1},400)}},fe={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},Fe.touch&&(Fe.mobileOS.ios||Fe.mobileOS.android)?fe={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:Fe.pointers?fe={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:Fe.msPointers&&(fe={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!Fe.msPointers||"onmspointerenter"in t||e.each({MSPointerEnter:"MSPointerOver",MSPointerLeave:"MSPointerOut"},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var r,o=this,i=t.relatedTarget,a=t.handleObj;return i&&(i===o||e.contains(o,i))||(t.type=a.origType,r=a.handler.apply(this,arguments),t.type=n),r}}}),pe=function(e){return fe[e]||e},me=/([^ ]+)/g,Ce.applyEventMap=function(e,t){return e=e.replace(me,pe),t&&(e=e.replace(me,"$1."+t)),e},Ce.keyDownHandler=function(e,t){var n,r,o=t._events.kendoKeydown;if(!o)return!0;for(o=o.slice(),e.sender=t,e.preventKendoKeydown=!1,n=0,r=o.length;n<r;n++)o[n].call(t,e);return!e.preventKendoKeydown},he=e.fn.on,Ge(!0,_,e),_.fn=_.prototype=new e,_.fn.constructor=_,_.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof _)&&(n=_(n)),e.fn.init.call(this,t,n,ge)},_.fn.init.prototype=_.fn,ge=_(document),Oe(_.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||Ce.guid()),this},on:function(){var e,t,n,r,o,i,a,s,u=this,l=u.data("kendoNS");return 1===arguments.length?he.call(u,arguments[0]):(e=u,t=Ve.call(arguments),typeof t[t.length-1]===Ye&&t.pop(),n=t[t.length-1],r=Ce.applyEventMap(t[0],l),Fe.mouseAndTouchPresent&&r.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(de.setupMouseMute(),o=2===t.length?null:t[1],i=r.indexOf("click")>-1&&r.indexOf("touchend")>-1,he.call(this,{touchstart:de.muteMouse,touchend:de.unMuteMouse},o,{bustClick:i})),arguments[0].indexOf("keydown")!==-1&&t[1]&&t[1].options?(t[0]=r,a=t[1],s=t[t.length-1],t[t.length-1]=function(e){if(Ce.keyDownHandler(e,a))return s.apply(this,[e])},he.apply(u,t),u):(typeof n===We&&(e=u.data("handler"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=r,he.apply(u,t),u))},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),Ce.jQuery=_,Ce.eventMap=fe,Ce.timezone=function(){function e(e,t){var n,r,o,i=t[3],a=t[4],s=t[5],u=t[8];return u||(t[8]=u={}),u[e]?u[e]:(isNaN(a)?0===a.indexOf("last")?(n=new Date(Date.UTC(e,c[i]+1,1,s[0]-24,s[1],s[2],0)),r=d[a.substr(4,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-o-(r>o?7:0))):a.indexOf(">=")>=0?(n=new Date(Date.UTC(e,c[i],a.substr(5),s[0],s[1],s[2],0)),r=d[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-o+(r<o?7:0))):a.indexOf("<=")>=0&&(n=new Date(Date.UTC(e,c[i],a.substr(5),s[0],s[1],s[2],0)),r=d[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-o-(r>o?7:0))):n=new Date(Date.UTC(e,c[i],a,s[0],s[1],s[2],0)),u[e]=n)}function t(t,n,r){var o,i,a,s;return(n=n[r])?(a=new Date(t).getUTCFullYear(),n=jQuery.grep(n,function(e){var t=e[0],n=e[1];return t<=a&&(n>=a||t==a&&"only"==n||"max"==n)}),n.push(t),n.sort(function(t,n){return"number"!=typeof t&&(t=+e(a,t)),"number"!=typeof n&&(n=+e(a,n)),t-n}),s=n[jQuery.inArray(t,n)-1]||n[n.length-1],isNaN(s)?s:null):(o=r.split(":"),i=0,o.length>1&&(i=60*o[0]+ +o[1]),[-1e6,"max","-","Jan",1,[0,0,0],i,"-"])}function n(e,t,n){var r,o,i,a=t[n];if("string"==typeof a&&(a=t[a]),!a)throw Error('Timezone "'+n+'" is either incorrect, or kendo.timezones.min.js is not included.');for(r=a.length-1;r>=0&&(o=a[r][3],!(o&&e>o));r--);if(i=a[r+1],!i)throw Error('Timezone "'+n+'" not found on '+e+".");return i}function r(e,r,o,i){typeof e!=Ie&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,r,i);return{zone:a,rule:t(e,o,a[1])}}function o(e,t){var n,o,i;return"Etc/UTC"==t||"Etc/GMT"==t?0:(n=r(e,this.zones,this.rules,t),o=n.zone,i=n.rule,Ce.parseFloat(i?o[0]-i[6]:o[0]))}function i(e,t){var n=r(e,this.zones,this.rules,t),o=n.zone,i=n.rule,a=o[2];return a.indexOf("/")>=0?a.split("/")[i&&+i[6]?1:0]:a.indexOf("%s")>=0?a.replace("%s",i&&"-"!=i[7]?i[7]:""):a}function a(e,t,n){var r,o,i,a=n;return typeof t==We&&(t=this.offset(e,t)),typeof n==We&&(n=this.offset(e,n)),o=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),i=e.getTimezoneOffset(),typeof a==We&&(a=this.offset(e,a)),r=i-o+(n-a),new Date(e.getTime()+6e4*r)}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function u(e,t){return this.convert(e,t,e.getTimezoneOffset())}function l(e){return this.apply(new Date(e),"Etc/UTC")}var c={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},d={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:o,convert:a,apply:s,remove:u,abbr:i,toLocalDate:l}}(),Ce.date=function(){function e(e,t){return 0===t&&23===e.getHours()&&(e.setHours(e.getHours()+2),!0)}function t(t,n,r){var o=t.getHours();r=r||1,n=(n-t.getDay()+7*r)%7,t.setDate(t.getDate()+n),e(t,o)}function r(e,n,r){return e=new Date(e),t(e,n,r),e}function o(e){return new Date(e.getFullYear(),e.getMonth(),1)}function i(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=o(e),r=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return r&&t.setHours(n.getHours()+r/60),t}function a(e){return new Date(e.getFullYear(),0,1)}function s(e){return new Date(e.getFullYear(),11,31)}function u(e,t){return 1!==t?g(r(e,t,-1),4):g(e,4-(e.getDay()||7))}function l(e,t){var n=new Date(e.getFullYear(),0,1,(-6)),r=u(e,t),o=r.getTime()-n.getTime(),i=Math.floor(o/T);return 1+Math.floor(i/7)}function c(e,t){var r,o,i;return t===n&&(t=Ce.culture().calendar.firstDay),r=g(e,-7),o=g(e,7),i=l(e,t),0===i?l(r,t)+1:53===i&&l(o,t)>1?1:i}function d(t){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),e(t,0),t}function f(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function p(e){return M(e).getTime()-d(M(e))}function m(e,t,n){var r,o=p(t),i=p(n);return!e||o==i||(t>=n&&(n+=T),r=p(e),o>r&&(r+=T),i<o&&(i+=T),r>=o&&r<=i)}function h(e,t,n){var r,o=t.getTime(),i=n.getTime();return o>=i&&(i+=T),r=e.getTime(),r>=o&&r<=i}function g(t,n){var r=t.getHours();return t=new Date(t),y(t,n*T),e(t,r),t}function y(e,t,n){var r,o=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(r=e.getTimezoneOffset()-o,e.setTime(e.getTime()+r*S))}function v(t,n){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e(t,n.getHours()),t}function b(){return d(new Date)}function w(e){return d(e).getTime()==b().getTime()}function M(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function x(e,t){var n=new Date(e);return new Date(n.setFullYear(n.getFullYear()+t))}var S=6e4,T=864e5;return{adjustDST:e,dayOfWeek:r,setDayOfWeek:t,getDate:d,isInDateRange:h,isInTimeRange:m,isToday:w,nextDay:function(e){return g(e,1)},previousDay:function(e){return g(e,-1)},toUtcTime:f,MS_PER_DAY:T,MS_PER_HOUR:60*S,MS_PER_MINUTE:S,setTime:y,setHours:v,addDays:g,today:b,toInvariantTime:M,firstDayOfMonth:o,lastDayOfMonth:i,weekInYear:c,getMilliseconds:p,firstDayOfYear:a,lastDayOfYear:s,nextYear:function(e){return x(e,1)},previousYear:function(e){return x(e,-1)}}}(),Ce.stripWhitespace=function(e){var t,n,r;if(document.createNodeIterator)for(t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,function(t){return t.parentNode==e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},!1);t.nextNode();)t.referenceNode&&!t.referenceNode.textContent.trim()&&t.referenceNode.parentNode.removeChild(t.referenceNode);else for(n=0;n<e.childNodes.length;n++)r=e.childNodes[n],3!=r.nodeType||/\S/.test(r.nodeValue)||(e.removeChild(r),n--),1==r.nodeType&&Ce.stripWhitespace(r)},ye=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},Ce.animationFrame=function(e){ye.call(t,e)},ve=[],Ce.queueAnimation=function(e){ve[ve.length]=e,1===ve.length&&Ce.runNextAnimation()},Ce.runNextAnimation=function(){Ce.animationFrame(function(){ve[0]&&(ve.shift()(),ve[0]&&Ce.runNextAnimation())})},Ce.parseQueryStringParams=function(e){for(var t=e.split("?")[1]||"",n={},r=t.split(/&|=/),o=r.length,i=0;i<o;i+=2)""!==r[i]&&(n[decodeURIComponent(r[i])]=decodeURIComponent(r[i+1]));return n},Ce.elementUnderCursor=function(e){if(n!==e.x.client)return document.elementFromPoint(e.x.client,e.y.client)},Ce.wheelDeltaY=function(e){var t,r=e.originalEvent,o=r.wheelDeltaY;return r.wheelDelta?(o===n||o)&&(t=r.wheelDelta):r.detail&&r.axis===r.VERTICAL_AXIS&&(t=10*-r.detail),t},Ce.throttle=function(e,t){var r,o,i=0;return!t||t<=0?e:(o=function(){function o(){e.apply(a,u),i=+new Date}var a=this,s=+new Date-i,u=arguments;return i?(r&&clearTimeout(r),s>t?o():r=setTimeout(o,t-s),n):o()},o.cancel=function(){clearTimeout(r)},o)},Ce.caret=function(t,r,o){var i,a,s,u,l,c=r!==n;if(o===n&&(o=r),t[0]&&(t=t[0]),!c||!t.disabled){try{t.selectionStart!==n?c?(t.focus(),a=Fe.mobileOS,a.wp||a.android?setTimeout(function(){t.setSelectionRange(r,o)},0):t.setSelectionRange(r,o)):r=[t.selectionStart,t.selectionEnd]:document.selection&&(e(t).is(":visible")&&t.focus(),i=t.createTextRange(),c?(i.collapse(!0),i.moveStart("character",r),i.moveEnd("character",o-r),i.select()):(s=i.duplicate(),i.moveToBookmark(document.selection.createRange().getBookmark()),s.setEndPoint("EndToStart",i),u=s.text.length,l=u+i.text.length,r=[u,l]))}catch(d){r=[]}return r}},Ce.compileMobileDirective=function(e,n){var r=t.angular;return e.attr("data-"+Ce.ns+"role",e[0].tagName.toLowerCase().replace("kendo-mobile-","").replace("-","")),r.element(e).injector().invoke(["$compile",function(t){t(e)(n),/^\$(digest|apply)$/.test(n.$$phase)||n.$digest()}]),Ce.widgetInstance(e,Ce.mobile.ui)},Ce.antiForgeryTokens=function(){var t={},r=e("meta[name=csrf-token],meta[name=_csrf]").attr("content"),o=e("meta[name=csrf-param],meta[name=_csrf_header]").attr("content");return e("input[name^='__RequestVerificationToken']").each(function(){t[this.name]=this.value}),o!==n&&r!==n&&(t[o]=r),t},Ce.cycleForm=function(e){function t(e){var t=Ce.widgetInstance(e);t&&t.focus?t.focus():e.focus()}var n=e.find("input, .k-widget").first(),r=e.find("button, .k-button").last();r.on("keydown",function(e){e.keyCode!=Ce.keys.TAB||e.shiftKey||(e.preventDefault(),t(n))}),n.on("keydown",function(e){e.keyCode==Ce.keys.TAB&&e.shiftKey&&(e.preventDefault(),t(r))})},Ce.focusElement=function(n){var r=[],o=n.parentsUntil("body").filter(function(e,t){var n=Ce.getComputedStyles(t,["overflow"]);return"visible"!==n.overflow}).add(t);o.each(function(t,n){r[t]=e(n).scrollTop()});try{n[0].setActive()}catch(i){n[0].focus()}o.each(function(t,n){e(n).scrollTop(r[t])})},Ce.focusNextElement=function(){var t,n,r;document.activeElement&&(t=e(":kendoFocusable"),n=t.index(document.activeElement),n>-1&&(r=t[n+1]||t[0],r.focus()))},Ce.trim=function(e){return e?(""+e).trim():""},Ce.getWidgetFocusableElement=function(t){var n,r=t.closest(":kendoFocusable"),o=Ce.widgetInstance(t);return n=r.length?r:o?"Editor"===o.options.name?e(o.body):o.wrapper.find(":kendoFocusable").first():t},Ce.addAttribute=function(e,t,n){var r=e.attr(t)||"";r.indexOf(n)<0&&e.attr(t,(r+" "+n).trim())},Ce.removeAttribute=function(e,t,n){var r=e.attr(t)||"";e.attr(t,r.replace(n,"").trim())},Ce.toggleAttribute=function(e,t,n){var r=e.attr(t)||"";r.indexOf(n)<0?Ce.addAttribute(e,t,n):Ce.removeAttribute(e,t,n)},Ce.matchesMedia=function(e){var n=Ce._bootstrapToMedia(e)||e;return Fe.matchMedia&&t.matchMedia(n).matches},Ce._bootstrapToMedia=function(e){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[e]},Ce.fileGroupMap={audio:[".aif",".iff",".m3u",".m4a",".mid",".mp3",".mpa",".wav",".wma",".ogg",".wav",".wma",".wpl"],video:[".3g2",".3gp",".avi",".asf",".flv",".m4u",".rm",".h264",".m4v",".mkv",".mov",".mp4",".mpg",".rm",".swf",".vob",".wmv"],image:[".ai",".dds",".heic",".jpe","jfif",".jif",".jp2",".jps",".eps",".bmp",".gif",".jpeg",".jpg",".png",".ps",".psd",".svg",".svgz",".tif",".tiff"],txt:[".doc",".docx",".log",".pages",".tex",".wpd",".wps",".odt",".rtf",".text",".txt",".wks"],presentation:[".key",".odp",".pps",".ppt",".pptx"],data:[".xlr",".xls",".xlsx"],programming:[".tmp",".bak",".msi",".cab",".cpl",".cur",".dll",".dmp",".drv",".icns",".ico",".link",".sys",".cfg",".ini",".asp",".aspx",".cer",".csr",".css",".dcr",".htm",".html",".js",".php",".rss",".xhtml"],pdf:[".pdf"],config:[".apk",".app",".bat",".cgi",".com",".exe",".gadget",".jar",".wsf"],zip:[".7z",".cbr",".gz",".sitx",".arj",".deb",".pkg",".rar",".rpm",".tar.gz",".z",".zip",".zipx"],"disc-image":[".dmg",".iso",".toast",".vcd",".bin",".cue",".mdf"]},Ce.getFileGroup=function(e,t){var r,o,i=Ce.fileGroupMap,a=Object.keys(i),s="file";if(e===n||!e.length)return s;for(r=0;r<a.length;r+=1)if(o=i[a[r]],o.indexOf(e.toLowerCase())>-1)return t?"file-"+a[r]:a[r];return s},Ce.getFileSizeMessage=function(e){var t,n=["Bytes","KB","MB","GB","TB"];return 0===e?"0 Byte":(t=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10),Math.round(e/Math.pow(1024,t),2)+" "+n[t])},Ce.selectorFromClasses=function(e){return"."+e.split(" ").join(".")},be=["primary","secondary","tertiary","inherit","info","success","warning","error","dark","light","inverse"],we=["solid","outline","flat"],Me=["edge","outside","inside"],xe=["circle","rectangle","rounded","dot","pill"],Se=[["small","sm"],["medium","md"],["large","lg"]],Te=[["top start","top-start"],["top end","top-end"],["bottom start","bottom-start"],["bottom end","bottom-end"]],ke=["fixed","static","sticky","absolute"],Ce.propertyToCssClassMap={},Ce.registerCssClass=function(e,t,n){Ce.propertyToCssClassMap[e]||(Ce.propertyToCssClassMap[e]={}),Ce.propertyToCssClassMap[e][t]=n||t},Ce.registerCssClasses=function(e,t){for(var n=0;n<t.length;n++)ze(t[n])?Ce.registerCssClass(e,t[n][0],t[n][1]):Ce.registerCssClass(e,t[n])},Ce.getValidCssClass=function(e,t,n){var r=Ce.propertyToCssClassMap[t][n];if(r)return e+r},Ce.registerCssClasses("themeColor",be),Ce.registerCssClasses("fill",we),Ce.registerCssClasses("postition",Me),Ce.registerCssClasses("shape",xe),Ce.registerCssClasses("size",Se),Ce.registerCssClasses("align",Te),Ce.registerCssClasses("positionMode",ke),Ce.whenAll=function(t){function n(e,t,n){return function(){n!=o&&l++,s.notifyWith(t[e]=this,n[e]=Array.prototype.slice.call(arguments)),--a||s[(l?"reject":"resolve")+"With"](t,n)}}for(var r,o=1==arguments.length&&e.isArray(t)?t:Array.prototype.slice.call(arguments),i=o.length,a=i,s=e.Deferred(),u=0,l=0,c=Array(i),d=Array(i),f=Array(i);u<i;u++)(r=o[u])&&e.isFunction(r.promise)?r.promise().done(n(u,f,o)).fail(n(u,c,d)):(s.notifyWith(this,r),--a);return a||s.resolveWith(f,o),s.promise()},function(){function n(t,n,r,o){var i,a,s=e("<form>").attr({action:r,method:"POST",target:o}),u=Ce.antiForgeryTokens();u.fileName=n,i=t.split(";base64,"),u.contentType=i[0].replace("data:",""),u.base64=i[1];for(a in u)u.hasOwnProperty(a)&&e("<input>").attr({value:u[a],name:a,type:"hidden"}).appendTo(s);s.appendTo("body").submit().remove()}function r(e,t){var n,r,o,i,a,s=e;if("string"==typeof e){for(n=e.split(";base64,"),r=n[0],o=atob(n[1]),i=new Uint8Array(o.length),a=0;a<o.length;a++)i[a]=o.charCodeAt(a);s=new Blob([i.buffer],{type:r})}navigator.msSaveBlob(s,t)}function o(e,n){t.Blob&&e instanceof Blob&&(e=URL.createObjectURL(e)),i.download=n,i.href=e;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(r),setTimeout(function(){URL.revokeObjectURL(e)})}var i=document.createElement("a"),a="download"in i&&!Ce.support.browser.edge;Ce.saveAs=function(e){var t=n;e.forceProxy||(a?t=o:navigator.msSaveBlob&&(t=r)),t(e.dataURI,e.fileName,e.proxyURL,e.proxyTarget)}}(),Ce.proxyModelSetters=function(e){var t={};return Object.keys(e||{}).forEach(function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t,e.dirty=!0}})}),t},function(){Ce.defaults=Ce.defaults||{},Ce.setDefaults=function(e,t){var r=e.split("."),o=Ce.defaults;e=r.pop(),r.forEach(function(e){o[e]===n&&(o[e]={}),o=o[e]}),o[e]=t.constructor===Object?l({},o[e],t):t}}()}(jQuery,window),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(e,define){define("kendo.popup.min",["kendo.core.min"],e)}(function(){return function(e,t){function o(t,o){return!(!t||!o)&&(t===o||e.contains(t,o))}var n,i,s,r,a=window.kendo,l=a.ui,d=l.Widget,p=a.Class,c=a.support,f=a.getOffset,u=a._outerWidth,h=a._outerHeight,m="open",g="close",w="deactivate",v="activate",_="center",b="left",y="right",k="top",x="bottom",T="absolute",z="hidden",C="body",P="location",S="position",E="visible",I="effects",O="k-state-active",R="k-state-border",A=/k-state-border-(\w+)/,D=".k-picker-wrap, .k-dropdown-wrap, .k-link",F="down",H=e(document.documentElement),N=e.proxy,W=e(window),L="scroll",j=c.transitions.css,M=j+"transform",K=e.extend,U=".kendoPopup",Y=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Q=d.extend({init:function(t,o){var n,i=this;o=o||{},o.isRtl&&(o.origin=o.origin||x+" "+y,o.position=o.position||k+" "+y),d.fn.init.call(i,t,o),t=i.element,o=i.options,i.collisions=o.collision?o.collision.split(" "):[],i.downEvent=a.applyEventMap(F,a.guid()),1===i.collisions.length&&i.collisions.push(i.collisions[0]),n=e(i.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),o.appendTo=e(e(o.appendTo)[0]||n[0]||document.body),i.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!o.isRtl).css({position:T}).appendTo(o.appendTo).attr("aria-hidden",!0).on("mouseenter"+U,function(){i._hovered=!0}).on("wheel"+U,function(t){var o=e(t.target).find(".k-list"),n=o.parent();o.length&&o.is(":visible")&&(0===n.scrollTop()&&t.originalEvent.deltaY<0||n.scrollTop()===n.prop("scrollHeight")-n.prop("offsetHeight")&&t.originalEvent.deltaY>0)&&t.preventDefault()}).on("mouseleave"+U,function(){i._hovered=!1}),i.wrapper=e(),o.animation===!1&&(o.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),K(o.animation.open,{complete:function(){i.wrapper.css({overflow:E}),i._activated=!0,i._trigger(v)}}),K(o.animation.close,{complete:function(){i._animationClose()}}),i._mousedownProxy=function(e){i._mousedown(e)},i._resizeProxy=c.mobileOS.android?function(e){setTimeout(function(){i._resize(e)},600)}:function(e){i._resize(e)},o.toggleTarget&&e(o.toggleTarget).on(o.toggleEvent+U,e.proxy(i.toggle,i))},events:[m,v,g,w],options:{name:"Popup",toggleEvent:"click",origin:x+" "+b,position:k+" "+b,anchor:C,appendTo:null,collision:"flip fit",viewport:window,copyAnchorStyles:!0,autosize:!1,modal:!1,adjustSize:{width:0,height:0},animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}},omitOriginOffsets:!1},_animationClose:function(){var e=this,t=e.wrapper.data(P);e.wrapper.hide(),t&&e.wrapper.css(t),e.options.anchor!=C&&e._hideDirClass(),e._closing=!1,e._trigger(w)},destroy:function(){var t,o=this,n=o.options,i=o.element.off(U);d.fn.destroy.call(o),n.toggleTarget&&e(n.toggleTarget).off(U),n.modal||(H.off(o.downEvent,o._mousedownProxy),o._toggleResize(!1)),a.destroy(o.element.children()),i.removeData(),n.appendTo[0]===document.body&&(t=i.parent(".k-animation-container"),t[0]?t.remove():i.remove())},open:function(o,n){var i,s,r=this,l={isFixed:!isNaN(parseInt(n,10)),x:o,y:n},d=r.element,p=r.options,f=e(p.anchor),u=d[0]&&d.hasClass("km-widget");if(!r.visible()){if(p.copyAnchorStyles&&(u&&"font-size"==Y[0]&&Y.shift(),d.css(a.getComputedStyles(f[0],Y))),d.data("animating")||r._trigger(m))return;r._activated=!1,p.modal||(H.off(r.downEvent,r._mousedownProxy).on(r.downEvent,r._mousedownProxy),r._toggleResize(!1),r._toggleResize(!0)),r.wrapper=s=a.wrap(d,p.autosize).css({overflow:z,display:"block",position:T}).attr("aria-hidden",!1),c.mobileOS.android&&s.css(M,"translatez(0)"),s.css(S),e(p.appendTo)[0]==document.body&&s.css(k,"-10000px"),r.flipped=r._position(l),i=r._openAnimation(),p.anchor!=C&&r._showDirClass(i),d.is(":visible")||d.data("olddisplay")!==t||(d.show(),d.data("olddisplay",d.css("display")),d.hide()),d.data(I,i.effects).kendoStop(!0).kendoAnimate(i).attr("aria-hidden",!1)}},_location:function(t){var o,n,i=this,s=i.element,r=i.options,l=e(r.anchor),d=s[0]&&s.hasClass("km-widget");return r.copyAnchorStyles&&(d&&"font-size"==Y[0]&&Y.shift(),s.css(a.getComputedStyles(l[0],Y))),i.wrapper=o=a.wrap(s,r.autosize).css({overflow:z,display:"block",position:T}),c.mobileOS.android&&o.css(M,"translatez(0)"),o.css(S),e(r.appendTo)[0]==document.body&&o.css(k,"-10000px"),i._position(t||{}),n=o.offset(),{width:a._outerWidth(o),height:a._outerHeight(o),left:n.left,top:n.top}},_openAnimation:function(){var e=K(!0,{},this.options.animation.open);return e.effects=a.parseEffects(e.effects,this.flipped),e},_hideDirClass:function(){var t=e(this.options.anchor),o=((t.attr("class")||"").match(A)||["","down"])[1],n=R+"-"+o;t.removeClass(n).children(D).removeClass(O).removeClass(n),this.element.removeClass(R+"-"+a.directions[o].reverse)},_showDirClass:function(t){var o=t.effects.slideIn?t.effects.slideIn.direction:"down",n=R+"-"+o;e(this.options.anchor).addClass(n).children(D).addClass(O).addClass(n),this.element.addClass(R+"-"+a.directions[o].reverse)},position:function(){this.visible()&&(this.flipped=this._position())},toggle:function(){var e=this;e[e.visible()?g:m]()},visible:function(){return this.element.is(":"+E)},close:function(o){var n,i,s,r,l=this,d=l.options;if(l.visible()){if(n=l.wrapper[0]?l.wrapper:a.wrap(l.element).hide(),l._toggleResize(!1),l._closing||l._trigger(g))return l._toggleResize(!0),t;l.element.find(".k-popup").each(function(){var t=e(this),n=t.data("kendoPopup");n&&n.close(o)}),H.off(l.downEvent,l._mousedownProxy),o?i={hide:!0,effects:{}}:(i=K(!0,{},d.animation.close),s=l.element.data(I),r=i.effects,!r&&!a.size(r)&&s&&a.size(s)&&(i.effects=s,i.reverse=!0),l._closing=!0),l.element.kendoStop(!0).attr("aria-hidden",!0),n.css({overflow:z}).attr("aria-hidden",!0),l.element.kendoAnimate(i),o&&l._animationClose()}},_trigger:function(e){return this.trigger(e,{type:e})},_resize:function(e){var t=this;c.resize.indexOf(e.type)!==-1?(clearTimeout(t._resizeTimeout),t._resizeTimeout=setTimeout(function(){t._position(),t._resizeTimeout=null},50)):(!t._hovered||t._activated&&t.element.hasClass("k-list-container"))&&t.close()},_toggleResize:function(e){var t=e?"on":"off",o=c.resize;c.mobileOS.ios||c.mobileOS.android||c.browser.safari||(o+=" "+L),e&&!this.scrollableParents&&(this.scrollableParents=this._scrollableParents()),this.scrollableParents&&this.scrollableParents.length&&this.scrollableParents[t](L,this._resizeProxy),W[t](o,this._resizeProxy)},_mousedown:function(t){var n=this,i=n.element[0],s=n.options,r=e(s.anchor)[0],l=s.toggleTarget,d=a.eventTarget(t),p=e(d).closest(".k-popup"),c=p.parent().parent(".km-shim").length;p=p[0],!c&&p&&p!==n.element[0]||"popover"!==e(t.target).closest("a").data("rel")&&(o(i,d)||o(r,d)||l&&o(e(l)[0],d)||n.close())},_fit:function(e,t,o){var n=0;return e+t>o&&(n=o-(e+t)),e<0&&(n=-e),n},_flip:function(e,t,o,n,i,s,r){var a=0;return r=r||t,s!==i&&s!==_&&i!==_&&(e+r>n&&(a+=-(o+t)),e+a<0&&(a+=o+t)),a},_scrollableParents:function(){return e(this.options.anchor).parentsUntil("body").filter(function(e,t){return a.isScrollable(t)})},_position:function(t){var o,n,i,s,r,l,d,p,m,g,w,v,_,b,y,k,x,z=this,C=z.element,E=z.wrapper,I=z.options,O=e(I.viewport),R=c.zoomLevel(),A=!!(O[0]==window&&window.innerWidth&&R<=1.02),D=e(I.anchor),F=I.origin.toLowerCase().split(" "),H=I.position.toLowerCase().split(" "),N=z.collisions,W=10002,L=0,j=document.documentElement;if(r=I.viewport===window?{top:window.pageYOffset||document.documentElement.scrollTop||0,left:window.pageXOffset||document.documentElement.scrollLeft||0}:O.offset(),A?(l=window.innerWidth,d=window.innerHeight):(l=O.width(),d=O.height()),A&&j.scrollHeight-j.clientHeight>0&&(p=I.isRtl?-1:1,l-=p*a.support.scrollbar()),o=D.parents().filter(E.siblings()),o[0])if(i=Math.max(+o.css("zIndex"),0))W=i+10;else for(n=D.parentsUntil(o),s=n.length;L<s;L++)i=+e(n[L]).css("zIndex"),i&&W<i&&(W=i+10);return E.css("zIndex",W),E.css(t&&t.isFixed?{left:t.x,top:t.y}:z._align(F,H)),m=f(E,S,D[0]===E.offsetParent()[0]),g=f(E),w=D.offsetParent().parent(".k-animation-container,.k-popup,.k-group"),w.length&&(m=f(E,S,!0),g=f(E)),g.top-=r.top,g.left-=r.left,z.wrapper.data(P)||E.data(P,K({},m)),v=K({},g),_=K({},m),b=I.adjustSize,"fit"===N[0]&&(_.top+=z._fit(v.top,h(E)+b.height,d/R)),"fit"===N[1]&&(_.left+=z._fit(v.left,u(E)+b.width,l/R)),y=K({},_),k=h(C),x=h(E),!E.height()&&k&&(x+=k),"flip"===N[0]&&(_.top+=z._flip(v.top,k,h(D),d/R,F[0],H[0],x)),"flip"===N[1]&&(_.left+=z._flip(v.left,u(C),u(D),l/R,F[1],H[1],u(E))),C.css(S,T),E.css(_),_.left!=y.left||_.top!=y.top},_align:function(t,o){var n,i=this,s=i.wrapper,r=e(i.options.anchor),a=t[0],l=t[1],d=o[0],p=o[1],c=f(r),m=e(i.options.appendTo),g=u(s),w=h(s)||h(s.children().first()),v=u(r),b=h(r),k=i.options.omitOriginOffsets?0:c.top,T=i.options.omitOriginOffsets?0:c.left,z=Math.round;return m[0]!=document.body&&(n=f(m),k-=n.top,T-=n.left),a===x&&(k+=b),a===_&&(k+=z(b/2)),d===x&&(k-=w),d===_&&(k-=z(w/2)),l===y&&(T+=v),l===_&&(T+=z(v/2)),p===y&&(T-=g),p===_&&(T-=z(g/2)),{top:k,left:T}}});l.plugin(Q),n=a.support.stableSort,i="kendoTabKeyTrap",s="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], *[contenteditable]",r=p.extend({init:function(t){this.element=e(t),this.element.autoApplyNS(i)},trap:function(){this.element.on("keydown",N(this._keepInTrap,this))},removeTrap:function(){this.element.kendoDestroy(i)},destroy:function(){this.element.kendoDestroy(i),this.element=t},shouldTrap:function(){return!0},_keepInTrap:function(e){var t,o,n;9===e.which&&this.shouldTrap()&&!e.isDefaultPrevented()&&(t=this._focusableElements(),o=this._sortFocusableElements(t),n=this._nextFocusable(e,o),this._focus(n),e.preventDefault())},_focusableElements:function(){var t=this.element.find(s).filter(function(t,o){return o.tabIndex>=0&&e(o).is(":visible")&&!e(o).is("[disabled]")});return this.element.is("[tabindex]")&&t.push(this.element[0]),t},_sortFocusableElements:function(e){var t,o;return n?t=e.sort(function(e,t){return e.tabIndex-t.tabIndex}):(o="__k_index",e.each(function(e,t){t.setAttribute(o,e)}),t=e.sort(function(e,t){return e.tabIndex===t.tabIndex?parseInt(e.getAttribute(o),10)-parseInt(t.getAttribute(o),10):e.tabIndex-t.tabIndex}),e.removeAttr(o)),t},_nextFocusable:function(e,t){var o=t.length,n=t.index(e.target);return t.get((n+(e.shiftKey?-1:1))%o)},_focus:function(e){return"IFRAME"==e.nodeName?(e.contentWindow.document.body.focus(),t):(e.focus(),"INPUT"==e.nodeName&&e.setSelectionRange&&this._haveSelectionRange(e)&&e.setSelectionRange(0,e.value.length),t)},_haveSelectionRange:function(e){var t=e.type.toLowerCase();return"text"===t||"search"===t||"url"===t||"tel"===t||"password"===t}}),l.Popup.TabKeyTrap=r}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,o){(o||t)()});;!function(e,define){define("kendo.data.min",["kendo.core.min","kendo.data.odata.min","kendo.data.xml.min"],e)}(function(){return function(e,t){function r(e,t,r,i){return function(n){var a,s={};for(a in n)s[a]=n[a];s.field=i?r+"."+n.field:r,t==Ae&&e._notifyChange&&e._notifyChange(s),e.trigger(t,s)}}function i(e,t){var r,i,n=[];for(e=e||{},r=Object.getOwnPropertyNames(e),i=nt.filter(function(e){return r.indexOf(e)<0});e;)Object.getOwnPropertyNames(e).forEach(function(e){n.indexOf(e)===-1&&(!t||i.indexOf(e)<0)&&n.push(e)}),e=Object.getPrototypeOf(e);return n}function n(t,r){if(t===r)return!0;var i,a=e.type(t),s=e.type(r);if(a!==s)return!1;if("date"===a)return t.getTime()===r.getTime();if("object"!==a&&"array"!==a)return!1;for(i in t)if(!n(t[i],r[i]))return!1;return!0}function a(e,t){var r,i;for(i in e){if(r=e[i],ve(r)&&r.field&&r.field===t)return r;if(r===t)return r}return null}function s(e){this.data=e||[]}function o(e,r){if(e){var i=typeof e===qe?{field:e,dir:r}:e,n=Se(i)?i:i!==t?[i]:[];return be(n,function(e){return!!e.dir})}}function u(e,r){var i,n,a,s={};if(e)for(i=typeof e===qe?{field:e,dir:r}:e,n=Se(i)?i:i!==t?[i]:[],a=0;a<n.length;a++)s[n[a].field]={dir:n[a].dir,index:a+1};return s}function l(e){var t,r,i,n,a=e.filters;if(a)for(t=0,r=a.length;t<r;t++)i=a[t],n=i.operator,n&&typeof n===qe&&(i.operator=ne[n.toLowerCase()]||n),l(i)}function g(e){if(e&&!ye(e))return!Se(e)&&e.filters||(e={logic:"and",filters:Se(e)?e:[e]}),l(e),e}function d(e,t){return!e.logic&&!t.logic&&(e.field===t.field&&e.value===t.value&&e.operator===t.operator)}function h(e){return e=e||{},ye(e)?{logic:"and",filters:[]}:g(e)}function f(e,t){return t.logic||e.field>t.field?1:e.field<t.field?-1:0}function c(e,t){var r,i,n,a,s;if(e=h(e),t=h(t),e.logic!==t.logic)return!1;if(n=(e.filters||[]).slice(),a=(t.filters||[]).slice(),n.length!==a.length)return!1;for(n=n.sort(f),a=a.sort(f),s=0;s<n.length;s++)if(r=n[s],i=a[s],r.logic&&i.logic){if(!c(r,i))return!1}else if(!d(r,i))return!1;return!0}function p(e){return Se(e)?e:[e]}function _(e,r,i,n){var a=typeof e===qe?{field:e,dir:r,compare:i,skipItemSorting:n}:e,s=Se(a)?a:a!==t?[a]:[];return $(s,function(e){return{field:e.field,dir:e.dir||"asc",aggregates:e.aggregates,compare:e.compare,skipItemSorting:e.skipItemSorting}})}function m(e,t,r){var i,n=_(e,t,r);for(i=0;i<n.length;i++)delete n[i].compare;return n}function v(e){var t,r=Se(e)?e:[e];for(t=0;t<r.length;t++)if(r[t]&&Fe(r[t].compare))return!0;return!1}function y(e,t){return e&&e.getTime&&t&&t.getTime?e.getTime()===t.getTime():e===t}function S(e,t,r,i,n,a){var s,o,u,l,g;for(t=t||[],l=t.length,s=0;s<l;s++)o=t[s],u=o.aggregate,g=o.field,e[g]=e[g]||{},a[g]=a[g]||{},a[g][u]=a[g][u]||{},e[g][u]=ae[u.toLowerCase()](e[g][u],r,xe.accessor(g),i,n,a[g][u])}function b(e){return"number"==typeof e&&!isNaN(e)}function k(e){return e&&e.getTime}function w(e){var t,r=e.length,i=Array(r);for(t=0;t<r;t++)i[t]=e[t].toJSON();return i}function P(e,t,r,i,n){var a,s,o,u,l,g={};for(u=0,l=e.length;u<l;u++){a=e[u];for(s in t)o=n[s],o&&o!==s&&(g[o]||(g[o]=xe.setter(o)),g[o](a,t[s](a)),delete a[s])}}function x(e,t,r,i,n){var a,s,o,u,l;for(u=0,l=e.length;u<l;u++){a=e[u];for(s in t)a[s]=r._parse(s,t[s](a)),o=n[s],o&&o!==s&&delete a[o]}}function F(e,t,r,i,n){var a,s,o,u;for(s=0,u=e.length;s<u;s++)a=e[s],o=i[a.field],o&&o!=a.field&&(a.field=o),a.value=r._parse(a.field,a.value),a.items&&(a.hasSubgroups?F(a.items,t,r,i,n):x(a.items,t,r,i,n))}function R(e,t,r,i,n,a){return function(s){return s=e(s),G(t,r,i,n,a)(s)}}function G(e,t,r,i,n){return function(a){return a&&!ye(r)&&("[object Array]"===tt.call(a)||a instanceof at||(a=[a]),t(a,r,new e,i,n)),a||[]}}function q(e,t){var r,i,n;if(t.items&&t.items.length)for(n=0;n<t.items.length;n++)r=e.items[e.items.length-1],i=t.items[n],r&&i?r.hasSubgroups&&r.value==i.value?q(r,i):r.field&&r.value==i.value?r.items.push.apply(r.items,i.items):e.items.push.apply(e.items,[i]):i&&e.items.push.apply(e.items,[i])}function C(e,t,r,i){for(var n,a,s,o=0;t.length&&i&&(n=t[o],a=n.items,s=a.length,e&&e.field===n.field&&e.value===n.value?(e.hasSubgroups&&e.items.length?C(e.items[e.items.length-1],n.items,r,i):(a=a.slice(r,r+i),e.items=e.items.concat(a)),t.splice(o--,1)):n.hasSubgroups&&a.length?(C(n,a,r,i),n.items.length||t.splice(o--,1)):(a=a.slice(r,r+i),n.items=a,n.items.length||t.splice(o--,1)),0===a.length?r-=s:(r=0,i-=a.length),!(++o>=t.length)););o<t.length&&t.splice(o,t.length-o)}function O(e,t){var r,i,n,a,s=[],o=(e||[]).length,u=Fe(t)?t:function(e,t){return e[t]};for(n=0;n<o;n++)if(r=u(e,n),r.hasSubgroups)s=s.concat(O(r.items));else for(i=r.items,a=0;a<i.length;a++)s.push(u(i,a));return s}function D(e){var t,r,i,n,a,s=[];for(t=0,r=e.length;t<r;t++)if(a=e.at(t),a.items)if(a.hasSubgroups)s=s.concat(D(a.items));else for(i=a.items,n=0;n<i.length;n++)s.push(i.at(n));return s}function z(e,t){var r,i,n;if(t)for(r=0,i=e.length;r<i;r++)n=e.at(r),n.items&&(n.hasSubgroups?z(n.items,t):n.items=new K(n.items,t,n.items._events))}function I(e,t){for(var r=0;r<e.length;r++)if(e[r].hasSubgroups){if(I(e[r].items,t))return!0}else if(t(e[r].items,e[r]))return!0}function T(e,t,r,i){for(var n=0;n<e.length&&e[n].data!==t&&!A(e[n].data,r,i);n++);}function A(e,t,r){for(var i=0,n=e.length;i<n;i++){if(e[i]&&e[i].hasSubgroups)return A(e[i].items,t,r);if(e[i]===t||e[i]===r)return e[i]=r,!0}}function E(e,r,i,n,a){var s,o,u,l;for(s=0,o=e.length;s<o;s++)if(u=e[s],u&&!(u instanceof n))if(u.hasSubgroups===t||a){for(l=0;l<r.length;l++)if(r[l]===u){e[s]=r.at(l),T(i,r,u,e[s]);break}}else E(u.items,r,i,n,a)}function N(e,t){var r,i,n;if(e)for(r=e.length,n=0;n<r;n++)if(i=e[n],i.uid&&i.uid==t.uid)return e.splice(n,1),i}function M(e,t){return t?L(e,function(e){return e.uid&&e.uid==t.uid||e[t.idField]===t.id&&t.id!==t._defaultId}):-1}function j(e,t){return t?L(e,function(e){return e.uid==t.uid}):-1}function L(e,t){var r,i;if(e){for(r=0,i=e.length;r<i;r++)if(t(e[r]))return r;return-1}}function B(e,t){var r,i;return e&&!ye(e)?(r=e[t],i=ve(r)?r.from||r.field||t:e[t]||t,Fe(i)?t:i):t}function H(e,t){var r,i,n,a={};for(n in e)"filters"!==n&&(a[n]=e[n]);if(e.filters)for(a.filters=[],r=0,i=e.filters.length;r<i;r++)a.filters[r]=H(e.filters[r],t);else a.field=B(t.fields,a.field);return a}function U(e,t){var r,i,n,a,s,o=[];for(r=0,i=e.length;r<i;r++){n={},a=e[r];for(s in a)n[s]=a[s];n.field=B(t.fields,n.field),n.aggregates&&Se(n.aggregates)&&(n.aggregates=U(n.aggregates,t)),o.push(n)}return o}function J(t,r){var i,n,a,s,o,u,l,g,d,h;for(t=e(t)[0],i=t.options,n=r[0],a=r[1],s=[],o=0,u=i.length;o<u;o++)d={},g=i[o],l=g.parentNode,l===t&&(l=null),g.disabled||l&&l.disabled||(l&&(d.optgroup=l.label),d[n.field]=g.text,h=g.attributes.value,h=h&&h.specified?g.value:g.text,d[a.field]=h,s.push(d));return s}function V(t,r){var i,n,a,s,o,u,l,g=e(t)[0].tBodies[0],d=g?g.rows:[],h=r.length,f=[];for(i=0,n=d.length;i<n;i++){for(o={},l=!0,s=d[i].cells,a=0;a<h;a++)u=s[a],"th"!==u.nodeName.toLowerCase()&&(l=!1,o[r[a].field]=u.innerHTML);l||f.push(o)}return f}function Q(e){return function(){var t=this._data,r=ge.fn[e].apply(this,Ze.call(arguments));return this._data!=t&&this._attachBubbleHandlers(),r}}function W(t,r){function i(e,t){return e.filter(t).add(e.find(t))}var n,a,s,o,u,l,g,d,h=e(t).children(),f=[],c=r[0].field,p=r[1]&&r[1].field,_=r[2]&&r[2].field,m=r[3]&&r[3].field;for(n=0,a=h.length;n<a;n++)s={_loaded:!0},o=h.eq(n),l=o[0].firstChild,d=o.children(),t=d.filter("ul"),d=d.filter(":not(ul)"),u=o.attr("data-id"),u&&(s.id=u),l&&(s[c]=3==l.nodeType?l.nodeValue:d.text()),p&&(s[p]=i(d,"a").attr("href")),m&&(s[m]=i(d,"img").attr("src")),_&&(g=i(d,".k-sprite").prop("className"),s[_]=g&&xe.trim(g.replace("k-sprite",""))),t.length&&(s.items=W(t.eq(0),r)),"true"==o.attr("data-hasChildren")&&(s.hasChildren=!0),f.push(s);return f}var $,K,X,Y,Z,ee,te,re,ie,ne,ae,se,oe,ue,le,ge,de,he,fe,ce,pe,_e=e.extend,me=e.proxy,ve=e.isPlainObject,ye=e.isEmptyObject,Se=e.isArray,be=e.grep,ke=e.ajax,we=e.each,Pe=e.noop,xe=window.kendo,Fe=xe.isFunction,Re=xe.Observable,Ge=xe.Class,qe="string",Ce="function",Oe="asc",De="create",ze="read",Ie="update",Te="destroy",Ae="change",Ee="sync",Ne="get",Me="error",je="requestStart",Le="progress",Be="requestEnd",He=[De,ze,Ie,Te],Ue=function(e){return e},Je=xe.getter,Ve=xe.stringify,Qe=Math,We=[].push,$e=[].join,Ke=[].pop,Xe=[].splice,Ye=[].shift,Ze=[].slice,et=[].unshift,tt={}.toString,rt=xe.support.stableSort,it=/^\/Date\((.*?)\)\/$/,nt=[],at=Re.extend({init:function(e,t){var r=this;r.type=t||X,Re.fn.init.call(r),r.length=e.length,r.wrapAll(e,r)},at:function(e){return this[e]},toJSON:function(e){var t,r,i=this.length,n=Array(i);for(t=0;t<i;t++)r=this[t],r instanceof X&&(r=r.toJSON(e)),n[t]=r;return n},parent:Pe,wrapAll:function(e,t){var r,i,n=this,a=function(){return n};for(t=t||[],r=0,i=e.length;r<i;r++)t[r]=n.wrap(e[r],a);return t},wrap:function(e,t){var r,i=this;return null!==e&&"[object Object]"===tt.call(e)&&(r=e instanceof i.type||e instanceof ee,r||(e=e instanceof X?e.toJSON():e,e=new i.type(e)),e.parent=t,e.bind(Ae,function(e){i.trigger(Ae,{field:e.field,node:e.node,index:e.index,items:e.items||[this],action:e.node?e.action||"itemloaded":"itemchange"})})),e},push:function(){var e,t=this.length,r=this.wrapAll(arguments);return e=We.apply(this,r),this.omitChangeEvent||this.trigger(Ae,{action:"add",index:t,items:r}),e},slice:Ze,sort:[].sort,join:$e,pop:function(){var e=this.length,t=Ke.apply(this);return e&&this.trigger(Ae,{action:"remove",index:e-1,items:[t]}),t},splice:function(e,t,r){var i,n,a,s=this.wrapAll(Ze.call(arguments,2));if(i=Xe.apply(this,[e,t].concat(s)),i.length)for(this.omitChangeEvent||this.trigger(Ae,{action:"remove",index:e,items:i}),n=0,a=i.length;n<a;n++)i[n]&&i[n].children&&i[n].unbind(Ae);return r&&(this.omitChangeEvent||this.trigger(Ae,{action:"add",index:e,items:s})),i},shift:function(){var e=this.length,t=Ye.apply(this);return e&&this.trigger(Ae,{action:"remove",index:0,items:[t]}),t},unshift:function(){var e,t=this.wrapAll(arguments);return e=et.apply(this,t),this.trigger(Ae,{action:"add",index:0,items:t}),e},indexOf:function(e){var t,r,i=this;for(t=0,r=i.length;t<r;t++)if(i[t]===e)return t;return-1},forEach:function(e,t){for(var r=0,i=this.length,n=t||window;r<i;r++)e.call(n,this[r],r,this)},map:function(e,t){for(var r=0,i=[],n=this.length,a=t||window;r<n;r++)i[r]=e.call(a,this[r],r,this);return i},reduce:function(e){var t,r=0,i=this.length;for(2==arguments.length?t=arguments[1]:r<i&&(t=this[r++]);r<i;r++)t=e(t,this[r],r,this);return t},reduceRight:function(e){var t,r=this.length-1;for(2==arguments.length?t=arguments[1]:r>0&&(t=this[r--]);r>=0;r--)t=e(t,this[r],r,this);return t},filter:function(e,t){for(var r,i=0,n=[],a=this.length,s=t||window;i<a;i++)r=this[i],e.call(s,r,i,this)&&(n[n.length]=r);return n},find:function(e,t){for(var r,i=0,n=this.length,a=t||window;i<n;i++)if(r=this[i],e.call(a,r,i,this))return r},every:function(e,t){for(var r,i=0,n=this.length,a=t||window;i<n;i++)if(r=this[i],!e.call(a,r,i,this))return!1;return!0},some:function(e,t){for(var r,i=0,n=this.length,a=t||window;i<n;i++)if(r=this[i],e.call(a,r,i,this))return!0;return!1},remove:function(e){var t=this.indexOf(e);t!==-1&&this.splice(t,1)},empty:function(){this.splice(0,this.length)}});"undefined"!=typeof Symbol&&Symbol.iterator&&!at.prototype[Symbol.iterator]&&(at.prototype[Symbol.iterator]=[][Symbol.iterator]),K=at.extend({init:function(e,t,r){Re.fn.init.call(this),this.type=t||X,r&&(this._events=r);for(var i=0;i<e.length;i++)this[i]=e[i];this.length=i,this._parent=me(function(){return this},this)},at:function(e){var t=this[e];return t instanceof this.type?t.parent=this._parent:t=this[e]=this.wrap(t,this._parent),t}}),nt=i({},!1),X=Re.extend({init:function(e){var t,r=this,n=i(e,!0),a=function(){return r};Re.fn.init.call(this),this._handlers={},n.forEach(function(i){t=e[i],"object"==typeof t&&t&&!t.getTime&&"_"!=i.charAt(0)&&(t=r.wrap(t,i,a)),r[i]=t}),r.uid=xe.guid()},shouldSerialize:function(e,t){return this.hasOwnProperty(e)&&"_handlers"!==e&&"_events"!==e&&(t&&t[e]||typeof this[e]!==Ce)&&"uid"!==e},forEach:function(e){for(var t in this)this.shouldSerialize(t)&&e(this[t],t)},toJSON:function(e){var t,r,i={};for(r in this)this.shouldSerialize(r,e)&&(t=this[r],(t instanceof X||t instanceof at)&&(t=t.toJSON(e)),i[r]=t);return i},get:function(e){var t,r=this;return r.trigger(Ne,{field:e}),t="this"===e?r:xe.getter(e,!0)(r)},_set:function(e,t){var r,i,n,a=this,s=e.indexOf(".")>=0;if(s)for(r=e.split("."),i="";r.length>1;){if(i+=r.shift(),n=xe.getter(i,!0)(a),n instanceof X)return n.set(r.join("."),t),s;i+="."}return xe.setter(e)(a,t),s},set:function(e,t){var r=this,i=!1,n=e.indexOf(".")>=0,a=xe.getter(e,!0)(r);return a!==t&&(a instanceof Re&&this._handlers[e]&&(this._handlers[e].get&&a.unbind(Ne,this._handlers[e].get),a.unbind(Ae,this._handlers[e].change)),i=r.trigger("set",{field:e,value:t}),i||(n||(t=r.wrap(t,e,function(){return r})),(!r._set(e,t)||e.indexOf("(")>=0||e.indexOf("[")>=0)&&r.trigger(Ae,{field:e}))),i},parent:Pe,wrap:function(e,t,i){var n,a,s,o,u=this,l=tt.call(e);return null==e||"[object Object]"!==l&&"[object Array]"!==l||(s=e instanceof at,o=e instanceof ge,"[object Object]"!==l||o||s?("[object Array]"===l||s||o)&&(s||o||(e=new at(e)),a=r(u,Ae,t,!1),e.bind(Ae,a),u._handlers[t]={change:a}):(e instanceof X||(e=new X(e)),n=r(u,Ne,t,!0),e.bind(Ne,n),a=r(u,Ae,t,!0),e.bind(Ae,a),u._handlers[t]={get:n,change:a}),e.parent=i),e}}),Y={number:function(e){return typeof e===qe&&"null"===e.toLowerCase()?null:xe.parseFloat(e)},date:function(e){return typeof e===qe&&"null"===e.toLowerCase()?null:xe.parseDate(e)},"boolean":function(e){return typeof e===qe?"null"===e.toLowerCase()?null:"true"===e.toLowerCase():null!=e?!!e:e},string:function(e){return typeof e===qe&&"null"===e.toLowerCase()?null:null!=e?e+"":e},"default":function(e){return e}},Z={string:"",number:0,date:new Date,"boolean":!1,"default":""},ee=X.extend({init:function(r){var i,n,a=this;if((!r||e.isEmptyObject(r))&&(r=e.extend({},a.defaults,r),a._initializers))for(i=0;i<a._initializers.length;i++)n=a._initializers[i],r[n]=a.defaults[n]();X.fn.init.call(a,r),a.dirty=!1,a.dirtyFields={},a.idField&&(a.id=a.get(a.idField),a.id===t&&(a.id=a._defaultId))},shouldSerialize:function(e){return X.fn.shouldSerialize.call(this,e)&&"uid"!==e&&!("id"!==this.idField&&"id"===e)&&"dirty"!==e&&"dirtyFields"!==e&&"_accessors"!==e},_parse:function(e,t){var r,i=this,n=e,s=i.fields||{};return e=s[e],e||(e=a(s,n)),e&&(r=e.parse,!r&&e.type&&(r=Y[e.type.toLowerCase()])),r?r(t):t},_notifyChange:function(e){var t=e.action;"add"!=t&&"remove"!=t||(this.dirty=!0,this.dirtyFields[e.field]=!0)},editable:function(e){return e=(this.fields||{})[e],!e||e.editable!==!1},set:function(e,t){var r=this,i=r.dirty;r.editable(e)&&(t=r._parse(e,t),n(t,r.get(e))?r.trigger("equalSet",{field:e,value:t}):(r.dirty=!0,r.dirtyFields[e]=!0,X.fn.set.call(r,e,t)&&!i&&(r.dirty=i,r.dirty||(r.dirtyFields[e]=!1))))},accept:function(e){var t,r,i=this,n=function(){return i};for(t in e)r=e[t],"_"!=t.charAt(0)&&(r=i.wrap(e[t],t,n)),i._set(t,r);i.idField&&(i.id=i.get(i.idField)),i.dirty=!1,i.dirtyFields={}},isNew:function(){return this.id===this._defaultId}}),ee.define=function(e,r){r===t&&(r=e,e=ee);var i,n,a,s,o,u,l,g,d=_e({defaults:{}},r),h={},f=d.id,c=[];if(f&&(d.idField=f),d.id&&delete d.id,f&&(d.defaults[f]=d._defaultId=""),"[object Array]"===tt.call(d.fields)){for(u=0,l=d.fields.length;u<l;u++)a=d.fields[u],typeof a===qe?h[a]={}:a.field&&(h[a.field]=a);d.fields=h}for(n in d.fields)a=d.fields[n],s=a.type||"default",o=null,g=n,n=typeof a.field===qe?a.field:n,a.nullable||(o=d.defaults[g!==n?g:n]=a.defaultValue!==t?a.defaultValue:Z[s.toLowerCase()],"function"==typeof o&&c.push(n)),r.id===n&&(d._defaultId=o),d.defaults[g!==n?g:n]=o,a.parse=a.parse||Y[s];return c.length>0&&(d._initializers=c),i=e.extend(d),i.define=function(e){return ee.define(i,e)},d.fields&&(i.fields=d.fields,i.idField=d.idField),i},te={selector:function(e){return Fe(e)?e:Je(e)},compare:function(e){var t=this.selector(e);return function(e,r){return e=t(e),r=t(r),null==e&&null==r?0:null==e?-1:null==r?1:e.localeCompare?e.localeCompare(r):e>r?1:e<r?-1:0}},create:function(e){var t=e.compare||this.compare(e.field);return"desc"==e.dir?function(e,r){return t(r,e,!0)}:t},combine:function(e){return function(t,r){var i,n,a=e[0](t,r);for(i=1,n=e.length;i<n;i++)a=a||e[i](t,r);return a}}},re=_e({},te,{asc:function(e){var t=this.selector(e);return function(e,r){var i=t(e),n=t(r);return i&&i.getTime&&n&&n.getTime&&(i=i.getTime(),n=n.getTime()),i===n?e.__position-r.__position:null==i?-1:null==n?1:i.localeCompare?i.localeCompare(n):i>n?1:-1}},desc:function(e){var t=this.selector(e);return function(e,r){var i=t(e),n=t(r);return i&&i.getTime&&n&&n.getTime&&(i=i.getTime(),n=n.getTime()),i===n?e.__position-r.__position:null==i?1:null==n?-1:n.localeCompare?n.localeCompare(i):i<n?1:-1}},create:function(e){return this[e.dir](e.field)}}),$=function(e,t){var r,i=e.length,n=Array(i);for(r=0;r<i;r++)n[r]=t(e[r],r,e);return n},ie=function(){function e(e){return"string"==typeof e&&(e=e.replace(/[\r\n]+/g,"")),JSON.stringify(e)}function t(t){return function(r,i,n,a){return i+="",n&&(r="("+r+" + '').toString()"+(a?".toLocaleLowerCase('"+a+"')":".toLowerCase()"),i=a?i.toLocaleLowerCase(a):i.toLowerCase()),t(r,e(i),n)}}function r(t,r,i,n,a){if(null!=i){if(typeof i===qe){var s=it.exec(i);s?i=new Date((+s[1])):n?(i=e(a?i.toLocaleLowerCase(a):i.toLowerCase()),r="(("+r+" || '')+'')"+(a?".toLocaleLowerCase('"+a+"')":".toLowerCase()")):i=e(i)}i.getTime&&(r="("+r+"&&"+r+".getTime?"+r+".getTime():"+r+")",i=i.getTime())}return r+" "+t+" "+i}function i(e){var t,r,i,n;for(t="/^",r=!1,i=0;i<e.length;++i){if(n=e.charAt(i),r)t+="\\"+n;else{if("~"==n){r=!0;continue}t+="*"==n?".*":"?"==n?".":".+^$()[]{}|\\/\n\r\u2028\u2029 ".indexOf(n)>=0?"\\"+n:n}r=!1}return t+"$/"}return{quote:function(t){return t&&t.getTime?"new Date("+t.getTime()+")":e(t)},eq:function(e,t,i,n){return r("==",e,t,i,n)},neq:function(e,t,i,n){return r("!=",e,t,i,n)},gt:function(e,t,i){return r(">",e,t,i)},gte:function(e,t,i){return r(">=",e,t,i)},lt:function(e,t,i){return r("<",e,t,i)},lte:function(e,t,i){return r("<=",e,t,i)},startswith:t(function(e,t){return e+".lastIndexOf("+t+", 0) == 0"}),doesnotstartwith:t(function(e,t){return e+".lastIndexOf("+t+", 0) == -1"}),endswith:t(function(e,t){var r=t?t.length-2:0;return e+".indexOf("+t+", "+e+".length - "+r+") >= 0"}),doesnotendwith:t(function(e,t){var r=t?t.length-2:0;return e+".indexOf("+t+", "+e+".length - "+r+") < 0"}),contains:t(function(e,t){return e+".indexOf("+t+") >= 0"}),doesnotcontain:t(function(e,t){return e+".indexOf("+t+") == -1"}),matches:t(function(e,t){return t=t.substring(1,t.length-1),i(t)+".test("+e+")"}),doesnotmatch:t(function(e,t){return t=t.substring(1,t.length-1),"!"+i(t)+".test("+e+")"}),isempty:function(e){return e+" === ''"},isnotempty:function(e){return e+" !== ''"},isnull:function(e){return"("+e+" == null)"},isnotnull:function(e){return"("+e+" != null)"},isnullorempty:function(e){return"("+e+" === null) || ("+e+" === '')"},isnotnullorempty:function(e){return"("+e+" !== null) && ("+e+" !== '')"}}}(),s.filterExpr=function(e){var r,i,n,a,o,u,l=[],g={and:" && ",or:" || "},d=[],h=[],f=e.filters;for(r=0,i=f.length;r<i;r++)n=f[r],o=n.field,u=n.operator,n.filters?(a=s.filterExpr(n),n=a.expression.replace(/__o\[(\d+)\]/g,function(e,t){return t=+t,"__o["+(h.length+t)+"]"}).replace(/__f\[(\d+)\]/g,function(e,t){return t=+t,"__f["+(d.length+t)+"]"}),h.push.apply(h,a.operators),d.push.apply(d,a.fields)):(typeof o===Ce?(a="__f["+d.length+"](d)",d.push(o)):a=xe.expr(o),typeof u===Ce?(n="__o["+h.length+"]("+a+", "+ie.quote(n.value)+")",h.push(u)):n=ie[(u||"eq").toLowerCase()](a,n.value,n.ignoreCase===t||n.ignoreCase,e.accentFoldingFiltering)),l.push(n);return{expression:"("+l.join(g[e.logic])+")",fields:d,operators:h}},ne={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain",isnull:"isnull",isempty:"isempty",isnotempty:"isnotempty"},s.normalizeFilter=g,s.compareFilters=c,s.prototype={toArray:function(){return this.data},range:function(e,t){return new s(this.data.slice(e,e+t))},skip:function(e){return new s(this.data.slice(e))},take:function(e){return new s(this.data.slice(0,e))},select:function(e){return new s($(this.data,e))},order:function(e,t,r){var i={dir:t};return e&&(e.compare?i.compare=e.compare:i.field=e),new s(r?this.data.sort(te.create(i)):this.data.slice(0).sort(te.create(i)))},orderBy:function(e,t){return this.order(e,"asc",t)},orderByDescending:function(e,t){return this.order(e,"desc",t)},sort:function(e,t,r,i){var n,a,s=o(e,t),u=[];if(r=r||te,s.length){for(n=0,a=s.length;n<a;n++)u.push(r.create(s[n]));return this.orderBy({compare:r.combine(u)},i)}return this},filter:function(e){var t,r,i,n,a,o,u,l,d=this.data,h=[];if(e=g(e),!e||0===e.filters.length)return this;for(n=s.filterExpr(e),o=n.fields,u=n.operators,a=l=Function("d, __f, __o","return "+n.expression),(o.length||u.length)&&(l=function(e){return a(e,o,u)}),t=0,i=d.length;t<i;t++)r=d[t],l(r)&&h.push(r);return new s(h)},group:function(e,t,r){e=_(e||[]),t=t||this.data;var i,n=this,a=new s(n.data);return e.length>0&&(i=e[0],a=r&&r.groupPaging?new s(t).groupAllData(i,t).select(function(n){var a=new s(t).filter([{field:n.field,operator:"eq",value:n.value,ignoreCase:!1}]),o=e.length>1?new s(n.items).group(e.slice(1),a.toArray(),r).toArray():n.items;return{field:n.field,value:n.value,hasSubgroups:e.length>1,items:o,aggregates:a.aggregate(i.aggregates),uid:xe.guid(),itemCount:o.length,subgroupCount:o.length}}):a.groupBy(i).select(function(r){var n=new s(t).filter([{field:r.field,operator:"eq",value:r.value,ignoreCase:!1}]);return{field:r.field,value:r.value,items:e.length>1?new s(r.items).group(e.slice(1),n.toArray()).toArray():r.items,hasSubgroups:e.length>1,aggregates:n.aggregate(i.aggregates)}})),a},groupBy:function(e){var t,r,i,n,a,o,u,l,g,d,h=this;if(ye(e)||!this.data.length)return new s([]);for(t=e.field,r=e.skipItemSorting?this.data:this._sortForGrouping(t,e.dir||"asc"),i=xe.accessor(t),a=i.get(r[0],t),o={field:t,value:a,items:[]},d=[o],l=0,g=r.length;l<g;l++)n=r[l],u=i.get(n,t),y(a,u)||(a=u,o={field:t,value:a,items:[]},d.push(o)),o.items.push(n);return d=h._sortGroups(d,e),new s(d)},groupAllData:function(e,t){if(ye(e)||this.data&&!this.data.length)return new s([]);var r,i,n,a,o=e.field,u=e.skipItemSorting?t:new s(t).sort(o,e.dir||"asc",re).toArray(),l=xe.accessor(o),g=l.get(u[0],o),d={field:o,value:g,items:[]},h=[d];for(n=0,a=u.length;n<a;n++)r=u[n],i=l.get(r,o),y(g,i)||(g=i,d={field:o,value:g,items:[]},h.push(d)),d.items.push(r);return h=this._sortGroups(h,e),new s(h)},_sortForGrouping:function(e,t){var r,i,n=this.data;if(!rt){for(r=0,i=n.length;r<i;r++)n[r].__position=r;for(n=new s(n).sort(e,t,re).toArray(),r=0,i=n.length;r<i;r++)delete n[r].__position;return n}return this.sort(e,t).toArray()},_sortGroups:function(e,t){var r=e;return t&&Fe(t.compare)&&(r=new s(r).order({compare:t.compare},t.dir||Oe).toArray()),r},aggregate:function(e){var t,r,i={},n={};if(e&&e.length)for(t=0,r=this.data.length;t<r;t++)S(i,e,this.data[t],t,r,n);return i}},ae={sum:function(e,t,r){var i=r.get(t);return b(e)?b(i)&&(e+=i):e=i,e},count:function(e){return(e||0)+1},average:function(e,r,i,n,a,s){var o=i.get(r);return s.count===t&&(s.count=0),b(e)?b(o)&&(e+=o):e=o,b(o)&&s.count++,n==a-1&&b(e)&&(e/=s.count),e},max:function(e,t,r){var i=r.get(t);return b(e)||k(e)||(e=i),e<i&&(b(i)||k(i))&&(e=i),e},min:function(e,t,r){var i=r.get(t);return b(e)||k(e)||(e=i),e>i&&(b(i)||k(i))&&(e=i),e}},s.normalizeGroup=_,s.normalizeSort=o,s.process=function(e,r,i){var n,a,u,l,g,d,h,f,c,p,y,S;return r=r||{},n=r.group,a=v(_(n||[])),u=new s(e),l=m(n||[]),g=o(r.sort||[]),d=a?g:l.concat(g),c=r.filterCallback,p=r.filter,y=r.skip,S=r.take,d&&i&&(u=u.sort(d,t,t,i)),p&&(u=u.filter(p),c&&(u=c(u)),f=u.toArray().length),d&&(i||(u=u.sort(d)),n&&(e=u.toArray())),a?(u=u.group(n,e,r),y===t||S===t||r.groupPaging||(u=new s(O(u.toArray())).range(y,S),h=$(l,function(e){return _e({},e,{skipItemSorting:!0})}),u=u.group(h,e,r))):(y!==t&&S!==t&&(u=u.range(y,S)),n&&(u=u.group(n,e,r))),{total:f,data:u.toArray()}},se=Ge.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:function(e){e.success(e.data)},create:function(e){e.success(e.data)},destroy:function(e){e.success(e.data)}}),oe=Ge.extend({init:function(e){var t,r=this;e=r.options=_e({},r.options,e),we(He,function(t,r){typeof e[r]===qe&&(e[r]={url:e[r]})}),r.cache=e.cache?ue.create(e.cache):{find:Pe,add:Pe},t=e.parameterMap,e.submit&&(r.submit=e.submit),Fe(e.push)&&(r.push=e.push),r.push||(r.push=Ue),r.parameterMap=Fe(t)?t:function(e){var r={};return we(e,function(e,i){e in t&&(e=t[e],ve(e)&&(i=e.value(i),e=e.key)),r[e]=i}),r}},options:{parameterMap:Ue},create:function(e){return ke(this.setup(e,De))},read:function(r){var i,n,a,s=this,o=s.cache;r=s.setup(r,ze),i=r.success||Pe,n=r.error||Pe,a=o.find(r.data),a!==t?i(a):(r.success=function(e){o.add(r.data,e),i(e)},e.ajax(r))},update:function(e){return ke(this.setup(e,Ie))},destroy:function(e){return ke(this.setup(e,Te))},setup:function(e,t){e=e||{};var r,i=this,n=i.options[t],a=Fe(n.data)?n.data(e.data):n.data;return e=_e(!0,{},n,e),r=_e(!0,{},a,e.data),e.data=i.parameterMap(r,t),Fe(e.url)&&(e.url=e.url(r)),e}}),ue=Ge.extend({init:function(){this._store={}},add:function(e,r){e!==t&&(this._store[Ve(e)]=r)},find:function(e){return this._store[Ve(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[Ve(e)]}}),ue.create=function(e){var t={inmemory:function(){return new ue}};return ve(e)&&Fe(e.find)?e:e===!0?new ue:t[e]()},le=Ge.extend({init:function(e){var t,r,i,n,a,s,o,u,l,g,d,h,f,c,p=this;e=e||{};for(t in e)r=e[t],p[t]=typeof r===qe?Je(r):r;n=e.modelBase||ee,ve(p.model)&&(p.model=i=n.define(p.model)),a=me(p.data,p),p._dataAccessFunction=a,p.model&&(s=me(p.groups,p),o=me(p.serialize,p),u={},l={},g={},d={},h=!1,i=p.model,i.fields&&(we(i.fields,function(e,t){var r;f=e,ve(t)&&t.field?f=t.field:typeof t===qe&&(f=t),ve(t)&&t.from&&(r=t.from),h=h||r&&r!==e||f!==e,c=r||f,l[e]=c.indexOf(".")!==-1?Je(c,!0):Je(c),g[e]=Je(e),u[r||f]=e,d[e]=r||f}),!e.serialize&&h&&(p.serialize=R(o,i,P,g,u,d))),p._dataAccessFunction=a,p._wrapDataAccessBase=G(i,x,l,u,d),p.data=R(a,i,x,l,u,d),p.groups=R(s,i,F,l,u,d))},errors:function(e){return e?e.errors:null},parse:Ue,data:Ue,total:function(e){return e.length},groups:Ue,aggregates:function(){return{}},serialize:function(e){return e}}),ge=Re.extend({init:function(e){var r,i,n,a=this;e&&(i=e.data),e=a.options=_e({},a.options,e),a._map={},a._prefetch={},a._data=[],a._pristineData=[],a._ranges=[],a._view=[],a._pristineTotal=0,a._destroyed=[],a._pageSize=e.pageSize,a._page=e.page||(e.pageSize?1:t),a._sort=o(e.sort),a._sortFields=u(e.sort),a._filter=g(e.filter),a._group=_(e.group),a._aggregate=e.aggregate,a._total=e.total,a._groupPaging=e.groupPaging,a._groupPaging&&(a._groupsState={}),a._shouldDetachObservableParents=!0,Re.fn.init.call(a),a.transport=de.create(e,i,a),Fe(a.transport.push)&&a.transport.push({pushCreate:me(a._pushCreate,a),pushUpdate:me(a._pushUpdate,a),pushDestroy:me(a._pushDestroy,a)}),null!=e.offlineStorage&&("string"==typeof e.offlineStorage?(n=e.offlineStorage,a._storage={getItem:function(){return JSON.parse(localStorage.getItem(n))},setItem:function(e){localStorage.setItem(n,Ve(a.reader.serialize(e)))}}):a._storage=e.offlineStorage),a.reader=new xe.data.readers[e.schema.type||"json"](e.schema),r=a.reader.model||{},a._detachObservableParents(),a._data=a._observe(a._data),a._online=!0,a.bind(["push",Me,Ae,je,Ee,Be,Le],e)},options:{data:null,schema:{modelBase:ee},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1,inPlaceSort:!1},clone:function(){return this},online:function(r){return r!==t?this._online!=r&&(this._online=r,r)?this.sync():e.Deferred().resolve().promise():this._online},offlineData:function(e){return null==this.options.offlineStorage?null:e!==t?this._storage.setItem(e):this._storage.getItem()||[]},_isServerGrouped:function(){var e=this.group()||[];return this.options.serverGrouping&&e.length},_isServerGroupPaged:function(){return this._isServerGrouped()&&this._groupPaging},_isGroupPaged:function(){var e=this._group||[];return this._groupPaging&&e.length},_pushCreate:function(e){this._push(e,"pushCreate")},_pushUpdate:function(e){this._push(e,"pushUpdate")},_pushDestroy:function(e){this._push(e,"pushDestroy")},_push:function(e,t){var r=this._readData(e);r||(r=e),this[t](r)},_flatData:function(e,t){if(e){if(this._isServerGrouped())return D(e);if(!t)for(var r=0;r<e.length;r++)e.at(r)}return e},parent:Pe,get:function(e){var t,r,i=this._flatData(this._data,this.options.useRanges);for(t=0,r=i.length;t<r;t++)if(i[t].id==e)return i[t]},getByUid:function(e){return this._getByUid(e,this._data)},_getByUid:function(e,t){var r,i,n=this._flatData(t,this.options.useRanges);if(n)for(r=0,i=n.length;r<i;r++)if(n[r].uid==e)return n[r]},indexOf:function(e){return j(this._data,e)},at:function(e){return this._data.at(e)},data:function(e){var r,i=this;if(e===t){if(i._data)for(r=0;r<i._data.length;r++)i._data.at(r);return i._data}i._detachObservableParents(),i._data=this._observe(e),i._pristineData=e.slice(0),i._storeData(),i._ranges=[],i.trigger("reset"),i._addRange(i._data),i._total=i._data.length,i._pristineTotal=i._total,i._process(i._data)},view:function(e){return e===t?this._view:(this._view=this._observeView(e),t)},_observeView:function(e){var t,r=this;return E(e,r._data,r._ranges,r.reader.model||X,r._isServerGrouped()),t=new K(e,r.reader.model),t.parent=function(){return r.parent()},t},flatView:function(){var e=this.group()||[];return e.length?D(this._view):this._view},add:function(e){return this.insert(this._data.length,e)},_createNewModel:function(e){return this.reader.model?new this.reader.model(e):e instanceof X?e:new X(e)},insert:function(e,t){return t||(t=e,e=0),t instanceof ee||(t=this._createNewModel(t)),this._isServerGrouped()?this._data.splice(e,0,this._wrapInEmptyGroup(t)):this._data.splice(e,0,t),this._insertModelInRange(e,t),t},pushInsert:function(t,r){var i,n,a,s,o,u,l=this,g=l._getCurrentRangeSpan();r||(r=t,t=0),Se(r)||(r=[r]),i=[],n=this.options.autoSync,this.options.autoSync=!1;try{for(a=0;a<r.length;a++)s=r[a],o=this.insert(t,s),i.push(o),u=o.toJSON(),this._isServerGrouped()&&(u=this._wrapInEmptyGroup(u)),this._pristineData.push(u),g&&g.length&&e(g).last()[0].pristineData.push(u),t++}finally{this.options.autoSync=n}i.length&&this.trigger("push",{type:"create",items:i})},pushCreate:function(e){this.pushInsert(this._data.length,e)},pushUpdate:function(e){var t,r,i,n,a;for(Se(e)||(e=[e]),t=[],r=0;r<e.length;r++)i=e[r],n=this._createNewModel(i),a=this.get(n.id),a?(t.push(a),a.accept(i),a.trigger(Ae),this._updatePristineForModel(a,i)):this.pushCreate(i);t.length&&this.trigger("push",{type:"update",items:t})},pushDestroy:function(e){var t=this._removeItems(e);t.length&&this.trigger("push",{type:"destroy",items:t})},_removeItems:function(e,r){var i,n,a,s,o,u,l;Se(e)||(e=[e]),i=t===r||r,n=[],a=this.options.autoSync,this.options.autoSync=!1;try{for(s=0;s<e.length;s++)o=e[s],u=this._createNewModel(o),l=!1,this._eachItem(this._data,function(e){var t,r;for(t=0;t<e.length;t++)if(r=e.at(t),r.id===u.id){n.push(r),e.splice(t,1),l=!0;break}}),l&&i&&(this._removePristineForModel(u),this._destroyed.pop())}finally{this.options.autoSync=a}return n},remove:function(e){var t,r=this,i=r._isServerGrouped();return this._eachItem(r._data,function(n){if(t=N(n,e),t&&i)return t.isNew&&t.isNew()||r._destroyed.push(t),!0}),this._removeModelFromRanges(e), e},destroyed:function(){return this._destroyed},created:function(){var e,t,r=[],i=this._flatData(this._data,this.options.useRanges);for(e=0,t=i.length;e<t;e++)i[e].isNew&&i[e].isNew()&&r.push(i[e]);return r},updated:function(){var e,t,r=[],i=this._flatData(this._data,this.options.useRanges);for(e=0,t=i.length;e<t;e++)i[e].isNew&&!i[e].isNew()&&i[e].dirty&&r.push(i[e]);return r},sync:function(){var t,r=this,i=[],n=[],a=r._destroyed,s=e.Deferred().resolve().promise();if(r.online()){if(!r.reader.model)return s;i=r.created(),n=r.updated(),t=[],r.options.batch&&r.transport.submit?t=r._sendSubmit(i,n,a):(t.push.apply(t,r._send("create",i)),t.push.apply(t,r._send("update",n)),t.push.apply(t,r._send("destroy",a))),s=e.when.apply(null,t).then(function(){var e,t;for(e=0,t=arguments.length;e<t;e++)arguments[e]&&r._accept(arguments[e]);r._storeData(!0),r._syncEnd(),r._change({action:"sync"}),r.trigger(Ee),r._isServerGroupPaged()&&r.read()})}else r._storeData(!0),r._syncEnd(),r._change({action:"sync"});return s},_syncEnd:Pe,cancelChanges:function(e){var t=this;e instanceof xe.data.Model?t._cancelModel(e):(t._destroyed=[],t._detachObservableParents(),t._data=t._observe(t._pristineData),t.options.serverPaging&&(t._total=t._pristineTotal),t._ranges=[],t._addRange(t._data,0),t._changesCanceled(),t._change(),t._markOfflineUpdatesAsDirty(),t._isServerGrouped()&&t.read())},_changesCanceled:Pe,_markOfflineUpdatesAsDirty:function(){var e=this;null!=e.options.offlineStorage&&e._eachItem(e._data,function(e){var t,r;for(t=0;t<e.length;t++)r=e.at(t),"update"!=r.__state__&&"create"!=r.__state__||(r.dirty=!0)})},hasChanges:function(){var e,t,r=this._flatData(this._data,this.options.useRanges);if(this._destroyed.length)return!0;for(e=0,t=r.length;e<t;e++)if(r[e].isNew&&r[e].isNew()||r[e].dirty)return!0;return!1},_accept:function(t){var r,i=this,n=t.models,a=t.response,s=0,o=i._isServerGrouped(),u=i._pristineData,l=t.type;if(i.trigger(Be,{response:a,type:l}),a&&!ye(a)){if(a=i.reader.parse(a),i._handleCustomErrors(a))return;a=i.reader.data(a),Se(a)||(a=[a])}else a=e.map(n,function(e){return e.toJSON()});for("destroy"===l&&(i._destroyed=[]),s=0,r=n.length;s<r;s++)"destroy"!==l?(n[s].accept(a[s]),"create"===l?u.push(o?i._wrapInEmptyGroup(n[s].toJSON()):a[s]):"update"===l&&i._updatePristineForModel(n[s],a[s])):i._removePristineForModel(n[s])},_updatePristineForModel:function(e,t){this._executeOnPristineForModel(e,function(e,r){xe.deepExtend(r[e],t)})},_executeOnPristineForModel:function(e,t){this._eachPristineItem(function(r){var i=M(r,e);if(i>-1)return t(i,r),!0})},_removePristineForModel:function(e){this._executeOnPristineForModel(e,function(e,t){t.splice(e,1)})},_readData:function(e){var t=this._isServerGrouped()?this.reader.groups:this.reader.data;return t.call(this.reader,e)},_eachPristineItem:function(e){var t=this,r=t.options,i=t._getCurrentRangeSpan();t._eachItem(t._pristineData,e),r.serverPaging&&r.useRanges&&we(i,function(r,i){t._eachItem(i.pristineData,e)})},_eachItem:function(e,t){e&&e.length&&(this._isServerGrouped()?I(e,t):t(e))},_pristineForModel:function(e){var t,r,i=function(i){if(r=M(i,e),r>-1)return t=i[r],!0};return this._eachPristineItem(i),t},_cancelModel:function(e){var t=this,r=this._pristineForModel(e);this._eachItem(this._data,function(i){var n=j(i,e);n>=0&&(!r||e.isNew()&&!r.__state__?(t._modelCanceled(e),i.splice(n,1),t._removeModelFromRanges(e)):(i[n].accept(r),"update"==r.__state__&&(i[n].dirty=!0)))})},_modelCanceled:Pe,_submit:function(t,r){var i=this;i.trigger(je,{type:"submit"}),i.trigger(Le),i.transport.submit(_e({success:function(r,i){var n=e.grep(t,function(e){return e.type==i})[0];n&&n.resolve({response:r,models:n.models,type:i})},error:function(e,r,n){for(var a=0;a<t.length;a++)t[a].reject(e);i.error(e,r,n)}},r))},_sendSubmit:function(t,r,i){var n=this,a=[];return n.options.batch&&(t.length&&a.push(e.Deferred(function(e){e.type="create",e.models=t})),r.length&&a.push(e.Deferred(function(e){e.type="update",e.models=r})),i.length&&a.push(e.Deferred(function(e){e.type="destroy",e.models=i})),n._submit(a,{data:{created:n.reader.serialize(w(t)),updated:n.reader.serialize(w(r)),destroyed:n.reader.serialize(w(i))}})),a},_promise:function(t,r,i){var n=this;return e.Deferred(function(e){n.trigger(je,{type:i}),n.trigger(Le),n.transport[i].call(n.transport,_e({success:function(t){e.resolve({response:t,models:r,type:i})},error:function(t,r,i){e.reject(t),n.error(t,r,i)}},t))}).promise()},_send:function(e,t){var r,i,n=this,a=[],s=n.reader.serialize(w(t));if(n.options.batch)t.length&&a.push(n._promise({data:{models:s}},t,e));else for(r=0,i=t.length;r<i;r++)a.push(n._promise({data:s[r]},[t[r]],e));return a},read:function(t){var r=this,i=r._params(t),n=e.Deferred();return r._queueRequest(i,function(){var e=r.trigger(je,{type:"read"});e?(r._dequeueRequest(),n.resolve(e)):(r.trigger(Le),r._ranges=[],r.trigger("reset"),r.online()?r.transport.read({data:i,success:function(e){r._ranges=[],r.success(e,i),n.resolve()},error:function(){var e=Ze.call(arguments);r.error.apply(r,e),n.reject.apply(n,e)}}):null!=r.options.offlineStorage&&(r.success(r.offlineData(),i),n.resolve()))}),n.promise()},_readAggregates:function(e){return this.reader.aggregates(e)},success:function(e){var r,i,n,a,s,o,u,l,g,d,h,f=this,c=f.options;if(f.trigger(Be,{response:e,type:"read"}),f.online()){if(e=f.reader.parse(e),f._handleCustomErrors(e))return f._dequeueRequest(),t;f._total=f.reader.total(e),f._isServerGroupPaged()&&(f._serverGroupsTotal=f._total),f._pageSize>f._total&&(f._pageSize=f._total,f.options.pageSize&&f.options.pageSize>f._pageSize&&(f._pageSize=f.options.pageSize)),f._aggregate&&c.serverAggregates&&(f._aggregateResult=f._readAggregates(e)),e=f._readData(e),f._destroyed=[]}else{for(e=f._readData(e),r=[],n={},a=f.reader.model,s=a?a.idField:"id",o=0;o<this._destroyed.length;o++)u=this._destroyed[o][s],n[u]=u;for(o=0;o<e.length;o++)l=e[o],g=l.__state__,"destroy"==g?n[l[s]]||this._destroyed.push(this._createNewModel(l)):r.push(l);e=r,f._total=e.length}if(f._pristineTotal=f._total,i=f._skip&&f._data.length&&f._skip<f._data.length,f.options.endless)for(i&&f._pristineData.splice(f._skip,f._pristineData.length),r=e.slice(0),d=0;d<r.length;d++)f._pristineData.push(r[d]);else f._pristineData=e.slice(0);if(f._detachObservableParents(),f.options.endless){for(f._data.unbind(Ae,f._changeHandler),f._isServerGrouped()&&f._data[f._data.length-1].value===e[0].value&&(q(f._data[f._data.length-1],e[0]),e.shift()),e=f._observe(e),i&&f._data.splice(f._skip,f._data.length),h=0;h<e.length;h++)f._data.push(e[h]);f._data.bind(Ae,f._changeHandler)}else f._data=f._observe(e);f._markOfflineUpdatesAsDirty(),f._storeData(),f._addRange(f._data),f._process(f._data),f._dequeueRequest()},_detachObservableParents:function(){if(this._data&&this._shouldDetachObservableParents)for(var e=0;e<this._data.length;e++)this._data[e].parent&&(this._data[e].parent=Pe)},_storeData:function(e){function t(e){var r,i,n,a=[];for(r=0;r<e.length;r++)i=e.at(r),n=i.toJSON(),s&&i.items?n.items=t(i.items):(n.uid=i.uid,o&&(i.isNew()?n.__state__="create":i.dirty&&(n.__state__="update"))),a.push(n);return a}var r,i,n,a,s=this._isServerGrouped(),o=this.reader.model;if(null!=this.options.offlineStorage){for(r=t(this._data),i=[],n=0;n<this._destroyed.length;n++)a=this._destroyed[n].toJSON(),a.__state__="destroy",i.push(a);this.offlineData(r.concat(i)),e&&(this._pristineData=this.reader.reader?this.reader.reader._wrapDataAccessBase(r):this.reader._wrapDataAccessBase(r))}},_addRange:function(e,r){var i,n=this,a=t!==r?r:n._skip||0,s={data:e,pristineData:e.toJSON(),timestamp:n._timeStamp()};this._isGroupPaged()?(i=a+e.length,s.outerStart=a,s.outerEnd=i):i=a+n._flatData(e,!0).length,s.start=a,s.end=i,n._ranges.push(s),n._sortRanges(),n._isGroupPaged()&&(n._groupsFlat||(n._groupsFlat=[]),n._appendToGroupsFlat(s.data),n._updateOuterRangesLength())},_appendToGroupsFlat:function(e){var t,r=e.length;for(t=0;t<r;t++)this._groupsFlat.push(e[t])},_getGroupByUid:function(e){var t,r,i=this._groupsFlat.length;for(r=0;r<i;r++)if(t=this._groupsFlat[r],t.uid===e)return t},_sortRanges:function(){this._ranges.sort(function(e,t){return e.start-t.start})},error:function(e,t,r){this._dequeueRequest(),this.trigger(Be,{}),this.trigger(Me,{xhr:e,status:t,errorThrown:r})},_params:function(e){var t=this,r=_e({take:t.take(),skip:t.skip(),page:t.page(),pageSize:t.pageSize(),sort:t._sort,filter:t._filter,group:t._group,aggregate:t._aggregate,groupPaging:!!t._groupPaging},e);return t.options.serverPaging||(delete r.take,delete r.skip,delete r.page,delete r.pageSize),t.options.serverGrouping?t.reader.model&&r.group&&(r.group=U(r.group,t.reader.model)):delete r.group,t.options.serverFiltering?t.reader.model&&r.filter&&(r.filter=H(r.filter,t.reader.model)):delete r.filter,t.options.serverSorting?t.reader.model&&r.sort&&(r.sort=U(r.sort,t.reader.model)):delete r.sort,t.options.serverAggregates?t.reader.model&&r.aggregate&&(r.aggregate=U(r.aggregate,t.reader.model)):delete r.aggregate,t.options.groupPaging||delete r.groupPaging,r},_queueRequest:function(e,r){var i=this;i._requestInProgress?i._pending={callback:me(r,i),options:e}:(i._requestInProgress=!0,i._pending=t,r())},_dequeueRequest:function(){var e=this;e._requestInProgress=!1,e._pending&&e._queueRequest(e._pending.options,e._pending.callback)},_handleCustomErrors:function(e){if(this.reader.errors){var t=this.reader.errors(e);if(t)return this.trigger(Me,{xhr:null,status:"customerror",errorThrown:"custom error",errors:t}),!0}return!1},_shouldWrap:function(e){var t=this.reader.model;return!(!t||!e.length)&&!(e[0]instanceof t)},_observe:function(e){var t,r=this,i=r.reader.model;return r._shouldDetachObservableParents=!0,e instanceof at?(r._shouldDetachObservableParents=!1,r._shouldWrap(e)&&(e.type=r.reader.model,e.wrapAll(e,e))):(t=r.pageSize()&&!r.options.serverPaging?K:at,e=new t(e,r.reader.model),e.parent=function(){return r.parent()}),r._isServerGrouped()&&z(e,i),!(r._changeHandler&&r._data&&r._data instanceof at)||r.options.useRanges&&r.options.serverPaging?r._changeHandler=me(r._change,r):r._data.unbind(Ae,r._changeHandler),e.bind(Ae,r._changeHandler)},_updateTotalForAction:function(e,t){var r=this,i=parseInt(r._total,10);b(r._total)||(i=parseInt(r._pristineTotal,10)),"add"===e?i+=t.length:"remove"===e?i-=t.length:"itemchange"===e||"sync"===e||r.options.serverPaging?"sync"===e&&(i=r._pristineTotal=parseInt(r._total,10)):i=r._pristineTotal,r._total=i},_change:function(e){var t,r,i,n=this,a=e?e.action:"";if("remove"===a)for(t=0,r=e.items.length;t<r;t++)e.items[t].isNew&&e.items[t].isNew()||n._destroyed.push(e.items[t]);!n.options.autoSync||"add"!==a&&"remove"!==a&&"itemchange"!==a?(n._updateTotalForAction(a,e?e.items:[]),n._process(n._data,e)):(i=function(t){"sync"===t.action&&(n.unbind("change",i),n._updateTotalForAction(a,e.items))},n.first("change",i),n.sync())},_calculateAggregates:function(e,t){t=t||{};var r=new s(e),i=t.aggregate,n=t.filter;return n&&(r=r.filter(n)),r.aggregate(i)},_process:function(e,r){var i,n=this,a={};n.options.serverPaging!==!0&&(a.skip=n._skip,a.take=n._take||n._pageSize,a.skip===t&&n._page!==t&&n._pageSize!==t&&(a.skip=(n._page-1)*n._pageSize),n.options.useRanges&&(a.skip=n.currentRangeStart())),n.options.serverSorting!==!0&&(a.sort=n._sort),n.options.serverFiltering!==!0&&(a.filter=n._filter),n.options.serverGrouping!==!0&&(a.group=n._group),n.options.serverAggregates!==!0&&(a.aggregate=n._aggregate),n.options.serverGrouping&&n._clearEmptyGroups(e),a.groupPaging=n._groupPaging,i=n._isGroupPaged()&&r&&("page"===r.action||"expandGroup"===r.action||"collapseGroup"===r.action)?n._queryProcess(e,{aggregate:n._aggregate}):n._queryProcess(e,a),n.options.serverAggregates!==!0&&(n._aggregateResult=n._calculateAggregates(i.dataToAggregate||e,a)),n._setView(i,a,r),n._setFilterTotal(i.total,!1),r=r||{},r.items=r.items||n._view,n.trigger(Ae,r)},_setView:function(e,t,r){var i,n=this;n._isGroupPaged()&&!n._isServerGrouped()?!r||"page"!==r.action&&"expandGroup"!==r.action&&"collapseGroup"!==r.action?(n._ranges=[],i=new s(e.data),n._addRange(n._observe(e.data)),t.skip+t.take>e.data.length&&(t.skip=e.data.length-t.take),n.view(i.range(t.skip,t.take).toArray())):(n.view(e.data),n._updateOuterRangesLength()):n.view(e.data)},_clearEmptyGroups:function(e){var t,r;for(t=e.length-1;t>=0;t--)r=e[t],r.hasSubgroups?this._clearEmptyGroups(r.items):r.items&&!r.items.length&&Xe.apply(r.parent(),[t,1])},_queryProcess:function(e,t){return this.options.inPlaceSort?s.process(e,t,this.options.inPlaceSort):s.process(e,t)},_mergeState:function(r){var i=this;return r!==t&&(i._pageSize=r.pageSize,i._page=r.page,i._sort=r.sort,i._filter=r.filter,i._group=r.group,i._aggregate=r.aggregate,i._skip=i._currentRangeStart=r.skip,i._take=r.take,i._skip===t&&(i._skip=i._currentRangeStart=i.skip(),r.skip=i.skip()),i._take===t&&i._pageSize!==t&&(i._take=i._pageSize,r.take=i._take),r.sort&&(i._sort=r.sort=o(r.sort),i._sortFields=u(r.sort)),r.filter&&(i._filter=r.filter=i.options.accentFoldingFiltering&&!e.isEmptyObject(r.filter)?e.extend({},g(r.filter),{accentFoldingFiltering:i.options.accentFoldingFiltering}):g(r.filter)),r.group&&(i._group=r.group=_(r.group)),r.aggregate&&(i._aggregate=r.aggregate=p(r.aggregate))),r},query:function(r){var i,n,a,s=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates;return s||(this._data===t||0===this._data.length)&&!this._destroyed.length?(this.options.endless&&(n=r.pageSize-this.pageSize(),n>0?(n=this.pageSize(),r.page=r.pageSize/n,r.pageSize=n):(r.page=1,this.options.endless=!1)),this.read(this._mergeState(r))):(a=this.trigger(je,{type:"read"}),a||(this.trigger(Le),r&&(r.groupPaging=this._groupPaging),i=this._queryProcess(this._data,this._mergeState(r)),this._setFilterTotal(i.total,!0),this._aggregateResult=this._calculateAggregates(i.dataToAggregate||this._data,r),this._setView(i,r),this.trigger(Be,{type:"read"}),this.trigger(Ae,{items:i.data,action:r?r.action:""})),e.Deferred().resolve(a).promise())},_hasExpandedSubGroups:function(e){var t,r=!1,i=e.items?e.items.length:0;if(!e.hasSubgroups)return!1;for(t=0;t<i;t++)if(this._groupsState[e.items[t].uid]){r=!0;break}return r},_findGroupedRange:function(e,r,i,n,a){var s,o,u,l,g,d,h,f=this,c=e.length;for(d=0;d<c&&(s=e[d],!(i.taken>=i.take));d++)if(f._getGroupByUid(s.uid)||f._groupsFlat.push(s),f._groupsState[s.uid]){if(f._isServerGroupPaged()){if(f._fetchGroupItems(s,i,n,a))return f._fetchingGroupItems=!0,t;if(l=(s.subgroupCount||s.itemCount)+1,g=i.skip-i.skipped,!f._hasExpandedSubGroups(s)&&g>l){i.skipped+=l;continue}}if(i.includeParents&&i.skipped<i.skip?(i.skipped++,s.excludeHeader=!0):i.includeParents&&(i.taken++,s.excludeHeader=!1),s.hasSubgroups&&s.items&&s.items.length)s.currentItems=[],n||(n=[]),n.push(s),f._findGroupedRange(s.items,s.currentItems,i,n,a),n.pop(),s.currentItems.length||i.taken>0?r.push(s):s.excludeHeader=!1;else{for(o=[],u=s.items.length,h=0;h<u;h++)if(i.skipped<i.skip)i.skipped++;else{if(i.taken>=i.take)break;o.push(s.items[h]),i.taken++}o.length||i.taken>0?(s.currentItems=o,r.push(s)):s.excludeHeader=!1}}else{if(i.skipped<i.skip){i.skipped++;continue}r.push(s),i.taken++}},_expandedSubGroupItemsCount:function(e,t,r){var i,n,a,s=this,o=0,u="number"==typeof t,l=u?t:e.subgroupCount;if(!e.hasSubgroups)return o;for(a=0;a<l&&(i=e.items[a],i);a++)if(i.hasSubgroups&&s._groupsState[e.uid]?(n=s._expandedSubGroupItemsCount(i,l,!0),o+=n,u&&(l-=n)):!i.hasSubgroups&&s._groupsState[i.uid]&&(n=i.items?i.items.length:0,o+=n,u&&(l-=n)),r&&(o+=1,u&&(l-=1)),u&&o>l)return o;return o},_fetchGroupItems:function(e,r,i,n){var a,s,o,u,l=this,g=e.hasSubgroups?e.subgroupCount:e.itemCount,d=r.take,h=r.skipped,f=l.take();return r.includeParents&&(h<r.skip?h+=1:d-=1),!e.items||e.items&&!e.items.length?(l.getGroupItems(e,r,i,n,0),!0):(u=this._expandedSubGroupItemsCount(e,r.skip-h),a=Math.max(r.skip-(h+u),0),!(a>=g)&&(s=e.items[a],o=e.items[Math.min(a+d,g-1)],s.notFetched?(l.getGroupItems(e,r,i,n,Qe.max(Qe.floor(a/f),0)*f),!0):o.notFetched?(l.getGroupItems(e,r,i,n,Qe.max(Qe.floor((a+f)/f),0)*f),!0):t))},getGroupItems:function(e,t,r,i,n){var a,s,o,u,l=this;e.items||(e.items=[]),a=l.take(),s=this._composeItemsFilter(e,r),o={page:Qe.floor((n||0)/(a||1))||1,pageSize:a,skip:n,take:a,filter:s,aggregate:l._aggregate,sort:l._sort},u=l.findSubgroups(e),u&&u.length&&(o.group=u,o.groupPaging=!0),clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._queueRequest(o,function(){l.trigger(je,{type:"read"})?l._dequeueRequest():l.transport.read({data:o,success:l._groupItemsSuccessHandler(e,t.skip,l.take(),i,n),error:function(){var e=Ze.call(arguments);l.error.apply(l,e)}})})},100)},_groupItemsSuccessHandler:function(e,t,r,i,n){var a,s=this,o=s._timeStamp();return i=Fe(i)?i:Pe,a=s.options.schema&&s.options.schema.total?s.options.schema.total:"Total",function(u){var l,g,d,h=ee.define(s.options.schema.model);for(s._dequeueRequest(),s.trigger(Be,{response:u,type:"read"}),g=Fe(a)?a(u):u[a],u=s.reader.parse(u),e.hasSubgroups?(l=s.reader.groups(u),e.subgroupCount=g):(l=s.reader.data(u),l=l.map(function(e){return new h(e)})),e.items.omitChangeEvent=!0,d=0;d<g;d++)d>=n&&d<n+r?e.items.splice(d,1,l[d-n]):e.items[d]||e.items.splice(d,0,{notFetched:!0});e.items.omitChangeEvent=!1,s._updateRangePristineData(e),s._fetchingGroupItems=!1,e.countAdded||(s._serverGroupsTotal+=g,e.countAdded=!0),s.range(t,r,i,"expandGroup"),(o>=s._currentRequestTimeStamp||!s._skipRequestsInProgress)&&s.trigger(Ae,{})}},findSubgroups:function(e){var t=this._group.map(function(e){return e.field}).indexOf(e.field);return this._group.slice(t+1,this._group.length)},_composeItemsFilter:function(e,t){var r,i=this.filter()||{logic:"and",filters:[]};if(i=_e(!0,{},i),i.filters.push({field:e.field,operator:"eq",value:e.value}),t)for(r=0;r<t.length;r++)i.filters.push({field:t[r].field,operator:"eq",value:t[r].value});return i},_updateRangePristineData:function(e){var t,r,i,n,a,s,o,u,l=this,g=l._ranges,d=g.length;for(o=0;o<d;o++){for(i=g[o],n=i.data.length,a=[],t=null,u=0;u<n&&(r=i.data[u],a.push(u),!(r.uid===e.uid||r.hasSubgroups&&r.items.length&&l._containsSubGroup(r,e,a)));u++)a.pop();if(a.length){for(t=g[o].pristineData;a.length>1;)s=a.splice(0,1)[0],t=t[s].items;t[a[0]]=l._cloneGroup(e);break}}},_containsSubGroup:function(e,t,r){var i,n,a=this,s=e.items.length;if(e.hasSubgroups&&s)for(n=0;n<s;n++){if(i=e.items[n],r.push(n),i.uid===t.uid)return!0;if(i.hasSubgroups&&i.items.length)return a._containsSubGroup(i,t,r);r.pop()}},_cloneGroup:function(e){var t=this;return e="function"==typeof e.toJSON?e.toJSON():e,e.items&&e.items.length&&(e.items=e.items.map(function(e){return t._cloneGroup(e)})),e},_setFilterTotal:function(e,r){var i=this;i.options.serverFiltering||(e!==t?i._total=e:r&&(i._total=i._data.length))},fetch:function(e){var t=this,r=function(r){r!==!0&&Fe(e)&&e.call(t)};return this._query().done(r)},_query:function(e){var t=this;return t.query(_e({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate()},e))},next:function(e){var t=this,r=t.page(),i=t.total();if(e=e||{},r&&!(i&&r+1>t.totalPages()))return t._skip=t._currentRangeStart=r*t.take(),r+=1,e.page=r,t._query(e),r},prev:function(e){var t=this,r=t.page();if(e=e||{},r&&1!==r)return t._skip=t._currentRangeStart=t._skip-t.take(),r-=1,e.page=r,t._query(e),r},page:function(e){var r,i,n=this;return e!==t?(e=Qe.max(Qe.min(Qe.max(e,1),n.totalPages()),1),i=n.take(),n._isGroupPaged()?(e-=1,n.range(e*i,i,null,"page"),t):(n._query(n._pageableQueryOptions({page:e})),t)):(r=n.skip(),r!==t?Qe.round((r||0)/(n.take()||1))+1:t)},pageSize:function(e){var r=this;return e!==t?(r._query(r._pageableQueryOptions({pageSize:e,page:1})),t):r.take()},sort:function(e){var r=this;return e!==t?(r.trigger("sort"),r._query({sort:e}),t):r._sort},filter:function(e){var r=this;return e===t?r._filter:(r.trigger("reset"),r._query({filter:e,page:1}),t)},group:function(e){var r=this,i={group:e};return r._groupPaging&&(i.page=1),e!==t?(r._query(i),t):r._group},getGroupsFlat:function(e){var t,r,i,n=[];for(t=0,r=e.length;t<r;t++)i=e[t],i.hasSubgroups&&(n=n.concat(this.getGroupsFlat(i.items))),n.push(i);return n},total:function(){return parseInt(this._total||0,10)},groupsTotal:function(e){var t=this;return t._group.length?t._isServerGrouped()?t._serverGroupsTotal?t._serverGroupsTotal:t._serverGroupsTotal=t.total():t._calculateGroupsTotal(t._ranges.length?t._ranges[0].data:[],e):t.total()},_calculateGroupsTotal:function(e,t,r,i){var n,a,s,o=this;if(r=r||"items",o._group.length&&e){for(n=0,a=e.length,s=0;s<a;s++)n+=o.groupCount(e[s],t,r,i);return o._groupsTotal=n,n}return o._groupsTotal=o._data.length},groupCount:function(e,t,r,i){var n=this,a=0;return e.hasSubgroups&&n._groupsState[e.uid]?((t&&!e.excludeHeader||i)&&(a+=1),e[r].forEach(function(e){a+=n.groupCount(e,t,r,i)})):n._groupsState[e.uid]?((t&&!e.excludeHeader||i)&&a++,a+=e[r]?e[r].length:0):a++,a},countGroupRange:function(e){var t,r=0,i=e.length;for(t=0;t<i;t++)r+=this.groupCount(e[t],!0);return r},aggregate:function(e){var r=this;return e!==t?(r._query({aggregate:e}),t):r._aggregate},aggregates:function(){var e=this._aggregateResult;return ye(e)&&(e=this._emptyAggregates(this.aggregate())),e},_emptyAggregates:function(e){var t,r,i={};if(!ye(e))for(t={},Se(e)||(e=[e]),r=0;r<e.length;r++)t[e[r].aggregate]=0,i[e[r].field]=t;return i},_pageableQueryOptions:function(e){return e},_wrapInEmptyGroup:function(e){var t,r,i,n,a=this.group();for(i=a.length-1,n=0;i>=n;i--)r=a[i],t={value:e.get?e.get(r.field):e[r.field],field:r.field,items:t?[t]:[e],hasSubgroups:!!t,aggregates:this._emptyAggregates(r.aggregates)};return t},totalPages:function(){var e=this,t=e.pageSize()||e.total(),r=e._isGroupPaged()?e.groupsTotal(!0):e.total();return Qe.ceil((r||0)/t)},inRange:function(e,t){var r=this,i=Qe.min(e+t,r.total());return!r.options.serverPaging&&r._data.length>0||r._findRange(e,i).length>0},lastRange:function(){var e=this._ranges;return e[e.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var e=this._ranges;return e.length&&e[0].data.length&&e[0].data[0].uid},enableRequestsInProgress:function(){this._skipRequestsInProgress=!1},_timeStamp:function(){return(new Date).getTime()},range:function(e,r,i,n){var a,s,o,u,l;return this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0,a=this._isGroupPaged()?this.groupsTotal(!0):this.total(),"expandGroup"!==n&&"collapseGroup"!==n||this._updateOuterRangesLength(),e=Qe.min(e||0,a),i=Fe(i)?i:Pe,s=this,o=Qe.max(Qe.floor(e/r),0)*r,u=Qe.min(o+r,a),l=s._findRange(e,Qe.min(e+r,a),i),!l.length&&0!==a||s._fetchingGroupItems?(s._isGroupPaged()&&(s._originalPageSkip=o,s._originalSize=u,o=Qe.max(Qe.floor(s._adjustPageSkip(e,r)/r),0)*r,u=Qe.min(o+r,a)),r===t||s._fetchingGroupItems||(s._isGroupPaged()&&!s._groupRangeExists(o,r)||!s._rangeExists(o,u)?s.prefetch(o,r,function(){e>o&&u<s.total()&&!s._rangeExists(u,Qe.min(u+r,s.total()))?s.prefetch(u,r,function(){s.range(e,r,i)}):s.range(e,r,i)}):o<e&&s.prefetch(u,r,function(){s.range(e,r,i)})),t):(s._processRangeData(l,e,r,s._originalPageSkip||o,s._originalSize||u,{action:n}),s._originalPageSkip=null,s._originalSize=null,i(),t)},_findRange:function(e,r,i){var n,a,s,u,l,g,d,h,f,c,p,_,v,y,S=this,b=S._ranges,k=[],w=S.options,P=w.serverSorting||w.serverPaging||w.serverFiltering||w.serverGrouping||w.serverAggregates,x={take:r-e,skip:e,skipped:0,taken:0,includeParents:!0},F=S._isGroupPaged(),R=F?"outerStart":"start",G=F?"outerEnd":"end";for(a=0,p=b.length;a<p;a++){if(n=b[a],F){if(n.outerStart>=r)return[];if(e>n.outerEnd){x.skipped+=n.outerEnd-(_||0),_=n.outerEnd;continue}if(t!==_&&_!=n.outerStart&&(x.skipped+=n.outerStart-_),x.skipped>x.skip)return[];for(t===_&&e>0&&n.start>0&&(x.skipped=n.outerStart),s=a;;){if(this._findGroupedRange(n.data,k,x,null,i),v=S._calculateGroupsTotal(k,!0,"currentItems"),v>=x.take)return k;if(S._fetchingGroupItems)return[];if(s++,!b[s]||b[s].outerStart!==n.outerEnd)break;n=b[s]}}else if(e>=n[R]&&e<=n[G]){for(c=0,s=a;s<p;s++)if(n=b[s],f=S._flatData(n.data,!0),f.length&&e+c>=n.start&&(g=n.data,d=n.end,P||(w.inPlaceSort?h=S._queryProcess(n.data,{filter:S.filter()}):(y=m(S.group()||[]).concat(o(S.sort()||[])),h=S._queryProcess(n.data,{sort:y,filter:S.filter()})),f=g=h.data,h.total!==t&&(d=h.total)),u=0,e+c>n.start&&(u=e+c-n.start),l=f.length,d>r&&(l-=d-r),c+=l-u,k=S._mergeGroups(k,g,u,l),r<=n.end&&c==r-e))return k;break}_=n.outerEnd}return[]},_getRangesMismatch:function(e){for(var t,r=this,i=r._ranges,n=0,a=0;;){if(t=i[a],!t||t.outerStart>e)break;t.outerEnd!=t.end&&(n=t.outerEnd-t.end),a++}return n},_mergeGroups:function(e,t,r,i){if(this._isServerGrouped()){var n,a=t.toJSON();return e.length&&(n=e[e.length-1]),C(n,a,r,i),e.concat(a)}return e.concat(t.slice(r,i))},_processRangeData:function(e,r,i,n,a,s){var o,u,l,g,d=this;d._pending=t,d._skip=r>d.skip()&&!d._omitPrefetch?Qe.min(a,(d.totalPages()-1)*d.take()):n,d._currentRangeStart=r,d._take=i,o=d.options.serverPaging,u=d.options.serverSorting,l=d.options.serverFiltering,g=d.options.serverAggregates;try{d.options.serverPaging=!0,d._isServerGrouped()||d.group()&&d.group().length||(d.options.serverSorting=!0),d.options.serverFiltering=!0,d.options.serverPaging=!0,d.options.serverAggregates=!0,o&&(d._detachObservableParents(),d._data=e=d._observe(e)),d._process(e,s)}finally{d.options.serverPaging=o,d.options.serverSorting=u,d.options.serverFiltering=l,d.options.serverAggregates=g}},skip:function(){var e=this;return e._skip===t?e._page!==t?(e._page-1)*(e.take()||1):t:e._skip},currentRangeStart:function(){return this._currentRangeStart||0},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(e,t,r,i){var n=this,a=n._timeStamp();return function(s){var o,u,l,g=!1,d={start:e,end:t,data:[],timestamp:n._timeStamp()};if(n._dequeueRequest(),n.trigger(Be,{response:s,type:"read"}),s=n.reader.parse(s),l=n._readData(s),l.length){for(o=0,u=n._ranges.length;o<u;o++)if(n._ranges[o].start===e){g=!0,d=n._ranges[o],n._isGroupPaged()||(d.pristineData=l,d.data=n._observe(l),d.end=d.start+n._flatData(d.data,!0).length,n._sortRanges());break}g||n._addRange(n._observe(l),e)}n._total=n.reader.total(s),(i||a>=n._currentRequestTimeStamp||!n._skipRequestsInProgress)&&(r&&l.length?r():n.trigger(Ae,{}))}},prefetch:function(e,r,i){var n=this,a=Qe.min(e+r,n.total()),s={take:r,skip:e,page:e/r+1,pageSize:r,sort:n._sort,filter:n._filter,group:n._group,aggregate:n._aggregate};return n._isGroupPaged()&&!n._isServerGrouped()&&n._groupRangeExists(e,a)?(i&&i(),t):(n._isServerGroupPaged()&&!n._groupRangeExists(e,a)||!n._rangeExists(e,a)?(clearTimeout(n._timeout),n._timeout=setTimeout(function(){n._queueRequest(s,function(){n.trigger(je,{type:"read"})?n._dequeueRequest():(n._omitPrefetch&&n.trigger(Le),n.transport.read({data:n._params(s),success:n._prefetchSuccessHandler(e,a,i),error:function(){var e=Ze.call(arguments);n.error.apply(n,e)}}))})},100)):i&&i(),t)},_multiplePrefetch:function(e,t,r){var i=this,n=Qe.min(e+t,i.total()),a={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,n)?r&&r():i.trigger(je,{type:"read"})||i.transport.read({data:i._params(a),success:i._prefetchSuccessHandler(e,n,r,!0)})},_adjustPageSkip:function(e,t){var r,i,n=this,a=n._getPrevRange(e),s=n.total();if(a){if(i=n._getRangesMismatch(e),!i)return e;e-=i}if(r=Qe.max(Qe.floor(e/t),0)*t,r>s)for(;;)if(r-=t,r<s)break;return r},_getNextRange:function(e){var t,r,i=this,n=i._ranges;for(t=0,r=n.length;t<r;t++)if(n[t].start<=e&&n[t].end>=e)return n[t]},_getPrevRange:function(e){var t,r,i=this,n=i._ranges,a=n.length;for(t=a-1;t>=0;t--)if(n[t].outerStart<=e){r=n[t];break}return r},_rangeExists:function(e,t){var r,i,n=this,a=n._ranges;for(r=0,i=a.length;r<i;r++)if(a[r].start<=e&&a[r].end>=t)return!0;return!1},_groupRangeExists:function(e,t){var r,i,n,a=this,s=a._ranges,o=0,u=a.groupsTotal(!0);for(t>u&&!a._isServerGrouped()&&(t=u),r=0,i=s.length;r<i;r++)n=s[r],n.outerStart<=e&&n.outerEnd>=e?o+=n.outerEnd-e:n.outerStart<=t&&n.outerEnd>=t&&(o+=t-n.outerStart);return o>=t-e},_getCurrentRangeSpan:function(){var e,t,r=this,i=r._ranges,n=r.currentRangeStart(),a=n+(r.take()||0),s=[],o=i.length;for(t=0;t<o;t++)e=i[t],(e.start<=n&&e.end>=n||e.start>=n&&e.start<=a)&&s.push(e);return s},_removeModelFromRanges:function(e){var t,r,i,n=this;for(r=0,i=this._ranges.length;r<i;r++)t=this._ranges[r],n._removeModelFromRange(t,e);n._updateRangesLength()},_removeModelFromRange:function(e,t){this._eachItem(e.data,function(e){var r,i;if(e)for(r=0;r<e.length;r++)if(i=e[r],i.uid&&i.uid==t.uid){[].splice.call(e,r,1);break}})},_insertModelInRange:function(e,t){var r,i,n=this,a=n._ranges||[],s=a.length;for(i=0;i<s;i++)if(r=a[i],r.start<=e&&r.end>=e){n._getByUid(t.uid,r.data)||(n._isServerGrouped()?r.data.splice(e,0,n._wrapInEmptyGroup(t)):r.data.splice(e,0,t));break}n._updateRangesLength()},_updateRangesLength:function(){var e,t,r,i=this,n=i._ranges||[],a=n.length,s=!1,o=0,u=0;for(r=0;r<a;r++)t=n[r],e=i._isGroupPaged()?t.data.length:i._flatData(t.data,!0).length,u=e-Qe.abs(t.end-t.start),s||0===u?s&&(t.start+=o,t.end+=o):(s=!0,o=u,t.end+=o)},_updateOuterRangesLength:function(){var e,t,r,i,n=this,a=n._ranges||[],s=a.length,o=0;for(t=0;t<s;t++)e=a[t],i=n._isGroupPaged()?n._calculateGroupsTotal(e.data,!0,"items",!0):n._flatData(e.data,!0).length,r?(r.end!=e.start&&(o=e.start-r.end),e.outerStart=r.outerEnd+o,o=0):e.outerStart=e.start,e.outerEnd=e.outerStart+i,r=e}}),de={},de.create=function(t,r,i){var n,a=t.transport?e.extend({},t.transport):null;return a?(a.read=typeof a.read===qe?{url:a.read}:a.read,"jsdo"===t.type&&(a.dataSource=i),t.type&&(xe.data.transports=xe.data.transports||{},xe.data.schemas=xe.data.schemas||{},xe.data.transports[t.type]?ve(xe.data.transports[t.type])?a=_e(!0,{},xe.data.transports[t.type],a):n=new xe.data.transports[t.type](_e(a,{data:r})):xe.logToConsole("Unknown DataSource transport type '"+t.type+"'.\nVerify that registration scripts for this type are included after Kendo UI on the page.","warn"),t.schema=_e(!0,{},xe.data.schemas[t.type],t.schema)),n||(n=Fe(a.read)?a:new oe(a))):n=new se({data:t.data||[]}),n},ge.create=function(e){(Se(e)||e instanceof at)&&(e={data:e});var r,i,n,a=e||{},s=a.data,o=a.fields,u=a.table,l=a.select,g={};if(s||!o||a.transport||(u?s=V(u,o):l&&(s=J(l,o),a.group===t&&s[0]&&s[0].optgroup!==t&&(a.group="optgroup"))),xe.data.Model&&o&&(!a.schema||!a.schema.model)){for(r=0,i=o.length;r<i;r++)n=o[r],n.type&&(g[n.field]=n);ye(g)||(a.schema=_e(!0,a.schema,{model:{fields:g}}))}return a.data=s,l=null,a.select=null,u=null,a.table=null,a instanceof ge?a:new ge(a)},he=ee.define({idField:"id",init:function(e){var t,r=this,i=r.hasChildren||e&&e.hasChildren,n="items",a={};xe.data.Model.fn.init.call(r,e),typeof r.children===qe&&(n=r.children),a={schema:{data:n,model:{hasChildren:i,id:r.idField,fields:r.fields}}},typeof r.children!==qe&&_e(a,r.children),a.data=e,i||(i=a.schema.data),typeof i===qe&&(i=xe.getter(i)),Fe(i)&&(t=i.call(r,r),r.hasChildren=(!t||0!==t.length)&&!!t),r._childrenOptions=a,r.hasChildren&&r._initChildren(),r._loaded=!(!e||!e._loaded)},_initChildren:function(){var e,t,r,i=this;i.children instanceof fe||(e=i.children=new fe(i._childrenOptions),t=e.transport,r=t.parameterMap,t.parameterMap=function(e,t){return e[i.idField||"id"]=i.id,r&&(e=r.call(i,e,t)),e},e.parent=function(){return i},e.bind(Ae,function(e){e.node=e.node||i,i.trigger(Ae,e)}),e.bind(Me,function(e){var t=i.parent();t&&(e.node=e.node||i,t.trigger(Me,e))}),i._updateChildrenField())},append:function(e){this._initChildren(),this.loaded(!0),this.children.add(e)},hasChildren:!1,level:function(){for(var e=this.parentNode(),t=0;e&&e.parentNode;)t++,e=e.parentNode?e.parentNode():null;return t},_updateChildrenField:function(){var e=this._childrenOptions.schema.data;this[e||"items"]=this.children.data(); },_childrenLoaded:function(){this._loaded=!0,this._updateChildrenField()},load:function(){var r,i,n={},a="_query";return this.hasChildren?(this._initChildren(),r=this.children,n[this.idField||"id"]=this.id,this._loaded||(r._data=t,a="read"),r.one(Ae,me(this._childrenLoaded,this)),this._matchFilter&&(n.filter={field:"_matchFilter",operator:"eq",value:!0}),i=r[a](n)):this.loaded(!0),i||e.Deferred().resolve().promise()},parentNode:function(){var e=this.parent();return e.parent()},loaded:function(e){return e===t?this._loaded:(this._loaded=e,t)},shouldSerialize:function(e){return ee.fn.shouldSerialize.call(this,e)&&"children"!==e&&"_loaded"!==e&&"hasChildren"!==e&&"_childrenOptions"!==e}}),fe=ge.extend({init:function(e){var t=he.define({children:e});e.filter&&!e.serverFiltering&&(this._hierarchicalFilter=e.filter,e.filter=null),ge.fn.init.call(this,_e(!0,{},{schema:{modelBase:t,model:t}},e)),this._attachBubbleHandlers()},_attachBubbleHandlers:function(){var e=this;e._data.bind(Me,function(t){e.trigger(Me,t)})},read:function(e){var t=ge.fn.read.call(this,e);return this._hierarchicalFilter&&(this._data&&this._data.length>0?this.filter(this._hierarchicalFilter):(this.options.filter=this._hierarchicalFilter,this._filter=g(this.options.filter),this._hierarchicalFilter=null)),t},remove:function(e){var t,r=e.parentNode(),i=this;return r&&r._initChildren&&(i=r.children),t=ge.fn.remove.call(i,e),r&&!i.data().length&&(r.hasChildren=!1),t},success:Q("success"),data:Q("data"),insert:function(e,t){var r=this.parent();return r&&r._initChildren&&(r.hasChildren=!0,r._initChildren()),ge.fn.insert.call(this,e,t)},filter:function(e){return e===t?this._filter:(!this.options.serverFiltering&&this._markHierarchicalQuery(e)&&(e={logic:"or",filters:[e,{field:"_matchFilter",operator:"equals",value:!0}]}),this.trigger("reset"),this._query({filter:e,page:1}),t)},_markHierarchicalQuery:function(t){var r,i,n,a,o,u=this.options.accentFoldingFiltering;return t=u?e.extend({},g(t),{accentFoldingFiltering:u}):g(t),t&&0!==t.filters.length?(r=s.filterExpr(t),n=r.fields,a=r.operators,i=o=Function("d, __f, __o","return "+r.expression),(n.length||a.length)&&(o=function(e){return i(e,n,a)}),this._updateHierarchicalFilter(o),!0):(this._updateHierarchicalFilter(function(){return!0}),!1)},_updateHierarchicalFilter:function(e){var t,r,i=this._data,n=!1;for(r=0;r<i.length;r++)t=i[r],t.hasChildren?(t._matchFilter=t.children._updateHierarchicalFilter(e),t._matchFilter||(t._matchFilter=e(t))):t._matchFilter=e(t),t._matchFilter&&(n=!0);return n},_find:function(e,t){var r,i,n,a,s=this._data;if(s){if(n=ge.fn[e].call(this,t))return n;for(s=this._flatData(this._data),r=0,i=s.length;r<i;r++)if(a=s[r].children,a instanceof fe&&(n=a[e](t)))return n}},get:function(e){return this._find("get",e)},getByUid:function(e){return this._find("getByUid",e)}}),fe.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},r=t.data,i=t.fields,n=t.list;return r&&r._dataSource?r._dataSource:(r||!i||t.transport||n&&(r=W(n,i)),t.data=r,t instanceof fe?t:new fe(t))},ce=xe.Observable.extend({init:function(e,t,r){xe.Observable.fn.init.call(this),this._prefetching=!1,this.dataSource=e,this.prefetch=!r;var i=this;e.bind("change",function(){i._change()}),e.bind("reset",function(){i._reset()}),this._syncWithDataSource(),this.setViewSize(t)},setViewSize:function(e){this.viewSize=e,this._recalculate()},at:function(e){var r=this.pageSize,i=!0;return e>=this.total()?(this.trigger("endreached",{index:e}),null):this.useRanges?this.useRanges?((e<this.dataOffset||e>=this.skip+r)&&(i=this.range(Math.floor(e/r)*r)),e===this.prefetchThreshold&&this._prefetch(),e===this.midPageThreshold?this.range(this.nextMidRange,!0):e===this.nextPageThreshold?this.range(this.nextFullRange):e===this.pullBackThreshold&&this.range(this.offset===this.skip?this.previousMidRange:this.previousFullRange),i?this.dataSource.at(e-this.dataOffset):(this.trigger("endreached",{index:e}),null)):t:this.dataSource.view()[e]},indexOf:function(e){return this.dataSource.data().indexOf(e)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var e=this,t=e.pageSize,r=e.skip-e.viewSize+t,i=Qe.max(Qe.floor(r/t),0)*t;this.offset=r,this.dataSource.prefetch(i,t,function(){e._goToRange(r,!0)})},range:function(e,t){if(this.offset===e)return!0;var r=this,i=this.pageSize,n=Qe.max(Qe.floor(e/i),0)*i,a=this.dataSource;return t&&(n+=i),a.inRange(e,i)?(this.offset=e,this._recalculate(),this._goToRange(e),!0):!this.prefetch||(a.prefetch(n,i,function(){r.offset=e,r._recalculate(),r._goToRange(e,!0)}),!1)},syncDataSource:function(){var e=this.offset;this.offset=null,this.range(e)},destroy:function(){this.unbind()},_prefetch:function(){var e=this,t=this.pageSize,r=this.skip+t,i=this.dataSource;i.inRange(r,t)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger("prefetching",{skip:r,take:t}),i.prefetch(r,t,function(){e._prefetching=!1,e.trigger("prefetched",{skip:r,take:t})}))},_goToRange:function(e,t){this.offset===e&&(this.dataOffset=e,this._expanding=t,this.dataSource.range(e,this.pageSize),this.dataSource.enableRequestsInProgress())},_reset:function(){this._syncPending=!0},_change:function(){var e=this.dataSource;this.length=this.useRanges?e.lastRange().end:e.view().length,this._syncPending&&(this._syncWithDataSource(),this._recalculate(),this._syncPending=!1,this.trigger("reset",{offset:this.offset})),this.trigger("resize"),this._expanding&&this.trigger("expand"),delete this._expanding},_syncWithDataSource:function(){var e=this.dataSource;this._firstItemUid=e.firstItemUid(),this.dataOffset=this.offset=e.skip()||0,this.pageSize=e.pageSize(),this.useRanges=e.options.serverPaging},_recalculate:function(){var e=this.pageSize,t=this.offset,r=this.viewSize,i=Math.ceil(t/e)*e;this.skip=i,this.midPageThreshold=i+e-1,this.nextPageThreshold=i+r-1,this.prefetchThreshold=i+Math.floor(e/3*2),this.pullBackThreshold=this.offset-1,this.nextMidRange=i+e-r,this.nextFullRange=i,this.previousMidRange=t-r,this.previousFullRange=i-e}}),pe=xe.Observable.extend({init:function(e,t){var r=this;xe.Observable.fn.init.call(r),this.dataSource=e,this.batchSize=t,this._total=0,this.buffer=new ce(e,3*t),this.buffer.bind({endreached:function(e){r.trigger("endreached",{index:e.index})},prefetching:function(e){r.trigger("prefetching",{skip:e.skip,take:e.take})},prefetched:function(e){r.trigger("prefetched",{skip:e.skip,take:e.take})},reset:function(){r._total=0,r.trigger("reset")},resize:function(){r._total=Math.ceil(this.length/r.batchSize),r.trigger("resize",{total:r.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(e){var t,r,i=this.buffer,n=e*this.batchSize,a=this.batchSize,s=[];for(i.offset>n&&i.at(i.offset-1),r=0;r<a&&(t=i.at(n+r),null!==t);r++)s.push(t);return s},total:function(){return this._total},destroy:function(){this.buffer.destroy(),this.unbind()}}),_e(!0,xe.data,{readers:{json:le},Query:s,DataSource:ge,HierarchicalDataSource:fe,Node:he,Comparer:te,ObservableObject:X,ObservableArray:at,LazyObservableArray:K,LocalTransport:se,RemoteTransport:oe,Cache:ue,DataReader:le,Model:ee,Buffer:ce,BatchBuffer:pe})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,r){(r||t)()});;!function(t,define){define("kendo.data.odata.min",["kendo.core.min"],t)}(function(){return function(t,e){function n(a,o){var r,s,i,d,p,c,u,l,f=[],y=a.logic||"and",g=a.filters;for(r=0,s=g.length;r<s;r++)a=g[r],i=a.field,u=a.value,c=a.operator,a.filters?a=n(a,o):(l=a.ignoreCase,i=i.replace(/\./g,"/"),a=v[c],o&&(a=b[c]),"isnullorempty"===c?a=h.format("{0} {1} null or {0} {1} ''",i,a):"isnotnullorempty"===c?a=h.format("{0} {1} null and {0} {1} ''",i,a):"isnull"===c||"isnotnull"===c?a=h.format("{0} {1} null",i,a):"isempty"===c||"isnotempty"===c?a=h.format("{0} {1} ''",i,a):a&&u!==e&&(d=t.type(u),"string"===d?(p="'{1}'",u=u.replace(/'/g,"''"),l===!0&&(i="tolower("+i+")")):"date"===d?o?(p="{1:yyyy-MM-ddTHH:mm:ss+00:00}",u=h.timezone.apply(u,"Etc/UTC")):p="datetime'{1:yyyy-MM-ddTHH:mm:ss}'":p="{1}",a.length>3?"substringof"!==a?p="{0}({2},"+p+")":(p="{0}("+p+",{2})","doesnotcontain"===c&&(o?(p="{0}({2},'{1}') eq -1",a="indexof"):p+=" eq false")):p="{2} {0} "+p,a=h.format(p,a,u,i))),f.push(a);return a=f.join(" "+y+" "),f.length>1&&(a="("+a+")"),a}function a(t){for(var e in t)0===e.indexOf("@odata")&&delete t[e]}function o(){return Math.floor(65536*(1+Math.random())).toString(16).substr(1)}function r(t){return t+o()+"-"+o()+"-"+o()}function s(t,e){var n=m+"--"+t;return e&&(n+="--"),n}function i(t,e,n,a){var o=t.options[a].url,r=h.format("{0} ",n);return j(o)?r+o(e):r+o}function d(t,e){var n="";return n+=s(t,!1),n+=m+"Content-Type: application/http",n+=m+"Content-Transfer-Encoding: binary",n+=m+"Content-ID: "+e}function p(t){var e="";return e+=m+"Content-Type: application/json;odata=minimalmetadata",e+=m+"Prefer: return=representation",e+=T+h.stringify(t)}function c(t,e,n,a,o,r){var s,c="";for(s=0;s<t.length;s++)c+=d(e,n),c+=T+i(o,t[s],o.options[a].type,a)+" HTTP/1.1",r||(c+=p(t[s])),c+=m,n++;return c}function u(t,e,n,a,o,r,i){var d="";return d+=l(e,n),d+=c(t,n,a,r,o,i),d+=s(n,!0),d+=m}function l(t,e){var n="";return n+="--"+t+m,n+="Content-Type: multipart/mixed; boundary="+e+m}function f(t,e){var n=g({},t.options.batch),a=r("sf_batch_"),o="",i=0,d=t.options.batch.url,p=r("sf_changeset_");return n.type=t.options.batch.type,n.url=j(d)?d():d,n.headers=g(n.headers||{},{"Content-Type":"multipart/mixed; boundary="+a}),e.updated.length&&(o+=u(e.updated,a,p,i,t,"update",!1),i+=e.updated.length,p=r("sf_changeset_")),e.destroyed.length&&(o+=u(e.destroyed,a,p,i,t,"destroy",!0),i+=e.destroyed.length,p=r("sf_changeset_")),e.created.length&&(o+=u(e.created,a,p,i,t,"create",!1)),o+=s(a,!0),n.data=o,n}function y(t){var e,n,a,o,r,s,i=t.match(/--changesetresponse_[a-z0-9-]+$/gm),d=0,p=[];for(p.push({models:[],passed:!0}),s=0;s<i.length;s++)o=i[s],o.lastIndexOf("--",o.length-1)?s<i.length-1&&p.push({models:[],passed:!0}):(d=d?t.indexOf(o,d+o.length):t.indexOf(o),e=t.substring(d,t.indexOf("--",d+1)),n=e.match(/^HTTP\/1\.\d (\d{3}) (.*)$/gm).pop(),a=h.parseFloat(n.match(/\d{3}/g).pop()),a>=200&&a<=299?(r=e.match(/\{.*\}/gm),r&&p[p.length-1].models.push(JSON.parse(r[0]))):p[p.length-1].passed=!1);return p}var h=window.kendo,g=t.extend,m="\r\n",T="\r\n\r\n",j=h.isFunction,v={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",doesnotcontain:"substringof",endswith:"endswith",startswith:"startswith",isnull:"eq",isnotnull:"ne",isnullorempty:"eq",isnotnullorempty:"ne",isempty:"eq",isnotempty:"ne"},b=g({},v,{contains:"contains"}),E={pageSize:t.noop,page:t.noop,filter:function(t,e,a){e&&(e=n(e,a),e&&(t.$filter=e))},sort:function(e,n){var a=t.map(n,function(t){var e=t.field.replace(/\./g,"/");return"desc"===t.dir&&(e+=" desc"),e}).join(",");a&&(e.$orderby=a)},skip:function(t,e){e&&(t.$skip=e)},take:function(t,e){e&&(t.$top=e)}},$={read:{dataType:"jsonp"}};g(!0,h.data,{schemas:{odata:{type:"json",data:function(t){return t.d.results||[t.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(t,e,n){var a,o,r,s;if(t=t||{},e=e||"read",s=(this.options||$)[e],s=s?s.dataType:"json","read"===e){a={$inlinecount:"allpages"},"json"!=s&&(a.$format="json");for(r in t)E[r]?E[r](a,t[r],n):a[r]=t[r]}else{if("json"!==s)throw Error("Only json dataType can be used for "+e+" operation.");if("destroy"!==e){for(r in t)o=t[r],"number"==typeof o&&(t[r]=o+"");a=h.stringify(t)}}return a}}}}),g(!0,h.data,{schemas:{"odata-v4":{type:"json",data:function(e){if(t.isArray(e)){for(var n=0;n<e.length;n++)a(e[n]);return e}return e=t.extend({},e),a(e),e.value?e.value:[e]},total:function(t){return t["@odata.count"]}}},transports:{"odata-v4":{batch:{type:"POST"},read:{cache:!0,dataType:"json"},update:{cache:!0,dataType:"json",contentType:"application/json;IEEE754Compatible=true",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json;IEEE754Compatible=true",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(t,e){var n=h.data.transports.odata.parameterMap(t,e,!0);return"read"==e&&(n.$count=!0,delete n.$inlinecount),n&&n.$filter&&(n.$filter=n.$filter.replace(/('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')/gi,function(t){return t.substring(1,t.length-1)})),n},submit:function(e){var n=this,a=f(n,e.data),o=e.data;(o.updated.length||o.destroyed.length||o.created.length)&&t.ajax(g(!0,{},{success:function(t){var n,a=y(t),r=0;o.updated.length&&(n=a[r],n.passed&&e.success(n.models.length?n.models:[],"update"),r++),o.destroyed.length&&(n=a[r],n.passed&&e.success([],"destroy"),r++),o.created.length&&(n=a[r],n.passed&&e.success(n.models,"create"))},error:function(t,n,a){e.error(t,n,a)}},a))}}}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});;!function(e,define){define("kendo.menu.min",["kendo.popup.min","kendo.data.min"],e)}(function(){return function(e,t){function n(e,t){return e=e.split(" ")[!t+0]||e,e.replace("top","up").replace("bottom","down")}function o(e,t,n){e=e.split(" ")[!t+0]||e;var o={origin:["bottom",n?"right":"left"],position:["top",n?"right":"left"]},i=/left|right/.test(e);return i?(o.origin=["top",e],o.position[1]=x.directions[e].reverse):(o.origin[0]=e,o.position[0]=x.directions[e].reverse),o.origin=o.origin.join(" "),o.position=o.position.join(" "),o}function i(t,n){try{return e.contains(t,n)}catch(o){return!1}}function r(t){t=e(t);var n=t.attr(x.attr("omit-wrap"));n||(t.addClass("k-item k-menu-item").children(G).addClass(Q),t.children("a").addClass(K).children(G).addClass(Q),t.filter(":not([disabled])").addClass(ye),t.filter(".k-separator").removeClass("k-menu-item").addClass("k-menu-separator").empty().append(" "),t.filter("li[disabled]").addClass(Te).removeAttr("disabled").attr("aria-disabled",!0),t.filter("[role]").length||t.attr("role","menuitem"),t.children(X).length||t.contents().filter(function(){return!(this.nodeName.match(L)||3==this.nodeType&&!x.trim(this.nodeValue))}).wrapAll("<span class='"+K+"'/>"),a(t),l(t))}function a(t){t=e(t),t.find("> .k-link > [class*=k-i-arrow-60]:not(.k-sprite)").remove(),t.filter(":has(.k-menu-group)").children(".k-link:not(:has([class*=k-i-arrow]:not(.k-sprite)))").each(function(){var t=e(this),n=s(t);t.append("<span class='k-menu-expand-arrow k-icon "+n+"' />")})}function s(e){var t,n=e.parent().parent(),o=x.support.isRtl(n);return t=n.hasClass(J+"-horizontal")?"k-i-arrow-60-down":o?"k-i-arrow-60-left":"k-i-arrow-60-right"}function l(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass($),t.filter(".k-last:not(:last-child)").removeClass(q),t.filter(":first-child").addClass($),t.filter(":last-child").addClass(q)}function p(e){var t,n;if(e&&e.length)for(t in e)n=e.eq(t),n.find("ul").length?n.attr("aria-haspopup",!0):n.removeAttr("aria-haspopup")}function c(e){if(!e.hasClass(J))return e.parentsUntil("."+J,"li")}function u(t,n){var o=f(n);o&&d(t,o),n.items&&e(t).children("ul").children("li").each(function(e){u(this,n.items[e])})}function d(t,n){e(t).children(".k-link").data({selectHandler:n})}function f(e){var t=e.select,n=x.isFunction;return t&&n(t)?t:null}function m(e){return e?"li[data-groupparent='"+e+"']":"li[data-groupparent]"}function h(e){var t=e?"[data-group='"+e+"']":"[data-group]";return"ul"+t+",div"+t}function v(t,n){var o=t.find(m()),i=[];return o.each(function(o,r){var a,s;for(r=e(r),a=r.data(we),s=t;a;)s=n.find(h(a)+":visible"),s.length&&i.push(s),r=s.find(m()),a=r.data(we)}),i}function g(t,n){var o=t.data(ke);return o?n.find(m(o)):e([])}function _(t,n){var o=t.data(we);return o?n.children(Se).children(h(o)):e([])}function k(t,n){var o,i,r=[],a=function(e){for(;e.parentNode&&!n.is(e.parentNode);)r.push(e.parentNode),e=e.parentNode},s=t[0]||t;for(a(s),o=r[r.length-1];e(o).is(Se)&&(i=e(o).children("ul"),s=g(i,n)[0]);)r.push(s),a(s),o=r[r.length-1];return r}function w(e){var t=0;return e.wheelDelta&&(t=-e.wheelDelta/120,t=t>0?Math.ceil(t):Math.floor(t)),e.detail&&(t=Math.round(e.detail/3)),t}function C(e,t){for(var n=0,o=e.parentNode;o&&!isNaN(o[t]);)n+=o[t],o=o.parentNode;return n}function b(e){return se&&e.originalEvent&&e.originalEvent.pointerType in Fe}function y(e){var t=e.originalEvent;return O&&/touch/i.test(t.type||"")}function P(e){e.contents().filter(function(){return"LI"!=this.nodeName}).remove()}var x=window.kendo,T=x.ui,H=x._activeElement,O=x.support.touch&&x.support.mobileOS,I=e.isArray,S=x.data.HierarchicalDataSource,E="mousedown",W="click",A=30,D=50,M=e.extend,B=e.proxy,N=e.each,R=x.template,U=x.keys,z=T.Widget,L=/^(ul|a|div)$/i,F=".kendoMenu",G="img",j="open",J="k-menu",K="k-link k-menu-link",X=".k-link",Y=".k-menu-expand-arrow",q="k-last",V="close",Z="timer",$="k-first",Q="k-image",ee="select",te="zIndex",ne="activate",oe="deactivate",ie="touchstart"+F+" MSPointerDown"+F+" pointerdown"+F,re=x.support.pointers,ae=x.support.msPointers,se=ae||re,le="change",pe="error",ce=x.support.touch?"touchstart":"",ue=re?"pointerover":ae?"MSPointerOver":"mouseenter",de=re?"pointerout":ae?"MSPointerOut":"mouseleave",fe="DOMMouseScroll"+F+" mousewheel"+F,me=x.support.resize+F,he="scrollWidth",ve="scrollHeight",ge="offsetWidth",_e="offsetHeight",ke="group",we="groupparent",Ce=e(document.documentElement),be="kendoPopup",ye="k-state-default",Pe="k-state-hover",xe="k-state-focused",Te="k-state-disabled",He="k-state-selected",Oe=".k-menu",Ie=".k-menu-group",Se=".k-animation-container",Ee=Ie+","+Se,We=":not(.k-list) > .k-item",Ae=".k-item.k-state-disabled",De=".k-item",Me=".k-item:not(.k-state-disabled)",Be=".k-item:not(.k-state-disabled) > .k-link",Ne=":not(.k-item.k-separator)",Re=De+Ne+":eq(0)",Ue=De+Ne+":last",ze="div:not(.k-animation-container,.k-list-container)",Le=".k-menu-scroll-button",Fe={2:1,touch:1},Ge="string",je="dataBound",Je="aria-expanded",Ke={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField",imageAttr:"dataImageAttrField",content:"dataContentField"},Xe={wrapperCssClass:function(e,t){var n="k-item k-menu-item",o=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",e.firstLevel&&0===o&&(n+=" k-first"),o==e.length-1&&(n+=" k-last"),t.cssClass&&(n+=" "+t.cssClass),t.attr&&t.attr.hasOwnProperty("class")&&(n+=" "+t.attr["class"]),t.selected&&(n+=" "+He),n},itemCssAttributes:function(e){var t,n="",o=e.attr||{};for(t in o)o.hasOwnProperty(t)&&"class"!==t&&(n+=t+'="'+o[t]+'" ');return n},imageCssAttributes:function(e){var t,n="",o=e&&e.toJSON?e.toJSON():{};o["class"]?o["class"]+=" "+Q:o["class"]=Q;for(t in o)o.hasOwnProperty(t)&&(n+=t+'="'+o[t]+'" ');return n},contentCssAttributes:function(e){var t,n="",o=e.contentAttr||{},i="k-content k-group k-menu-group";o["class"]?o["class"]+=" "+i:o["class"]=i;for(t in o)o.hasOwnProperty(t)&&(n+=t+'="'+o[t]+'" ');return n},textClass:function(){return K},arrowClass:function(e,t){var n="k-menu-expand-arrow k-icon";return n+=t.horizontal?" k-i-arrow-60-down":" k-i-arrow-60-right"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group k-menu-group"},content:function(e){return e.content?e.content:" "}},Ye=x.ui.DataBoundWidget.extend({init:function(e,t){var n=this;z.fn.init.call(n,e,t),e=n.wrapper=n.element,t=n.options,n._accessors(),n._templates(),n._dataSource(),n._updateClasses(),n._animations(t),n.nextItemZIndex=100,n._tabindex(),n._initOverflow(t),n._attachMenuEventsHandlers(),t.openOnClick&&(n.clicked=!1),e.attr("role","menubar"),e[0].id&&(n._ariaId=x.format("{0}_mn_active",e[0].id)),x.notify(n)},events:[j,V,ne,oe,ee,je],options:{name:"Menu",animation:{open:{duration:200},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100,scrollable:!1,popupCollision:t},_initData:function(){var e=this;e.dataSource&&(e.angular("cleanup",function(){return{elements:e.element.children()}}),e.element.empty(),e.append(e.dataSource.view(),e.element),e.angular("compile",function(){return{elements:e.element.children()}}))},_attachMenuEventsHandlers:function(){var t=this,n=t.element,o=t.options,i=t._overflowWrapper();(i||n).on(ie,De,B(t._focusHandler,t)).on(W+F,Ae,!1).on(W+F,De,B(t._click,t)).on(ie+" "+E+F,".k-content",B(t._preventClose,t)).on(ue+F,Me,B(t._mouseenter,t)).on(de+F,Me,B(t._mouseleave,t)).on(E+F,Me,B(t._mousedown,t)).on(ce+F+" "+ue+F+" "+de+F+" "+E+F+" "+W+F,Be,B(t._toggleHover,t)),n.on("keydown"+F,B(t._keydown,t)).on("focus"+F,B(t._focus,t)).on("focus"+F,".k-content",B(t._focus,t)).on("blur"+F,B(t._removeHoverItem,t)).on("blur"+F,"[tabindex]",B(t._checkActiveElement,t)),i&&i.on(de+F,Ee,B(t._mouseleavePopup,t)).on(ue+F,Ee,B(t._mouseenterPopup,t)),o.openOnClick&&(t._documentClickHandler=B(t._documentClick,t),e(document).click(t._documentClickHandler))},_detachMenuEventsHandlers:function(){var t=this,n=t._overflowWrapper();n&&n.off(F),t.element.off(F),t._documentClickHandler&&e(document).unbind("click",t._documentClickHandler)},_initOverflow:function(t){var n,o,i,r,a=this,s="horizontal"==t.orientation;t.scrollable&&(a._openedPopups={},a._scrollWrapper=a.element.wrap("<div class='k-menu-scroll-wrapper "+t.orientation+"'></div>").parent(),s&&P(a.element),n=e(a.templates.scrollButton({direction:s?"left":"up"})),o=e(a.templates.scrollButton({direction:s?"right":"down"})),n.add(o).appendTo(a._scrollWrapper),a._initScrolling(a.element,n,o,s),i=a.element.outerWidth(),r=a.element[0].style.width,r="auto"===r?"":r,s&&e(window).on(me,function(){setTimeout(function(){a._setOverflowWrapperWidth(i,r),a._toggleScrollButtons(a.element,n,o,s)},300)}),a._setOverflowWrapperWidth(i,r),a._toggleScrollButtons(a.element,n,o,s))},_overflowWrapper:function(){return this._scrollWrapper||this._popupsWrapper},_setOverflowWrapperWidth:function(e,t){var n,o,i,r,a=this,s=a._scrollWrapper.css("width");a._scrollWrapper.css({width:""}),n=a._scrollWrapper.outerWidth(),a._scrollWrapper.css({width:s}),o=a.element.outerWidth(),i=a.element[0].offsetWidth-a.element[0].clientWidth,o!=n&&n>0&&(r=t?Math.min(e,n):n,a.element.width(r-i),a._scrollWrapper.width(r))},_reinitOverflow:function(e){var t=this,n=e.scrollable&&!t.options.scrollable||!e.scrollable&&t.options.scrollable||e.scrollable&&t.options.scrollable&&e.scrollable.distance!=t.options.scrollable.distance||e.orientation!=t.options.orientation;n&&(t._detachMenuEventsHandlers(),t._destroyOverflow(),t._initOverflow(e),t._attachMenuEventsHandlers())},_destroyOverflow:function(){var n=this,o=n._overflowWrapper();o&&(o.off(F),o.find(Le).off(F).remove(),o.children(Se).each(function(t,n){var i,r=e(n).children(Ie);r.off(fe),i=g(r,o),i.length&&i.append(n)}),o.find(m()).removeAttr("data-groupparent"),o.find(h()).removeAttr("data-group"),n.element.off(fe),e(window).off(me),o.contents().unwrap(),n._scrollWrapper=n._popupsWrapper=n._openedPopups=t)},_initScrolling:function(t,n,o,i){var r=this,a=r.options.scrollable,s=e.isNumeric(a.distance)?a.distance:D,l=s/2,p="-="+s,c="+="+s,u="-="+2*s,d="+="+2*s,f=!1,m=!1,h=function(e){var a=i?{scrollLeft:e}:{scrollTop:e};t.finish().animate(a,"fast","linear",function(){f&&h(e)}),r._toggleScrollButtons(t,n,o,i)},v=function(e){f||m||(h(e.data.direction),f=!0)},g=function(a){var s=i?{scrollLeft:a.data.direction}:{scrollTop:a.data.direction};m=y(a)||b(a),t.stop().animate(s,"fast","linear",function(){m?(r._toggleScrollButtons(t,n,o,i),f=!0):e(a.currentTarget).trigger(ue)}),f=!1,a.stopPropagation(),a.preventDefault()};n.on(ue+F,{direction:p},v).on(x.eventMap.down+F,{direction:u},g),o.on(ue+F,{direction:c},v).on(x.eventMap.down+F,{direction:d},g),n.add(o).on(de+F,function(){t.stop(),f=!1,r._toggleScrollButtons(t,n,o,i)}),t.on(fe,function(e){var a,s,p,c;e.ctrlKey||e.shiftKey||e.altKey||(a=w(e.originalEvent),s=Math.abs(a)*l,p=(a>0?"+=":"-=")+s,c=i?{scrollLeft:p}:{scrollTop:p},r._closeChildPopups(t),t.finish().animate(c,"fast","linear",function(){r._toggleScrollButtons(t,n,o,i)}),e.preventDefault())})},_toggleScrollButtons:function(e,t,n,o){var i=o?x.scrollLeft(e):e.scrollTop(),r=o?he:ve,a=o?ge:_e;t.toggle(0!==i),n.toggle(i<e[0][r]-e[0][a]-1)},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=M(!0,t,e.animation),"dataSource"in e&&this._dataSource(e),this._updateClasses(),this._reinitOverflow(e),z.fn.setOptions.call(this,e)},destroy:function(){var e=this;z.fn.destroy.call(e),e._detachMenuEventsHandlers(),e._destroyOverflow(),x.destroy(e.element)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},attemptGetItem:function(t){var n,o;return t=t||this.element,n=this.element.find(t),o=this._overflowWrapper(),n.length||t===this.element?n:o?o.find(t):e()},append:function(e,t){t=this.attemptGetItem(t);var n=this._insert(e,t,t.length?this._childPopupElement(t):null);return N(n.items,function(t){n.group.append(this),a(this),u(this,e[t]||e)}),a(t),l(n.group.find(".k-first, .k-last").add(n.items)),p(c(n.group)),this},insertBefore:function(e,t){t=this.attemptGetItem(t);var n=this._insert(e,t,t.parent());return N(n.items,function(n){t.before(this),a(this),l(this),u(this,e[n]||e)}),l(t),this},insertAfter:function(e,t){t=this.attemptGetItem(t);var n=this._insert(e,t,t.parent());return N(n.items,function(n){t.after(this),a(this),l(this),u(this,e[n]||e)}),l(t),this},_insert:function(t,n,o){var i,a,s,l,p=this;return n&&n.length||(o=p.element),s=e.isPlainObject(t)||t instanceof x.data.ObservableObject,l={firstLevel:o.hasClass(J),horizontal:o.hasClass(J+"-horizontal"),expanded:!0,length:o.children().length},n&&!o.length&&(o=e(p.renderGroup({group:l,options:p.options})).appendTo(n)),s||I(t)||t instanceof x.data.ObservableArray?i=e(e.map(s?[t]:t,function(t,n){return"string"==typeof t?e(t).get():e(p.renderItem({group:l,item:M(t,{index:n})})).get()})):(i="string"==typeof t&&"<"!=t.charAt(0)?p.element.find(t):e(t),a=i.find("> ul").addClass("k-menu-group").attr("role","menu"),i=i.filter("li"),i.add(a.find("> li")).each(function(){r(this)})),{items:i,group:o}},remove:function(e){var t,n,o,i,r;return e=this.attemptGetItem(e),t=this,n=e.parentsUntil(t.element,We),o=e.parent("ul:not(.k-menu)"),e.remove(),o&&!o.children(We).length&&(i=c(o),r=o.parent(Se),r.length?r.remove():o.remove(),p(i)),n.length&&(n=n.eq(0),a(n),l(n)),t},_openAfterLoad:function(e,t){var n=this;t.loaded()?(n.open(e),n._loading=!1):t.one(le,function(){e.find(Y).removeClass("k-i-loading"),n._loading&&(n.open(e),n._loading=!1)})},open:function(i){var r,a,s,l=this,p=l.options,c="horizontal"==p.orientation,u=p.direction,d=x.support.isRtl(l.wrapper),f=l._overflowWrapper();return i=(f||l.element).find(i),r=l.dataSource&&l.dataSource.getByUid(i.data(x.ns+"uid")),r&&r.hasChildren&&!r.loaded()&&!l._loading?(l._loading=!0,i.find(Y).addClass("k-i-loading"),r.load(),l._openAfterLoad(i,r),t):(/^(top|bottom|default)$/.test(u)&&(u=d?c?(u+" left").replace("default","bottom"):"left":c?(u+" right").replace("default","bottom"):"right"),a=">.k-popup:visible,>.k-animation-container>.k-popup:visible",s=function(){var t=e(this).data(be);t&&l.close(e(this).closest("li.k-item"),!0)},i.siblings().find(a).each(s),f&&i.find(a).each(s),l.options.openOnClick&&(l.clicked=!0),i.each(function(){var i=e(this);clearTimeout(i.data(Z)),i.data(Z,setTimeout(function(){var r,a,s,h,v,g,_,k,w,C,b=i.find(".k-menu-group:first:hidden");!b[0]&&f&&(a=l._getPopup(i),b=a&&a.element),b.is(":visible")||b[0]&&l._triggerEvent({item:i[0],type:j})===!1&&(!b.find(".k-menu-group")[0]&&b.children(".k-item").length>1?(s=e(window).height(),h=function(){b.css({maxHeight:s-(x._outerHeight(b)-b.height())-x.getShadows(b).bottom,overflow:"auto"})},h()):b.css({maxHeight:"",overflow:""}),i.data(te,i.css(te)),v=l.nextItemZIndex++,i.css(te,v),l.options.scrollable&&i.parent().siblings(Le).css({zIndex:++v}),r=b.data(be),g=i.parent().hasClass(J),_=g&&c,k=o(u,g,d),w=p.animation.open.effects,C=w!==t?w:"slideIn:"+n(u,g),r?(r=b.data(be),r.options.origin=k.origin,r.options.position=k.position,r.options.animation.open.effects=C):r=b.kendoPopup({activate:function(){l._triggerEvent({item:this.wrapper.parent(),type:ne})},deactivate:function(e){l._closing=!1,e.sender.element.removeData("targetTransform").css({opacity:""}),l._triggerEvent({item:this.wrapper.parent(),type:oe})},origin:k.origin,position:k.position,collision:p.popupCollision!==t?p.popupCollision:_?"fit":"fit flip",anchor:i,appendTo:f||i,animation:{open:M(!0,{effects:C},p.animation.open),close:p.animation.close},open:B(l._popupOpen,l),close:function(e){var t,n;l._closing=e.sender.element,t=e.sender.wrapper.parent(),f&&(n=e.sender.element.data(ke),n&&(t=(f||l.element).find(m(n))),e.sender.wrapper.children(Le).hide()),l._triggerEvent({item:t[0],type:V})?e.preventDefault():(t.css(te,t.data(te)),t.removeData(te),l.options.scrollable&&t.parent().siblings(Le).css({zIndex:""}),(O||se||x.support.mouseAndTouchPresent)&&(t.removeClass(Pe),l._removeHoverItem()))}}).data(be),b.removeAttr("aria-hidden"),i.attr(Je,!0),l._configurePopupOverflow(r,i),r._hovered=!0,r.open(),l._initPopupScrolling(r))},l.options.hoverDelay))}),l)},_configurePopupOverflow:function(e,t){var n,o=this;o.options.scrollable&&(o._wrapPopupElement(e),t.attr("data-groupparent")||(n=(new Date).getTime(),t.attr("data-groupparent",n),e.element.attr("data-group",n)))},_wrapPopupElement:function(e){e.element.parent().is(Se)||(e.wrapper=x.wrap(e.element,e.options.autosize).css({overflow:"hidden",display:"block",position:"absolute"}))},_initPopupScrolling:function(e,t,n){var o=this;o.options.scrollable&&e.element[0].scrollHeight>e.element[0].offsetHeight&&o._initPopupScrollButtons(e,t,n)},_initPopupScrollButtons:function(t,n,o){var i=this,r=t.wrapper.children(Le),a=i.options.animation,s=(a&&a.open&&a.open.duration||0)+A;setTimeout(function(){var a,s;r.length||(a=e(i.templates.scrollButton({direction:n?"left":"up"})),s=e(i.templates.scrollButton({direction:n?"right":"down"})),r=a.add(s).appendTo(t.wrapper),i._initScrolling(t.element,a,s,n),o||r.on(ue+F,function(){var n=i._overflowWrapper();e(v(t.element,n)).each(function(e,t){var o=n.find(m(t.data(ke)));i.close(o)})}).on(de+F,function(){setTimeout(function(){e.isEmptyObject(i._openedPopups)&&i._closeParentPopups(t.element)},A)})),i._toggleScrollButtons(t.element,r.first(),r.last(),n)},s)},_popupOpen:function(e){this._keyTriggered||e.sender.element.children("."+xe).removeClass(xe),this.options.scrollable&&this._setPopupHeight(e.sender)},_setPopupHeight:function(t,n){var o,i,r,a,s,l,p,c,u,d=t.element,f=d.add(d.parent(Se));f.height(d.hasClass(J)&&this._initialHeight||""),o=t._location(n),i=e(window).height(),r=o.height,a=n?0:Math.max(o.top,0),s=n?0:C(this._overflowWrapper()[0],"scrollTop"),l=window.innerHeight-i,p=i-x.getShadows(d).bottom+l,c=p+s>r+a,c||(u=Math.min(p,p-a+s),f.css({overflow:"hidden",height:u+"px"}))},close:function(t,n){var o,i,r=this,a=r._overflowWrapper(),s=a||r.element;return t=s.find(t),t.length||(t=s.find(">.k-item")),o=function(t){var n=!1;return e.isEmptyObject(r._openedPopups)?n:(e(v(t,a)).each(function(e,t){return n=!!r._openedPopups[""+t.data(ke)],!n}),n)},i=function(e){var t=e.data(we);return!a||!t||!r._openedPopups[""+t]},t.each(function(){var s=e(this);s.attr(Je,!1),!n&&r._isRootItem(s)&&(r.clicked=!1),clearTimeout(s.data(Z)),s.data(Z,setTimeout(function(){var e=r._getPopup(s);if(e&&(i(s)||r._forceClose)){if(!r._forceClose&&o(e.element))return;e.close(),e.element.attr("aria-hidden",!0),a&&r._forceClose&&t.last().is(s[0])&&delete r._forceClose}},r.options.hoverDelay))}),r},_getPopup:function(e){var t,n,o=this,i=e.find(".k-menu-group:not(.k-list-container):not(.k-calendar-container):first:visible").data(be),r=o._overflowWrapper();return!i&&r&&(t=e.data(we),t&&(n=r.find(h(t)),i=n.data(be))),i},_toggleDisabled:function(t,n){this.element.find(t).each(function(){e(this).toggleClass(ye,n).toggleClass(Te,!n).attr("aria-disabled",!n)})},_toggleHover:function(t){var n=e(x.eventTarget(t)||t.target).closest(We),o=t.type==ue||E.indexOf(t.type)!==-1;n.siblings().removeClass(Pe),n.parents("li."+Te).length||n.toggleClass(Pe,o||"mousedown"==t.type||"pointerover"==t.type||t.type==ce),this._removeHoverItem()},_preventClose:function(){this.options.closeOnClick||(this._closurePrevented=!0)},_checkActiveElement:function(t){var n=this,o=e(t?t.currentTarget:this._hoverItem()),r=n._findRootParent(o)[0];this._closurePrevented||setTimeout(function(){document.hasFocus()&&(i(r,x._activeElement())||!t||i(r,t.currentTarget))||n.close(r)},0),this._closurePrevented=!1},_removeHoverItem:function(){var e=this._hoverItem();e&&e.hasClass(xe)&&(e.removeClass(xe),this._oldHoverItem=null)},_updateClasses:function(){var e,t=this.element,n=".k-menu-init div ul";t.removeClass("k-menu-horizontal k-menu-vertical"),t.addClass("k-widget k-reset k-header k-menu-init "+J).addClass(J+"-"+this.options.orientation),"vertical"===this.options.orientation?t.attr("aria-orientation","vertical"):t.attr("aria-orientation","horizontal"),t.find("li > ul").filter(function(){return!x.support.matchesSelector.call(this,n)}).addClass("k-group k-menu-group").attr("role","menu").attr("aria-hidden",t.is(":visible")).parent("li").attr("aria-haspopup","true").end().find("li > div").addClass("k-content").attr("tabindex","-1"),t.find("li[aria-haspopup]").attr(Je,!1),e=t.find("> li,.k-menu-group > li"),t.removeClass("k-menu-init"),e.each(function(){r(this)})},_mouseenter:function(t){var n=this,o=e(t.currentTarget),r=n._itemHasChildren(o),a=o.data(we)||o.parent().data(ke),s=b(t),l=!1;a&&(n._openedPopups[""+a]=!0),n._closing&&(l=!!n._closing.find(o).length),l||t.delegateTarget!=o.parents(Oe)[0]&&t.delegateTarget!=o.parents(".k-menu-scroll-wrapper,.k-popups-wrapper")[0]||(n._keyTriggered=!1,n.options.openOnClick.rootMenuItems&&n._isRootItem(o.closest(We))||n.options.openOnClick.subMenuItems&&!n._isRootItem(o.closest(We))||(!(n.options.openOnClick===!1||n.options.openOnClick.rootMenuItems===!1&&n._isRootItem(o.closest(We))||n.options.openOnClick.subMenuItems===!1&&!n._isRootItem(o.closest(We))||n.clicked)||O||s&&n._isRootItem(o.closest(We))||!i(t.currentTarget,t.relatedTarget)&&r&&n.open(o),(n.options.openOnClick===!0&&n.clicked||O)&&o.siblings().each(B(function(e,t){n.close(t,!0)},n))))},_mousedown:function(t){var n=this,o=e(t.currentTarget);(n.options.openOnClick.subMenuItems&&!n._isRootItem(o)||O)&&o.siblings().each(B(function(e,t){n.close(t,!0)},n))},_mouseleave:function(n){var o=this,r=e(n.currentTarget),a=r.data(we),s=r.children(Se).length||r.children(Ie).length||a,l=e(window);return a&&delete o._openedPopups[""+a],r.parentsUntil(Se,".k-list-container,.k-calendar-container")[0]?(n.stopImmediatePropagation(),t):o.options.openOnClick!==!1&&(o.options.openOnClick.rootMenuItems||!o._isRootItem(r))&&(o.options.openOnClick.subMenuItems||o._isRootItem(r))||O||b(n)||i(n.currentTarget,n.relatedTarget||n.target)||!s||i(n.currentTarget,x._activeElement())?((x.support.browser.msie&&!n.toElement&&!n.relatedTarget&&!b(n)||n.clientX<0||n.clientY<0||n.clientY>l.height()||n.clientX>l.width())&&o.close(r),t):(o.close(r,!0),o._loading=!1,t)},_mouseenterPopup:function(t){var n,o=this,i=e(t.currentTarget);i.parent().is(Se)||(i=i.children("ul"),n=i.data(ke),n&&(o._openedPopups[""+n]=!0))},_mouseleavePopup:function(t){var n=this,o=e(t.currentTarget);!b(t)&&o.is(Se)&&n._closePopups(o.children("ul"))},_closePopups:function(t){var n,o=this,i=o._overflowWrapper(),r=t.data(ke);r&&(delete o._openedPopups[""+r],n=i.find(m(r)),setTimeout(function(){if(o.options.openOnClick)o._closeChildPopups(t);else if(e.isEmptyObject(o._openedPopups)){var i=o._innerPopup(t);o._closeParentPopups(i)}else o.close(n,!0)},0))},_closeChildPopups:function(t){var n=this,o=n._overflowWrapper();e(v(t,o)).each(function(){var e=o.find(m(this.data(ke)));n.close(e,!0)})},_innerPopup:function(e){var t=this._overflowWrapper(),n=v(e,t);return n[n.length-1]||e},_closeParentPopups:function(e){var t=this,n=t._overflowWrapper(),o=e.data(ke),i=n.find(m(o));for(o=i.parent().data(ke),t.close(i,!0);o&&!t._openedPopups[o]&&!i.parent().is(Oe);)i=n.find(m(o)),t.close(i,!0),o=i.parent().data(ke)},_click:function(n){var o,i,r,a,s,l,p=this,c=p.options,u=e(x.eventTarget(n)),d=u[0],f=u[0]?u[0].nodeName.toUpperCase():"",m="INPUT"==f||"SELECT"==f||"BUTTON"==f||"LABEL"==f,v=u.closest(X),g=u.closest(We),_=g[0],k=v.attr("href"),w=u.attr("href"),C=e("<a href='#' />").attr("href"),y=!!k&&k!==C,P=y&&!!k.match(/^#/),T=!!w&&w!==C,H=p._overflowWrapper();if(!d||d.parentNode){for(e(u).hasClass("k-menu-expand-arrow")&&(this._lastClickedElement=d.parentElement);d&&d.parentNode!=_;)d=d.parentNode;if(!e(d).is(ze)){if(g.hasClass(Te))return n.preventDefault(),t;if(n.handled||!p._triggerSelect(u,_)||m||n.preventDefault(),n.handled=!0,i=g.children(Ee),H&&(s=g.data(we),s&&(i=H.find(h(s)))),r=i.is(":visible"),a=c.openOnClick&&r&&p._isRootItem(g),c.closeOnClick&&(!y||P)&&(!i.length||a))return g.removeClass(Pe).css("height"),p._oldHoverItem=p._findRootParent(g),l=p._parentsUntil(v,p.element,We),p._forceClose=!!H,p.close(l),p.clicked=!1,"MSPointerUp".indexOf(n.type)!=-1&&n.preventDefault(),t;y&&n.enterKey&&v[0].click(),(p._isRootItem(g)&&c.openOnClick!==!1||c.openOnClick.subMenuItems||x.support.touch||b(n)&&p._isRootItem(g.closest(We)))&&(y||m||T||n.preventDefault(),p.clicked=!0,o=i.is(":visible")?V:j,(c.closeOnClick||o!=V)&&p[o](g))}}},_parentsUntil:function(n,o,i){var r,a,s=this._overflowWrapper();return s?(r=k(n,s),a=[],e(r).each(function(){var n=e(this);return!n.is(o)&&(n.is(i)&&a.push(this),t)}),e(a)):n.parentsUntil(o,i)},_triggerSelect:function(e,t){var n,o,i,r;return e=e.is(".k-link")?e:e.closest(".k-link"),n=e.data("selectHandler"),n&&(o=this._getEventData(e),n.call(this,o)),i=o&&o.isDefaultPrevented(),r=this._triggerEvent({item:t,type:ee}),i||r},_getEventData:function(e){var t={sender:this,target:e,_defaultPrevented:!1,preventDefault:function(){this._defaultPrevented=!0},isDefaultPrevented:function(){return this._defaultPrevented}};return t},_documentClick:function(n){var o=this,r=e(n.target).hasClass("k-menu-expand-arrow")?o._lastClickedElement:n.target;return i((o._overflowWrapper()||o.element)[0],r)?(o._lastClickedElement=t,t):(o.clicked=!1,t)},_focus:function(n){var o=this,i=n.target,r=o._hoverItem(),a=H();return i==o.wrapper[0]||e(i).is(":kendoFocusable")?(a===n.currentTarget&&(r.length?o._moveHover([],r):o._oldHoverItem||o._moveHover([],o.wrapper.children().first())),t):(n.stopPropagation(),e(i).closest(".k-content").closest(".k-menu-group").closest(".k-item").addClass(xe),o.wrapper.focus(),t)},_keydown:function(e){var n,o,i,r=this,a=e.keyCode,s=r._oldHoverItem,l=x.support.isRtl(r.wrapper);if(e.target==e.currentTarget||a==U.ESC){if(s||(s=r._oldHoverItem=r._hoverItem()),o=r._itemBelongsToVertival(s),i=r._itemHasChildren(s),r._keyTriggered=!0,a==U.RIGHT)n=r[l?"_itemLeft":"_itemRight"](s,o,i);else if(a==U.LEFT)n=r[l?"_itemRight":"_itemLeft"](s,o,i);else if(a==U.DOWN)n=r._itemDown(s,o,i);else if(a==U.UP)n=r._itemUp(s,o,i);else if(a==U.HOME)r._moveHover(s,s.parent().children().first()),e.preventDefault();else if(a==U.END)r._moveHover(s,s.parent().children().last()),e.preventDefault();else if(a==U.ESC)n=r._itemEsc(s,o);else if(a==U.ENTER||a==U.SPACEBAR)n=s.children(".k-link"),n.length>0&&(r._click({target:n[0],preventDefault:function(){},enterKey:!0}),i&&!s.hasClass(Te)?(r.open(s),r._moveHover(s,r._childPopupElement(s).children().first())):r._moveHoverToRoot(s,r._findRootParent(s)));else if(a==U.TAB)return n=r._findRootParent(s),r._moveHover(s,n),r._checkActiveElement(),t;n&&n[0]&&(e.preventDefault(),e.stopPropagation())}},_hoverItem:function(){return this.wrapper.find(".k-item.k-state-hover,.k-item.k-state-focused").filter(":visible")},_itemBelongsToVertival:function(e){var t=this.wrapper.hasClass("k-menu-vertical");return e.length?e.parent().hasClass("k-menu-group")||t:t},_itemHasChildren:function(e){return!!(e&&e.length&&e[0].nodeType)&&(e.children(".k-menu-group, div.k-animation-container").length>0||!!e.data(we)&&!!this._overflowWrapper().children(h(e.data(we))))},_moveHover:function(t,n){var o=this,i=o._ariaId;t.length&&n.length&&t.removeClass(xe),n.length&&(n[0].id&&(i=n[0].id),n.addClass(xe),o._oldHoverItem=n,i&&(o.element.removeAttr("aria-activedescendant"),e("#"+i).removeAttr("id"),n.attr("id",i),o.element.attr("aria-activedescendant",i)),o._scrollToItem(n))},_moveHoverToRoot:function(e,t){this._moveHover(e,t)},_findRootParent:function(e){return this._isRootItem(e)?e:this._parentsUntil(e,Oe,"li.k-item").last()},_isRootItem:function(e){return e.parent().hasClass(J)},_itemRight:function(e,t,n){var o,i,r,a,s=this;return t?n&&!e.hasClass(Te)?(s.open(e),o=s._childPopupElement(e).children().first()):"horizontal"==s.options.orientation&&(i=s._findRootParent(e),r=s._overflowWrapper(),r&&(a=_(i,r),s._closeChildPopups(a)),s.close(i),o=i.nextAll(Re)):(o=e.nextAll(Re),o.length||(o=e.prevAll(Ue)),s.close(e)),o&&!o.length?o=s.wrapper.children(".k-item").first():o||(o=[]),s._moveHover(e,o),o},_itemLeft:function(e,t){var n,o,i=this;return t?(n=e.parent().closest(".k-item"),o=i._overflowWrapper(),!n.length&&o&&(n=g(e.parent(),o)),i.close(n),i._isRootItem(n)&&"horizontal"==i.options.orientation&&(n=n.prevAll(Re))):(n=e.prevAll(Re),n.length||(n=e.nextAll(Ue)),i.close(e)),n.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n},_itemDown:function(e,t,n){var o,i=this;if(t)o=e.nextAll(Re);else{if(!n||e.hasClass(Te))return;i.open(e),o=i._childPopupElement(e).children().first()}return!o.length&&e.length?o=e.parent().children().first():e.length||(o=i.wrapper.children(".k-item").first()),i._moveHover(e,o),o},_itemUp:function(e,t){var n,o=this;if(t)return n=e.prevAll(Re),!n.length&&e.length?n=e.parent().children().last():e.length||(n=o.wrapper.children(".k-item").last()),o._moveHover(e,n),n},_scrollToItem:function(e){var t,n,o,i,r,a,s,l,p,c,u,d,f=this;f.options.scrollable&&e&&e.length&&(t=e.parent(),n=!!t.hasClass(J)&&"horizontal"==f.options.orientation,o=n?"scrollLeft":"scrollTop",i=n?x._outerWidth:x._outerHeight,r=t[o](),a=i(e),s=e[0][n?"offsetLeft":"offsetTop"],l=i(t),p=t.siblings(Le),c=p.length?i(p.first()):0,r+l<s+a+c?u=s+a-l+c:r>s-c&&(u=s-c),isNaN(u)||(d={},d[o]=u,t.finish().animate(d,"fast","linear",function(){f._toggleScrollButtons(t,p.first(),p.last(),n)})))},_itemEsc:function(e,t){var n,o=this;return t?(n=e.parent().closest(".k-item"),o.close(n),o._moveHover(e,n),n):e},_childPopupElement:function(e){var t=e.find(".k-menu-group"),n=this._overflowWrapper();return!t.length&&n&&(t=_(e,n)),t},_triggerEvent:function(e){var t=this;return t.trigger(e.type,{type:e.type,item:e.item})},_focusHandler:function(t){var n=this,o=e(x.eventTarget(t)).closest(We);o.hasClass(Te)||setTimeout(function(){n._moveHover([],o),o.children(".k-content")[0]&&o.parent().closest(".k-item").removeClass(xe)},200)},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})},_dataSource:function(e){var t=this,n=e?e.dataSource:t.options.dataSource;n&&(n=I(n)?{data:n}:n,t._unbindDataSource(),n.fields||(n.fields=[{field:"uid"},{field:"text"},{field:"url"},{field:"cssClass"},{field:"spriteCssClass"},{field:"imageUrl"},{field:"imageAttr"},{field:"attr"},{field:"contentAttr"},{field:"content"},{field:"encoded"},{field:"items"},{field:"select"}]),t.dataSource=S.create(n),t._bindDataSource(),t.dataSource.fetch())},_bindDataSource:function(){this._refreshHandler=B(this.refresh,this),this._errorHandler=B(this._error,this),this.dataSource.bind(le,this._refreshHandler),this.dataSource.bind(pe,this._errorHandler)},_unbindDataSource:function(){var e=this.dataSource;e&&(e.unbind(le,this._refreshHandler),e.unbind(pe,this._errorHandler))},_error:function(){},findByUid:function(e){var t=this._overflowWrapper()||this.element;return t.find("["+x.attr("uid")+"="+e+"]")},refresh:function(t){var n=this,o=t.node,i=t.action,r=o?n.findByUid(o.uid):n.element,a=t.items,s=t.index,l=e.proxy(n._updateItem,n),p=e.proxy(n._removeItem,n);"add"==i?n._appendItems(a,s,r):"remove"==i?a.forEach(p):"itemchange"==i?a.forEach(l):"itemloaded"===i?n.append(t.items,r):this._initData(),this.trigger(je,{item:r,dataItem:o})},_appendItems:function(e,t,n){var o=this,i=n.find(De).eq(t);i.length?o.insertBefore(e,i):o.append(e,n)},_removeItem:function(e){var t=this,n=t.findByUid(e.uid);t.remove(n)},_updateItem:function(e){var t=this,n=t.findByUid(e.uid),o=n.next(),i=e.parentNode();t.remove(n),o.length?t.insertBefore(e,o):t.append(e,i&&t.findByUid(i.uid))},_accessors:function(){var e,t,n,o=this,i=o.options,r=o.element;for(e in Ke)t=i[Ke[e]],n=r.attr(x.attr(e+"-field")),!t&&n&&(t=n),t||(t=e),I(t)||(t=[t]),i[Ke[e]]=t},_fieldAccessor:function(t){var n=this.options[Ke[t]]||[],o=n.length,i="(function(item) {";return 0===o?i+="return item['"+t+"'];":(i+="var levels = ["+e.map(n,function(e){return"function(d){ return "+x.expr(e)+"}"}).join(",")+"];", i+="if(item.level){return levels[Math.min(item.level(), "+o+"-1)](item);}else",i+="{return levels["+o+"-1](item)}"),i+="})"},_templates:function(){var e=this,t=e.options,n=B(e._fieldAccessor,e);t.template&&typeof t.template==Ge?t.template=R(t.template):t.template||(t.template=R("# var text = "+n("text")+"(data.item); ## if (typeof data.item.encoded != 'undefined' && data.item.encoded === false) {##= text ## } else { ##: text ## } #")),e.templates={content:R("#var contentHtml = "+n("content")+"(item);#<div #= contentCssAttributes(item.toJSON ? item.toJSON() : item) # tabindex='-1'>#= contentHtml || '' #</div>"),group:R("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) # role='menu' aria-hidden='true'>#= renderItems(data) #</ul>"),itemWrapper:R("# var url = "+n("url")+"(item); ## var imageUrl = "+n("imageUrl")+"(item); ## var imgAttributes = "+n("imageAttr")+"(item);## var tag = url ? 'a' : 'span' #<#= tag # class='#= textClass(item) #' #if(url){#href='#= url #'#}#># if (imageUrl) { #<img #= imageCssAttributes(imgAttributes) # alt='' src='#= imageUrl #' /># } ##= sprite(item) ##= data.menu.options.template(data) ##= arrow(data) #</#= tag #>"),item:R("#var contentHtml = "+n("content")+"(item);#<li class='#= wrapperCssClass(group, item) #' #= itemCssAttributes(item.toJSON ? item.toJSON() : item) # role='menuitem' #=item.items ? \"aria-haspopup='true'\": \"\"##=item.enabled === false ? \"aria-disabled='true'\" : ''#"+x.attr("uid")+"='#= item.uid #' >#= itemWrapper(data) ##if (item.hasChildren || item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl || contentHtml) { ##= renderContent(data) ## } ## if(item.items && item.items.length > 0) { # # if(item.expanded) { # aria-expanded='true'# } else { # aria-expanded='false'# } ## } #</li>"),scrollButton:R("<span class='k-button k-button-icon k-menu-scroll-button k-scroll-#= direction #' unselectable='on'><span class='k-icon k-i-arrow-60-#= direction #'></span></span>"),arrow:R("<span class='#= arrowClass(item, group) #'></span>"),sprite:R("# var spriteCssClass = "+n("spriteCssClass")+"(data); if(spriteCssClass) {#<span class='k-sprite #= spriteCssClass #'></span>#}#"),empty:R("")}},renderItem:function(e){var t,n,o=this;return e=M({menu:o,group:{}},e),t=o.templates.empty,n=e.item,o.templates.item(M(e,{sprite:o.templates.sprite,itemWrapper:o.templates.itemWrapper,renderContent:o.renderContent,arrow:n.items||n.content||n[o.options.dataContentField[0]]?o.templates.arrow:t,subGroup:o.renderGroup},Xe))},renderGroup:function(e){var t=this,n=t.templates||e.menu.templates;return n.group(M({renderItems:function(e){for(var t="",n=0,o=e.items,i=o?o.length:0,r=M({length:i},e.group);n<i;n++)t+=e.menu.renderItem(M(e,{group:r,item:M({index:n},o[n])}));return t}},e,Xe))},renderContent:function(e){return e.menu.templates.content(M(e,Xe))}}),qe=Ye.extend({init:function(t,n){var o=this;Ye.fn.init.call(o,t,n),o.element.attr("role","menu"),o._marker=x.guid().substring(0,8),o.target=e(o.options.target),o._popup(),o._wire()},_initOverflow:function(t){var n=this;t.scrollable&&!n._overflowWrapper()&&(n._openedPopups={},n._popupsWrapper=(n.element.parent().is(Se)?n.element.parent():n.element).wrap("<div class='k-popups-wrapper "+t.orientation+"'></div>").parent(),"horizontal"==n.options.orientation&&P(n.element),t.appendTo&&(t.appendTo=e(t.appendTo),t.appendTo.append(n._popupsWrapper)),n._initialHeight=n.element[0].style.height,n._initialWidth=n.element[0].style.width)},options:{name:"ContextMenu",filter:null,showOn:"contextmenu",orientation:"vertical",alignToAnchor:!1,copyAnchorStyles:!0,target:"body"},events:[j,V,ne,oe,ee],setOptions:function(t){var n=this;Ye.fn.setOptions.call(n,t),n.target.off(n.showOn+F+n._marker,n._showProxy),n.userEvents&&n.userEvents.destroy(),n.target=e(n.options.target),t.orientation&&n.popup.wrapper[0]&&n.popup.element.unwrap(),n._wire(),Ye.fn.setOptions.call(this,t)},destroy:function(){var e=this;e.target.off(e.options.showOn+F+e._marker),Ce.off(x.support.mousedown+F+e._marker,e._closeProxy),e.userEvents&&e.userEvents.destroy(),Ye.fn.destroy.call(e)},open:function(n,o){var r,a,s=this;return n=e(n)[0],i(s.element[0],e(n)[0])||s._itemHasChildren(e(n))?Ye.fn.open.call(s,n):s._triggerEvent({item:s.element,type:j})===!1&&(s.popup.visible()&&s.options.filter&&(s.popup.close(!0),s.popup.element.kendoStop(!0)),o!==t?(r=s._overflowWrapper(),r&&(a=r.offset(),n-=a.left,o-=a.top),s.popup.wrapper.hide(),s._configurePopupScrolling(n,o),s.popup.open(n,o)):(s.popup.options.anchor=(n?n:s.popup.anchor)||s.target,s.popup.element.kendoStop(!0),s._configurePopupScrolling(),s.popup.open()),Ce.off(s.popup.downEvent,s.popup._mousedownProxy),Ce.on(x.support.mousedown+F+s._marker,s._closeProxy),s.element.focus()),s},_configurePopupScrolling:function(e,n){var o=this,i=o.popup,r="horizontal"==o.options.orientation;o.options.scrollable&&(o._wrapPopupElement(i),i.element.parent().css({position:"",height:""}),i.element.css({visibility:"hidden",display:"",position:""}),r?o._setPopupWidth(i,isNaN(e)?t:{isFixed:!0,x:e,y:n}):o._setPopupHeight(i,isNaN(e)?t:{isFixed:!0,x:e,y:n}),i.element.css({visibility:"",display:"none",position:"absolute"}),o._initPopupScrollButtons(i,r,!0),i.element.siblings(Le).hide())},_setPopupWidth:function(t,n){var o,i,r,a,s,l,p,c,u=t.element,d=u.add(u.parent(Se));d.width(this._initialWidth||""),o=t._location(n),i=e(window).width(),r=o.width,a=Math.max(o.left,0),s=n?0:C(this._overflowWrapper()[0],"scrollLeft"),l=x.getShadows(u),p=i-l.left-l.right,c=p+s>r+a,c||d.css({overflow:"hidden",width:p-a+s+"px"})},close:function(){var t=this;i(t.element[0],e(arguments[0])[0])||t._itemHasChildren(arguments[0])?Ye.fn.close.call(t,arguments[0]):t.popup.visible()&&t._triggerEvent({item:t.element,type:V})===!1&&(t._removeHoverItem(),t.element.find("#"+t._ariaId).removeAttr("id"),t.popup.close(),Ce.off(x.support.mousedown+F+t._marker,t._closeProxy),t.unbind(ee,t._closeTimeoutProxy),t.target.focus())},_showHandler:function(t){var n,o=t,r=this,a=r.options,s=e(x.support.mobileOS?o.target:o.currentTarget);t.event&&(o=t.event,o.pageX=t.x.location,o.pageY=t.y.location),i(r.element[0],t.relatedTarget||t.target)||(r._eventOrigin=o,o.preventDefault(),o.stopImmediatePropagation(),r.element.find("."+xe).removeClass(xe),(a.filter&&s.is(a.filter)||!a.filter)&&(a.alignToAnchor?(r.popup.options.anchor=o.currentTarget,r.open(o.currentTarget)):(r.popup.options.anchor=o.currentTarget,r._targetChild?(n=r.target.offset(),r.open(o.pageX-n.left,o.pageY-n.top)):r.open(o.pageX,o.pageY))))},_closeHandler:function(t){var n,o=this,r=e(t.relatedTarget||t.target),a=r.closest(o.target.selector)[0]==o.target[0],s=r.closest(De),l=o._itemHasChildren(s),p=o._overflowWrapper(),c=i(o.element[0],r[0])||p&&i(p[0],r[0]);o._eventOrigin=t,n=3!==t.which,o.popup.visible()&&(n&&a||!a)&&(o.options.closeOnClick&&!l&&c||!c)&&(c?(this.unbind(ee,this._closeTimeoutProxy),o.bind(ee,o._closeTimeoutProxy)):o.close())},_wire:function(){var e=this,t=e.options,n=e.target;e._preventProxy=null,e._showProxy=B(e._showHandler,e),e._closeProxy=B(e._closeHandler,e),e._closeTimeoutProxy=B(e.close,e),n[0]&&(x.support.mobileOS&&"contextmenu"==t.showOn&&(e.userEvents=new x.UserEvents(n,{filter:t.filter,allowSelection:!1}),e._preventProxy=function(){return!1},e.userEvents.bind("hold",e._showProxy)),t.filter?n.on(t.showOn+F+e._marker,t.filter,e._preventProxy||e._showProxy):n.on(t.showOn+F+e._marker,e._preventProxy||e._showProxy))},_triggerEvent:function(n){var o=this,i=e(o.popup.options.anchor)[0],r=o._eventOrigin;return o._eventOrigin=t,o.trigger(n.type,M({type:n.type,item:n.item||this.element[0],target:i},r?{event:r}:{}))},_popup:function(){var t=this,n=t._overflowWrapper();t._triggerProxy=B(t._triggerEvent,t),t.popup=t.element.addClass("k-context-menu").kendoPopup({autosize:"horizontal"===t.options.orientation,anchor:t.target||"body",copyAnchorStyles:t.options.copyAnchorStyles,collision:t.options.popupCollision||"fit",animation:t.options.animation,activate:t._triggerProxy,deactivate:t._triggerProxy,appendTo:n||t.options.appendTo,close:n?function(t){e(v(t.sender.element,n)).each(function(e,t){var n=t.data(be);n&&n.close(!0)})}:e.noop}).data(be),t._targetChild=i(t.target[0],t.popup.element[0])},_moveHoverToRoot:function(e,t){this._moveHover(e,t),this.close()},_focus:function(e){var t=this._oldHoverItem=this._hoverItem()||[];Ye.fn._focus.call(this,e),H()===e.currentTarget&&this._moveHover(t,this.wrapper.children().first())}});T.plugin(Ye),T.plugin(qe)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(t,define){define("kendo.scheduler.view.min",["kendo.core.min"],t)}(function(){return kendo.ui.scheduler={},function(t){function e(t,e){function n(t,o){var s,r;if(o=o[e])for(s=i[t]=i[t]||[],r=0;r<o.length;r++)s.push(o[r]),n(t+1,o[r])}var i=[];return n(0,t),i}function n(t,e){return t.length?'<table role="presentation" class="'+y.trim("k-scheduler-table "+(e||""))+'"><tr>'+t.join("</tr><tr>")+"</tr></table>":""}function i(t,e){return t.length?"<div style='position:relative'>"+n(t,e)+"</div>":""}function o(e,i,o){var s,r=[];if(o>0)for(s=0;s<e;s++)r.push("<th>​</th>");return i&&r.push('<th class="k-scheduler-times-all-day">'+i.text+"</th>"),o<1?t():t('<div class="k-scheduler-times">'+n(r)+"</div>")}function s(){return t('<div class="k-scheduler-content"><table role="presentation" class="k-scheduler-table"></table></div>')}function r(){return v=v?v:y.support.scrollbar()}function l(t,e,n){var i,o,s,r,l;for(i=t.length-1;i>=0;i--)o=a(t[i]),s=o.start,l=o.end,r=s<=e&&l>=e,(r||s>=e&&l<=n||e<=s&&n>=s)&&(s<e&&(e=s),l>n&&(n=l));return u(t,e,n)}function a(t){return{start:t.start,end:t.end}}function u(t,e,n){var i,o,s=[];for(i=0;i<t.length;i++)o=a(t[i]),(o.start<e&&o.end>e||o.start>=e&&o.end<=n)&&s.push(t[i]);return s}function h(t){return d(t)}function c(t){return d(t)}function d(t){var e,n,i,o,s,r,l,u=[];for(e=0;e<t.length;e++){for(n=t[e],i=a(n),o=null,s=0,r=u.length;s<r;s++)if(l=i.start>u[s].end,i.start<u[s].start||l){o=u[s],o.end<i.end&&(o.end=i.end);break}o||(o={start:i.start,end:i.end,events:[]},u.push(o)),o.events.push(n)}return u}function f(e,n,i,o){var s=[];return t.each(n,function(t,n){var r=n.className?"k-slot-cell "+n.className:"k-slot-cell",l={text:n.text,className:r};l[e]=o&&!n.minorTicks?f(e,n.columns,i,o):i,s.push(l)}),s}function g(e,n,i,o,s,r,l){var a,u,h,c,d=n[0],f=[];if(d){if(s&&i)t.each(s,function(t,i){i[e]=r&&!i.minorTicks?g(e,n,i.columns,o,i.columns,r,l):g(e,n,null,o,null,null,l)}),f=s;else for(a=d.dataSource.view(),a=a.filter(function(t){var e=y.getter(d.dataParentValueField)(t);return null===e||void 0===e||e===l}),u=0;u<a.length;u++)h=y.getter(d.dataValueField)(a[u]),c={text:o({text:y.htmlEncode(y.getter(d.dataTextField)(a[u])),color:y.getter(d.dataColorField)(a[u]),field:d.field,title:d.title,name:d.name,value:h}),className:"k-slot-cell k-scheduler-group-cell",parentValue:l,value:h},c[e]=g(e,n.slice(1),i,o,s,r,h),f.push(c);return f}return i}function p(e){return function(n){if(t.isArray(n)||n instanceof y.data.ObservableArray){for(var i=0;i<n.length;i++)if(n[i]==e)return!0;return!1}return n==e}}function _(t){t.className=t.className.replace(S,"")+" k-state-selected"}var v,m,S,y=window.kendo,C=y.ui,b=y.date.getDate,D=C.Widget,x=y._outerHeight,w=y.keys,k=".kendoSchedulerView",R="k-event-inverse",I=1024,H=Math,T='<div class="k-marquee k-scheduler-marquee"><div class="k-marquee-color"></div><div class="k-marquee-text"><div class="k-label-top"></div><div class="k-label-bottom"></div></div></div>',L=y.Class.extend({init:function(t,e,n){this._index=t,this._timeSlotCollections=[],this._daySlotCollections=[],this._isRtl=e,this._enforceAllDaySlot=n},addTimeSlotCollection:function(t,e){return this._addCollection(t,e,this._timeSlotCollections)},addDaySlotCollection:function(t,e){return this._addCollection(t,e,this._daySlotCollections)},_addCollection:function(t,e,n){var i=new G(t,e,this._index,n.length);return n.push(i),i},timeSlotCollectionCount:function(){return this._timeSlotCollections.length},daySlotCollectionCount:function(){return this._daySlotCollections.length},daySlotByPosition:function(t,e,n){return this._slotByPosition(t,e,this._daySlotCollections,n)},timeSlotByPosition:function(t,e,n){return this._slotByPosition(t,e,this._timeSlotCollections,n)},_slotByPosition:function(t,e,n,i){var o,s,r,l,a,u,h,c,d;for(o=0;o<n.length;o++)for(s=n[o],r=0;r<s.count();r++)if(l=s.at(r),a=l.offsetWidth,u=l.offsetHeight,c=l.offsetLeft+a,d=l.offsetTop+u,i||(h=s.at(r+1)),h&&(h.offsetLeft!=l.offsetLeft?c=this._isRtl?l.offsetLeft+(l.offsetLeft-h.offsetLeft):h.offsetLeft:d=h.offsetTop),t>=l.offsetLeft&&t<c&&e>=l.offsetTop&&e<d)return l},refresh:function(){var t;for(t=0;t<this._daySlotCollections.length;t++)this._daySlotCollections[t].refresh();for(t=0;t<this._timeSlotCollections.length;t++)this._timeSlotCollections[t].refresh()},timeSlotRanges:function(t,e){var n,i,o,s=this._timeSlotCollections,r=this._startSlot(t,s);if(!r.inRange&&t>=r.slot.end&&(n=r.slot.collectionIndex+1,r=null),o=r,t<e&&(o=this._endSlot(e,s)),o&&!o.inRange&&e<=o.slot.start&&(i=o.slot.collectionIndex,e===o.slot.start&&(r&&i>r.slot.collectionIndex||i>n)&&(i-=1),o=null),null===r&&null===o){if(e-t<y.date.MS_PER_DAY)return[];r={inRange:!0,slot:s[n].first()},o={inRange:!0,slot:s[i].last()}}if(null===r){if(o.slot.end<=t)return[];r={inRange:!0,slot:(s[n]||s[o.slot.collectionIndex]).first()}}if(null===o){if(r.slot.start>=e)return[];o={inRange:!0,slot:(s[i]||s[r.slot.collectionIndex]).last()}}return this._continuousRange(E,s,r,o)},daySlotRanges:function(t,e,n){var i,o=this._daySlotCollections,s=this._startSlot(t,o,n);if(!s.inRange&&t>=s.slot.end&&(s=null),i=s,t<e&&(i=this._endSlot(e,o,n)),i&&!i.inRange&&e<=i.slot.start&&(i=null),null===s&&null===i)return[];if(null===s){if(i.slot.end<=t)return[];do t+=y.date.MS_PER_DAY,s=this._startSlot(t,o,n);while(!s.inRange&&t>=s.slot.end)}if(null===i){if(s.slot.start>=e)return[];do e-=y.date.MS_PER_DAY,i=this._endSlot(e,o,n);while(!i.inRange&&e<=i.slot.start)}return this._continuousRange(V,o,s,i)},_continuousRange:function(t,e,n,i){var o,s,r,l,a,u,h=n.slot,c=i.slot,d=h.collectionIndex,f=c.collectionIndex,g=[];for(o=d;o<=f;o++)s=e[o],r=s.first(),l=s.last(),a=!1,u=!1,o==d&&(u=!n.inRange),o==f&&(a=!i.inRange),r.start<h.start&&(r=h),l.start>c.start&&(l=c),d<f&&(o==d?a=!0:o==f?u=!0:a=u=!0),g.push(new t({start:r,end:l,collection:s,head:a,tail:u}));return g},slotRanges:function(t,e){var n=t._startTime||y.date.toUtcTime(t.start),i=t._endTime||y.date.toUtcTime(t.end);return void 0===e&&(e=this._enforceAllDaySlot?t.isMultiDay():t.isAllDay),e?this.daySlotRanges(n,i,t.isAllDay):this.timeSlotRanges(n,i)},ranges:function(t,e,n,i){return"number"!=typeof t&&(t=y.date.toUtcTime(t)),"number"!=typeof e&&(e=y.date.toUtcTime(e)),n?this.daySlotRanges(t,e,i):this.timeSlotRanges(t,e)},_startCollection:function(t,e){var n,i;for(n=0;n<e.length;n++)if(i=e[n],i.startInRange(t))return i;return null},_endCollection:function(t,e,n){var i,o;for(i=0;i<e.length;i++)if(o=e[i],o.endInRange(t,n))return o;return null},_getCollections:function(t){return t?this._daySlotCollections:this._timeSlotCollections},continuousSlot:function(t,e){var n=e?-1:1,i=this._getCollections(t.isDaySlot),o=i[t.collectionIndex+n];return o?o[e?"last":"first"]():void 0},firstSlot:function(){var t=this._getCollections(this.daySlotCollectionCount());return t[0].first()},lastSlot:function(){var t=this._getCollections(this.daySlotCollectionCount());return t[t.length-1].last()},upSlot:function(t,e,n){var i=this,o=function(t,n,o){var s=0===o;if(!e&&!t&&s&&i.daySlotCollectionCount())return i._daySlotCollections[0].at(n)};return this.timeSlotCollectionCount()||(e=!0),this._verticalSlot(t,-1,o,n)},downSlot:function(t,e,n){var i=this,o=function(t,n,o){if(!e&&t&&i.timeSlotCollectionCount())return i._timeSlotCollections[o].at(0)};return this.timeSlotCollectionCount()||(e=!0),this._verticalSlot(t,1,o,n)},leftSlot:function(t,e){return this._horizontalSlot(t,-1,e)},rightSlot:function(t,e){return this._horizontalSlot(t,1,e)},_horizontalSlot:function(t,e,n){var i,o=t.index,s=t.isDaySlot,r=t.collectionIndex,l=this._getCollections(s);return s=!n&&s,s?o+=e:r+=e,i=l[r],i?i.at(o):void 0},_verticalSlot:function(t,e,n,i){var o,s=t.index,r=t.isDaySlot,l=t.collectionIndex,a=this._getCollections(r);return(t=n(r,l,s))?t:(r=!i&&r,r?l+=e:s+=e,o=a[l],o?o.at(s):void 0)},_collection:function(t,e){var n=e?this._daySlotCollections:this._timeSlotCollections;return n[t]},_startSlot:function(t,e,n){var i,o=this._startCollection(t,e),s=!0,r=0;if(!o){for(o=e[r];r<e.length-1&&o._start<t;)r++,o=e[r];s=!1}return i=o.slotByStartDate(t,n),i||(i=o.first(),s=!1),{slot:i,inRange:s}},_endSlot:function(t,e,n){var i,o=this._endCollection(t,e,n),s=!0,r=e.length-1;if(!o){for(o=e[r];r>0&&o._start>t;)r--,o=e[r];s=!1}return i=o.slotByEndDate(t,n),i||(i=t<=o.first().start?o.first():o.last(),s=!1),{slot:i,inRange:s}},getSlotCollection:function(t,e){return this[e?"getDaySlotCollection":"getTimeSlotCollection"](t)},getTimeSlotCollection:function(t){return this._timeSlotCollections[t]},getDaySlotCollection:function(t){return this._daySlotCollections[t]}}),z=y.Class.extend({init:function(e){t.extend(this,e)},innerHeight:function(){var t,e=this.collection,n=this.start.index,i=this.end.index,o=0;for(t=n;t<=i;t++)o+=e.at(t).offsetHeight;return o},events:function(){return this.collection.events()},addEvent:function(t){this.events().push(t)},startSlot:function(){return this.start.offsetLeft>this.end.offsetLeft?this.end:this.start},endSlot:function(){return this.start.offsetLeft>this.end.offsetLeft?this.start:this.end}}),E=z.extend({innerHeight:function(){var t,e=this.collection,n=this.start.index,i=this.end.index,o=0;for(t=n;t<=i;t++)o+=e.at(t).offsetHeight;return o},outerRect:function(t,e,n){return this._rect("offset",t,e,n)},_rect:function(t,e,n,i){var o,s,r,l,a,u,h,c,d=this.start,f=this.end,g=y.support.isRtl(d.element);return"number"!=typeof e&&(e=y.date.toUtcTime(e)),"number"!=typeof n&&(n=y.date.toUtcTime(n)),i?(o=d.offsetTop,s=f.offsetTop+f[t+"Height"],g?(r=f.offsetLeft,l=d.offsetLeft+d[t+"Width"]):(r=d.offsetLeft,l=f.offsetLeft+f[t+"Width"])):(a=e-d.start,a<0&&(a=0),u=d.end-d.start,o=d.offsetTop+d[t+"Height"]*a/u,h=f.end-n,h<0&&(h=0),c=f.end-f.start,s=f.offsetTop+f[t+"Height"]-f[t+"Height"]*h/c,g?(r=Math.round(f.offsetLeft+f[t+"Width"]*h/c),l=Math.round(d.offsetLeft+d[t+"Width"]-d[t+"Width"]*a/u)):(r=Math.round(d.offsetLeft+d[t+"Width"]*a/u),l=Math.round(f.offsetLeft+f[t+"Width"]-f[t+"Width"]*h/c))),{top:o,bottom:s,left:0===r?r:r+1,right:l}},innerRect:function(t,e,n){return this._rect("client",t,e,n)}}),V=z.extend({innerWidth:function(){var t,e=this.collection,n=this.start.index,i=this.end.index,o=0,s=n!==i?"offsetWidth":"clientWidth";for(t=n;t<=i;t++)o+=e.at(t)[s];return o}}),G=y.Class.extend({init:function(t,e,n,i){this._slots=[],this._events=[],this._start=y.date.toUtcTime(t),this._end=y.date.toUtcTime(e),this._groupIndex=n,this._collectionIndex=i},refresh:function(){for(var t=0;t<this._slots.length;t++)this._slots[t].refresh()},startInRange:function(t){return this._start<=t&&t<this._end},endInRange:function(t,e){var n=e?t<this._end:t<=this._end;return this._start<=t&&n},slotByStartDate:function(t){var e,n,i=t;for("number"!=typeof i&&(i=y.date.toUtcTime(t)),e=0;e<this._slots.length;e++)if(n=this._slots[e],n.startInRange(i))return n;return null},slotByEndDate:function(t,e){var n,i,o=t;if("number"!=typeof o&&(o=y.date.toUtcTime(t)),e)return this.slotByStartDate(t,!1);for(n=0;n<this._slots.length;n++)if(i=this._slots[n],i.endInRange(o))return i;return null},count:function(){return this._slots.length},events:function(){return this._events},addTimeSlot:function(t,e,n,i){var o=new B(t,e,n,this._groupIndex,this._collectionIndex,this._slots.length,i);this._slots.push(o)},addDaySlot:function(t,e,n,i){var o=new M(t,e,n,this._groupIndex,this._collectionIndex,this._slots.length,i);this._slots.push(o)},first:function(){return this._slots[0]},last:function(){return this._slots[this._slots.length-1]},at:function(t){return this._slots[t]}}),A=y.Class.extend({init:function(t,e,n,i,o,s){this.element=t,this.clientWidth=t.clientWidth,this.clientHeight=t.clientHeight,this.offsetWidth=t.offsetWidth,this.offsetHeight=t.offsetHeight,this.offsetTop=t.offsetTop,this.offsetLeft=t.offsetLeft,this.start=e,this.end=n,this.element=t,this.groupIndex=i,this.collectionIndex=o,this.index=s,this.isDaySlot=!1},refresh:function(){var t=this.element;this.clientWidth=t.clientWidth,this.clientHeight=t.clientHeight,this.offsetWidth=t.offsetWidth,this.offsetHeight=t.offsetHeight,this.offsetTop=t.offsetTop,this.offsetLeft=t.offsetLeft},startDate:function(){return y.timezone.toLocalDate(this.start)},endDate:function(){return y.timezone.toLocalDate(this.end)},startInRange:function(t){return this.start<=t&&t<this.end},endInRange:function(t){return this.start<t&&t<=this.end},startOffset:function(){return this.start},endOffset:function(){return this.end}}),B=A.extend({init:function(t,e,n,i,o,s,r){A.fn.init.apply(this,arguments),this.isHorizontal=!!r},offsetX:function(t,e){return t?this.offsetLeft+e:this.offsetLeft+e},startInRange:function(t){return this.start<=t&&t<this.end},endInRange:function(t){return this.start<t&&t<=this.end},startOffset:function(e,n,i){var o,s,r,l,a;if(i)return this.start;if(o=t(this.element).offset(),s=this.end-this.start,this.isHorizontal){if(a=y.support.isRtl(this.element),r=e-o.left,l=Math.floor(s*(r/this.offsetWidth)),a)return this.start+s-l}else r=n-o.top,l=Math.floor(s*(r/this.offsetHeight));return this.start+l},endOffset:function(e,n,i){var o,s,r,l,a;if(i)return this.end;if(o=t(this.element).offset(),s=this.end-this.start,this.isHorizontal){if(a=y.support.isRtl(this.element),r=e-o.left,l=Math.floor(s*(r/this.offsetWidth)),a)return this.start+s-l}else r=n-o.top,l=Math.floor(s*(r/this.offsetHeight));return this.start+l}}),M=A.extend({init:function(t,e,n,i,o,s,r){if(A.fn.init.apply(this,arguments),this.eventCount=r,this.isDaySlot=!0,this.element.children.length){var l=this.element.children[0];this.firstChildHeight=l.offsetHeight,this.firstChildTop=l.offsetTop}else this.firstChildHeight=3,this.firstChildTop=0},startDate:function(){var t=new Date(this.start);return y.timezone.apply(t,"Etc/UTC")},endDate:function(){var t=new Date(this.end);return y.timezone.apply(t,"Etc/UTC")},startInRange:function(t){return this.start<=t&&t<this.end},endInRange:function(t){return this.start<t&&t<=this.end}});y.ui.SchedulerView=D.extend({init:function(e,n){D.fn.init.call(this,e,n),this._normalizeOptions(),this._scrollbar=r(),this._isRtl=y.support.isRtl(e),this._resizeHint=t(),this._moveHint=t(),this._cellId=y.guid(),this._resourcesForGroups(),this._selectedSlots=[]},visibleEndDate:function(){return this.endDate()},_normalizeOptions:function(){var t=this.options;t.startTime&&t.startTime.setMilliseconds(0),t.endTime&&t.endTime.setMilliseconds(0),t.workDayStart&&t.workDayStart.setMilliseconds(0),t.workDayEnd&&t.workDayEnd.setMilliseconds(0)},_isMobile:function(){var t=this.options;return t.mobile===!0&&y.support.mobileOS||"phone"===t.mobile||"tablet"===t.mobile},_addResourceView:function(){var t=new L(this.groups.length,this._isRtl,this.options.enforceAllDaySlot);return this.groups.push(t),t},dateForTitle:function(){return y.format(this.options.selectedDateFormat,this.startDate(),this.endDate())},shortDateForTitle:function(){return y.format(this.options.selectedShortDateFormat,this.startDate(),this.endDate())},mobileDateForTitle:function(){return y.format(this.options.selectedMobileDateFormat||this.options.selectedShortDateFormat,this.startDate(),this.endDate())},_changeGroup:function(t,e){var n=e?"prevGroupSlot":"nextGroupSlot",i=this[n](t.start,t.groupIndex,t.isAllDay);return i&&(t.groupIndex+=e?-1:1),this._isGroupedByDate()&&!i&&(t.groupIndex=e?this.groups.length-1:0),i},_changeDate:function(t,e,n){var i,o,s,r=this.groups[t.groupIndex];if(n){if(i=r._getCollections(!1),o=r.daySlotCollectionCount()?e.index-1:e.collectionIndex-1,o>=0)return i[o]._slots[i[o]._slots.length-1]}else if(i=r._getCollections(r.daySlotCollectionCount()),o=r.daySlotCollectionCount()?0:e.collectionIndex+1,s=r.daySlotCollectionCount()?e.collectionIndex+1:0,i[o]&&i[o]._slots[s])return i[o]._slots[s]},_changeGroupContinuously:function(){return null},_changeViewPeriod:function(){return!1},_isInRange:function(t,e){return!!(t&&e&&this.options.min&&this.options.max)&&(b(t)<=b(this.options.min)||b(e)>=b(this.options.max))},_horizontalSlots:function(t,e,n,i){var o,s,r,l=i?"leftSlot":"rightSlot",a={startSlot:e[0].start,endSlot:e[e.length-1].end},u=this.groups[t.groupIndex],h=this._isVerticallyGrouped();return n||(o=this._normalizeHorizontalSelection(t,e,i),o&&(a.startSlot=a.endSlot=o)),this._isGroupedByDate()&&!n?(s=this._changeGroup(t,i),s?a.startSlot=a.endSlot=s:a=this._getNextHorizontalRange(u,l,a)):(a.startSlot=u[l](a.startSlot),a.endSlot=u[l](a.endSlot),n||h||a.startSlot&&a.endSlot||(a.startSlot=a.endSlot=this._changeGroup(t,i))),a.startSlot&&a.endSlot||this._isGroupedByDate()||(r=this._continuousSlot(t,e,i),r=this._changeGroupContinuously(t,r,n,i),r&&(a.startSlot=a.endSlot=r)),a},_getNextHorizontalRange:function(t,e,n){return this._isVerticallyGrouped()||(n.startSlot=t[e](n.startSlot),n.endSlot=t[e](n.endSlot)),n},_verticalSlots:function(t,e,n,i){var o,s,r=this.groups[t.groupIndex],l={startSlot:e[0].start,endSlot:e[e.length-1].end};return n||(o=this._normalizeVerticalSelection(t,e,i),o&&(l.startSlot=l.endSlot=o)),s=i?"upSlot":"downSlot",l=this._getNextVerticalRange(r,s,l,n),n||!this._isVerticallyGrouped()||l.startSlot&&l.endSlot||(l.startSlot=l.endSlot=this._isGroupedByDate()?this._changeDate(t,o,i):this._changeGroup(t,i)),l},_getNextVerticalRange:function(t,e,n,i){return n.startSlot=t[e](n.startSlot,i),n.endSlot=t[e](n.endSlot,i),n},_normalizeHorizontalSelection:function(){return null},_normalizeVerticalSelection:function(t,e,n){var i;return i=n?e[0].start:e[e.length-1].end},_continuousSlot:function(){return null},_footer:function(){var e,n=this,i=n.options;n._isMobile()&&(e='<div class="k-scheduler-footer k-toolbar">',e+='<span class="k-state-default k-scheduler-today"><a href="#" class="k-link">',e+=i.messages.today+"</a></span>",e+="</div>",n.footer=t(e).appendTo(n.element)),n.footer&&n.footer.on("click"+k,".k-scheduler-today",function(t){var e,o,s,r,l;t.preventDefault(),e=n.options.timezone,o="today",s=new Date,e?(l=y.timezone.offset(s,e),r=y.timezone.convert(s,s.getTimezoneOffset(),l)):r=s,n.trigger("navigate",{view:n.name||i.name,action:o,date:r})})},constrainSelection:function(t){var e,n=this.groups[0];this.inRange(t)?n.daySlotCollectionCount()?n.timeSlotCollectionCount()||(t.isAllDay=!0):t.isAllDay=!1:(e=n.firstSlot(),t.isAllDay=e.isDaySlot,t.start=e.startDate(),t.end=e.endDate()),this.groups[t.groupIndex]||(t.groupIndex=0)},move:function(t,e,n){var i,o,s,r,l,a,u=!1,h=this.groups[t.groupIndex],c=this._isGroupedByDate()&&this._isVerticallyGrouped();if(h.timeSlotCollectionCount()||(t.isAllDay=!0),i=h.ranges(t.start,t.end,t.isAllDay,!1),e===w.DOWN||e===w.UP){if(u=!0,r=e===w.UP,this._updateDirection(t,i,n,r,!0),l=this._verticalSlots(t,i,n,r),!l.startSlot&&!n&&this._changeViewPeriod(t,r,!c))return u}else if((e===w.LEFT||e===w.RIGHT)&&(u=!0,r=e===w.LEFT,this._updateDirection(t,i,n,r,!1),l=this._horizontalSlots(t,i,n,r),!l.startSlot&&!n&&this._changeViewPeriod(t,r,c)))return u;return u&&(o=l.startSlot,s=l.endSlot,n?(a=t.backward,a&&o?t.start=o.startDate():!a&&s&&(t.end=s.endDate())):o&&s&&(t.isAllDay=o.isDaySlot,t.start=o.startDate(),t.end=s.endDate()),t.events=[]),u},moveToEventInGroup:function(e,n,i,o){var s,r,l,a,u=e._continuousEvents||[],h=o?-1:1,c=u.length,d=o?c-1:0;if(i.length)for(l=i[i.length-1],a=0;a<u.length;a++)u[a].uid===l&&(d=a+h);for(;d<c&&d>-1;){if(r=u[d],(!o&&r.start.startDate()>=n.startDate()||o&&r.start.startDate()<=n.startDate())&&r&&t.inArray(r.uid,i)===-1){s=!!r;break}d+=h}return r},moveToEvent:function(t,e){var n,i,o,s,r,l,a=t.groupIndex,u=this.groups[a],h=u.ranges(t.start,t.end,t.isAllDay,!1)[0].start,c=this.groups.length,d=e?-1:1,f=t.events;if(this._isGroupedByDate())if(i=this._getAllEvents(),o=this._getUniqueEvents(i),s=this._getSortedEvents(o),0===f.length)r=this._getNextEventIndexBySlot(h,s,a),e&&r--,n=s[r];else for(l=this._getStartIdx(f,s);l<s.length&&l>-1&&(f.length>0&&(h=this._getSelectedSlot(h,s,n,l,d,e)),h);){if((!e&&s[l].start.startDate()>=h.startDate()||e&&s[l].start.startDate()<=h.startDate())&&f[0]!=s[l].uid){n=s[l];break}l+=d}else for(;a<c&&a>-1&&(n=this.moveToEventInGroup(u,h,f,e),a+=d,u=this.groups[a],u&&!n);)f=[],h=e?u.lastSlot():u.firstSlot(!0);return n&&(t.events=[n.uid],t.start=n.start.startDate(),t.end=n.end.endDate(),t.isAllDay=n.start.isDaySlot,t.groupIndex=n.start.groupIndex),!!n},current:function(t){return void 0===t?this._current:(this._current=t,void(this.content.has(t)&&this._scrollTo(t,this.content[0])))},select:function(t){this.clearSelection(),this._selectEvents(t)||this._selectSlots(t)},_getNextEventIndexBySlot:function(t,e,n){var i,o,s=0,r=y.date.getDate(t.startDate());for(i=0;i<e.length;i++)if(o=y.date.getDate(e[i].start.startDate()),r>o)s++;else if(r.getTime()===o.getTime()&&n>e[i].start.groupIndex)s++;else{if(!(r.getTime()===o.getTime()&&n>=e[i].start.groupIndex&&t.startDate()>e[i].start.startDate()))break;s++}return s},_getSelectedSlot:function(t,e,n,i,o,s){var r,l;return e[i+o]&&e[i].start.groupIndex!==e[i+o].start.groupIndex&&(r=e[i+o].start.groupIndex,l=this.groups[r],l&&!n||(t=null),t=s?l.lastSlot():l.firstSlot(!0)),t},_getStartIdx:function(e,n){var i=0;return t.each(n,function(){return this.uid!==e[0]&&void i++}),i},_getAllEvents:function(){var t,e=[],n=this.groups;for(t=0;t<n.length;t++)n[t]._continuousEvents&&(e=e.concat(n[t]._continuousEvents));return e},_getUniqueEvents:function(t){var e,n,i,o=[];for(e=0;e<t.length;e++){for(n=!1,i=0;i<o.length;i++)if(t[e].uid===o[i].uid){n=!0;break}n||o.push(t[e])}return o},_getSortedEvents:function(e){return e.sort(function(e,n){var i=e.start.startDate(),o=n.start.startDate(),s=y.date.getDate(i)-y.date.getDate(o);return 0===s&&(s=e.start.groupIndex-n.start.groupIndex),0===s&&(s=i.getTime()-o.getTime()),0===s&&(e.start.isDaySlot&&!n.start.isDaySlot&&(s=-1),!e.start.isDaySlot&&n.start.isDaySlot&&(s=1)),0===s&&(s=t(e.element).index()-t(n.element).index()),s})},_selectSlots:function(t){var e,n,i,o,s,r,l,a=t.isAllDay,u=this.groups[t.groupIndex];for(u.timeSlotCollectionCount()||(a=!0),this._selectedSlots=[],e=u.ranges(t.start,t.end,a,!1),o=0;o<e.length;o++)for(s=e[o],r=s.collection,l=s.start.index;l<=s.end.index;l++)i=r.at(l),n=i.element,n.setAttribute("aria-selected",!0),_(n),this._selectedSlots.push({start:i.startDate(),end:i.endDate(),element:n});t.backward&&(n=e[0].start.element),this.current(n)},_selectEvents:function(e){var n,i,o,s=!1,r=e.events,l=this._getAllEvents(),a=l.length;if(!r[0]||!l[0])return s;for(o=t(),e.events=[],n=0;n<a;n++)t.inArray(l[n].uid,r)>-1&&(i=l[n],o=o.add(i.element),e.events.indexOf(i.uid)===-1&&e.events.push(i.uid));return o[0]&&(o.addClass("k-state-selected").attr("aria-selected",!0),this.current(o.last()[0]),this._selectedSlots=[],s=!0),s},inRange:function(t){var e=this.startDate(),n=y.date.addDays(this.endDate(),1),i=t.start,o=t.end;return e<=i&&i<n&&e<o&&o<=n},_resourceValue:function(t,e){return t.valuePrimitive&&(e=y.getter(t.dataValueField)(e)),e},_setResourceValue:function(t,e,n){var i,o=t.value;e.multiple&&(o=[o]),(i=y.setter(e.field))(n,o)},_resourceBySlot:function(t){var e,n,i,o,s,r,l,a,u,h,c,d,f=this.groupedResources,g={};if(f.length)for(e=t.groupIndex,n=this.options.group,i=n.date||"horizontal"===n.orientation?"columns":"rows",o="rows"===i?this.rowLevels:this.columnLevels,s=n.date&&"horizontal"===n.orientation?1:0,r=o[f.length-1+s],l=f[f.length-1],a=r[e],this._setResourceValue(a,l,g),c=f.length-2;c>=0;c--)for(r=o[c+s],l=f[c],u=0,d=0;d<r.length;d++)a=r[d],h=a[i].length,h>e-u?(this._setResourceValue(a,l,g),d=r.length):u+=h;return g},_createResizeHint:function(e,n,i,o){return t(T).css({left:e,top:n,width:i,height:o})},_removeResizeHint:function(){this._resizeHint.remove(),this._resizeHint=t()},_removeMoveHint:function(e){e?(this._moveHint.filter("[data-uid='"+e+"']").remove(),this._moveHint=this._moveHint.filter("[data-uid!='"+e+"']")):(this._moveHint.remove(),this._moveHint=t())},_scrollTo:function(t,e){var n=t.offsetTop,i=t.offsetHeight,o=e.scrollTop,s=e.clientHeight,r=n+i,l=0;l=o>n?n:r>o+s?i<=s?r-s:n:o,e.scrollTop=l},_inverseEventColor:function(t){var e=t.css("color"),n=new m(e).isDark(),i=t.css("background-color"),o=new m(i).isDark();n==o&&t.addClass(R)},_eventTmpl:function(e,n){var i,o=this.options,s=t.extend({},y.Template,o.templateSettings),r=s.paramName,l="",a=typeof e,u={storage:{},count:0};return"function"===a?(u.storage["tmpl"+u.count]=e,l+="#=this.tmpl"+u.count+"("+r+")#",u.count++):"string"===a&&(l+=e),i=y.template(y.format(n,l),s),u.count>0&&(i=t.proxy(i,u.storage)),i},eventResources:function(t){var e,n,i,o,s,r,l,a,u,h,c=[],d=this.options;if(!d.resources)return c;for(e=0;e<d.resources.length;e++)if(n=d.resources[e],i=n.field,o=y.getter(i)(t),null!=o)for(n.multiple||(o=[o]),s=n.dataSource.view(),r=0;r<o.length;r++){for(l=null,a=o[r],n.valuePrimitive||(a=y.getter(n.dataValueField)(a)),u=0;u<s.length;u++)if(s[u].get(n.dataValueField)==a){l=s[u];break}null!==l&&(h=y.getter(n.dataColorField)(l),c.push({field:n.field,title:n.title,name:n.name,text:y.getter(n.dataTextField)(l),value:a,color:h}))}return c},createLayout:function(n){var i,o,s,r,l,a=-1;for(n.rows||(n.rows=[]),i=0;i<n.rows.length;i++)if(n.rows[i].allDay){a=i;break}o=n.rows[a],a>=0&&n.rows.splice(a,1),s=this.columnLevels=e(n,"columns"),r=this.rowLevels=e(n,"rows"),this._isVirtualized()&&this._trimRowLevels(r),this.table=t('<table role="presentation" class="k-scheduler-layout k-scheduler-'+this.name+'view"><tbody></tbody></table>'),l=r[r.length-1].length,this.table.find("tbody:first").append(this._topSection(s,o,l)),this.table.find("tbody:first").append(this._bottomSection(s,r,l)),this.element.append(this.table),this._isVirtualized()&&this._updateDomRowLevels(),this._isMobile()&&s.length>1&&"horizontal"===this._groupOrientation()&&y._outerWidth(t(window))<I&&(this.table.find(".k-scheduler-content .k-scheduler-table").width(100*s[s.length-2].length+"%"),this.table.find(".k-scheduler-header .k-scheduler-table").width(100*s[s.length-2].length+"%")),this._scroller()},_isVirtualized:function(){return this.options.virtual&&this.rowLevels.length>1&&this._isVerticallyGrouped()},_trimRowLevels:function(t){var e,n,i,o,s=t[t.length-2],r=this.cachedRowLevels||[];for(this._hasContentToRender=!0,n=function(t,e){var n,i,o=t[e-1].length>0;return!o||(n=t[e-1][0],i=t[e][0].parentValue,n.value!==i)},i=t.length-2;i>=0&&(o=!1,i>0&&n(t,i)&&(o=!0,e=i),r[i]=t[i].splice(1),i<t.length-2&&1!=t[i][0].rows.length&&(t[i][0].rows=t[i+1]),!o);i--);return r[t.length-1]=t[t.length-1].splice(s[0].rows.length),this.cachedRowLevels=r,r[r.length-1].length||(this._hasContentToRender=!1),{levelMarker:e||0,rowLevels:t}},createNextLayout:function(){var t,e,n,i,o,s,r,l,a=[];for(o=0;o<this.cachedRowLevels.length;o++)a[o]=this.cachedRowLevels[o];for(t=this._trimRowLevels(a),e=t.rowLevels.splice(t.levelMarker),n=t.levelMarker,i=e[e.length-1].length,delete this._height,s=n;s<this.rowLevels.length;s++)this.rowLevels[s]=this.rowLevels[s].concat(e[s-n]);if(this.table.find(".k-scheduler-times:last tbody").append(this._times(e,i,this._isMobile()).find("tr")),this._updateDomRowLevels(),n>0)for(s=0;s<n;s++)r=this.table.find("[data-row-level="+s+"]:last"),l=parseInt(r.attr("rowspan"),10)+i,r.attr("rowspan",l);this._virtualContent(e,this.columnLevels),this.render(this._cachedEvents)},_tryRenderContent:function(){for(var t=this,e=t.table.innerHeight(),n=t.content.find("table").innerHeight(),i=t.content.scrollTop();t._hasContentToRender&&n-e<i;)t.createNextLayout(),n=t.content.find("table").innerHeight()},_updateDomRowLevels:function(){var e,n=this,i=n.times.find(".k-scheduler-group-cell:not([data-row-level])");if(!this._rowLevelIndices)return void(this._rowLevelIndices=i.map(function(e,n){return t(n).attr("data-row-level",e),e}).toArray().reverse());for(i=i.toArray().reverse(),e=0;e<=i.length;e++)t(i[e]).attr("data-row-level",this._rowLevelIndices[e])},refreshLayout:function(){var e,n,i,o,s,r,l=this,a=l.element.find("> .k-scheduler-toolbar"),u=l.element.innerHeight(),h=this._scrollbar,c=0,d=this._isRtl?"left":"right";for(e=0;e<a.length;e++)u-=x(a.eq(e));l.datesHeader&&(c=x(l.datesHeader)),l.timesHeader&&x(l.timesHeader)>c&&(c=x(l.timesHeader)),l.datesHeader&&l.timesHeader&&(n=l.datesHeader.find("table:first tr"),l.timesHeader.find("tr").height(function(e){t(this).height(n.eq(e).height())})),c&&(u-=c),l.footer&&(u-=x(l.footer)),i=function(t){var e,n;return!!t[0].style.height||(e=t.height(),t.height("auto"),n=t.height(),e!=n?(t.height(""),!0):(t.height(""),!1))},o=l.content[0],s=y.support.kineticScrollNeeded?0:h,i(l.element)&&(l.content.height(u>2*h?u:2*h+1),l.times&&(l.times.height(o.clientHeight),r=l.times.find("table"),r.length&&r.height(l.content.find("table")[0].clientHeight))),l.table&&(o.offsetWidth-o.clientWidth>0?(l.table.addClass("k-scrollbar-v"),l.datesHeader.css("padding-"+d,s-parseInt(l.datesHeader.children().css("border-"+d+"-width"),10))):l.datesHeader.css("padding-"+d,""),o.offsetHeight-o.clientHeight>0||o.clientHeight>l.content.children(".k-scheduler-table").height()?l.table.addClass("k-scrollbar-h"):l.table.removeClass("k-scrollbar-h"))},_topSection:function(e,n,i){var s,r=t("<tr>");return this.timesHeader=o(e.length,n,i),this.datesHeader=this._datesHeader(e,n),s=this.datesHeader.find(".k-nav-day"),s.length&&s.closest("tr").addClass("k-scheduler-date-group"),this._isMobile()&&(r.addClass("k-mobile-header"),r.addClass("k-mobile-"+this._groupOrientation()+"-header")),t(r).append(this.timesHeader.add(this.datesHeader).wrap("<td>").parent())},_bottomSection:function(e,n,i){return this.times=this._times(n,i,this._isMobile()),this.content=s(e[e.length-1],n[n.length-1]),t("<tr>").append(this.times.add(this.content).wrap("<td>").parent())},_scroller:function(){var e,n=this;this.content.bind("scroll"+k,function(){y.scrollLeft(n.datesHeader.find(">.k-scheduler-header-wrap"),this.scrollLeft),n.times.scrollTop(this.scrollTop),n._isVirtualized()&&n._tryRenderContent()}),e=y.touchScroller(this.content,{avoidScrolling:function(e){return t(e.event.target).closest(".k-event.k-event-active").length>0}}),e&&e.movable&&(this._touchScroller=e,this.content=e.scrollElement,e.movable.bind("change",function(t){y.scrollLeft(n.datesHeader.find(">.k-scheduler-header-wrap"),-t.sender.x),n.times.scrollTop(-t.sender.y),n._isVirtualized()&&n._tryRenderContent()}))},_resourcesForGroups:function(){var t,e,n,i,o=[],s=this.options.group,r=this.options.resources;if(s=s&&s.resources?s.resources:[],r&&s.length)for(t=0,e=r.length;t<e;t++)for(n=0,i=s.length;n<i;n++)r[t].name===s[n]&&o.push(r[t]);this.groupedResources=o},_createDateLayout:function(t,e,n){return f("rows",t,e,n)},_createColumnsLayout:function(t,e,n,i,o,s){return g("columns",t,e,n,i,o,s)},_groupOrientation:function(){var t=this.options.group;return t&&t.resources?t.orientation:"horizontal"},_isGroupedByDate:function(){return this.options.group&&this.options.group.date},_isVerticallyGrouped:function(){return this.groupedResources.length&&"vertical"===this._groupOrientation()},_createRowsLayout:function(t,e,n,i){return g("rows",t,e,n,i)},selectionByElement:function(){return null},clearSelection:function(){this.content.find(".k-state-selected").removeAttr("id").attr("aria-selected",!1).removeClass("k-state-selected")},destroy:function(){var t=this;D.fn.destroy.call(this),t.table&&(y.destroy(t.table),t.table.remove()),t.footer&&(y.destroy(t.footer),t.footer.remove()),t.groups=null,t.table=null,t.content=null,t.times=null,t.datesHeader=null,t.timesHeader=null,t.footer=null,t._resizeHint=null,t._moveHint=null},calendarInfo:function(){return y.getCulture().calendars.standard},prevGroupSlot:function(t,e,n){var i,o=this.groups[e],s=o.ranges(t,t,n,!1)[0].start;if(!(e<=0))return this._isGroupedByDate()?s:this._isVerticallyGrouped()?o.timeSlotCollectionCount()?(i=o._collection(n?s.index:s.collectionIndex,!1),i.last()):(i=o._collection(o.daySlotCollectionCount()-1,!0),i.at(s.index)):o.timeSlotCollectionCount()?(i=o._collection(n?0:o.timeSlotCollectionCount()-1,n),n?i.last():i.at(s.index)):(i=o._collection(s.collectionIndex,!0),i.last())},nextGroupSlot:function(t,e,n){var i,o,s=this.groups[e],r=s.ranges(t,t,n,!1)[0].start; if(!(e>=this.groups.length-1))return this._isGroupedByDate()?r:this._isVerticallyGrouped()?s.timeSlotCollectionCount()?(o=s.daySlotCollectionCount(),i=s._collection(o?0:r.collectionIndex,o),n?i.first():i.at(r.collectionIndex)):(i=s._collection(0,!0),i.at(r.index)):s.timeSlotCollectionCount()?(i=s._collection(0,n),n?i.first():i.at(r.index)):(i=s._collection(r.collectionIndex,!0),i.first())},_eventOptionsForMove:function(){return{}},_updateEventForResize:function(){},_updateEventForSelection:function(t){return t},_innerElements:function(t,e,n){var i=0,o=function(t){var s,r,l,a=t[n],u=t[e];if(a)return void(i+=a);if(!u||0===u.length)return void(i+=1);for(l=0;l<u.length;l++)s=u[l],r=s[e],r&&r[0]?r[0][e]&&0!==r[0][e].length?o(s):i+=r.length:i+=1};return o(t),i},_times:function(e,i,o){var s,r,l,a,u,h,c,d,f=this,g=Array(i).join().split(","),p=[];for(r=0;r<e.length;r++)for(l=e[r],a=0,s=0;s<l.length;s++)u=l[s],h=u.className||"",c=u.text,d=f._innerElements(u,"rows"),a+=d,u.allDay&&(h="k-scheduler-times-all-day"),o&&h.indexOf("k-scheduler-group-cell")!==-1&&(c='<span class="k-scheduler-group-text">'+c+"</span>"),g[a-d]+='<th class="'+h+'" rowspan="'+d+'">'+c+"</th>";for(s=0;s<i;s++)p.push(g[s]);return i<1?t():t('<div class="k-scheduler-times">'+n(p)+"</div>")},_datesHeader:function(e,o){var s,r,l,a,u,h,c,d,f,g,p=this,_=[];for(r=0;r<e.length;r++){for(l=e[r],a=[],s=0;s<l.length;s++)u=l[s],h=p._innerElements(u,"columns","colspan"),a.push('<th colspan="'+(u.colspan||h)+'" class="'+(u.className||"")+'">'+u.text+"</th>");_.push(a.join(""))}if(c=[],o){for(d=e[e.length-1],f=[],g=o.cellContent,s=0;s<d.length;s++)f.push('<td class="'+(d[s].className||"")+'">'+(g?g(s):" ")+"</td>");c.push(f.join(""))}return t('<div class="k-scheduler-header k-state-default"><div class="k-scheduler-header-wrap">'+n(_)+i(c,"k-scheduler-header-all-day")+"</div></div>")}}),m=function(t){var e,n,i,o,s,r=this,l=m.formats;if(1===arguments.length)for(t=r.resolveColor(t),o=0;o<l.length;o++)e=l[o].re,n=l[o].process,i=e.exec(t),i&&(s=n(i),r.r=s[0],r.g=s[1],r.b=s[2]);else r.r=arguments[0],r.g=arguments[1],r.b=arguments[2];r.r=r.normalizeByte(r.r),r.g=r.normalizeByte(r.g),r.b=r.normalizeByte(r.b)},m.prototype={resolveColor:function(t){return t=t||"#000","#"==t.charAt(0)&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase(),t=m.namedColors[t]||t},normalizeByte:function(t){return t<0||isNaN(t)?0:t>255?255:t},percBrightness:function(){var t=this;return H.sqrt(.241*t.r*t.r+.691*t.g*t.g+.068*t.b*t.b)},isDark:function(){var t=this,e=t.percBrightness();return e<180}},m.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],m.namedColors={aqua:"00ffff",azure:"f0ffff",beige:"f5f5dc",black:"000000",blue:"0000ff",brown:"a52a2a",coral:"ff7f50",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgray:"a9a9a9",darkgreen:"006400",darkorange:"ff8c00",darkred:"8b0000",dimgray:"696969",fuchsia:"ff00ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lightblue:"add8e6",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumblue:"0000cd",navy:"000080",olive:"808000",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",pink:"ffc0cb",plum:"dda0dd",purple:"800080",red:"ff0000",royalblue:"4169e1",salmon:"fa8072",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",steelblue:"4682b4",tan:"d2b48c",teal:"008080",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},S=/\s*k-state-selected/,t.extend(C.SchedulerView,{createColumns:h,createRows:c,rangeIndex:a,collidingEvents:l,groupEqFilter:p})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});;!function(e,define){define("kendo.scheduler.dayview.min",["kendo.scheduler.view.min"],e)}(function(){return function(e,t){function a(e){var t=new Date(1980,1,1,0,0,0);return d(t,T(e)),t}function i(e,t,a){return e>=t&&e<=a}function s(e,t,a,i){return i=i?e<=a:e<a,e>t&&i}function n(e,t,a,i){var s,n=e._continuousEvents,o=n[n.length-1],l=m(t.start.startDate()).getTime();if(i&&o&&m(o.start.startDate()).getTime()==l){for(s=n.length-1;s>-1&&!(n[s].isAllDay||m(n[s].start.startDate()).getTime()<l);s--);n.splice(s+1,0,{element:a,isAllDay:!0,uid:a.attr(r.attr("uid")),start:t.start,end:t.end})}else n.push({element:a,isAllDay:i,uid:a.attr(r.attr("uid")),start:t.start,end:t.end})}function o(e){var t,a,i;if(e.workDays&&e.workDays.length)return e.workDays;for(t=[],a=e.workWeekStart%7,i=Math.abs(e.workWeekEnd%7),t.push(a);i!=a;)a>6?a-=7:a++,t.push(a);return t}var r=window.kendo,l=r.ui,d=r.date.setTime,h=l.SchedulerView,u=r._outerWidth,c=r._outerHeight,p=e.extend,f=e.proxy,m=r.date.getDate,g=r.date.MS_PER_MINUTE,_=r.date.MS_PER_DAY,v="k-current-time",y="k-current-time-arrow",D="k-event-inverse",k=.8666,T=r.date.getMilliseconds,w=".kendoMultiDayView",S=r.template('<div title="(#=kendo.format("{0:t} - {1:t}", start, end)#): #=title.replace(/"/g,"&\\#34;")#"><div class="k-event-template k-event-time">#:kendo.format("{0:t} - {1:t}", start, end)#</div><div class="k-event-template">${title}</div></div>'),C=r.template('<div title="(#=kendo.format("{0:t}", start)#): #=title.replace(/"/g,"&\\#34;")#"><div class="k-event-template">${title}</div></div>'),b=r.template("#var dateString = isMobile ? kendo.toString(date,'ddd')[0] : kendo.toString(date,'ddd M/dd'); #<span class='k-link k-nav-day'>#=dateString#</span>"),E='<div role="gridcell" aria-selected="false" data-#=ns#uid="#=uid#"#if (resources[0]) { #style="background-color:#=resources[0].color#; border-color: #=resources[0].color#"class="k-event"#} else {#class="k-event"#}#><span class="k-event-actions"># if(data.tail || data.middle) {#<span class="k-icon k-i-arrow-60-left"></span>#}## if(data.isException()) {#<span class="k-icon k-i-non-recurrence"></span># } else if(data.isRecurring()) {#<span class="k-icon k-i-reload"></span># } #</span>{0}<span class="k-event-actions">#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}## if(data.head || data.middle) {#<span class="k-icon k-i-arrow-60-right"></span>#}#</span>#if(resizable && !singleDay && !data.tail && !data.middle){#<span class="k-resize-handle k-resize-w"></span>#}##if(resizable && !singleDay && !data.head && !data.middle){#<span class="k-resize-handle k-resize-e"></span>#}#</div>',x='<div role="gridcell" aria-selected="false" data-#=ns#uid="#=uid#" #if (resources[0]) { #style="background-color:#=resources[0].color #; border-color: #=resources[0].color#"class="k-event"#} else {#class="k-event"#}#><span class="k-event-actions"># if(data.isException()) {#<span class="k-icon k-i-non-recurrence"></span># } else if(data.isRecurring()) {#<span class="k-icon k-i-reload"></span># } #</span>{0}<span class="k-event-actions">#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}#</span><span class="k-event-top-actions"># if(data.tail || data.middle) {#<span class="k-icon k-i-arrow-60-up"></span># } #</span><span class="k-event-bottom-actions"># if(data.head || data.middle) {#<span class="k-icon k-i-arrow-60-down"></span># } #</span># if(resizable && !data.tail && !data.middle) {#<span class="k-resize-handle k-resize-n"></span># } ## if(resizable && !data.head && !data.middle) {#<span class="k-resize-handle k-resize-s"></span># } #</div>',H=h.extend({init:function(e,t){var a=this;h.fn.init.call(a,e,t),a.title=a.options.title||a.options.name,a._workDays=o(a.options),a._templates(),a._editable(),a.calculateDateRange(),a._groups(),a._currentTime(!0)},_currentTimeMarkerUpdater:function(){this._updateCurrentTimeMarker(new Date)},_updateCurrentTimeMarker:function(t){var a,i,s,n,o,l,d,h,p,f,m,g,_,D,T,w,S,C,b,E=this.options,x="<div class='"+v+"'></div>";for(E.currentTimeMarker.useLocalTimezone===!1&&(o=E.dataSource.options.schema.timezone,E.dataSource&&o&&(l=r.timezone.offset(t,o),t=r.timezone.convert(t,t.getTimezoneOffset(),l))),a=this.times.find("."+v),i=this.content.find("."+v),d=E.group&&"horizontal"!=E.group.orientation?this.groups.length:1,h=this.times.find("tr:first th:first"),p=this.times.find("tr:first th:last"),h.length>0&&p.length>0&&(n=this._isRtl?h.position().left+c(h)-c(p):p.position().left),f=0;f<d;f++){if(m=this.groups[f],!m)return;if(g=r.date.toUtcTime(t),_=m.timeSlotRanges(g,g+1),0===_.length)return;D=_[0].collection,T=D.slotByStartDate(t),T&&(w=a[f]?a.eq(f):e(x).prependTo(this.times),S=Math.round(_[0].innerRect(t,new Date(t.getTime()+1),!1).top),C={},this._isRtl?(C.right=n,w.addClass(y+"-left")):(C.left=n,w.addClass(y+"-right")),s||(s=u(w)*k/2),C.top=S-s,w.css(C),b=i[f]?i.eq(f):e(x).prependTo(this.content),b.css({top:S,height:"1px",right:0,left:0}))}},_currentTime:function(e){var a=this,i=a.options.currentTimeMarker;i!==!1&&i.updateInterval!==t&&(a._currentTimeMarkerUpdater(),e&&(a._currentTimeUpdateTimer=setInterval(f(this._currentTimeMarkerUpdater,a),i.updateInterval)))},_updateResizeHint:function(e,t,a,i){var s,n,o,l,d,u,c,p,f,m,g,_,v,y,D;for(s=this.options.enforceAllDaySlot?e.isMultiDay():e.isAllDay,n=this.groups[t],o=n.ranges(a,i,s,e.isAllDay),this._removeResizeHint(),p=0;p<o.length;p++)if(f=o[p],m=f.startSlot(),this._isGroupedByDate()&&s)for(g=m.index;g<=f.end.index;g++)_=f.collection._slots[g],l=_.offsetWidth,d=_.clientHeight,u=_.offsetTop,c=h.fn._createResizeHint.call(this,_.offsetLeft,u,l,d),this._resizeHint=this._resizeHint.add(c);else l=m.offsetWidth,d=m.clientHeight,u=m.offsetTop,s?l=f.innerWidth():(v=f.outerRect(a,i,this.options.snap),u=v.top,d=v.bottom-v.top),c=h.fn._createResizeHint.call(this,m.offsetLeft,u,l,d),this._resizeHint=this._resizeHint.add(c);y="t",D=this.content,s&&(y="M/dd",D=this.element.find(".k-scheduler-header-wrap:has(.k-scheduler-header-all-day) > div"),D.length||(D=this.content)),this._resizeHint.appendTo(D),this._resizeHint.find(".k-label-top,.k-label-bottom").text(""),this._resizeHint.first().addClass("k-first").find(".k-label-top").text(r.toString(r.timezone.toLocalDate(a),y)),this._resizeHint.last().addClass("k-last").find(".k-label-bottom").text(r.toString(r.timezone.toLocalDate(i),y))},_updateMoveHint:function(t,a,i){var s,n,o,l,d,h,u,c,p,f,m,g,_,v,y;for(s=this.options.enforceAllDaySlot?t.isMultiDay():t.isAllDay,n=this.groups[a],o=r.date.toUtcTime(t.start)+i,l=o+t.duration(),d=n.ranges(o,l,s,t.isAllDay),o=r.timezone.toLocalDate(o),l=r.timezone.toLocalDate(l),this._removeMoveHint(t.uid),!s&&T(l)<T(this.startTime())&&l<this._end().getTime()&&0!==T(l)&&d.length>1&&d.pop(),h=e(),u=0;u<d.length;u++)if(c=d[u],p=c.start,m={left:p.offsetLeft+2,top:p.offsetTop},this._isGroupedByDate()&&s)for(g=p.index;g<=c.end.index;g++)_=c.collection._slots[g],m.left=this._isRtl?.1*_.clientWidth+_.offsetLeft+2:_.offsetLeft+2,m.height=_.offsetHeight,m.width=.9*_.clientWidth-2,f=this._createEventElement(t.clone({start:o,end:l}),!s),t.inverseColor&&f.addClass(D),this._appendMoveHint(f,m),h=h.add(f);else this._isRtl&&(m.left=.1*p.clientWidth+p.offsetLeft+2),s?m.width=c.innerWidth()-2:(v=c.outerRect(o,l,this.options.snap),m.top=v.top,m.height=v.bottom-v.top,m.width=.9*p.clientWidth-2),f=this._createEventElement(t.clone({start:o,end:l}),!s),t.inverseColor&&f.addClass(D),this._appendMoveHint(f,m),h=h.add(f);y=this.content,s&&(y=this.element.find(".k-scheduler-header-wrap:has(.k-scheduler-header-all-day) > div"),y.length||(y=this.content)),h.appendTo(y)},_appendMoveHint:function(e,t){e.addClass("k-event-drag-hint"),e.css(t),this._moveHint=this._moveHint.add(e)},_slotByPosition:function(e,t){var a,i,s,n;for(this._isVerticallyGrouped()?(i=this.content.offset(),t+=this.content[0].scrollTop,e+=this.content[0].scrollLeft):i=this.element.find(".k-scheduler-header-wrap:has(.k-scheduler-header-all-day)").find(">div").offset(),i&&(e-=i.left,t-=i.top),e=Math.ceil(e),t=Math.ceil(t),n=0;n<this.groups.length;n++)if(s=this.groups[n],a=s.daySlotByPosition(e,t,this._isGroupedByDate()))return a;for(i&&(e+=i.left,t+=i.top),i=this.content.offset(),e-=i.left,t-=i.top,this._isVerticallyGrouped()||(t+=this.content[0].scrollTop,e+=this.content[0].scrollLeft),e=Math.ceil(e),t=Math.ceil(t),n=0;n<this.groups.length;n++)if(s=this.groups[n],a=s.timeSlotByPosition(e,t))return a;return null},_groupCount:function(){var e=this.groupedResources,t=this._isGroupedByDate();return e.length?"vertical"===this._groupOrientation()?t?this._columnCountForLevel(e.length-1):this._rowCountForLevel(e.length-1):t?this._columnCountForLevel(e.length)/this._columnCountForLevel(0):this._columnCountForLevel(e.length)/this._columnOffsetForResource(e.length):1},_columnCountInResourceView:function(){var e=this.groupedResources,t=this._isGroupedByDate();return!e.length||this._isVerticallyGrouped()?t?this._rowCountForLevel(0):this._columnCountForLevel(0):t?this._columnCountForLevel(0):this._columnOffsetForResource(e.length)},_timeSlotGroups:function(e,t){var a,i,s,n,o,r,l,d,h,u,c=this._timeSlotInterval(),p=e,f=this._isGroupedByDate(),m=this.content.find("tr:not(.k-scheduler-header-all-day)");for(m.attr("role","row"),o=m.length,this._isVerticallyGrouped()&&(f&&(p=t),o=Math.floor(o/p)),r=0;r<p;r++)for(l=0,d=0,this._isVerticallyGrouped()?l=r:d=r,s=l*o;s<(l+1)*o;){if(h=m[s].children,s%o===0&&(i=T(new Date((+this.startTime())))),u=0,f)if(this._isVerticallyGrouped())for(n=0;n<e;n++)a=this.groups[n],this._addTimeSlotGroup(a,h,n,i,c,r);else for(a=this.groups[r],n=d;n<e*t;n+=e)this._addTimeSlotGroup(a,h,n,i,c,u),u++;else for(a=this.groups[r],n=d*t;n<(d+1)*t;n++)this._addTimeSlotGroup(a,h,n,i,c,u),u++;i+=c,s++}},_addTimeSlotGroup:function(e,t,a,i,s,n){var o,r,l,d=t[a],h=e.getTimeSlotCollection(n),u=this._dates[n];u&&d&&(o=Date.UTC(u.getFullYear(),u.getMonth(),u.getDate()),r=o+i,l=r+s,d.setAttribute("role","gridcell"),d.setAttribute("aria-selected",!1),h.addTimeSlot(d,r,l))},_addDaySlotGroup:function(e,t,a,i,s){var n,o=t[a],l=this._dates[s];l&&(n=Date.UTC(l.getFullYear(),l.getMonth(),l.getDate()),o.setAttribute("role","gridcell"),o.setAttribute("aria-selected",!1),e.addDaySlot(o,n,n+r.date.MS_PER_DAY))},_daySlotGroups:function(e,t){var a,i,s,n,o,r,l,d,h,u=e,c=this._isGroupedByDate();for(this._isVerticallyGrouped()?(c&&(u=t),a=this.element.find(".k-scheduler-header-all-day")):a=this.element.find(".k-scheduler-header-all-day tr"),a.attr("role","row"),s=0;s<u;s++)if(n=0,this._isVerticallyGrouped()&&(n=s),l=a[n].children,d=0,this._isVerticallyGrouped()||(d=s),h=0,c)if(this._isVerticallyGrouped())for(i=0;i<e;i++)o=this.groups[i],r=o.getDaySlotCollection(0),this._addDaySlotGroup(r,l,i,t,s);else for(o=this.groups[s],r=o.getDaySlotCollection(0),i=d;i<e*t;i+=e)this._addDaySlotGroup(r,l,i,t,h),h++;else for(o=this.groups[s],r=o.getDaySlotCollection(0),i=d*t;i<(d+1)*t;i++)this._addDaySlotGroup(r,l,i,t,h),h++},_groups:function(){var e,t,a,i=this._groupCount(),s=this._columnCountInResourceView();for(this.groups=[],e=0;e<i;e++){for(t=this._addResourceView(e),a=0;a<s;a++)this._dates[a]&&t.addTimeSlotCollection(this._dates[a],r.date.addDays(this._dates[a],1));this.options.allDaySlot&&t.addDaySlotCollection(this._dates[0],r.date.addDays(this._dates[this._dates.length-1],1))}this._timeSlotGroups(i,s),this.options.allDaySlot&&this._daySlotGroups(i,s)},options:{name:"MultiDayView",selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}",selectedMobileDateFormat:"{0:MMM} {0:dd} - {1:dd}",allDaySlot:!0,showWorkHours:!1,title:"",startTime:r.date.today(),endTime:r.date.today(),minorTickCount:2,majorTick:60,majorTimeHeaderTemplate:"<span>#=kendo.toString(date, 't')#</span>",minorTimeHeaderTemplate:"&\\#8203;",groupHeaderTemplate:"#=text#",slotTemplate:" ",allDaySlotTemplate:" ",eventTemplate:S,allDayEventTemplate:C,dateHeaderTemplate:b,editable:!0,workDayStart:new Date(1980,1,1,8,0,0),workDayEnd:new Date(1980,1,1,17,0,0),workWeekStart:1,workWeekEnd:5,footer:{command:"workDay"},messages:{allDay:"all day",showFullDay:"Show full day",showWorkDay:"Show business hours"},currentTimeMarker:{updateInterval:1e4,useLocalTimezone:!0},enforceAllDaySlot:!1},events:["remove","add","edit"],_templates:function(){var e=this.options,t=p({},r.Template,e.templateSettings);this.eventTemplate=this._eventTmpl(e.eventTemplate,x),this.allDayEventTemplate=this._eventTmpl(e.allDayEventTemplate,E),this.majorTimeHeaderTemplate=r.template(e.majorTimeHeaderTemplate,t),this.minorTimeHeaderTemplate=r.template(e.minorTimeHeaderTemplate,t),this.dateHeaderTemplate=r.template(e.dateHeaderTemplate,t),this.slotTemplate=r.template(e.slotTemplate,t),this.allDaySlotTemplate=r.template(e.allDaySlotTemplate,t),this.groupHeaderTemplate=r.template(e.groupHeaderTemplate,t)},_editable:function(){this.options.editable&&(this._isMobile()?this._touchEditable():this._mouseEditable())},_mouseEditable:function(){var t=this;t.element.on("click"+w,".k-event a:has(.k-i-close)",function(a){t.trigger("remove",{uid:e(this).closest(".k-event").attr(r.attr("uid"))}),a.preventDefault()}),t.options.editable.create!==!1&&t.element.on("dblclick"+w,".k-scheduler-content > table td",function(a){var i,s;e(this).parent().hasClass("k-scheduler-header-all-day")||(i=t._slotByPosition(a.pageX,a.pageY),i&&(s=t._resourceBySlot(i),t.trigger("add",{eventInfo:p({start:i.startDate(),end:i.endDate()},s)})),a.preventDefault())}).on("dblclick"+w,".k-scheduler-header-all-day td",function(e){var a,i=t._slotByPosition(e.pageX,e.pageY);i&&(a=t._resourceBySlot(i),t.trigger("add",{eventInfo:p({},{isAllDay:!0,start:r.date.getDate(i.startDate()),end:r.date.getDate(i.startDate())},a)})),e.preventDefault()}),t.options.editable.update!==!1&&t.element.on("dblclick"+w,".k-event",function(a){t.trigger("edit",{uid:e(this).closest(".k-event").attr(r.attr("uid"))}),a.preventDefault()})},_touchEditable:function(){var a=this,i=0;r.support.mobileOS.android&&(i=5),a.options.editable.create!==!1&&(a._addUserEvents=new r.UserEvents(a.element,{threshold:i,filter:".k-scheduler-content td",useClickAsTap:!r.support.browser.edge,tap:function(i){var s,n,o,r;a._scrolling||e(i.target).parent().hasClass("k-scheduler-header-all-day")||(s=i.x.location!==t?i.x.location:i.x,n=i.y.location!==t?i.y.location:i.y,o=a._slotByPosition(s,n),o&&(r=a._resourceBySlot(o),a.trigger("add",{eventInfo:p({start:o.startDate(),end:o.endDate()},r)})),i.preventDefault())}}),a._allDayUserEvents=new r.UserEvents(a.element,{threshold:i,useClickAsTap:!r.support.browser.edge,filter:".k-scheduler-header-all-day td",tap:function(e){var i,s,n,o;a._scrolling||(i=e.x.location!==t?e.x.location:e.x,s=e.y.location!==t?e.y.location:e.y,n=a._slotByPosition(i,s),n&&(o=a._resourceBySlot(n),a.trigger("add",{eventInfo:p({},{isAllDay:!0,start:r.date.getDate(n.startDate()),end:r.date.getDate(n.startDate())},o)})),e.preventDefault())}})),a.options.editable.update!==!1&&(a._editUserEvents=new r.UserEvents(a.element,{threshold:i,useClickAsTap:!r.support.browser.edge,filter:".k-event",tap:function(t){var i,s;a._scrolling||(i=e(t.target).closest(".k-event"),s=e(t.touch.initialTouch),s.hasClass("k-i-close")?a.trigger("remove",{uid:i.attr(r.attr("uid"))}):i.hasClass("k-event-active")||a.trigger("edit",{uid:i.attr(r.attr("uid"))}),t.preventDefault())}}))},_layout:function(e){var t,a,i,s=[],n=[],o=this.options,l=this,d=l._isGroupedByDate();for(t=0;t<e.length;t++)a={},a.text=l.dateHeaderTemplate({date:e[t],isMobile:l._isMobile()}),r.date.isToday(e[t])&&(a.className="k-today"),s.push(a);return i=this.groupedResources,o.allDaySlot&&n.push({text:o.messages.allDay,allDay:!0,cellContent:function(t){var a=t;return t=i.length&&"vertical"!==l._groupOrientation()?t%e.length:t,l.allDaySlotTemplate({date:e[t],resources:function(){return l._resourceBySlot({groupIndex:a})}})}}),this._forTimeRange(this.startTime(),this.endTime(),function(e,t,a,i){var s=t?l.majorTimeHeaderTemplate:l.minorTimeHeaderTemplate,o={text:s({date:e}),className:i?"k-slot-cell":""};n.push(o)}),i.length&&("vertical"===this._groupOrientation()?d?(n=this._createDateLayout(s,n),s=this._createColumnsLayout(i,null,this.groupHeaderTemplate)):n=this._createRowsLayout(i,n,this.groupHeaderTemplate):s=d?this._createColumnsLayout(i,s,this.groupHeaderTemplate,s):this._createColumnsLayout(i,s,this.groupHeaderTemplate)),{columns:s,rows:n}},_footer:function(){var t,a,i,s=this.options;s.footer!==!1&&(t='<div class="k-scheduler-footer k-toolbar">',a=s.footer.command,this._isMobile()&&(t+='<span class="k-state-default k-scheduler-today"><a href="#" class="k-link">',t+=s.messages.today+"</a></span>"),a&&"workDay"===a&&(this._isMobile()?(t+='<span class="k-state-default k-scheduler-fullday"><a href="#" class="k-link">',t+=(s.showWorkHours?s.messages.showFullDay:s.messages.showWorkDay)+"</a></span>"):(t+='<button type="button" class="k-button k-scheduler-fullday">',t+='<span class="k-icon k-i-clock"></span>',t+='<span class="k-button-text">',t+=s.showWorkHours?s.messages.showFullDay:s.messages.showWorkDay,t+="</span>",t+="</button>")),t+="</div>",this.footer=e(t).appendTo(this.element),i=this,this.footer.on("click"+w,".k-scheduler-fullday",function(e){e.preventDefault(),i.trigger("navigate",{view:i.name||s.name,date:s.date,isWorkDay:!s.showWorkHours})}),this.footer.on("click"+w,".k-scheduler-today",function(e){var t,a,n,o,l;e.preventDefault(),t=i.options.timezone,a="today",n=new Date,t?(l=r.timezone.offset(n,t),o=r.timezone.convert(n,n.getTimezoneOffset(),l)):o=n,i.trigger("navigate",{view:i.name||s.name,action:a,date:o})}))},_forTimeRange:function(e,t,i,s){var n,o,r,l,h,u,c,p,f,m,v,y,D,k,w,S;for(e=a(e),t=a(t),n=this,o=T(e),r=T(t),l=n.options.minorTickCount,h=n.options.majorTick*g,u=h/l||1,c=new Date((+e)),p=c.getDate(),m=0,y="",v=_/u,o!=r&&(o>r&&(r+=_),v=(r-o)/u),v=Math.round(v);m<v;m++)D=m%(h/u),k=0===D,w=D<l-1,S=D===l-1,y+=i(c,k,w,S),d(c,u,!1);return r&&(f=T(c),p<c.getDate()&&(f+=_),f>r&&(c=new Date((+t)))),s&&(y+=s(c)),y},_content:function(e){var t=this,a="";a+="<tbody>",a+=t._renderRows(e,t.rowLevels,t.columnLevels),a+="</tbody>",this.content.find("table").append(a)},_virtualContent:function(e,t){var a=this,i="",s=a._dates;i+=a._renderRows(s,e,t),a.content.find("table tbody").append(i)},_renderRows:function(e,t,a){var i,s,n,o=this,r="vertical"===o._groupOrientation(),l=o._isGroupedByDate(),d=0,h=e.length,u=o.options,c=o.startTime(),p=this.endTime(),f=1,m=1,g=this.groupedResources,_="";for(g.length&&(i=o._recalculateLevels(t,a),m=i.rowCount,f=i.groupsCount),s=function(t,a,i){var s,u,c,p="",m=0;if(p="<tr"+(i?' class="k-middle-row"':"")+">",l)for(s=0,u=h;s<u;s++){for(m=0;m<f;m++)c=s,r&&(c=d),p=o._addCellsToContent(p,e,t,c,m,n);if(r)break}else for(;m<f;m++)for(s=0,u=h;s<u;s++)p=o._addCellsToContent(p,e,t,s,m,n);return p+="</tr>"},n=0;n<m;n++)_+=u.allDaySlot&&r?this._allDayVerticalGroupRow(e,n,f,d):"",_+=this._forTimeRange(c,p,s),r&&d++;return _},_recalculateLevels:function(e,t){var a=this,i=a._isGroupedByDate(),s="vertical"===a._groupOrientation(),n=1,o=1;return s?(o=a._rowCountForLevel(e.length-2,e),i&&(n=a._columnCountForLevel(t.length-1))):n=i?a._columnCountForLevel(t.length-1)/this._columnCountForLevel(0):a._columnCountForLevel(t.length-2),{rowCount:o,groupsCount:n}},_allDayVerticalGroupRow:function(e,t,a,i){var s,n=this,o='<tr class="k-scheduler-header-all-day">',r=n._isGroupedByDate(),l=r?0:t,d=n.allDaySlotTemplate,h=function(){return n._resourceBySlot({groupIndex:l})};if(r)for(;l<a;l++)o+="<td>"+d({date:e[i],resources:h})+"</td>";else for(s=0;s<e.length;s++)o+="<td>"+d({date:e[s],resources:h})+"</td>";return o+"</tr>"},_addCellsToContent:function(e,t,a,i,s,n){var o,l=this,d="",h=this.slotTemplate,u="vertical"===this._groupOrientation(),c=function(e){return function(){return l._resourceBySlot({groupIndex:e})}};return r.date.isToday(t[i])&&(d+="k-today"),(r.date.getMilliseconds(a)<r.date.getMilliseconds(this.options.workDayStart)||r.date.getMilliseconds(a)>=r.date.getMilliseconds(this.options.workDayEnd)||!this._isWorkDay(t[i]))&&(d+=" k-nonwork-hour"),e+="<td"+(""!==d?' class="'+d+'"':"")+">",o=r.date.getDate(t[i]),r.date.setTime(o,r.date.getMilliseconds(a)),e+=h({date:o,resources:c(u&&!l._isGroupedByDate()?n:s)}),e+="</td>"},_isWorkDay:function(e){var t,a=e.getDay(),i=this._workDays;for(t=0;t<i.length;t++)if(i[t]===a)return!0;return!1},_render:function(t){var a,i=this;t=t||[],this._dates=t,this._startDate=t[0],this._endDate=t[t.length-1||0],this.createLayout(this._layout(t)),this._content(t),this._footer(),this.refreshLayout(),this._isVirtualized()&&this._tryRenderContent(),a=this.element.find(".k-scheduler-header-all-day td"),a.length&&(this._allDayHeaderHeight=a.first()[0].clientHeight),i.element.on("click"+w,".k-nav-day",function(t){var a,s=e(t.currentTarget).closest("th"),n=s.offset(),o=0,r=c(s);i._isGroupedByDate()&&(i._isVerticallyGrouped()?(o=u(i.times),r=0):r=c(i.datesHeader)),a=i._slotByPosition(n.left+o,n.top+r),i.trigger("navigate",{view:"day",date:a.startDate()})})},startTime:function(){var e=this.options;return e.showWorkHours?e.workDayStart:e.startTime},endTime:function(){var e=this.options;return e.showWorkHours?e.workDayEnd:e.endTime},startDate:function(){return this._startDate},endDate:function(){return this._endDate},_end:function(e){var t=T(this.endTime())||_;return e&&(t=0),new Date(this._endDate.getTime()+t)},nextDate:function(){return r.date.nextDay(this.endDate())},previousDate:function(){return r.date.previousDay(this.startDate())},calculateDateRange:function(){this._render([this.options.date])},destroy:function(){var e=this;e._currentTimeUpdateTimer&&clearInterval(e._currentTimeUpdateTimer),e.datesHeader&&e.datesHeader.off(w),e.element&&e.element.off(w),e.footer&&e.footer.remove(),h.fn.destroy.call(this),this._isMobile()&&e.options.editable&&(e.options.editable.create!==!1&&(e._addUserEvents.destroy(),e._allDayUserEvents.destroy()),e.options.editable.update!==!1&&e._editUserEvents.destroy())},inRange:function(e){var t,a,i,s,n=h.fn.inRange.call(this,e);return e.isAllDay?n:(t=T(this.startTime()),a=T(this.endTime())||r.date.MS_PER_DAY,i=T(e.start),s=T(e.end)||r.date.MS_PER_DAY,n&&t<=i&&s<=a)},selectionByElement:function(e){var t=e.offset(),a=Math.round(e.innerHeight())-5;return this._slotByPosition(t.left,t.top+a)},_timeSlotInterval:function(){var e=this.options;return e.majorTick/e.minorTickCount*g},_timeSlotIndex:function(e){var t=this.options,a=T(e),i=T(this.startTime()),s=t.majorTick/t.minorTickCount*g;return(a-i)/s},_slotIndex:function(e,t){return t?this._dateSlotIndex(e):this._timeSlotIndex(e)},_dateSlotIndex:function(e,t){var a,s,n,o,l=this._dates||[],d=1;for(a=0,s=l.length;a<s;a++)if(n=r.date.getDate(l[a]),o=new Date(r.date.getDate(l[a]).getTime()+_-(t?0:1)),i(e,n,o))return a*d;return-1},_positionAllDayEvent:function(t,a){var i,s,n,o,r,l,d,u=a.innerWidth(),c=a.start.index,p=a.end.index,f=h.collidingEvents(a.events(),c,p),m=this._headerColumnCount||0,g=2,_=c!==p?3:2,v=this._allDayHeaderHeight,y=a.startSlot();for(t.css({left:y.offsetLeft+g,width:u-_}),a.addEvent({slotIndex:c,start:c,end:p,element:t}),f.push({slotIndex:c,start:c,end:p,element:t}),i=h.createRows(f),i.length&&i.length>m&&(this._headerColumnCount=i.length),s=a.start.offsetTop,n=0,o=i.length;n<o;n++)for(r=i[n].events,l=0,d=r.length;l<d;l++)e(r[l].element).css({top:s+n*v,height:v-2})},_arrangeColumns:function(e,t,a,i){var s,n,o,r,l,d,u,c,p,f,m,g,_=i.start;for(e={element:e,slotIndex:_.index,start:t,end:t+a},n=_.clientWidth,o=.1*n,l=i.events(),d=h.collidingEvents(l,e.start,e.end),i.addEvent(e),d.push(e),s=h.createColumns(d),u=(n-o)/s.length,c=0,p=s.length;c<p;c++)for(r=s[c].events,f=0,m=r.length;f<m;f++)g=u-2,r[f].element[0].style.width=(g>0?g:u)+"px",r[f].element[0].style.left=(this._isRtl?o:0)+_.offsetLeft+c*u+2+"px"},_positionEvent:function(e,t,a){var i=e._startTime||e.start,s=e._endTime||e.end,n=r.getComputedStyles(a.start.element,["border-top-width","border-bottom-width"]),o=a.innerRect(i,s,!1),l=o.bottom-o.top-parseFloat(n["border-top-width"])-parseFloat(n["border-bottom-width"]);l<0&&(l=0),t.css({top:o.top,height:l}),this._arrangeColumns(t,o.top,t[0].clientHeight,a)},_createEventElement:function(t,a,s,n){var o,l,d,h,u,c,f=a?this.eventTemplate:this.allDayEventTemplate,g=this.options,v=g.editable,y=this._isMobile(),D=v&&v.destroy!==!1&&!y,k=v&&v.resize!==!1,w=m(this.startDate()),S=m(this.endDate()),C=T(this.startTime()),b=T(this.endTime()),E=t._time("start"),x=t._time("end");return C>=b&&(b=T(new Date(this.endTime().getTime()+_-1))),a||t.isAllDay||(S=new Date(S.getTime()+_)),l=t.start,d=t.end,t.isAllDay&&(d=m(t.end)),!i(m(l),w,S)&&!i(d,w,S)||a&&t.start.getTime()!==t.end.getTime()&&(E<C||E>=b)&&(x>b||x<=C)?o=!0:m(l)<w||a&&0!==E&&t.start.getTime()!==t.end.getTime()&&(E<C||E>=b)?n=!0:(d>S&&!a||a&&0!==x&&t.start.getTime()!==t.end.getTime()&&(x>b||x<=C))&&(s=!0),h=this.eventResources(t),t._startTime&&E!==r.date.getMilliseconds(t.start)&&(l=new Date(E),l=r.timezone.apply(l,"Etc/UTC")),t._endTime&&x!==r.date.getMilliseconds(t.end)&&(d=new Date(x),d=r.timezone.apply(d,"Etc/UTC")),u=p({},{ns:r.ns,resizable:k,showDelete:D,middle:o,head:s,tail:n,singleDay:1==this._dates.length,resources:h,inverseColor:!1,messages:g.messages},t,{start:l,end:d}),c=e(f(u)),this.angular("compile",function(){return{elements:c,data:[{dataItem:u}]}}),c},_isInTimeSlot:function(e){var t,a=this.startTime(),i=this.endTime(),n=e._startTime||e.start,o=e._endTime||e.end;return T(i)===T(r.date.getDate(i))&&(i=r.date.getDate(i),d(i,_-1)),e._date("end")>e._date("start")&&(o=+e._date("end")+(_-1)),o=e._endTime?o-e._date("end"):T(new Date(o)),n=e._startTime?n-e._date("start"):T(new Date(n)),i=T(i),a=T(a),a===n&&n===o||(t=n!==i,s(n,a,i,t)||s(o,a,i,t)||s(a,n,o)||s(i,n,o)||e.end.getDate()>e.start.getDate()&&o>a)},_isInDateSlot:function(e){var t=this.groups[0],a=t.firstSlot().start,s=t.lastSlot().end-1,n=r.date.toUtcTime(e.start),o=r.date.toUtcTime(e.end);return(i(n,a,s)||i(o,a,s)||i(a,n,o)||i(s,n,o))&&(!i(o,a,a)||i(o,n,n)||e.isAllDay)},_updateAllDayHeaderHeight:function(e){var t,a;if(this._height!==e&&(this._height=e,t=this.element.find(".k-scheduler-header-all-day td"),t.length))for(t.parent().add(this.element.find(".k-scheduler-times-all-day").parent()).height(e),a=0;a<this.groups.length;a++)this.groups[a].refresh()},_renderEvents:function(e,t){var a,i,s,o,l,d,h,u,c,p,f,m,g,v,y,D,k,T,w,S,C,b=this.datesHeader.find(".k-scheduler-header-wrap > div"),E=this._isGroupedByDate();for(i=0,s=e.length;i<s;i++)if(a=e[i],this._isInDateSlot(a))if(o=this.options.enforceAllDaySlot?a.isAllDay||a.duration()>=_:a.isAllDay,l=o&&!this._isVerticallyGrouped()?b:this.content,o){if(this.options.allDaySlot){if(f=this.groups[t],!f)continue;if(f._continuousEvents||(f._continuousEvents=[]),h=f.slotRanges(a),h.length)if(u=h[0],D=u.start.index,k=u.end.index,E&&D!==k)for(c=u.start.start,p=u.end.end,T=c,w=c,S=u.start.index;S<=u.end.index;S++)d=this._createEventElement(a,!o,S!==k,S!==D),C=f.daySlotRanges(T,w,!0)[0],T=w+=r.date.MS_PER_DAY,this._positionAllDayEvent(d,C),n(f,C,d,!0),d.appendTo(l),this._inverseEventColor(d);else d=this._createEventElement(a,!o),this._positionAllDayEvent(d,h[0]),n(f,h[0],d,!0),d.appendTo(l),this._inverseEventColor(d)}}else if(this._isInTimeSlot(a)){if(f=this.groups[t],!f)continue;for(f._continuousEvents||(f._continuousEvents=[]),h=f.slotRanges(a),m=h.length,g=0;g<m;g++)u=h[g],c=a.start,p=a.end,m>1&&(0===g?p=u.end.endDate():g==m-1?c=u.start.startDate():(c=u.start.startDate(),p=u.end.endDate())),v=a.clone({start:c,end:p,_startTime:a._startTime,_endTime:a.endTime}),this._isInTimeSlot(v)&&(y=u.head,d=this._createEventElement(a,!o,y,u.tail),d.appendTo(l),this._inverseEventColor(d),this._positionEvent(v,d,u),n(f,u,d,!1))}},render:function(t){var a,s,n,o,l=this;for(this._headerColumnCount=0,this._cachedEvents=t,this._groups(),this.element.find(".k-event").remove(),t=new r.data.Query(t).sort([{field:"start",dir:"asc"},{field:"end",dir:"desc"}]).toArray(),a=[],this._eventsByResource(t,this.groupedResources,a),s=e.map(this._dates,function(t){return Math.max.apply(null,e.map(a,function(a){return e.grep(a,function(e){return l.options.enforceAllDaySlot?e.isMultiDay()&&i(t,m(e.start),m(e.end)):e.isAllDay&&i(t,m(e.start),m(e.end))}).length}))}),n=Math.max.apply(null,s),this._updateAllDayHeaderHeight((n+1)*this._allDayHeaderHeight),o=0;o<a.length;o++)this._renderEvents(a[o],o);this.refreshLayout(),this._currentTime(!1),this.trigger("activate")},_eventsByResource:function(e,a,i,s){var n,o,l,d,u=a[0];if(u)for(n=u.dataSource.view(),n=n.filter(function(e){var a=r.getter(u.dataParentValueField)(e);return null===a||a===t||a===s}),o=0;o<n.length;o++)l=this._resourceValue(u,n[o]),d=new r.data.Query(e).filter({field:u.field,operator:h.groupEqFilter(l)}).toArray(),a.length>1?this._eventsByResource(d,a.slice(1),i,l):i.push(d);else i.push(e)},_columnOffsetForResource:function(e){return this._columnCountForLevel(e)/this._columnCountForLevel(e-1)},_columnCountForLevel:function(e){var t=this.columnLevels[e];return t?t.length:0},_rowCountForLevel:function(e,t){t=t||this.rowLevels;var a=t[e];return a?a.length:0},clearSelection:function(){this.content.add(this.datesHeader).find(".k-state-selected").removeAttr("id").attr("aria-selected",!1).removeClass("k-state-selected")},_updateDirection:function(e,t,a,i,s){var n=e.isAllDay,o=t[0].start,r=t[t.length-1].end;a&&(s?n||o.index!==r.index||o.collectionIndex!==r.collectionIndex||(e.backward=i):(n&&o.index===r.index||!n&&o.collectionIndex===r.collectionIndex)&&(e.backward=i))},_changeViewPeriod:function(e,t,a){var i,s,n,o,r,l,h,u,c,p,f,m,g;if(!a)return i=t?this.previousDate():this.nextDate(),s=e.start,n=e.end,o=this._isGroupedByDate()&&this._isVerticallyGrouped(),r=this.groups[e.groupIndex],l=t?r._timeSlotCollections:r._getCollections(r.daySlotCollectionCount()),h=l[l.length-1]._slots,u=t||r.daySlotCollectionCount()?h.length-1:0,p=new Date(i),f=new Date(i),!this._isInRange(p,f)&&(e.start=p,e.end=f,o?(m=new Date(h[u].startDate()),g=new Date(h[u].endDate()),c=T(g)?T(g):_,d(e.start,T(m)),d(e.end,c),r.daySlotCollectionCount()&&(e.isAllDay=!e.isAllDay)):(c=e.isAllDay||!T(n)?_:T(n),d(e.start,T(s)),d(e.end,c)),this._isVerticallyGrouped()||(e.groupIndex=t?this.groups.length-1:0),e.events=[],!0)}});p(!0,l,{MultiDayView:H,DayView:H.extend({options:{name:"DayView",title:"Day",selectedMobileDateFormat:"{0:MMM d}"},name:"day"}),WeekView:H.extend({options:{name:"WeekView",title:"Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"},name:"week",calculateDateRange:function(){var e,t,a=this.options.date,i=r.date.dayOfWeek(a,this.calendarInfo().firstDay,-1),s=[];for(e=0,t=7;e<t;e++)s.push(i),i=r.date.nextDay(i);this._render(s)}}),WorkWeekView:H.extend({options:{name:"WorkWeekView",title:"Work Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"},name:"workWeek",nextDate:function(){var e=r.date.dayOfWeek(r.date.nextDay(this.startDate()),this.calendarInfo().firstDay,1);return r.date.addDays(e,this._workDays[0])},previousDate:function(){var e=r.date.dayOfWeek(this.startDate(),this.calendarInfo().firstDay,-1),t=this._workDays;return r.date.addDays(e,t[t.length-1]-7)},calculateDateRange:function(){var e=this.options,t=e.date,a=r.date.dayOfWeek,i=a(t,this.calendarInfo().firstDay,-1),s=a(i,e.workWeekStart,1),n=a(s,e.workWeekEnd,1),o=[],l=e.workDays&&e.workDays.length?e.workDays.map(function(e){return a(i,e,1).getTime()}):null;for(l&&(s=i,n=a(s,this.calendarInfo().firstDay+6,1));s<=n;)l&&l.indexOf(s.getTime())>-1?o.push(s):l||o.push(s),s=r.date.nextDay(s);this._render(o)}})})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});;!function(e,define){define("kendo.scheduler.agendaview.min",["kendo.scheduler.view.min"],e)}(function(){return function(e){function t(e){var t,s,a=0;for(t=0,s=e.length;t<s;t++)a+=e[t].items.length;return a}function s(e,t){return e.valuePrimitive&&(t=r.getter(e.dataValueField)(t)),t}function a(e){for(var t,s=0,a=e.length,r=[];s<a;s++)t=e[s],t.groups?(t=n(t.groups),r=r.concat(t)):r=r.concat(n(t.items));return r}function n(e){for(var t=[].concat(e),s=t.shift(),a=[],n=[].push;s;)s.groups?n.apply(t,s.groups):s.items?n.apply(t,s.items):n.call(a,s),s=t.shift();return a}var r=window.kendo,i=r.ui,o=".kendoAgendaView",l='<div class="k-task" title="#:(data.title || "").replace(/"/g,"\'")#" data-#=kendo.ns#uid="#=uid#"># if (resources[0]) {#<span class="k-scheduler-mark" style="background-color:#=resources[0].color#"></span># } ## if (data.isException()) { #<span class="k-icon k-i-non-recurrence"></span># } else if (data.isRecurring()) {#<span class="k-icon k-i-reload"></span># } #<span class="k-scheduler-task-text">{0}</span>#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}#</div>',d='# if (!isMobile) { #<strong class="k-scheduler-agendaday">#=kendo.toString(date, "dd")#</strong><em class="k-scheduler-agendaweek">#=kendo.toString(date,"dddd")#</em><span class="k-scheduler-agendadate">#=kendo.toString(date, "y")#</span># } else { #<div class="k-scheduler-datecolumn-wrap"><span class="k-mobile-scheduler-agendadate"><span class="k-mobile-scheduler-agendaday">#=kendo.toString(date, "dd")#</span> <span class="k-mobile-scheduler-agendamonth">#=kendo.toString(date, "MMMM")#</span></span><span class="k-mobile-scheduler-agendaweekday">#=kendo.toString(date, "dddd")#</span></div># } #',u='# if (!isMobile) { #<strong class="k-scheduler-adgendagroup">#=value#</strong># } else { #<span class="k-scheduler-group-text">#=value#</span># } #',c=r.Class.extend({init:function(e){this._view=e},_getColumns:function(e,t){return e.concat(t)},_getGroupsInDay:function(){return[]},_getSumOfItemsForDate:function(){return 0},_renderTaskGroupsCells:function(e,t,s,a){var n=this._view;0===s&&0===a&&t.length&&n._renderTaskGroupsCells(e,t)},_renderDateCell:function(e,t,s,a,n,i){var o=this._view,l=o._isMobile();e.push(r.format('<td class="k-scheduler-datecolumn{3}{2}" rowspan="{0}">{1}</td>',s.length,o._dateTemplate({date:a,isMobile:l}),n!=i.length-1||t.length?"":" k-last",t.length?"":" k-first"))},_renderDates:function(){},_getParents:function(e){return e.splice(0)},_getGroupsByDate:function(){},_renderTaskGroups:function(e,t,s){var a=this._view;e.append(a._renderTaskGroups(t,s))}}),h=r.Class.extend({init:function(e){this._view=e},_getColumns:function(e,t){var s,a,n=this._view;return n._isMobile()?e.concat(t):(s=t.slice(0,1),a=t.slice(1),s.concat(e).concat(a))},_compareDateGroups:function(e,t,s){return e[s].text==t[s].text&&(0===s||this._compareDateGroups(e,t,s-1))},_getGroupsInDay:function(e,t){var s,a,n,r,i,o=[],l=null;for(s=0;s<e.length;s++)for(a=0;a<e[s].items.length;a++){if(n=0,0===o.length)for(n;n<t[s].length;n++)o.push([1]);else for(n;n<t[s].length;n++)if(this._compareDateGroups(t[s],l,n))o[n][o[n].length-1]++;else{for(r=o[n][o[n].length-1]-1,i=0;i<r;i++)o[n].push(0);o[n].push(1)}l=t[s]}return o},_getSumOfItemsForDate:function(e){var t,s=0;for(t=0;t<e.length;t++)s+=e[t].items.length;return s},_renderTaskGroupsCells:function(e,t,s,a,n,i,o,l){var d,u=this._view,c=u._isMobile();if(c)0===s&&0===a&&t.length&&u._renderTaskGroupsCells(e,t);else for(0===s&&0===a&&e.push(r.format('<td class="k-scheduler-datecolumn k-first" rowspan="{0}">{1}</td>',i,u._dateTemplate({date:o,isMobile:c}))),d=0;d<t[s].length;d++)n[d][l]&&e.push(r.format('<td class="k-scheduler-groupcolumn" rowspan="{0}">{1}</td>',n[d][l],u._groupTemplate({value:t[s][d].text,isMobile:c}),t[s][d].className))},_renderDateCell:function(){},_renderDates:function(e){var t,s=this._view,a=s._groupsByDate.sort(function(e,t){return e.array[0].value.getTime()-t.array[0].value.getTime()});for(t=0;t<a.length;t++)e.append(s._renderTaskGroups(a[t].array,a[t].groups))},_getParents:function(e){return e.slice(0)},_getGroupsByDate:function(e,t,s){var a,n,r,i,o=this._view;if(e[t].items)for(a=0;a<e[t].items.length;a++){for(n=e[t].items[a].value,r=!1,i=0;i<o._groupsByDate.length;i++)o._groupsByDate[i].array[0].value.getTime()===n.getTime()&&(r=!0,o._groupsByDate[i].array.push(e[t].items[a]),o._groupsByDate[i].groups.push(s));r||o._groupsByDate.push({array:[e[t].items[a]],groups:[s]})}},_renderTaskGroups:function(){}});r.ui.scheduler.AgendaGroupedView=c,r.ui.scheduler.AgendaGroupedByDateView=h,i.AgendaView=i.SchedulerView.extend({init:function(t,s){i.SchedulerView.fn.init.call(this,t,s),this._groupedView=this._getGroupedView(),s=this.options,s.editable&&(s.editable=e.extend({"delete":!0},s.editable,{create:!1,update:!1},{messages:s.messages})),this.title=s.title,this._eventTemplate=this._eventTmpl(s.eventTemplate,l),this._dateTemplate=r.template(s.eventDateTemplate),this._groupTemplate=r.template(s.eventGroupTemplate),this._timeTemplate=r.template(s.eventTimeTemplate),this.element.on("mouseenter"+o,".k-scheduler-agenda .k-scheduler-content tr","_mouseenter").on("mouseleave"+o,".k-scheduler-agenda .k-scheduler-content tr","_mouseleave").on("click"+o,".k-scheduler-agenda .k-scheduler-content .k-link:has(.k-i-close)","_remove"),this._renderLayout(s.date),this.refreshLayout()},name:"agenda",_isVirtualized:function(){return!1},_getGroupedView:function(){return this._isGroupedByDate()?new r.ui.scheduler.AgendaGroupedByDateView(this):new r.ui.scheduler.AgendaGroupedView(this)},_mouseenter:function(t){e(t.currentTarget).addClass("k-state-hover")},_mouseleave:function(t){e(t.currentTarget).removeClass("k-state-hover")},_remove:function(t){t.preventDefault(),this.trigger("remove",{uid:e(t.currentTarget).closest(".k-task").attr(r.attr("uid"))})},nextDate:function(){return r.date.nextDay(this.startDate())},startDate:function(){return this._startDate},endDate:function(){return this._endDate},previousDate:function(){return r.date.previousDay(this.startDate())},_renderLayout:function(e){this._startDate=e,this._endDate=r.date.addDays(e,7),this.createLayout(this._layout()),this._footer(),this.table.addClass("k-scheduler-agenda")},_layout:function(){var e,t,s,a=[{text:this.options.messages.time,className:"k-scheduler-timecolumn"},{text:this.options.messages.event}];if(this._isMobile()||a.splice(0,0,{text:this.options.messages.date,className:"k-scheduler-datecolumn"}),e=this.groupedResources,e.length){for(t=[],s=0;s<e.length;s++)t.push({text:"",className:"k-scheduler-groupcolumn"});a=this._groupedView._getColumns(t,a)}return{columns:a}},_tasks:function(e){var t,s,a,n,i,o,l,d,u,c=[];for(t=0;t<e.length;t++)if(s=e[t],a=s.start,n=s.isAllDay?r.date.getDate(s.end):s.end,i=r.date.getDate(a),o=6e4*(i.getTimezoneOffset()-n.getTimezoneOffset()),l=Math.ceil((n-i+o)/r.date.MS_PER_DAY),s.isAllDay&&(l+=1),d=s.clone(),d.startDate=r.date.getDate(a),d.startDate>=this.startDate()&&c.push(d),l>1)for(d.end=r.date.nextDay(a),d.head=!0,u=1;u<l;u++)a=d.end,d=s.clone(),d.start=d.startDate=r.date.getDate(a),d.end=r.date.nextDay(a),u==l-1?(d.end=new Date(d.start.getFullYear(),d.start.getMonth(),d.start.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),d.tail=!0):(d.isAllDay=!0,d.middle=!0),(r.date.getDate(d.end)<=this.endDate()&&d.start>=this.startDate()||r.date.getDate(d.start).getTime()==this.endDate().getTime())&&c.push(d);return new r.data.Query(c).sort([{field:"start",dir:"asc"},{field:"end",dir:"asc"}]).groupBy({field:"startDate"}).toArray()},_renderTaskGroups:function(e,t){var s,a,n,i,o,l,d,u,c=[],h=this.options.editable,p=h&&h.destroy!==!1&&!this._isMobile(),g=this._isMobile(),f=this._groupedView._getSumOfItemsForDate(e),m=this._groupedView._getGroupsInDay(e,t),_=0;for(s=0;s<e.length;s++)for(a=e[s].value,n=e[s].items,i=r.date.isToday(a),o=0;o<n.length;o++)l=n[o],d=[],u=g?[]:d,this._groupedView._renderTaskGroupsCells(u,t,s,o,m,f,a,_),_++,0===o&&(g?(u.push(r.format('<td class="k-scheduler-datecolumn {1}" colspan="2">{0}</td>',this._dateTemplate({date:a,isMobile:g}),this.groupedResources.length?"":"k-first")),c.push('<tr role="row" aria-selected="false"'+(i?' class="k-today">':">")+u.join("")+"</tr>")):this._groupedView._renderDateCell(d,t,n,a,s,e)),l.format=l.head?"{0:t}":l.tail?"{1:t}":"{0:t}-{1:t}",l.resources=this.eventResources(l),d.push(r.format('<td class="k-scheduler-timecolumn {4}"><div>{0}{1}{2}</div></td><td>{3}</td>',l.tail||l.middle?'<span class="k-icon k-i-arrow-60-left"></span>':"",this._timeTemplate(l.clone({start:l._startTime||l.start,end:l.endTime||l.end})),l.head||l.middle?'<span class="k-icon k-i-arrow-60-right"></span>':"",this._eventTemplate(l.clone({showDelete:p,messages:this.options.messages})),!this.groupedResources.length&&g?"k-first":"")),c.push('<tr role="row" aria-selected="false"'+(i?' class="k-today">':">")+d.join("")+"</tr>");return c.join("")},_renderTaskGroupsCells:function(e,t){var s,a=this._isMobile();for(s=0;s<t.length;s++)e.push(r.format('<td class="k-scheduler-groupcolumn{2}" rowspan="{0}">{1}</td>',t[s].rowSpan,this._groupTemplate({value:t[s].text,isMobile:a}),t[s].className))},render:function(e){var t,s,n=this.content.find("table").empty(),r=[];e.length>0&&(t=this.groupedResources,t.length?(r=this._createGroupConfiguration(e,t,null),this._groupsByDate=[],this._renderGroups(r,n,[]),this._groupedView._renderDates(n)):(r=this._tasks(e),n.append(this._renderTaskGroups(r,[])))),s=this._eventsList=a(r),this._angularItems(n,s),this.refreshLayout(),this.trigger("activate")},_angularItems:function(e,t){this.angular("compile",function(){var s=[],a=t.map(function(t){return s.push({dataItem:t}),e.find(".k-task["+r.attr("uid")+"="+t.uid+"]")});return{elements:a,data:s}})},_renderGroups:function(e,t,s){var a,n,r;for(a=0,n=e.length;a<n;a++)r=this._groupedView._getParents(s),r.push(e[a]),this._groupedView._getGroupsByDate(e,a,r),e[a].groups?this._renderGroups(e[a].groups,t,r):this._groupedView._renderTaskGroups(t,e[a].items,r)},_createGroupConfiguration:function(e,a,n){var o,l,d,u,c,h,p,g=a[0],f=[],m=g.dataSource.view(),_=this._isMobile();for(m=m.filter(function(e){var t=r.getter(g.dataParentValueField)(e);return null===t||void 0===t||n&&t===n.value}),o=0;o<m.length;o++)l=s(g,m[o]),d=new r.data.Query(e).filter({field:g.field,operator:i.SchedulerView.groupEqFilter(l)}).toArray(),d.length&&(u=this._tasks(d),c=n?"":" k-first",o===m.length-1&&(!n||n.className.indexOf("k-last")>-1)&&(c+=" k-last"),h={text:r.getter(g.dataTextField)(m[o]),value:l,rowSpan:0,className:c},a.length>1?(h.groups=this._createGroupConfiguration(d,a.slice(1),h),n&&(n.rowSpan+=h.rowSpan)):(h.items=u,p=t(h.items),_&&(p+=h.items.length),h.rowSpan=p,n&&(n.rowSpan+=p)),f.push(h));return f},_resourceBySlot:function(){return{}},selectionByElement:function(t){var s,a,n;if(t=e(t),!t.hasClass("k-scheduler-datecolumn")&&this._eventsList.length)return t.is(".k-task")&&(t=t.closest("td")),this._isMobile()?(n=t.parent(),s=n.parent().children().filter(function(){return e(this).children(":not(.k-scheduler-datecolumn)").length}).index(n)):s=t.parent().index(),a=this._eventsList[s],{index:s,start:a.start,end:a.end,isAllDay:a.isAllDay,uid:a.uid}},select:function(e){this.clearSelection();var t=this.table.find(".k-task").eq(e.index).closest("tr").addClass("k-state-selected").attr("aria-selected",!0)[0];this.current(t)},move:function(e,t){var s,a=!1,n=e.index;return t==r.keys.UP?(n--,a=!0):t==r.keys.DOWN&&(n++,a=!0),a&&(s=this._eventsList[n],s&&(e.start=s.start,e.end=s.end,e.isAllDay=s.isAllDay,e.events=[s.uid],e.index=n)),a},moveToEvent:function(){return!1},constrainSelection:function(e){var t=this._eventsList[0];t&&(e.start=t.start,e.end=t.end,e.isAllDay=t.isAllDay,e.events=[t.uid],e.index=0)},isInRange:function(){return!0},destroy:function(){this.element&&this.element.off(o),i.SchedulerView.fn.destroy.call(this)},options:{title:"Agenda",name:"agenda",editable:!0,selectedDateFormat:"{0:D}-{1:D}",selectedShortDateFormat:"{0:d} - {1:d}",selectedMobileDateFormat:"{0: MMM} {0:dd} - {1:dd}",eventTemplate:"#:title#",eventTimeTemplate:"#if(data.isAllDay) {##=this.options.messages.allDay##} else { ##=kendo.format(format, start, end)## } #",eventDateTemplate:d,eventGroupTemplate:u,messages:{event:"Event",date:"Date",time:"Time",allDay:"all day"}}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,s){(s||t)()});;!function(t,define){define("kendo.scheduler.monthview.min",["kendo.scheduler.view.min"],t)}(function(){return function(t){function e(t,e){return t.slice(e).concat(t.slice(0,e))}function n(t,e){for(var n=e.firstDay,o=new Date(t.getFullYear(),t.getMonth(),0,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());o.getDay()!=n;)i.date.setTime(o,-1*u);return o}function o(t,e,n){var o,i=e,a=n;return o=t,o>=i&&o<=a}var i=window.kendo,a=i.ui,r=a.SchedulerView,s=".kendoMonthView",l=t.extend,d=i.date.getDate,u=i.date.MS_PER_DAY,h=6,c=7,f="k-event-inverse",p=i.template('<span class="k-link k-nav-day">#:kendo.toString(date, "dd")#</span>'),v='<div role="gridcell" aria-selected="false" data-#=ns#uid="#=uid#"#if (resources[0]) { #style="background-color:#=resources[0].color #; border-color: #=resources[0].color#"class="k-event"#} else {#class="k-event"#}#><span class="k-event-actions"># if (data.tail || data.middle) {#<span class="k-icon k-i-arrow-60-left"></span>#}## if (data.isException()) {#<span class="k-icon k-i-non-recurrence"></span># } else if (data.isRecurring()) {#<span class="k-icon k-i-reload"></span>#}#</span>{0}<span class="k-event-actions">#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}## if (data.head || data.middle) {#<span class="k-icon k-i-arrow-60-right"></span>#}#</span># if (resizable && !data.tail && !data.middle) {#<span class="k-resize-handle k-resize-w"></span>#}## if (resizable && !data.head && !data.middle) {#<span class="k-resize-handle k-resize-e"></span>#}#</div>',_=i.template('<div title="#=title.replace(/"/g,"&\\#34;")#"><div class="k-event-template">#:title#</div></div>'),g=2,m=i.template('<div style="width:#=width#px;left:#=left#px;top:#=top#px" class="k-more-events k-button"><span class="k-icon k-i-more-horizontal"></span></div>'),y=i.Class.extend({init:function(t){this._view=t},_verticalRowCountForLevel:function(t){var e=this._view;return e._rowCountForLevel(t)},_horizontalGroupCountForLevel:function(t){var e=this._view;return e._columnCountForLevel(t)},_getCalendarRowsLength:function(t,e){return e/t},_createRows:function(t,e,n,o){var i,a=this._view,r=c,s=a._isVerticallyGrouped(),l="";for(i=0;i<n;i++)l+=a._createRow(t,e,r,s?o:i);return l},_adjustStartDate:function(t){return i.date.addDays(t,c)},_getContent:function(t,e,n){return t({date:e,resources:n})},_getTimeSlotByPosition:function(t,e,n){var o=this._view.groups[n];return o.daySlotByPosition(t,e)},_nextSlotStartDate:function(t){return i.date.nextDay(t)},_createRowsLayout:function(t,e,n){var o=this._view;return o._createRowsLayout(t,e,n)},_createVerticalColumnsLayout:function(t,e,n,o){return o},_createColumnsLayout:function(t,e,n){var o=this._view;return o._createColumnsLayout(t,e,n)},_verticalGroupCount:function(t){var e=this._view;return e._rowCountForLevel(t)},_horizontalGroupCount:function(t){var e=this._view;return e._columnCountForLevel(t)/e._columnOffsetForResource(t)},_positionMobileEvent:function(t,e,n,o,i,a,r){var s,l=this._view;o>1&&(0===r?a=n.end.endDate():r==o-1?i=n.start.startDate():(i=n.start.startDate(),a=n.end.endDate())),s=t.clone({start:i,end:a,head:n.head,tail:n.tail}),l._positionMobileEvent(n,l._createEventElement(s),e)},_positionEvent:function(t,e,n,o,i,a,r){var s,l=this._view;o>1&&(0===r?a=n.end.endDate():r==o-1?i=n.start.startDate():(i=n.start.startDate(),a=n.end.endDate())),s=t.clone({start:i,end:a,head:n.head,tail:n.tail}),l._positionEvent(n,l._createEventElement(s),e)},_addDaySlotCollections:function(t,e,n){var o,a,r,s,l,d,u,f,p,v,_,g=this._view,m=c,y=h;for(o=0;o<t;o++)for(a=0,r=0,g._isVerticallyGrouped()&&(r=o),s=r*y;s<(r+1)*y;s++)for(l=g.groups[o],d=l.addDaySlotCollection(i.date.addDays(n,a),i.date.addDays(n,a+m)),u=e[s],f=u.children,p=0,u.setAttribute("role","row"),g._isVerticallyGrouped()||(p=o),v=p*m;v<(p+1)*m;v++)_=f[v],g.addDaySlot(d,_,n,a),a++},_changePeriodGroupIndex:function(t){var e=this._view;return t?e.groups.length-1:0},_createResizeHint:function(t){var e=this._view,n=t.startSlot().offsetLeft,o=t.start.offsetTop,i=t.innerWidth(),a=t.start.clientHeight-2,s=r.fn._createResizeHint.call(e,n,o,i,a);e._appendResizeHint(s)},_createMoveHint:function(t,e){var n=this._view,o=t.startSlot(),i=t.endSlot(),a=n._createEventElement(e.clone({head:t.head,tail:t.tail}));a.css({left:o.offsetLeft+2,top:o.offsetTop+o.firstChildHeight,height:"auto"===n.options.eventHeight?25:n.options.eventHeight,width:t.innerWidth()-(o.index!==i.index?3:2)}),a.addClass("k-event-drag-hint"),e.inverseColor&&a.addClass(f),n._appendMoveHint(a)}}),D=i.Class.extend({init:function(t){this._view=t},_verticalRowCountForLevel:function(){return 1},_horizontalGroupCountForLevel:function(t){var e=this._view;return e._columnCountForLevel(t+1)/c},_createRows:function(t,e,n){var o,a,r=this._view,s=c,l=r._isVerticallyGrouped(),d="",u=0;if(l){for(o=new Date(t),a=r._groupCount(),u;u<h;u++)d+=r._createRow(o,e,a,u),o=i.date.addDays(o,s);t=i.date.nextDay(t)}else{for(u;u<s;u++)d+=r._createRow(t,e,n,u),t=i.date.nextDay(t);t=i.date.addDays(t,s)}return d},_adjustStartDate:function(t,e){var n=this._view,o=n._isVerticallyGrouped();return o?e?i.date.addDays(t,c*(h-1)+1):i.date.nextDay(t):i.date.addDays(t,c)},_getContent:function(t,e,n,o){return 0===o?t({date:e,resources:n}):""},_getTimeSlotByPosition:function(t,e,n){var o=this._view.groups[n];return o.daySlotByPosition(t,e,!0)},_nextSlotStartDate:function(t){return t},_getCalendarRowsLength:function(){var t=this._view,e=t._isVerticallyGrouped();return e?c:h},_createRowsLayout:function(t,e,n,o){var i=this._view;return i._createDateLayout(o,null,!1)},_createVerticalColumnsLayout:function(t,e,n){var o,a,r,s=this._view,l=t[0],d=[],u=l.dataSource.view();for(o=0;o<u.length*h;o++)a=i.getter(l.dataValueField)(u[o%u.length]),r={text:n({text:i.htmlEncode(i.getter(l.dataTextField)(u[o%u.length])),color:i.getter(l.dataColorField)(u[o%u.length]),field:l.field,title:l.title,name:l.name,value:a}),className:"k-slot-cell",value:a},r.columns=s._createColumnsLayout(t.slice(1),null,n,null,null,a),d.push(r);return d},_createColumnsLayout:function(t,e,n,o){var i=this._view;return i._createColumnsLayout(t,e,n,o,!0)},_verticalGroupCount:function(t){var e=this._view;return e._columnCountForLevel(t)/h},_horizontalGroupCount:function(t){var e=this._view;return e._columnCountForLevel(t)/c},_positionMobileEvent:function(t,e,n,o,i,a){var r,s,l,d,u=this._view,h=n.start.index,c=n.end.index;for(r=n.start.index;r<=n.end.index;r++)s=n.collection._slots[r],l=e.daySlotRanges(s.start,s.start,!0)[0],d=t.clone({start:r===h?i:s.startDate(),end:r===c?a:s.endDate(),head:r!==c||n.head,tail:r!==h||n.tail}),u._positionMobileEvent(l,u._createEventElement(d),e)},_positionEvent:function(t,e,n,o,i,a){var r,s,l,d,u=this._view,h=n.start.index,c=n.end.index;for(r=n.start.index;r<=n.end.index;r++)s=n.collection._slots[r],l=e.daySlotRanges(s.start,s.start,!0)[0],d=t.clone({start:r===h?i:s.startDate(),end:r===c?a:s.endDate(),head:r!==c||n.head,tail:r!==h||n.tail}),u._positionEvent(l,u._createEventElement(d),e)},_addDaySlotCollections:function(t,e,n){var o,a,r,s,l,d,u,f,p,v,_,g,m,y,D=this._view,w=c,C=h,S=D._isVerticallyGrouped();for(o=0;o<w;o++)for(a=0;a<C;a++)for(r=0,s=S?o:a,l=e[s],d=l.children,u=0,l.setAttribute("role","row"),D._isVerticallyGrouped()||(u=o),f=u*t;f<(u+1)*t;f++)p=a*w+o,v=S?f+a*t:f,_=d[v],g=S?f:r,m=D.groups[g],y=0===o?m.addDaySlotCollection(i.date.addDays(n,p),i.date.addDays(n,p+w)):m._daySlotCollections[a],D.addDaySlot(y,_,n,p),r++},_changePeriodGroupIndex:function(t,e,n){var o=this._view;return e&&o._isVerticallyGrouped()?t?o.groups.length-1:0:n},_createResizeHint:function(t){var e,n,o,i,a,s,l,d=this._view;if(d._isVerticallyGrouped())e=t.startSlot().offsetLeft,n=t.start.offsetTop,o=t.startSlot().offsetWidth,i=t.endSlot().offsetTop+t.startSlot().offsetHeight-t.startSlot().offsetTop-2,a=r.fn._createResizeHint.call(d,e,n,o,i),d._appendResizeHint(a);else for(s=t.startSlot().index;s<=t.endSlot().index;s++)l=t.collection._slots[s],e=l.offsetLeft,n=l.offsetTop,o=l.offsetWidth,i=l.offsetHeight-2,a=r.fn._createResizeHint.call(d,e,n,o,i),d._appendResizeHint(a)},_createMoveHint:function(t,e){var n,o,i,a=this._view,r=t.startSlot(),s=t.endSlot();for(n=r.index;n<=s.index;n++)o=t.collection._slots[n],i=a._createEventElement(e.clone({head:t.head,tail:t.tail})),i.css({left:o.offsetLeft,top:o.offsetTop+o.firstChildHeight,height:"auto"===a.options.eventHeight?25:a.options.eventHeight,width:o.offsetWidth-2}),i.addClass("k-event-drag-hint"),e.inverseColor&&i.addClass(f),a._appendMoveHint(i)}});i.ui.scheduler.MonthGroupedView=y,i.ui.scheduler.MonthGroupedByDateView=D,a.MonthView=r.extend({init:function(t,e){var n,o,i,a=this;if(0===e.eventsPerDay&&(e.eventsPerDay=1),0===e.eventHeight&&(e.eventHeight=1),0===e.moreButtonHeight&&(e.moreButtonHeight=1),"string"==typeof e.eventHeight&&"auto"!==e.eventHeight&&(e.eventHeight=25),"auto"===e.eventHeight&&(e.adaptiveSlotHeight=!0),r.fn.init.call(a,t,e),a._groupedView=a._getGroupedView(),n=this._isGroupedByDate(),o=this.options.adaptiveSlotHeight,i=this.options.eventHeight,n===!0&&o===!0)throw Error("Incompatible options: adaptive slot height and date grouping!");if(n===!0&&"auto"===i)throw Error("Incompatible options: auto event height and date grouping!");a.title=a.options.title,a._templates(),a._editable(),a._renderLayout(a.options.date),a._groups()},name:"month",_getGroupedView:function(){return this._isGroupedByDate()?new i.ui.scheduler.MonthGroupedByDateView(this):new i.ui.scheduler.MonthGroupedView(this)},_updateDirection:function(t,e,n,o,i){var a,r,s,l,d;n&&(a=e[0].start,r=e[e.length-1].end,s=a.index===r.index,l=a.collectionIndex===r.collectionIndex,d=i?s&&l||l:s&&l,d&&(t.backward=o))},_changeDate:function(t,e,n){var o,i,a,r=this.groups[t.groupIndex];if(n){if(o=r._getCollections(r.daySlotCollectionCount()),i=e.collectionIndex-1,i>=0)return o[i]._slots[o[i]._slots.length-1]}else if(o=r._getCollections(r.daySlotCollectionCount()),i=e.collectionIndex+1,a=0,o[i]&&o[i]._slots[a])return o[i]._slots[a]},_getNextHorizontalRange:function(t,e,n){var o=this._isVerticallyGrouped();return n.startSlot=t[e](n.startSlot,o),n.endSlot=t[e](n.endSlot,o),n},_getNextVerticalRange:function(t,e,n,o){var i=this._isVerticallyGrouped()&&this._isGroupedByDate();return n.startSlot=t[e](n.startSlot,o,i),n.endSlot=t[e](n.endSlot,o,i),n},_changeViewPeriod:function(t,e,n){var o,a,r=n?7:1;return e&&(r*=-1),o=i.date.addDays(t.start,r),a=i.date.addDays(t.end,r),!this._isInRange(o,a)&&(t.start=o,t.end=a,(!n||n&&this._isVerticallyGrouped())&&(t.groupIndex=this._groupedView._changePeriodGroupIndex(e,n,t.groupIndex)),t.events=[],!0)},_continuousSlot:function(t,e,n){var o=t.backward?0:e.length-1,i=this.groups[t.groupIndex];return i.continuousSlot(e[o].start,n)},_changeGroupContinuously:function(t,e,n,o){var i,a,r,s;return n||(i=t.groupIndex,a=this.groups.length-1,r=this._isVerticallyGrouped(),s=this.groups[i],!e&&r?(e=s[o?"lastSlot":"firstSlot"](),i+=o?-1:1):e&&!r&&(i=o?a:0),(i<0||i>a)&&(i=o?a:0,e=null),t.groupIndex=i),e},_normalizeHorizontalSelection:function(t,e,n){var o;return o=n?e[0].start:e[e.length-1].end},_normalizeVerticalSelection:function(t,e){var n;return n=t.backward?e[0].start:e[e.length-1].end},_templates:function(){var t=this.options,e=l({},i.Template,t.templateSettings);this.eventTemplate=this._eventTmpl(t.eventTemplate,v),this.dayTemplate=i.template(t.dayTemplate,e),this.groupHeaderTemplate=i.template(t.groupHeaderTemplate,e)},dateForTitle:function(){return i.format(this.options.selectedDateFormat,this._firstDayOfMonth,this._lastDayOfMonth)},shortDateForTitle:function(){return i.format(this.options.selectedShortDateFormat,this._firstDayOfMonth,this._lastDayOfMonth)},mobileDateForTitle:function(){return i.format(this.options.selectedMobileDateFormat,this._firstDayOfMonth,this._lastDayOfMonth)},nextDate:function(){return i.date.nextDay(this._lastDayOfMonth)},previousDate:function(){return i.date.previousDay(this._firstDayOfMonth)},startDate:function(){return this._startDate},endDate:function(){return this._endDate},_renderLayout:function(e){var o=this;this._firstDayOfMonth=i.date.firstDayOfMonth(e),this._lastDayOfMonth=i.date.lastDayOfMonth(e),this._startDate=n(e,this.calendarInfo()),this.createLayout(this._layout()),this._content(),this._initSlotHeight(),this.refreshLayout(),this._isVirtualized()&&this._tryRenderContent(),this.content.on("click"+s,".k-nav-day,.k-more-events",function(e){var n=t(e.currentTarget).offset(),i=o._slotByPosition(n.left,n.top);e.preventDefault(),o.trigger("navigate",{view:"day",date:i.startDate()})}),this._footer()},_editable:function(){this.options.editable&&(this._isMobile()?this._touchEditable():this._mouseEditable())},_mouseEditable:function(){var e=this;e.element.on("click"+s,".k-scheduler-monthview .k-event a:has(.k-i-close)",function(n){e.trigger("remove",{uid:t(this).closest(".k-event").attr(i.attr("uid"))}),n.preventDefault()}),e.options.editable.create!==!1&&e.element.on("dblclick"+s,".k-scheduler-monthview .k-scheduler-content td",function(n){var o,i=t(n.currentTarget).offset(),a=e._slotByPosition(i.left,i.top);a&&(o=e._resourceBySlot(a),e.trigger("add",{eventInfo:l({isAllDay:!0,start:a.startDate(),end:a.startDate()},o)})),n.preventDefault()}),e.options.editable.update!==!1&&e.element.on("dblclick"+s,".k-scheduler-monthview .k-event",function(n){e.trigger("edit",{uid:t(this).closest(".k-event").attr(i.attr("uid"))}),n.preventDefault()})},_touchEditable:function(){var e=this,n=0;i.support.mobileOS.android&&(n=5),e.options.editable.create!==!1&&(e._addUserEvents=new i.UserEvents(e.element,{threshold:n,useClickAsTap:!i.support.browser.edge,filter:".k-scheduler-monthview .k-scheduler-content td",tap:function(n){var o,i,a;e._scrolling||(o=t(n.target).offset(),i=e._slotByPosition(o.left,o.top),i&&(a=e._resourceBySlot(i),e.trigger("add",{eventInfo:l({isAllDay:!0,start:i.startDate(),end:i.startDate()},a)})),n.preventDefault())}}))},selectionByElement:function(e){var n=t(e).offset();return this._slotByPosition(n.left,n.top)},_columnCountForLevel:function(t){var e=this.columnLevels[t];return e?e.length:0},_rowCountForLevel:function(t){var e=this.rowLevels[t];return e?e.length:0},_content:function(){var t,e="<tbody>",n=1,o=this._groupedView,i=this.groupedResources;for(i.length&&this._isVerticallyGrouped()&&(n=o._verticalRowCountForLevel(i.length-1)),t=0;t<n;t++)e+=this._createCalendar(t),this._cachedGroupIndex=t;e+="</tbody>",this.content.find("table").html(e)},_virtualContent:function(){var t=this,e="";e+=this._createCalendar(++this._cachedGroupIndex),t.content.find("table tbody").append(e),t._initSlotHeight()},_calcSlotHeight:function(t){var e,n=this.options,o=n.eventHeight,i=n.eventSpacing,a=n.moreButtonHeight,r=this.content.find("table tr td")[0];if("auto"!==o&&r)return e=r.firstChild,Math.round(r.offsetHeight-r.clientHeight+e.offsetTop+e.offsetHeight+g+t*o+(t-1)*i+(g+a)+g)},_initSlotHeight:function(){var t,e=this.options,n=e.eventsPerDay,o=e.eventHeight,i=this._isMobile(),a=this.content.find("table");i||"number"==typeof o&&(a.addClass("k-scheduler-table-auto"),t=this._calcSlotHeight(n),a.find("tr").height(t))},_adjustSlotHeight:function(t){var e,n=this.options,o=n.eventHeight,i=n.eventSpacing,a=n.moreButtonHeight;this._canAdjustSlotHeight===!0&&(e=t._daySlotCollections,this.content.find("table").addClass("k-scheduler-table-auto"),e.forEach(function(t){var e=t._events,n=0,r=t._slots,s=r[0],l=s.element.offsetTop,d=0;r.forEach(function(t){t.eventMeta?t.actualEventCount=t.eventMeta.length:(t.eventMeta=[],t.actualEventCount=0)}),r.forEach(function(t,e){t.eventMeta.forEach(function(n,o){n.startIndex===e&&n.startIndex!==n.endIndex&&r.slice(e,n.endIndex+1).forEach(function(e){var i=e.eventMeta;i.indexOf(n)>-1||(i[i.length]=t.eventMeta[o],e.actualEventCount=i.length,e.dirty=!0)})}),t.dirty===!0&&(t.eventMeta.sort(function(t,e){return t.order-e.order}),delete t.dirty)}),"auto"===o&&r.forEach(function(t,e){var n=t.firstChildTop+t.firstChildHeight+g;t.eventMeta.forEach(function(t,e){t.top=Math.max(t.top,l+n),n=t.top-l+i+t.height})}),r.forEach(function(t,r){var s=t.firstChildTop+t.firstChildHeight+g;t.eventMeta.forEach(function(t){t.top=Math.max(t.top,l+s),s=t.top-l+i+t.height,t.startIndex===r&&(e[n].element[0].style.top=t.top+"px",n++)}),t.eventMeta.length>0?(s-=i,s+=g):s+="auto"===o?25:o,t.more&&(t.more[0].style.top=l+s+"px",s+=g+a),d=Math.max(d,s+1)}),s.element.parentNode.style.height=d+"px",r.forEach(function(t){t.offsetTop=l,t.offsetHeight=d,t.clientHeight=d-1})}.bind(this)))},_createCalendar:function(t){var e,n,o,a=this.startDate(),r=c*h,s=c,l=[a],d="",u=1,f=this._isVerticallyGrouped(),p=this._groupedView,v=this.groupedResources;for(v.length&&(f||(u=p._horizontalGroupCountForLevel(v.length-1))),this._slotIndices={},e=p._getCalendarRowsLength(s,r),n=0;n<e;n++)d+="<tr>",l.push(a),o=n*s,d+=p._createRows(a,o,u,t),a=p._adjustStartDate(a,n===e-1),d+="</tr>";return this._weekStartDates=l,this._endDate=i.date.previousDay(a),d},_createRow:function(t,e,n,o){var a,r=this,s=r._firstDayOfMonth,l=r._lastDayOfMonth,u=r.dayTemplate,h="",c="",f=this._groupedView,p=function(){return r._resourceBySlot({groupIndex:o})};for(a=0;a<n;a++)h="",i.date.isToday(t)&&(h+="k-today"),i.date.isInDateRange(t,s,l)||(h+=" k-other-month"),c+="<td ",""!==h&&(c+='class="'+h+'"'),c+=">",c+=f._getContent(u,t,p,a),c+="</td>",r._slotIndices[d(t).getTime()]=e+a,t=f._nextSlotStartDate(t);return c},_layout:function(){var n,o,i,a=this.calendarInfo(),r=this._isMobile()?a.days.namesShort.map(function(t){return t[0]}):a.days.names,s=e(r,a.firstDay),l=t.map(s,function(t){return{text:t}}),d=this.groupedResources,u=this._groupedView;if(d.length)if(this._isVerticallyGrouped()){for(o=[],i=0;i<6;i++)o.push({text:"<div> </div>",className:"k-hidden k-slot-cell"});n=u._createRowsLayout(d,o,this.groupHeaderTemplate,l),l=u._createVerticalColumnsLayout(d,o,this.groupHeaderTemplate,l)}else l=u._createColumnsLayout(d,l,this.groupHeaderTemplate,l);return{columns:l,rows:n}},_createEventElement:function(e){var n,o=this.options,a=o.editable,r=this._isMobile();return e.showDelete=a&&a.destroy!==!1&&!r,e.resizable=a&&a.resize!==!1&&!r,e.ns=i.ns,e.resources=this.eventResources(e),e.inverseColor=!1,e.messages=o.messages||{destroy:"Delete"},n=t(this.eventTemplate(e)),this.angular("compile",function(){return{elements:n,data:[{dataItem:e}]}}),n},_isInDateSlot:function(t){var e=this.groups[0],n=e.firstSlot().start,a=e.lastSlot().end-1,r=i.date.toUtcTime(t.start),s=i.date.toUtcTime(t.end);return(o(r,n,a)||o(s,n,a)||o(n,r,s)||o(a,r,s))&&(!o(s,n,n)||o(s,r,r)||t.isAllDay)},_slotIndex:function(t){return this._slotIndices[d(t).getTime()]},_positionMobileEvent:function(e,n,o){var a,s,l,d,u,h,c,f=e.start;e.start.offsetLeft>e.end.offsetLeft&&(f=e.end),a=e.start.index,s=a,l=3,d=r.collidingEvents(e.events(),a,s),d.push({element:n,start:a,end:s}),u=r.createRows(d),h=e.collection.at(a),c=h.container,c||(c=t(i.format('<div class="k-events-container" style="top:{0};left:{1};width:{2}"></div>',f.offsetTop+f.firstChildTop+f.firstChildHeight+"px",f.offsetLeft+"px",f.offsetWidth+"px")),h.container=c,this.content[0].appendChild(c[0])),u.length<=l&&(e.addEvent({element:n,start:a,end:s,groupIndex:f.groupIndex}),o._continuousEvents.push({element:n,uid:n.attr(i.attr("uid")),start:e.start,end:e.end}),c[0].appendChild(n[0]))},_positionEvent:function(e,n,o){var a,s,l,d,u,h,c,f,p,v,_,y,D,w,C,S,x,H,k=this.options.eventHeight,M=this.options.eventSpacing,b=e.start;for(e.start.offsetLeft>e.end.offsetLeft&&(b=e.end),a=e.start.index,s=e.end.index,l=b.eventCount,d=r.collidingEvents(e.events(),a,s),u=a!==s?3:2,d.push({element:n,start:a,end:s}),h=r.createRows(d),c=0,f=Math.min(h.length,l);c<f;c++)for(p=h[c].events,v="auto"===k?"":b.offsetTop+b.firstChildTop+b.firstChildHeight+g+c*(k+M)+"px",_=0,y=p.length;_<y;_++)p[_].element[0].style.top=v,p[_].element.attr(i.attr("order"),c);if(h.length>l)for(D=a;D<=s;D++)w=e.collection,C=w.at(D),C.more||(C.more=t(m({ns:i.ns,start:D,end:D,width:C.clientWidth-2,left:C.offsetLeft+2,top:"auto"===k?"":C.offsetTop+C.firstChildTop+C.firstChildHeight+g+l*k+(l-1)*M+g})),this.content[0].appendChild(C.more[0]));else e.addEvent({element:n,start:a,end:s,groupIndex:b.groupIndex}),n[0].style.width=e.innerWidth()-u+"px",n[0].style.left=b.offsetLeft+2+"px",n[0].style.height="auto"===k?"":k+"px",o._continuousEvents.push({element:n,uid:n.attr(i.attr("uid")),start:e.start,end:e.end,order:parseInt(n.attr(i.attr("order")),10)}),n.appendTo(this.content),this._inverseEventColor(n),S=e.start.collectionIndex,x=e.start.index,H=o._daySlotCollections[S]._slots[x],H.eventMeta||(H.eventMeta=[]),H.eventMeta.push({height:"auto"===k?n.outerHeight():k,top:0,startIndex:x,endIndex:e.end.index,uid:n.attr(i.attr("uid")),order:parseInt(n.attr(i.attr("order")),10)})},_slotByPosition:function(t,e){var n,o,i=this.content.offset();for(t-=i.left,e-=i.top,e+=this.content[0].scrollTop,t+=this.content[0].scrollLeft,t=Math.ceil(t),e=Math.ceil(e),n=0;n<this.groups.length;n++)if(o=this._groupedView._getTimeSlotByPosition(t,e,n))return o;return null},_appendResizeHint:function(t){t.appendTo(this.content),this._resizeHint=this._resizeHint.add(t)},_updateResizeHint:function(t,e,n,o){var a,r,s;for(this._removeResizeHint(),a=this.groups[e],r=a.ranges(n,o,!0,t.isAllDay),s=0;s<r.length;s++)this._groupedView._createResizeHint(r[s]);this._resizeHint.find(".k-label-top,.k-label-bottom").text(""),this._resizeHint.first().addClass("k-first").find(".k-label-top").text(i.toString(i.timezone.toLocalDate(n),"M/dd")),this._resizeHint.last().addClass("k-last").find(".k-label-bottom").text(i.toString(i.timezone.toLocalDate(o),"M/dd"))},_updateMoveHint:function(t,e,n){var o,a=i.date.toUtcTime(t.start)+n,r=a+t.duration(),s=this.groups[e],l=s.ranges(a,r,!0,t.isAllDay);for(this._removeMoveHint(t.uid),o=0;o<l.length;o++)this._groupedView._createMoveHint(l[o],t)},_appendMoveHint:function(t){t.appendTo(this.content),this._moveHint=this._moveHint.add(t)},_groups:function(){var t,e=this._groupCount(),n=this.content[0].getElementsByTagName("tr"),o=this.startDate();for(this.groups=[],t=0;t<e;t++)this._addResourceView(t);this._groupedView._addDaySlotCollections(e,n,o)},addDaySlot:function(t,e,n,o){var a=i.date.addDays(n,o),r=i.date.MS_PER_DAY,s=this.options.eventsPerDay;n.getHours()!==a.getHours()&&(r+=(n.getHours()-a.getHours())*i.date.MS_PER_HOUR),a=i.date.toUtcTime(a),r+=a,e.setAttribute("role","gridcell"),e.setAttribute("aria-selected",!1),t.addDaySlot(e,a,r,s)},render:function(t){var e,n,o,a;this.content.children(".k-event,.k-more-events,.k-events-container").remove(),this._cachedEvents=t,this._groups(),t=new i.data.Query(t).sort([{field:"start",dir:"asc"},{field:"end",dir:"desc"}]).toArray().filter(function(t){return this._isInDateSlot(t)}.bind(this)),e=this.groupedResources,n=this._isMobile(),o=this._isGroupedByDate(),a=this.options.adaptiveSlotHeight,this._canAdjustSlotHeight=n!==!0&&o!==!0&&0===e.length&&a===!0,e.length?this._renderGroups(t,e,0,1):this._renderEvents(t,0),this.refreshLayout(),this.trigger("activate")},_renderEvents:function(t,e){var n=this.groups[e],o=this._groupedView._view,a=o._isMobile();n&&(n._continuousEvents||(n._continuousEvents=[]),a?t.forEach(function(t){for(var e,o=n.slotRanges(t,!0),a=o[0],r=a.start.start,s=a.end.end,l=new Date(a.start.start),d=o[o.length-1].end.end,u=new Date(l),h=new Date(s);l.getTime()<=d&&t.end>=i.timezone.toLocalDate(l)&&t.start<=i.timezone.toLocalDate(d);)e=n.daySlotRanges(u.getTime(),h.getTime(),!0)[0],h.setDate(h.getDate()+1),u.setDate(u.getDate()+1),e&&(e.head=null,e.middle=null,e.tail=null,this._groupedView._positionMobileEvent(t,n,e,1,r,s,0)),l=i.date.addDays(l,1)}.bind(this)):(t.forEach(function(t){var e,o,i=t.start,a=t.end,r=n.slotRanges(t,!0),s=r.length;for(o=0;o<s;o++)e=r[o],this._groupedView._positionEvent(t,n,e,s,i,a,o)}.bind(this)),this._canAdjustSlotHeight===!0&&this._adjustSlotHeight(n)))},_renderGroups:function(t,e,n,o,a){var s,l,d,u,h=e[0];if(h)for(s=h.dataSource.view(),s=s.filter(function(t){var e=i.getter(h.dataParentValueField)(t);return null===e||void 0===e||e===a}),l=0;l<s.length;l++)d=this._resourceValue(h,s[l]),u=new i.data.Query(t).filter({field:h.field,operator:r.groupEqFilter(d)}).toArray(),e.length>1?n=this._renderGroups(u,e.slice(1),n++,o+1,d):this._renderEvents(u,n++);return n},_groupCount:function(){var t=this.groupedResources,e=this._groupedView;return t.length?this._isVerticallyGrouped()?e._verticalGroupCount(t.length-1):e._horizontalGroupCount(t.length):1},_columnOffsetForResource:function(t){return this._columnCountForLevel(t)/this._columnCountForLevel(t-1)},destroy:function(){this.table&&this.table.removeClass("k-scheduler-monthview"),this.content&&this.content.off(s),this.element&&this.element.off(s),r.fn.destroy.call(this),this._isMobile()&&this.options.editable&&this.options.editable.create!==!1&&this._addUserEvents.destroy()},events:["remove","add","edit","navigate"],options:{title:"Month",name:"month",eventHeight:25,moreButtonHeight:13,editable:!0,selectedDateFormat:"{0:y}",selectedShortDateFormat:"{0:y}",selectedMobileDateFormat:"{0:MMMM}",groupHeaderTemplate:"#=text#",dayTemplate:p,eventTemplate:_,eventsPerDay:2,adaptiveSlotHeight:!1,eventSpacing:3}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});;!function(e,define){define("kendo.scheduler.timelineview.min",["kendo.scheduler.view.min"],e)}(function(){return function(e,t){function n(e){var t=new Date(1980,1,1,0,0,0);return u(t,g(e)),t}function i(e){var t,n,i;if(e.workDays&&e.workDays.length)return e.workDays;for(t=[],n=e.workWeekStart%7,i=Math.abs(e.workWeekEnd%7),t.push(n);i!=n;)n>6?n-=7:n++,t.push(n);return t}function o(e){var t,n=0;if(e.columns){for(t=0;t<e.columns.length;t++)n+=o(e.columns[t]);return e.colspan=n,n}return e.colspan=1,1}function r(e,t,n){var i,o,r,a;for(i=e.length-1;i>=0;i--)o=e[i].rectLeft,a=e[i].rectRight,r=o<=t&&a>=t,(r||o>=t&&a<=n||t<=o&&n>=o)&&(o<t&&(t=o),a>n&&(n=a));return s(e,t,n)}function s(e,t,n){var i,o,r=[];for(i=0;i<e.length;i++)o={rectLeft:e[i].rectLeft,rectRight:e[i].rectRight},(o.rectLeft<t&&o.rectRight>t||o.rectLeft>=t&&o.rectRight<=n)&&r.push(e[i]);return r}var a,l=window.kendo,d=l.ui,u=l.date.setTime,c=d.SchedulerView,h=l._outerWidth,f=l._outerHeight,_=e.extend,p=e.proxy,v=l.date.getDate,g=l.date.getMilliseconds,m=l.date.MS_PER_DAY,w=l.date.MS_PER_MINUTE,T="k-current-time",k="k-current-time-arrow",D="k-scheduler-header-wrap",y="k-event-inverse",S=.8666,C=".kendoTimelineView",V=l.template('<div><div class="k-event-template k-event-time">#:kendo.format("{0:t} - {1:t}", start, end)#</div><div class="k-event-template">${title}</div></div>'),R=l.template("<span class='k-link k-nav-day'>#=kendo.format('{0:m}', date)#</span>"),x='<div role="gridcell" aria-selected="false" data-#=ns#uid="#=uid#"#if (resources[0]) { #style="background-color:#=resources[0].color#; border-color: #=resources[0].color#"class="k-event" #} else {#class="k-event"#}#><span class="k-event-actions"># if(data.tail) {#<span class="k-icon k-i-arrow-60-left"></span>#}## if(data.isException()) {#<span class="k-icon k-i-non-recurrence"></span># } else if(data.isRecurring()) {#<span class="k-icon k-i-reload"></span># } #</span>{0}<span class="k-event-actions">#if (showDelete) {#<a href="\\#" class="k-link k-event-delete" title="${data.messages.destroy}" aria-label="${data.messages.destroy}"><span class="k-icon k-i-close"></span></a>#}## if(data.head) {#<span class="k-icon k-i-arrow-60-right"></span>#}#</span>#if(resizable && !data.tail){#<span class="k-resize-handle k-resize-w"></span>#}##if(resizable && !data.head){#<span class="k-resize-handle k-resize-e"></span>#}#</div>',M=l.Class.extend({init:function(e){this._view=e},_getTimeSlotByPosition:function(e,t,n){var i=this._view.groups[n];return i.timeSlotByPosition(e,t)},_hideHeaders:function(){var e=this._view;e.timesHeader.find("table tr:last").hide(),e.datesHeader.find("table tr:last").hide()},_setColspan:function(e){o(e)},_createRowsLayout:function(e,t,n){var i=this._view;return i._createRowsLayout(e,t,n)},_createVerticalColumnsLayout:function(e,t,n,i){return i},_createColumnsLayout:function(e,t,n){var i=this._view;return i._createColumnsLayout(e,t,n)},_getRowCount:function(){var e=this._view;return e._groupCount()},_getGroupsCount:function(){return 1},_addContent:function(e,t,n,i,o,r,s,a){var d,u,c,h,f=this._view,_="",p=f.options,v=function(t){var n,i="",o="",r=function(e){return function(){return f._resourceBySlot({groupIndex:e})}};return l.date.isToday(e[c])&&(o+="k-today"),(l.date.getMilliseconds(t)<l.date.getMilliseconds(p.workDayStart)||l.date.getMilliseconds(t)>=l.date.getMilliseconds(p.workDayEnd)||!f._isWorkDay(e[c]))&&(o+=" k-nonwork-hour"),i+="<td"+(""!==o?' class="'+o+'"':"")+">",n=l.date.getDate(e[c]),l.date.setTime(n,l.date.getMilliseconds(t)),i+=s({date:n,resources:r(a?d:u)}),i+="</td>"};for(d=0;d<i;d++){for(_+="<tr>",u=0;u<n;u++)for(c=0,h=t;c<h;c++)_+=f._forTimeRange(o,r,v);_+="</tr>"}return _},_addTimeSlotsCollections:function(e,t,n,i,o){var r,s,a,l,d,u,c,h,f,_,p,v,m=this._view,w=n.length;for(o&&(w=Math.floor(w/e)),r=0;r<e;r++)for(s=0,a=m.groups[r],o&&(s=r),d=s*w,u=0,o||(u=r),c=n[d].children,h=c.length/(o?1:e),f=h/t,_=0;_<t;_++)for(p=_*f+h*u,l=g(new Date((+m.startTime()))),v=0;v<f;v++)m._addTimeSlotToCollection(a,c,v,p,_,l,i),l+=i},_getVerticalGroupCount:function(e){return e},_getVerticalRowCount:function(e,t,n){var i=this._view;return i._isVerticallyGrouped()?e[t].maxRowCount:n},_renderEvent:function(e,t,n,i,o,r){var s,a=this._view,l=a._createEventElement(n.occurrence,t,o.head||n.head,o.tail||n.tail);l.appendTo(r).css({top:0,height:a.options.eventHeight}),s={start:n.occurrence._startTime||n.occurrence.start,end:n.occurrence._endTime||n.occurrence.end,element:l,uid:t.uid,slotRange:o,rowIndex:0,offsetTop:0},e.events[t.uid]=s,a._inverseEventColor(l),a.addContinuousEvent(i,o,l,t.isAllDay),a._arrangeRows(s,o,e)},_verticalCountForLevel:function(e){var t=this._view;return t._rowCountForLevel(e)},_horizontalCountForLevel:function(e){var t=this._view;return t._columnCountForLevel(e)},_updateCurrentVerticalTimeMarker:function(t,n){var i=this._view,o="<div class='"+T+"'></div>",r=i.datesHeader.find("."+D),s=Math.round(t[0].innerRect(n,new Date(n.getTime()+1),!1).left),a=e(o).prependTo(r).addClass(k+"-down");a.css({left:i._adjustLeftPosition(s-h(a)*S/2),top:r.find("tr:last").prev().position().top}),e(o).prependTo(i.content).css({left:i._adjustLeftPosition(s),width:"1px",height:i.content[0].scrollHeight-1,top:0})},_changeGroup:function(){return t},_prevGroupSlot:function(e,t,n){var i,o=this._view;return o._isVerticallyGrouped()?e:(i=t._collection(0,n),i.last())},_nextGroupSlot:function(e,t,n){var i,o=this._view;return o._isVerticallyGrouped()?e:(i=t._collection(0,n),i.first())},_verticalSlots:function(e,t){var n=this._view;return n._changeGroup(e,t)},_verticalMethod:function(e){return e?"leftSlot":"rightSlot"},_normalizeVerticalSelection:function(){return t},_horizontalSlots:function(e,t,n,i,o,r,s){var a=this._view,l={};return l.startSlot=t[n](i),l.endSlot=t[n](o),r||!a._isHorizontallyGrouped()||l.startSlot&&l.endSlot||(l.startSlot=l.endSlot=a._changeGroup(e,s)),l},_changeVerticalViewPeriod:function(){return!1},_changeHorizontalViewPeriod:function(e,t,n,i){var o=this._view;return!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(n,i,!1))},_updateDirection:function(e,t,n,i){var o=this._view;o._updateDirection(e,t,n,i,!0)},_createMoveHint:function(e,t){var n,i,o,r,s=this._view,a=e.start,l=s._createEventElement(t.occurrence,t.occurrence,!1,!1);l.addClass("k-event-drag-hint"),n=e.innerRect(t.occurrence.start,t.occurrence.end,s.options.snap),i=n.right-n.left,i<0&&(i=0),o=s._adjustLeftPosition(n.left),r={left:o,top:a.offsetTop,height:a.offsetHeight,width:i},l.css(r),t.occurrence.inverseColor&&l.addClass(y),s._appendMoveHint(l)},_adjustLeftPosition:function(e){var t=this._view;return t._isRtl&&(e-=t.content[0].scrollWidth-t.content[0].clientWidth),e}}),H=l.Class.extend({init:function(e){this._view=e},_getTimeSlotByPosition:function(e,t,n){var i=this._view.groups[n];return i.timeSlotByPosition(e,t,!0)},_hideHeaders:function(){var e=this._view;e._isVerticallyGrouped()?e.times.find(".k-last").hide():(e.timesHeader.find("table tr").eq(2).hide(),e.datesHeader.find("table tr").eq(2).hide())},_setColspan:function(){},_createRowsLayout:function(e,t,n,i){var o=this._view;return o._createDateLayout(i,null,!0)},_createVerticalColumnsLayout:function(e,t,n){var i=this._view;return i._createColumnsLayout(e,null,n)},_createColumnsLayout:function(e,t,n,i){var o=this._view;return o._createColumnsLayout(e,t,n,i,!0)},_getRowCount:function(e){var t=this._view;return t._rowCountForLevel(e)},_getGroupsCount:function(){var e=this._view;return e._groupCount()},_addContent:function(e,t,n,i,o,r,s,a){var d,c,h,f,_=this._view,p="",v=_.options,g=function(t,n,i,o,r,a){var u,c="",f="",p=_._isVerticallyGrouped()?d:h,g=function(e){return function(){return _._resourceBySlot({groupIndex:e})}};return l.date.isToday(e[h])&&(f+="k-today"),(l.date.getMilliseconds(t)<l.date.getMilliseconds(v.workDayStart)||l.date.getMilliseconds(t)>=l.date.getMilliseconds(v.workDayEnd)||!_._isWorkDay(e[p]))&&(f+=" k-nonwork-hour"),c+="<td"+(""!==f?' class="'+f+'"':"")+">",u=l.date.getDate(e[h]),l.date.setTime(u,l.date.getMilliseconds(t)),c+=s({date:u,resources:g(a)}),c+="</td>"},m=new Date(o),T=_.options.minorTickCount,k=_.options.majorTick*w,D=k/T||1;for(c=0;c<i;c++){for(p+="<tr>",c%(i/_._dates.length)===0&&(d=c/(i/_._dates.length),m=new Date(_._dates[d]),l.date.setTime(m,l.date.getMilliseconds(o))),h=0,f=t;h<f;h++)if(p+=_._forTimeRange(m,r,g,a,n),a){u(m,D,!1);break}p+="</tr>"}return p},_addTimeSlotsCollections:function(e,t,n,i,o){var r,s,a,l,d,u,c,h,f,_,p,v,m=this._view,w=n.length;for(o&&(w/=t),r=0;r<t;r++)for(s=0,o&&(s=r),l=s*w,d=0,u=n[l].children,c=o?w:u.length/(t*e),h=u.length/t,a=g(new Date((+m.startTime()))),_=0;_<c;_++){for(o?(f=0,u=n[_+c*r].children):(f=r*h+e*_,d++),p=0;p<e;p++)v=m.groups[p],m._addTimeSlotToCollection(v,u,p,f,r,a,i);a+=i}},_getVerticalGroupCount:function(){var e=this._view;return e.content.find("tr").length},_getVerticalRowCount:function(e,t,n){return n},_renderEvent:function(e,t,n,i,o,r,s,a){var l,d,u,c,h,f=this._view,_=[];for(d=o.start.index;d<=o.end.index;d++)l=f._createEventElement(n.occurrence,t,d!==a,d!==s),l.appendTo(r).css({top:0,height:f.options.eventHeight}),u=i._timeSlotCollections[0]._slots[d],c=i.timeSlotRanges(u.start,u.end,!1)[0],h={start:d===s?n.occurrence._startTime||n.occurrence.start:u.start,end:d===a?n.occurrence._endTime||n.occurrence.end:u.end,element:l,uid:t.uid,slotRange:c,rowIndex:0,offsetTop:0},e.events[t.uid]=h,_.push(h),f.addContinuousEvent(i,c,l,t.isAllDay),f._arrangeRows(h,c,e);e.events[t.uid]=_},_verticalCountForLevel:function(e){var t=this._view;return t._columnCountForLevel(e)},_horizontalCountForLevel:function(e,t){var n=this._view;return n._columnCountForLevel(t)/n._columnCountForLevel(2)},_updateCurrentVerticalTimeMarker:function(t,n){var i=this._view,o=i.times.find("tr:first th:first"),r=i.times.find("tr:first th:last"),s="<div class='"+T+"'></div>",a=e(s).prependTo(i.times),l=Math.round(t[0].innerRect(n,new Date(n.getTime()+1),!1).top),d={};this._isRtl?(d.right=o.position().left+f(o)-f(r),a.addClass(k+"-left")):(d.left=r.position().left,a.addClass(k+"-right")),d.top=l-h(a)*S/2,a.css(d),e(s).prependTo(i.content).css({top:l,height:"1px",right:"1px",width:i.content[0].scrollWidth,left:0})},_changeGroup:function(e,t,n){var i=this._view;n||(e.groupIndex=t?i.groups.length-1:0)},_prevGroupSlot:function(e){return e},_nextGroupSlot:function(e){return e},_changeDate:function(e,t,n){var i,o,r=this._view,s=r.groups[e.groupIndex];if(t){if(i=s._getCollections(!1),o=n.index-1,o>=0)return i[0]._slots[o]}else if(i=s._getCollections(!1),o=n.index+1,i[0]&&i[0]._slots[o])return i[0]._slots[o]},_verticalSlots:function(e,t,n){return this._changeDate(e,t,n)},_verticalMethod:function(e,t){return t?e?"upSlot":"downSlot":e?"leftSlot":"rightSlot"},_normalizeVerticalSelection:function(e,n,i,o){var r=this._view;return o?t:r._normalizeVerticalSelection(e,n,i)},_horizontalSlots:function(e,t,n,i,o,r,s){var a=this._view,l=a._changeGroup(e,s),d={};return l?d.startSlot=d.endSlot=l:a._isVerticallyGrouped()||(d.startSlot=t[n](i),d.endSlot=t[n](o)),d},_changeVerticalViewPeriod:function(e,t,n,i){var o=this._view;return!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(n,i,o._isVerticallyGrouped()))},_changeHorizontalViewPeriod:function(e,t,n,i){var o=this._view;return!o._isVerticallyGrouped()&&!(e.startSlot&&e.endSlot||t||!o._changeViewPeriod(n,i,!1))},_updateDirection:function(e,t,n,i){var o=this._view;o._updateDirection(e,t,n,i,!o._isVerticallyGrouped())},_createMoveHint:function(e,t){var n,i,o,r,s=this._view,a=e.start,l=e.end;for(n=a.index;n<=l.index;n++)i=e.collection._slots[n],o=s._createEventElement(t.occurrence,t.occurrence,!1,!1),o.addClass("k-event-drag-hint"),r={left:i.offsetLeft+2,top:i.offsetTop,height:s.options.eventHeight,width:i.offsetWidth},o.css(r),t.occurrence.inverseColor&&o.addClass(y),s._appendMoveHint(o)},_adjustLeftPosition:function(e){var t=this._view;return t._isRtl&&!t._isVerticallyGrouped()&&(e-=t.content[0].scrollWidth-t.content[0].offsetWidth),e}});l.ui.scheduler.TimelineGroupedView=M,l.ui.scheduler.TimelineGroupedByDateView=H,a=c.extend({init:function(e,t){var n=this;c.fn.init.call(n,e,t),n._groupedView=n._getGroupedView(),n.title=n.options.title||n.options.name,n._workDays=i(n.options),n._templates(),n._editable(),n.calculateDateRange(),n._groups(),n._currentTime(!0)},name:"timeline",_isVirtualized:function(){return!1},_getGroupedView:function(){return this._isGroupedByDate()?new l.ui.scheduler.TimelineGroupedByDateView(this):new l.ui.scheduler.TimelineGroupedView(this)},_getNextEventIndexBySlot:function(e,t,n){var i,o;if(this._isVerticallyGrouped())return l.ui.SchedulerView.fn._getNextEventIndexBySlot.call(this,e,t,n);for(i=0,o=0;o<t.length;o++)if(e.startDate()>t[o].start.startDate())i++;else{if(!(e.startDate().getTime()===t[o].start.startDate().getTime()&&n>t[o].start.groupIndex))break;i++}return i},_getSelectedSlot:function(e,t,n,i,o,r){return this._isVerticallyGrouped()?l.ui.SchedulerView.fn._getSelectedSlot.call(this,e,t,n,i,o,r):e},_getSortedEvents:function(t){return this._isVerticallyGrouped()?l.ui.SchedulerView.fn._getSortedEvents.call(this,t):t.sort(function(t,n){var i=t.start.startDate().getTime()-n.start.startDate().getTime();return 0===i&&(t.start.isDaySlot&&!n.start.isDaySlot&&(i=-1),!t.start.isDaySlot&&n.start.isDaySlot&&(i=1)),0===i&&(i=t.start.groupIndex-n.start.groupIndex),0===i&&(i=e(t.element).index()-e(n.element).index()),i})},_currentTimeMarkerUpdater:function(){this._updateCurrentTimeMarker(new Date)},_updateCurrentTimeMarker:function(t){var n,i,o,r,s,a,d,u,c,f,_,p,v,g=this.options;if(this.datesHeader.find("."+T).remove(),this.times.find("."+T).remove(),this.content.find("."+T).remove(),this._isInDateSlot({start:t,end:t}))for(g.currentTimeMarker.useLocalTimezone===!1&&(n=g.dataSource.options.schema.timezone,g.dataSource&&n&&(i=l.timezone.offset(t,n),t=l.timezone.convert(t,t.getTimezoneOffset(),i))),o=g.group&&"vertical"!=g.group.orientation?this.groups.length:1,r=0;r<o;r++){if(s=this.groups[r],!s)return;if(a=l.date.toUtcTime(t),d=s.timeSlotRanges(a,a+1),0===d.length)return;u=d[0].collection,c=u.slotByStartDate(t),c&&(this._isVerticallyGrouped()?this._groupedView._updateCurrentVerticalTimeMarker(d,t):(f="<div class='"+T+"'></div>",_=this.datesHeader.find("."+D),p=Math.round(d[0].innerRect(t,new Date(t.getTime()+1),!1).left),v=e(f).prependTo(_).addClass(k+"-down"),v.css({left:this._adjustLeftPosition(p-h(v)*S/2),top:_.find("tr:last").prev().position().top}),e(f).prependTo(this.content).css({left:this._adjustLeftPosition(p),width:"1px",height:this.content[0].scrollHeight-1,top:0})))}},_adjustLeftPosition:function(e){return this._groupedView._adjustLeftPosition(e)},_currentTime:function(e){var n=this,i=n.options.currentTimeMarker;i!==!1&&i.updateInterval!==t&&(n._currentTimeMarkerUpdater(),e&&(n._currentTimeUpdateTimer=setInterval(p(this._currentTimeMarkerUpdater,n),i.updateInterval)))},_editable:function(){this.options.editable&&(this._isMobile()?this._touchEditable():this._mouseEditable())},_mouseEditable:function(){var t=this;t.element.on("click"+C,".k-event a:has(.k-i-close)",function(n){t.trigger("remove",{uid:e(this).closest(".k-event").attr(l.attr("uid"))}),n.preventDefault()}),t.options.editable.create!==!1&&t.element.on("dblclick"+C,".k-scheduler-content td",function(e){var n,i=t._slotByPosition(e.pageX,e.pageY);i&&(n=t._resourceBySlot(i),t.trigger("add",{eventInfo:_({start:i.startDate(),end:i.endDate()},n)})),e.preventDefault()}),t.options.editable.update!==!1&&t.element.on("dblclick"+C,".k-event",function(n){t.trigger("edit",{uid:e(this).closest(".k-event").attr(l.attr("uid"))}),n.preventDefault()})},_touchEditable:function(){var n=this,i=0;l.support.mobileOS.android&&(i=5),n.options.editable.create!==!1&&(n._addUserEvents=new l.UserEvents(n.element,{threshold:i,useClickAsTap:!l.support.browser.edge,filter:".k-scheduler-content td",tap:function(e){var i,o,r,s;n._scrolling||(i=e.x.location!==t?e.x.location:e.x,o=e.y.location!==t?e.y.location:e.y,r=n._slotByPosition(i,o),r&&(s=n._resourceBySlot(r),n.trigger("add",{eventInfo:_({start:r.startDate(),end:r.endDate()},s)})),e.preventDefault())}})),n.options.editable.update!==!1&&(n._editUserEvents=new l.UserEvents(n.element,{threshold:i,useClickAsTap:!l.support.browser.edge,filter:".k-event",tap:function(t){var i,o;n._scrolling||(i=e(t.target).closest(".k-event"),o=e(t.touch.initialTouch),o.hasClass("k-i-close")?n.trigger("remove",{uid:i.attr(l.attr("uid"))}):i.hasClass("k-event-active")||n.trigger("edit",{uid:i.attr(l.attr("uid"))}),t.preventDefault())}}))},_slotByPosition:function(e,t){var n,i,o,r=this.content,s=r.offset();for(e-=s.left,t-=s.top,this._isRtl?(o=l.support.browser,o.mozilla||o.webkit&&o.version>=85?(e+=r[0].scrollWidth-r[0].offsetWidth,e+=r[0].scrollLeft):o.msie?(e-=l.scrollLeft(r),e+=r[0].scrollWidth-r[0].offsetWidth):o.webkit&&(e+=r[0].scrollLeft)):e+=r[0].scrollLeft,t+=r[0].scrollTop,e=Math.ceil(e),t=Math.ceil(t),i=0;i<this.groups.length;i++)if(n=this._groupedView._getTimeSlotByPosition(e,t,i))return n;return null},options:{name:"TimelineView",title:"Timeline",selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}",selectedMobileDateFormat:"{0:MMM dd}",date:l.date.today(),startTime:l.date.today(),endTime:l.date.today(),showWorkHours:!1,minorTickCount:2,editable:!0,workDayStart:new Date(1980,1,1,8,0,0),workDayEnd:new Date(1980,1,1,17,0,0),workWeekStart:1,workWeekEnd:5,majorTick:60,eventHeight:25,eventMinWidth:0,columnWidth:100,groupHeaderTemplate:"#=text#",majorTimeHeaderTemplate:"#=kendo.toString(date, 't')#",slotTemplate:" ",eventTemplate:V,dateHeaderTemplate:R,footer:{command:"workDay"},currentTimeMarker:{updateInterval:1e4,useLocalTimezone:!0},messages:{defaultRowText:"All events",showFullDay:"Show full day",showWorkDay:"Show business hours"}},events:["remove","add","edit"],_templates:function(){var e=this.options,t=_({},l.Template,e.templateSettings);this.eventTemplate=this._eventTmpl(e.eventTemplate,x),this.majorTimeHeaderTemplate=l.template(e.majorTimeHeaderTemplate,t),this.dateHeaderTemplate=l.template(e.dateHeaderTemplate,t),this.slotTemplate=l.template(e.slotTemplate,t),this.groupHeaderTemplate=l.template(e.groupHeaderTemplate,t)},_render:function(t){var n=this;t=t||[],n._dates=t,n._startDate=t[0],n._endDate=t[t.length-1||0],n._calculateSlotRanges(),n.createLayout(n._layout(t)),n._content(t),n._footer(),n._setContentWidth(),n.refreshLayout(),n.datesHeader.on("click"+C,".k-nav-day",function(t){var i=e(t.currentTarget).closest("th"),o=n._slotByPosition(i.offset().left,n.content.offset().top);n.trigger("navigate",{view:"timeline",date:o.startDate()})}),n._groupedView._hideHeaders()},_setContentWidth:function(){var e=this.content,t=e.width(),n=this.content.find("table"),i=n.find("tr:first").children().length,o=100,r=i*this.options.columnWidth;t<r&&(o=Math.ceil(r/t*100)),n.add(this.datesHeader.find("table")).css("width",o+"%")},_calculateSlotRanges:function(){var e,t,n,i,o=this._dates,r=this.startTime(),s=this.endTime();for(s=g(s),r=g(r),s===r?s+=m-1:s<r&&(s+=m),e=[],t=0;t<o.length;t++)n=v(o[t]),u(n,r),i=v(o[t]),u(i,s),e.push({start:l.date.toUtcTime(n),end:l.date.toUtcTime(i)});this._slotRanges=e},_forTimeRange:function(e,t,i,o,r){var s,a,l,d,c,h,f,_,p,v,T,k,D,y,S,C;for(e=n(e),t=n(t),s=this,a=g(e),l=g(t),d=s.options.minorTickCount,c=s.options.majorTick*w,h=c/d||1,f=new Date((+e)),_=0,v="",p=m/h,a!=l&&(a>l&&(l+=m),p=(l-a)/h),p=o?1:Math.round(p),r&&(p*=r);_<p;_++)T=_%(c/h),k=0===T,D=T<d-1,y=T===d-1,S=d,p%d!==0&&(C=p-(_+1)<d,k&&C&&(S=p%d)),v+=i(f,k,D,y,S,_%r),o||(r?_%r===r-1&&u(f,h,!1):u(f,h,!1));return v},_layout:function(e){var t,n,i,o=[],r=[],s=this,a=[{text:s.options.messages.defaultRowText}],l=s._groupedView,d=[];for(t=0;t<s.options.minorTickCount;t++)d.push({text:"​",className:"k-last",minorTicks:!0});for(this._forTimeRange(s.startTime(),s.endTime(),function(e,t,n,i,r){var a,u=s.majorTimeHeaderTemplate;t&&(a={text:u({date:e}),className:i?"k-slot-cell":"",columns:d.slice(0,r)},l._setColspan(a),o.push(a))}),n=0;n<e.length;n++)r.push({text:s.dateHeaderTemplate({date:e[n]}),className:"k-slot-cell",columns:o.slice(0)});return i=this.groupedResources,i.length&&("vertical"===this._groupOrientation()?(a=l._createRowsLayout(i,null,this.groupHeaderTemplate,r),r=l._createVerticalColumnsLayout(i,null,this.groupHeaderTemplate,r)):r=l._createColumnsLayout(i,r,this.groupHeaderTemplate,r)),{columns:r,rows:a}},_footer:function(){var t,n,i,o=this.options;o.footer!==!1&&(t='<div class="k-scheduler-footer k-toolbar">',n=o.footer.command,this._isMobile()&&(t+='<span class="k-state-default k-scheduler-today"><a href="#" class="k-link">',t+=o.messages.today+"</a></span>"),n&&"workDay"===n&&(this._isMobile()?(t+='<span class="k-state-default k-scheduler-fullday"><a href="#" class="k-link">',t+=(o.showWorkHours?o.messages.showFullDay:o.messages.showWorkDay)+"</a></span>"):(t+='<button type="button" class="k-button k-scheduler-fullday">',t+='<span class="k-icon k-i-clock"></span>',t+='<span class="k-button-text">',t+=o.showWorkHours?o.messages.showFullDay:o.messages.showWorkDay,t+="</span>",t+="</button>")),t+="</div>",this.footer=e(t).appendTo(this.element),i=this,this.footer.on("click"+C,".k-scheduler-fullday",function(e){e.preventDefault(),i.trigger("navigate",{view:i.name||o.name,date:i.startDate(),isWorkDay:!o.showWorkHours})}),this.footer.on("click"+C,".k-scheduler-today",function(e){var t,n,r,s,a;e.preventDefault(),t=i.options.timezone,n="today",r=new Date,t?(a=l.timezone.offset(r,t),s=l.timezone.convert(r,r.getTimezoneOffset(),a)):s=r,i.trigger("navigate",{view:i.name||o.name,action:n,date:s})}))},_columnCountForLevel:function(e){var t=this.columnLevels[e];return t?t.length:0},_rowCountForLevel:function(e){var t=this.rowLevels[e];return t?t.length:0},_isWorkDay:function(e){var t,n=e.getDay(),i=this._workDays;for(t=0;t<i.length;t++)if(i[t]===n)return!0;return!1},_content:function(e){var t=this,n=t.startTime(),i=this.endTime(),o=1,r=1,s=e.length,a="",l=this.groupedResources,d=this.slotTemplate,u=!1;l.length&&(u="vertical"===t._groupOrientation(),u?(r=t._groupedView._getRowCount(this.rowLevels.length-1),o=t._groupedView._getGroupsCount()):o=t._groupCount()),a+="<tbody>",a+=t._groupedView._addContent(e,s,o,r,n,i,d,u),a+="</tbody>",this.content.find("table").append(a)},_groups:function(){var e,t,n,i,o,r,s=this._groupCount(),a=this._dates,d=a.length;for(this.groups=[],e=0;e<s;e++)t=this._addResourceView(e),n=a[0],i=a[a.length-1||0],o=g(this.startTime()),r=g(this.endTime()),0!==o&&r<=o&&(n=v(n),u(n,o),i=v(i),u(i,r)),t.addTimeSlotCollection(n,l.date.addDays(i,1));this._timeSlotGroups(s,d)},_isHorizontallyGrouped:function(){return this.groupedResources.length&&"horizontal"===this._groupOrientation()},_timeSlotGroups:function(e,t){var n=this._timeSlotInterval(),i=this._isVerticallyGrouped(),o=this.content.find("tr");o.attr("role","row"),this._groupedView._addTimeSlotsCollections(e,t,o,n,i)},_addTimeSlotToCollection:function(e,t,n,i,o,r,s){var a=t[n+i],l=e.getTimeSlotCollection(0),d=this._dates[o],u=Date.UTC(d.getFullYear(),d.getMonth(),d.getDate()),c=u+r,h=c+s;a.setAttribute("role","gridcell"),a.setAttribute("aria-selected",!1),l.addTimeSlot(a,c,h,!0)},startDate:function(){return this._startDate},endDate:function(){return this._endDate},visibleEndDate:function(){var e=g(this.startTime()),t=g(this.endTime()),n=this.endDate();return 0!==e&&t<=e&&(n=l.date.addDays(n,1)),n},startTime:function(){var e=this.options;return e.showWorkHours?e.workDayStart:e.startTime},endTime:function(){var e=this.options;return e.showWorkHours?e.workDayEnd:e.endTime},_timeSlotInterval:function(){var e=this.options;return e.majorTick/e.minorTickCount*w},nextDate:function(){return l.date.nextDay(this.endDate())},previousDate:function(){return l.date.previousDay(this.startDate())},calculateDateRange:function(){this._render([this.options.date])},render:function(e){var t,n,i,o,r;for(this._headerColumnCount=0,this._groups(),this.element.find(".k-event").remove(),e=new l.data.Query(e).sort([{field:"start",dir:"asc"},{field:"end",dir:"desc"}]).toArray(),t=[],this._eventsByResource(e,this.groupedResources,t),n=[],i=0,o=0;o<t.length;o++)r={groupIndex:o,maxRowCount:0,events:{}},n.push(r),this._renderEvents(t[o],o,r),i<r.maxRowCount&&(i=r.maxRowCount);this._setRowsHeight(n,t.length,i),this._positionEvents(n,t.length),this._currentTime(!1),this.trigger("activate")},_positionEvents:function(t,n){var i,o,r,s,a;for(i=0;i<n;i++){o=t[i].events;for(r in o)if(s=o[r],e.isArray(s))for(a=0;a<s.length;a++)this._positionEvent(s[a]);else this._positionEvent(s)}},_setRowsHeight:function(t,n,i){var o,r,s,a,l,d=this.options.eventHeight,u=this._getBottomRowOffset(),c=this._groupedView,h=c._getVerticalGroupCount(n);for(n=this._isVerticallyGrouped()?h:1,o=0;o<n;o++)r=c._getVerticalRowCount(t,o,i),r=r?r:1,s=(d+2)*r+u,a=e(this.times.find("tr")[o]),l=e(this.content.find("tr")[o]),a.height(s),l.height(s);this._setContentWidth(),this.refreshLayout(),this._refreshSlots()},_getBottomRowOffset:function(){var e,t,n=.5*this.options.eventHeight,i=this._isMobile();return i?(e=30,t=60):(e=15,t=30),n>t?n=t:n<e&&(n=e),n},_positionEvent:function(e){var t,n,i,o=this.options.eventHeight,r=2,s=e.slotRange.innerRect(e.start,e.end,!1),a=this._adjustLeftPosition(s.left),l=s.right-s.left;l<0&&(l=0),l<this.options.eventMinWidth&&(t=e.slotRange.collection,n=t._slots[t._slots.length-1],i=n.offsetLeft+n.offsetWidth,l=this.options.eventMinWidth,i<a+l&&(l=i-s.left)),e.element.css({top:e.slotRange.start.offsetTop+e.rowIndex*(o+r)+"px",left:a,width:l})},_refreshSlots:function(){for(var e=0;e<this.groups.length;e++)this.groups[e].refresh()},_eventsByResource:function(e,n,i,o){var r,s,a,d,u=n[0];if(u)for(r=u.dataSource.view(),r=r.filter(function(e){var n=l.getter(u.dataParentValueField)(e);return null===n||n===t||n===o}),s=0;s<r.length;s++)a=this._resourceValue(u,r[s]),d=new l.data.Query(e).filter({field:u.field,operator:c.groupEqFilter(a)}).toArray(),n.length>1?this._eventsByResource(d,n.slice(1),i,a):i.push(d);else i.push(e)},_isInDateSlot:function(e){var t=e.start,n=e.end,i=v(this._startDate),o=l.date.addDays(v(this.visibleEndDate()),1);return t<o&&i<=n},_isInTimeSlot:function(e){var t,n=e._startTime||l.date.toUtcTime(e.start),i=e._endTime||l.date.toUtcTime(e.end),o=this._slotRanges;for(n===i&&(i+=1),t=0;t<o.length;t++)if(n<o[t].end&&o[t].start<i)return!0;return!1},_adjustEvent:function(e){var t,n=e.start,i=e.end,o=e._time("start"),r=e._time("end"),s=g(this.startTime()),a=g(this.endTime()),d=null,c=null,h=!1,f=!1;return e.isAllDay&&(n=v(n),o=0,i=v(i),r=m,c=l.date.addDays(i,1)),0===a&&(a=m),a<=s?(o<s&&o>=a&&(d=v(n),u(d,s),f=!0),r>a&&r<=s&&(c=v(i),u(c,a),h=!0)):(s>o?(d=v(n),u(d,s),f=!0):a<=o&&(d=v(n),d=l.date.addDays(d,1),u(d,s),f=!0),a<r?(c=v(i),u(c,a),h=!0):s>r&&(c=v(i),c=l.date.addDays(c,-1),u(c,a),h=!0)),t=e.clone({start:d?d:n,end:c?c:i,_startTime:d?l.date.toUtcTime(d):e._startTime,_endTime:c?l.date.toUtcTime(c):e._endTime,isAllDay:!1}),{occurrence:t,head:h,tail:f}},_renderEvents:function(e,t,n){var i,o,r,s,a,l,d,u,c,h,f;for(o=0,r=e.length;o<r;o++)i=e[o],this._isInDateSlot(i)&&(s=i.isAllDay||i.duration()>=m,a=this.content,(s||this._isInTimeSlot(i))&&(l=this._adjustEvent(i),d=this.groups[t],d._continuousEvents||(d._continuousEvents=[]),this._isInTimeSlot(l.occurrence)&&(u=d.slotRanges(l.occurrence,!1),c=u[0],h=c.start.index,f=c.end.index,this._groupedView._renderEvent(n,i,l,d,c,a,h,f))))},addContinuousEvent:function(e,t,n,i){var o=e._continuousEvents;o.push({element:n,isAllDay:i,uid:n.attr(l.attr("uid")),start:t.start,end:t.end})},_createEventElement:function(t,n,i,o){var r,s,a=this.eventTemplate,d=this.options.editable,u=this._isMobile(),c=d&&d.destroy!==!1&&!u,h=d&&d.resize!==!1,f=n._time("start"),p=n._time("end"),v=n.start,g=n.end,m=this.eventResources(n);return n._startTime&&f!==l.date.getMilliseconds(n.start)&&(v=new Date(f),v=l.timezone.apply(v,"Etc/UTC")),n._endTime&&p!==l.date.getMilliseconds(n.end)&&(g=new Date(p),g=l.timezone.apply(g,"Etc/UTC")),r=_({},{ns:l.ns,resizable:h,showDelete:c,head:i,tail:o,singleDay:1==this._dates.length,resources:m,inverseColor:!1,messages:this.options.messages},n,{start:v,end:g}),s=e(a(r)),this.angular("compile",function(){return{elements:s,data:[{dataItem:r}]}}),s},_arrangeRows:function(e,t,n){var i,o,s,a,l,d,u=t.start.index,h=t.end.index,f=e.slotRange.innerRect(e.start,e.end,!1),_=f.right+this.options.eventMinWidth,p=r(t.events(),f.left,_);for(t.addEvent({slotIndex:u,start:u,end:h,rectLeft:f.left,rectRight:_,element:e.element,uid:e.uid}),p.push({start:u,end:h,uid:e.uid}),i=c.createRows(p),n.maxRowCount<i.length&&(n.maxRowCount=i.length),o=0,s=i.length;o<s;o++)for(a=i[o].events,l=0,d=a.length;l<d;l++)n.events[a[l].uid].rowIndex=o},_groupCount:function(){var e=this.groupedResources,t=this._groupedView;return e.length?"vertical"===this._groupOrientation()?t._verticalCountForLevel(e.length-1):t._horizontalCountForLevel(e.length-1,this.columnLevels.length-1):1},_updateEventForSelection:function(e){var t=this._adjustEvent(e.clone());return t.occurrence},_eventOptionsForMove:function(e){return e.isAllDay?{isAllDay:!1}:{}},_updateEventForResize:function(e){e.isAllDay&&e.set("isAllDay",!1)},_updateMoveHint:function(e,t,n){var i,o,r,s=this.groups[t],a=e.clone({start:e.start,end:e.end}),l=a.duration();if(a.start=new Date(a.start.getTime()+n),a.end=new Date(+a.start+l),this._removeMoveHint(e.uid),this._isInDateSlot(a)&&(a.isAllDay||a.duration()>=m||this._isInTimeSlot(a)))for(i=this._adjustEvent(a),o=s.slotRanges(i.occurrence,!1),r=0;r<o.length;r++)this._groupedView._createMoveHint(o[r],i)},_appendMoveHint:function(e){e.appendTo(this.content),this._moveHint=this._moveHint.add(e)},_updateResizeHint:function(e,t,n,i){var o,r,s,a,d,u,h,f,_,p,v,g=this.groups[t],m=g.ranges(n,i,!1,!1);for(this._removeResizeHint(),o=0;o<m.length;o++){if(r=m[o],s=r.startSlot(),a=r.innerRect(n,i,!1),a.top=s.offsetTop,d=a.right-a.left,d<0)for(u=0;u<r.events().length;u++)if(r.events()[u].uid===e.uid){d=r.events()[u].rectRight-a.left;break}h=r.endSlot().offsetTop+s.offsetHeight-a.top,f=this._adjustLeftPosition(a.left),_=c.fn._createResizeHint.call(this,f,a.top,d,h),this._resizeHint=this._resizeHint.add(_)}p="t",v=this.content,this._resizeHint.appendTo(v),this._resizeHint.find(".k-label-top,.k-label-bottom").text(""),this._resizeHint.first().addClass("k-first").find(".k-label-top").text(l.toString(l.timezone.toLocalDate(n),p)),this._resizeHint.last().addClass("k-last").find(".k-label-bottom").text(l.toString(l.timezone.toLocalDate(i),p))},selectionByElement:function(e){var t=e.offset();return this._slotByPosition(t.left,t.top)},_updateDirection:function(e,t,n,i,o){var r=t[0].start,s=t[t.length-1].end;n&&!o&&r.index===s.index&&r.collectionIndex===s.collectionIndex&&(e.backward=i)},_changeGroup:function(e,t){var n=t?"prevGroupSlot":"nextGroupSlot",i=this[n](e.start,e.groupIndex,!1);return i&&(e.groupIndex+=t?-1:1),this._groupedView._changeGroup(e,t,i),i},prevGroupSlot:function(e,t,n){var i=this.groups[t],o=i.ranges(e,e,n,!1)[0].start;if(!(t<=0))return this._groupedView._prevGroupSlot(o,i,n)},nextGroupSlot:function(e,t,n){var i=this.groups[t],o=i.ranges(e,e,n,!1)[0].start;if(!(t>=this.groups.length-1))return this._groupedView._nextGroupSlot(o,i,n)},_verticalSlots:function(e,t,n,i){var o=this._groupedView,r=o._verticalMethod(i,n),s=t[0].start,a=t[t.length-1].end,l=this.groups[e.groupIndex],d=o._normalizeVerticalSelection(e,t,i,n);return d&&(s=a=d),s=l[r](s),a=l[r](a),n||!this._isVerticallyGrouped()||s&&a||(s=a=o._verticalSlots(e,i,d)),{startSlot:s,endSlot:a}},_horizontalSlots:function(e,t,n,i){var o=i?"upSlot":"downSlot",r=t[0].start,s=t[t.length-1].end,a=this.groups[e.groupIndex],l={};return n?(l.startSlot=a[o](r),l.endSlot=a[o](s),n||!this._isHorizontallyGrouped()||r&&s||(l.startSlot=l.endSlot=this._changeGroup(e,i))):l=this._groupedView._horizontalSlots(e,a,o,r,s,n,i),l},_changeViewPeriod:function(e,t){var n,i=t?this.previousDate():this.nextDate(),o=e.start,r=e.end,s=new Date(i),a=new Date(i); return!this._isInRange(s,a)&&(e.start=s,e.end=a,this._isHorizontallyGrouped()&&(e.groupIndex=t?this.groups.length-1:0),n=r-o,t?(r=g(this.endTime()),r=0===r?m:r,u(e.start,r-n),u(e.end,r)):(o=g(this.startTime()),u(e.start,o),u(e.end,o+n)),e.events=[],!0)},move:function(e,t,n){var i,o,r,s,a,d=!1,u=this.groups[e.groupIndex],c=l.keys,h=this._groupedView,f=u.ranges(e.start,e.end,!1,!1);if(t===c.DOWN||t===c.UP){if(d=!0,r=t===c.UP,h._updateDirection(e,f,n,r),s=this._verticalSlots(e,f,n,r),h._changeVerticalViewPeriod(s,n,e,r))return d}else if((t===c.LEFT||t===c.RIGHT)&&(d=!0,r=t===c.LEFT,this._updateDirection(e,f,n,r,!1),s=this._horizontalSlots(e,f,n,r),h._changeHorizontalViewPeriod(s,n,e,r)))return d;return d&&(i=s.startSlot,o=s.endSlot,n?(a=e.backward,a&&i?e.start=i.startDate():!a&&o&&(e.end=o.endDate())):i&&o&&(e.start=i.startDate(),e.end=o.endDate()),e.events=[]),d},destroy:function(){var e=this;e.element&&e.element.off(C),e.footer&&e.footer.remove(),e._currentTimeUpdateTimer&&clearInterval(e._currentTimeUpdateTimer),c.fn.destroy.call(this),this._isMobile()&&e.options.editable&&(e.options.editable.create!==!1&&e._addUserEvents.destroy(),e.options.editable.update!==!1&&e._editUserEvents.destroy())},_resourceBySlot:function(e){var t,n,i,o,r,s,a,l,d,u=this.groupedResources,h={},f=this.options.group;if(u.length&&"horizontal"===f.orientation&&f.date){for(t=e.groupIndex,n=this.columnLevels,i=n[n.length-1],o=u[u.length-1],r=i[t],this._setResourceValue(r,o,h),l=n.length-2;l>=3;l--)for(i=n[l],o=u[l-3],s=0,d=0;d<i.length;d++)r=i[d],a=r.columns.length,a>t-s?(this._setResourceValue(r,o,h),d=i.length):s+=a;return h}return c.fn._resourceBySlot.call(this,e)}}),_(!0,d,{TimelineView:a,TimelineWeekView:a.extend({options:{name:"TimelineWeekView",title:"Timeline Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",selectedMobileDateFormat:"{0:MMM dd} - {1:dd}",majorTick:120},name:"timelineWeek",calculateDateRange:function(){var e,t,n=this.options.date,i=l.date.dayOfWeek(n,this.calendarInfo().firstDay,-1),o=[];for(e=0,t=7;e<t;e++)o.push(i),i=l.date.nextDay(i);this._render(o)}}),TimelineWorkWeekView:a.extend({options:{name:"TimelineWorkWeekView",title:"Timeline Work Week",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",selectedMobileDateFormat:"{0:MMM dd} - {1:dd}",majorTick:120},name:"timelineWorkWeek",nextDate:function(){var e=l.date.dayOfWeek(l.date.nextDay(this.endDate()),this.calendarInfo().firstDay,1);return l.date.addDays(e,this._workDays[0])},previousDate:function(){var e=l.date.dayOfWeek(this.startDate(),this.calendarInfo().firstDay,-1),t=this._workDays;return l.date.addDays(e,t[t.length-1]-7)},calculateDateRange:function(){var e=this.options,t=e.date,n=l.date.dayOfWeek,i=n(t,this.calendarInfo().firstDay,-1),o=n(i,e.workWeekStart,1),r=n(o,e.workWeekEnd,1),s=[],a=e.workDays&&e.workDays.length?e.workDays.map(function(e){return n(i,e,1).getTime()}):null;for(a&&(o=i,r=n(o,this.calendarInfo().firstDay+6,1));o<=r;)a&&a.indexOf(o.getTime())>-1?s.push(o):a||s.push(o),o=l.date.nextDay(o);this._render(s)}}),TimelineMonthView:a.extend({options:{name:"TimelineMonthView",title:"Timeline Month",selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}",workDayStart:new Date(1980,1,1,0,0,0),workDayEnd:new Date(1980,1,1,23,59,59),footer:!1,majorTick:1440,minorTickCount:1},name:"timelineMonth",calculateDateRange:function(){var e,t,n=this.options.date,i=l.date.firstDayOfMonth(n),o=l.date.lastDayOfMonth(n),r=[];for(e=0,t=o.getDate();e<t;e++)r.push(i),i=l.date.nextDay(i);this._render(r)}})})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(t,define){define("kendo.dialog.min",["kendo.core.min","kendo.popup.min"],t)}(function(){return function(t,e){function n(t){return e!==t}function i(t,e,n){return Math.max(Math.min(parseInt(t,10),n===1/0?n:parseInt(n,10)),parseInt(e,10))}function o(t){return t.keyCode==g.ENTER||t.keyCode==g.SPACEBAR}var r,a,s,l,c,d,p,u,h=window.kendo,f=h.ui.Widget,m=h.ui.Popup.TabKeyTrap,v=t.proxy,_=h.template,g=h.keys,w=t.isFunction,k="kendoWindow",y=".k-dialog",b=".k-window",x=".k-dialog-close",C="k-window-content k-dialog-content",O=".k-window-content",T="k-scroll",H="k-dialog-titleless",S=".k-dialog-title",A=S+"bar",I=".k-dialog-buttongroup",D=".k-button",E="k-alert",F="k-confirm",R="k-prompt",z=".k-textbox",W=".k-overlay",M=":visible",N="zIndex",B="body",K="initOpen",L="touchstart",j="touchmove",P="open",Y="close",Q="show",V="hide",q={small:"k-window-sm",medium:"k-window-md",large:"k-window-lg"},G="hidden",J="overflow",U="original-overflow-rule",X="tap-y",Z={okText:"OK",cancel:"Cancel",promptInput:"Input"},$=Math.ceil,tt=":not(link,meta,script,style)",et=f.extend({init:function(t,e){var n=this;f.fn.init.call(n,t,e),n._init(n.element,n.options),h.notify(n)},_init:function(i,o){var a,s=this;s._centerCallback=v(s._center,s),s.appendTo=t(B),n(o.visible)&&null!==o.visible||(o.visible=i.is(M)),s.wrapperTemplate===e&&(s.wrapperTemplate=r.wrapper),s._createDialog(),a=s.wrapper=i.closest(y),o._defaultFocus===e&&(s._defaultFocus=i[0]),s._tabindex(i),s._dimensions(),this._tabKeyTrap=new m(a),s.options.visible?s._triggerOpen():s.wrapper.hide()},setOptions:function(n){var i,o=this,r=o.options.size;n=t.extend(o.options,n),f.fn.setOptions.call(o,n),n.title!==e&&o.title(n.title),n.content&&(h.destroy(o.element.children()),o.element.html(n.content)),n.actions&&(o.wrapper.children(I).remove(),o._createActionbar(o.wrapper)),o.wrapper.show(),o._closable(o.wrapper),o.wrapper.removeClass(q[r]),o._dimensions(),n.visible?o._triggerOpen():o.wrapper.hide(),e!==n.modal&&(i=o.options.visible!==!1,o._enableDocumentScrolling(),o._overlay(n.modal&&i))},_dimensions:function(){var t,e,n=this,o=n.wrapper,r=n.options,a=r.width,s=r.height,l=r.size,c=["minWidth","minHeight","maxWidth","maxHeight"];for(t=0;t<c.length;t++)e=r[c[t]],e&&e!=1/0&&o.css(c[t],e);this._setElementMaxHeight(),a&&((""+a).indexOf("%")>0?o.width(a):o.outerWidth(i(a,r.minWidth,r.maxWidth))),s&&((""+s).indexOf("%")>0?o.height(s):o.outerHeight(i(s,r.minHeight,r.maxHeight)),this._setElementHeight()),l&&q[l]&&o.addClass(q[l])},_setElementMaxHeight:function(){var t,e=this,n=e.element,i=e.options.maxHeight;i!=1/0&&(t=parseFloat(i,10)-e._uiHeight(),t>0&&n.css({maxHeight:$(t)+"px"}))},_setElementHeight:function(){var t=this,e=t.element,n=t.wrapper.outerHeight(!0),i=parseFloat(n,10)-t._uiHeight();i<0&&(i=0),e.css({height:$(i)+"px"}),this._applyScrollClassName(e)},_applyScrollClassName:function(t){var e=t.get(0).scrollHeight>t.outerHeight();e?t.addClass(T):t.removeClass(T)},_uiHeight:function(){var t=this,e=t.wrapper,n=e.children(I),i=n[0]&&n[0].offsetHeight||0,o=e.children(A),r=o[0]&&o[0].offsetHeight||0;return i+r},_overlay:function(e){var n=this.appendTo.children(W),i=this.wrapper;return n.length||(n=t(r.overlay)),n.insertBefore(i[0]).toggle(e).css(N,parseInt(i.css(N),10)-1),e?this._waiAriaOverlay():this._removeWaiAriaOverlay(),this.options.modal.preventScroll&&this._stopDocumentScrolling(),n},_waiAriaOverlay:function(){var e=this.wrapper;this._overlayedNodes=e.prevAll(tt).add(e.nextAll(tt)).each(function(){var e=t(this);e.data("ariaHidden",e.attr("aria-hidden")),e.attr("aria-hidden","true")})},_removeWaiAriaOverlay:function(){return this._overlayedNodes&&this._overlayedNodes.each(function(){var e=t(this),n=e.data("ariaHidden");n?e.attr("aria-hidden",n):e.removeAttr("aria-hidden")})},_closeClick:function(t){t.preventDefault(),this.close(!1)},_closeKeyHandler:function(t){(o(t)||t.keyCode==g.ESC)&&this.close(!1)},_keydown:function(t){var e=this,n=e.options,i=t.keyCode;i==g.ESC&&!e._closing&&n.closable&&e.close(!1)},_createDialog:function(){var e=this,n=e.element,i=e.options,o=h.support.isRtl(n),a=t(r.titlebar(i)),s=(n.id||h.guid())+"_title",l=t(e.wrapperTemplate(i));l.toggleClass("k-rtl",o),n.addClass(C),e.appendTo.append(l),i.title!==!1?(l.append(a),a.attr("id",s),l.attr("aria-labelledby",s)):l.addClass(H),e._closable(l),l.append(n),i.content&&(h.destroy(n.children()),n.html(i.content)),i.actions.length&&e._createActionbar(l)},_closable:function(t){var e=this,n=e.options,i=t.children(A),o=i.find(".k-window-actions"),a=o.length?o.find(".k-dialog-close"):t.find(".k-dialog-close");a.remove(),n.closable!==!1&&(n.title!==!1&&o.length?o.append(r.close(n)):t.prepend(r.close(n)),t.autoApplyNS(k),e.element.autoApplyNS(k),t.find(x).on("click",v(e._closeClick,e)).on("keydown",v(e._closeKeyHandler,e)),e.element.on("keydown",v(e._keydown,e)))},_createActionbar:function(e){var n="stretched"===this.options.buttonLayout,i=n?"stretched":"normal",o=t(r.actionbar({buttonLayout:i}));this._addButtons(o),e.append(o)},_addButtons:function(e){var n,i,o,a=this,s=v(a._actionClick,a),l=v(a._actionKeyHandler,a),c=a.options.actions,d=c.length;for(o=0;o<d;o++)n=c[o],i=a._mergeTextWithOptions(n),t(r.action(n)).autoApplyNS(k).html(i).appendTo(e).addClass(n.cssClass).data("action",n.action).on("click",s).on("keydown",l)},_mergeTextWithOptions:function(t){var e=t.text;return e?_(e)(this.options):""},_tabindex:function(t){var e,n=this,i=n.wrapper,o=i.find(x),r=i.find(I+" "+D);f.fn._tabindex.call(this,t),e=t.attr("tabindex"),o.attr("tabIndex",e),r.attr("tabIndex",e)},_actionClick:function(t){this.wrapper.is(M)&&this._runActionBtn(t.currentTarget)},_actionKeyHandler:function(t){o(t)?(t.preventDefault(),this._runActionBtn(t.currentTarget)):t.keyCode==g.ESC&&this.close(!1)},_runActionBtn:function(e){var n,i,o=this;o._closing||(n=t(e).data("action"),i=w(n)&&n({sender:o})===!1,i||o.close(!1))},_triggerOpen:function(){var t=this,e=t.options,n=t.wrapper;t.toFront(),t._triggerInitOpen(),t.trigger(P),e.modal&&(t._overlay(n.is(M)).css({opacity:.5}),t._focusDialog())},open:function(){var t,e,n,i=this,o=i.wrapper,r=this._animationOptions(P),a=i.options;return this._triggerInitOpen(),i.trigger(P)||(i._closing&&o.kendoStop(!0,!0),i._closing=!1,i.toFront(),a.visible=!0,a.modal&&(e=!!i._modals().length,t=i._overlay(e),t.kendoStop(!0,!0),r.duration&&h.effects.Fade&&!e?(n=h.fx(t).fadeIn(),n.duration(r.duration||0),n.endValue(.5),n.play()):t.css("opacity",.5),t.show()),o.show().kendoStop().kendoAnimate({effects:r.effects,duration:r.duration,complete:v(i._openAnimationEnd,i)}),o.show()),i},_animationOptions:function(t){var e=this.options.animation,n={open:{effects:{}},close:{hide:!0,effects:{}}};return e&&e[t]||n[t]},_openAnimationEnd:function(){this.options.modal&&this._focusDialog(),this.trigger(Q)},_triggerInitOpen:function(){n(this._initOpenTriggered)||(this._initOpenTriggered=!0,this.trigger(K))},toFront:function(){var e=this,n=e.wrapper,i=+n.css(N),o=i;return e.center(),t(b).each(function(e,n){var o=t(n),r=o.css(N);isNaN(r)||(i=Math.max(+r,i))}),(!n[0].style.zIndex||o<i)&&n.css(N,i+2),e.element.find("> .k-overlay").remove(),n=null,e},close:function(t){return arguments.length||(t=!0),this._close(t),this._stopCenterOnResize(),this},_close:function(t){var e=this,n=e.wrapper,i=e.options,o=this._animationOptions("open"),r=this._animationOptions("close");if(n.is(M)&&!e.trigger(Y,{userTriggered:!t})){if(e._closing)return;e._closing=!0,i.visible=!1,this._removeOverlay(),n.kendoStop().kendoAnimate({effects:r.effects||o.effects,reverse:r.reverse===!0,duration:r.duration,complete:v(this._closeAnimationEnd,this)})}return e},center:function(){this._center(),this._centerOnResize()},_center:function(){var e=this,n=e.wrapper,i=t(window),o=0,r=0,a=r+Math.max(0,(i.width()-n.width())/2),s=o+Math.max(0,(i.height()-n.height()-parseInt(n.css("paddingTop"),10))/2);return n.css({left:a,top:s}),e},_centerOnResize:function(){this._trackResize||(h.onResize(this._centerCallback),this._trackResize=!0)},_stopCenterOnResize:function(){h.unbindResize(this._centerCallback),this._trackResize=!1},_removeOverlay:function(){var t=this._modals(),e=this.options,n=e.modal&&!t.length;n?(this._overlay(!1).remove(),e.modal.preventScroll&&this._enableDocumentScrolling()):t.length&&(this._object(t.last())._overlay(!0),e.modal.preventScroll&&this._stopDocumentScrolling())},_stopDocumentScrolling:function(){var e,n,i=this,o=t("body");i._storeOverflowRule(o),o.css(J,G),e=t("html"),n=e[0],i._storeOverflowRule(e),e.css(J,G),h.support.mobileOS.ios&&(n.addEventListener(L,i._touchStart,{passive:!1}),n.addEventListener(j,i._touchMove,{passive:!1}))},_touchStart:function(e){t(this).data(X,e.changedTouches[0].pageY)},_touchMove:function(e){var n=e.target,i=t(e.target),o=e.changedTouches[0].pageY-t(this).data(X)>0,r=i.is(O)&&o&&0===i.scrollTop()||!o&&i.scrollTop()===n.scrollHeight-n.clientHeight;i.is(O)&&!r||e.preventDefault()},_enableDocumentScrolling:function(){var e=this,n=t(document.body),i=t("html"),o=i[0];e._restoreOverflowRule(n),e._restoreOverflowRule(i),h.support.mobileOS.ios&&(i.removeData(X),o.removeEventListener(L,e._touchStart,{passive:!1}),o.removeEventListener(j,e._touchMove,{passive:!1}))},_storeOverflowRule:function(t){if(!this._isOverflowStored(t)){var e=t.get(0).style.overflow;"string"==typeof e&&t.data(U,e)}},_isOverflowStored:function(t){return"string"==typeof t.data(U)},_restoreOverflowRule:function(t){var n=t.data(U);null!==n&&n!==e?(t.css(J,n),t.removeData(U)):t.css(J,"")},_closeAnimationEnd:function(){var t,e=this;e._closing=!1,e.wrapper.hide().css("opacity",""),e.trigger(V),e.options.modal&&(t=e._object(e._modals().last()),t&&t.toFront())},_modals:function(){var e=this,n=t(b).filter(function(){var n=e._object(t(this));return n&&n.options&&n.options.modal&&n.options.visible&&n.options.appendTo===e.options.appendTo&&!n.containment&&t(n.element).is(M)}).sort(function(e,n){return+t(e).css("zIndex")-+t(n).css("zIndex")});return e=null,n},_object:function(t){var n=t.children(O),i=h.widgetInstance(n);return i?i:e},destroy:function(){var e=this;e._destroy(),f.fn.destroy.call(e),h.destroy(e.wrapper),e.wrapper.remove(),e.wrapper=e.element=t()},_destroy:function(){var t=this,e="."+k;t.wrapper.off(e),t.element.off(e),t.wrapper.find(x+","+I+" > "+D).off(e),t._stopCenterOnResize()},title:function(e){var n=this,i=n.wrapper,o=n.options,a=i.children(A),s=a.children(S),l=h.htmlEncode(e);return arguments.length?(e===!1?(a.remove(),i.addClass(H)):(a.length||(a=t(r.titlebar(o)).prependTo(i),s=a.children(S),i.removeClass(H)),s.html(l)),n.options.title=l,n):s.html()},content:function(t,e){var i=this,o=i.wrapper.children(O);return n(t)?(this.angular("cleanup",function(){return{elements:o.children()}}),h.destroy(o.children()),o.html(t),this.angular("compile",function(){var t,n=[];for(t=o.length;--t>=0;)n.push({dataItem:e});return{elements:o.children(),data:n}}),i.options.content=t,i):o.html()},_focusDialog:function(){this._defaultFocus&&this._focus(this._defaultFocus),this._tabKeyTrap.trap()},_focus:function(t){t&&t.focus()},events:[K,P,Y,Q,V],options:{title:"",buttonLayout:"stretched",actions:[],modal:!0,size:"auto",width:null,height:null,minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,content:null,visible:null,appendTo:B,closable:!0}}),nt=et.extend({options:{name:"Dialog",messages:{close:"Close"}}});h.ui.plugin(nt),a=et.extend({_init:function(t,e){var n=this;n.wrapperTemplate=r.alertWrapper,e._defaultFocus=null,n._ensureContentId(t),et.fn._init.call(n,t,e),n.bind(V,v(n.destroy,n)),n._ariaDescribedBy(),n._initFocus()},_ensureContentId:function(e){var n=t(e);n.attr("id")||n.attr("id",h.guid()+"_k-popup")},_ariaDescribedBy:function(){this.wrapper.attr("aria-describedby",this.element.attr("id"))},_initFocus:function(){var t=this.options;this._defaultFocus=this._chooseEntryFocus(),this._defaultFocus&&t.visible&&t.modal&&this._focusDialog()},_chooseEntryFocus:function(){return this.wrapper.find(I+" > "+D)[0]},options:{title:window.location.host,closable:!1,messages:Z}}),s=a.extend({_init:function(t,e){var n=this;a.fn._init.call(n,t,e),n.wrapper.addClass(E)},options:{name:"Alert",modal:!0,actions:[{text:"#: messages.okText #"}]}}),h.ui.plugin(s),l=function(e){return t(r.alert).kendoAlert({content:e}).data("kendoAlert").open()},c=a.extend({_init:function(e,n){var i=this;a.fn._init.call(i,e,n),i.wrapper.addClass(F),i.result=t.Deferred()},options:{name:"Confirm",modal:!0,actions:[{text:"#: messages.okText #",primary:!0,action:function(t){t.sender.result.resolve()}},{text:"#: messages.cancel #",action:function(t){t.sender.result.reject()}}]}}),h.ui.plugin(c),d=function(e){var n=t(r.confirm).kendoConfirm({content:e}).data("kendoConfirm").open();return n.result},p=a.extend({_init:function(e,n){var i=this;a.fn._init.call(i,e,n),i.wrapper.addClass(R),i._createPrompt(),i.result=t.Deferred()},_createPrompt:function(){var e=this.options.value,n=t(r.promptInputContainer(this.options)).insertAfter(this.element);e&&n.children(z).val(e),this._defaultFocus=this._chooseEntryFocus(),this._focusDialog()},_chooseEntryFocus:function(){return this.wrapper.find(z)[0]},options:{name:"Prompt",modal:!0,value:"",actions:[{text:"#: messages.okText #",primary:!0,action:function(t){var e=t.sender,n=e.wrapper.find(z).val();e.result.resolve(n)}},{text:"#: messages.cancel #",action:function(t){var e=t.sender,n=e.wrapper.find(z).val();t.sender.result.reject(n)}}]}}),h.ui.plugin(p),u=function(e,n){var i=t(r.prompt).kendoPrompt({content:e,value:n}).data("kendoPrompt").open();return i.result},r={wrapper:_("<div class='k-widget k-window k-dialog' role='dialog'></div>"),action:_("<button type='button' class='k-button# if (data.primary) { # k-primary# } role='button' #'></button>"),titlebar:_("<div class='k-window-titlebar k-dialog-titlebar'><span class='k-window-title k-dialog-title'>#: title #</span><div class='k-window-actions k-dialog-actions'></div></div>"),close:_("<a role='button' href='\\#' class='k-button k-flat k-button-icon k-window-action k-dialog-action k-dialog-close' title='#: messages.close #' aria-label='#: messages.close #' tabindex='-1'><span class='k-icon k-i-close'></span></a>"),actionbar:_("<div class='k-dialog-buttongroup k-dialog-button-layout-#: buttonLayout #' role='toolbar'></div>"),overlay:"<div class='k-overlay'></div>",alertWrapper:_("<div class='k-widget k-window k-dialog' role='alertdialog'></div>"),alert:"<div></div>",confirm:"<div></div>",prompt:"<div></div>",promptInputContainer:_("<div class='k-prompt-container'><input type='text' class='k-textbox' title='#: messages.promptInput #' aria-label='#: messages.promptInput #' /></div>")},h.alert=l,h.confirm=d,h.prompt=u}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});;!function(e,define){define("kendo.binder.min",["kendo.core.min","kendo.data.min"],e)}(function(){return function(e,t){function i(t,i,n){return p.extend({init:function(e,t,i){var n=this;p.fn.init.call(n,e.element[0],t,i),n.widget=e,n._dataBinding=M(n.dataBinding,n),n._dataBound=M(n.dataBound,n),n._itemChange=M(n.itemChange,n)},itemChange:function(e){r(e.item[0],e.data,this._ns(e.ns),[e.data].concat(this.bindings[t]._parents()))},dataBinding:function(e){var t,i,n=this.widget,s=e.removedItems||n.items();for(t=0,i=s.length;t<i;t++)h(s[t],!1)},_ns:function(t){t=t||C.ui;var i=[C.ui,C.dataviz.ui,C.mobile.ui];return i.splice(e.inArray(t,i),1),i.unshift(t),C.rolesFromNamespaces(i)},dataBound:function(e){var n,s,a,d,o=this.widget,h=e.addedItems||o.items(),l=o[i],c=C.data.HierarchicalDataSource;if(!(c&&l instanceof c)&&h.length)for(a=e.addedDataItems||l.flatView(),d=this.bindings[t]._parents(),n=0,s=a.length;n<s;n++)h[n]&&r(h[n],a[n],this._ns(e.ns),[a[n]].concat(d))},refresh:function(e){var s,a,r,d,o=this,h=o.widget;e=e||{},e.action||(o.destroy(),h.bind("dataBinding",o._dataBinding),h.bind("dataBound",o._dataBound),h.bind("itemChange",o._itemChange),s=o.bindings[t].get(),h[i]instanceof C.data.DataSource&&h[i]!=s&&(s instanceof C.data.DataSource?h[n](s):s&&s._dataSource?h[n](s._dataSource):(a=C.ui.Select&&h instanceof C.ui.Select,r=C.ui.MultiSelect&&h instanceof C.ui.MultiSelect,d=C.ui.DropDownTree&&h instanceof C.ui.DropDownTree,d?h.treeview[i].data(s):h[i].data(s),o.bindings.value&&(a||r)&&h.value(u(o.bindings.value.get(),h.options.dataValueField)))))},destroy:function(){var e=this.widget;e.unbind("dataBinding",this._dataBinding),e.unbind("dataBound",this._dataBound),e.unbind("itemChange",this._itemChange)}})}function n(e,t){var i=C.initWidget(e,{},t);if(i)return new _(i)}function s(e){var t,i,n,a,r,d,o,h={};for(o=e.match(x),t=0,i=o.length;t<i;t++)n=o[t],a=n.indexOf(":"),r=n.substring(0,a),d=n.substring(a+1),"{"==d.charAt(0)&&(d=s(d)),h[r]=d;return h}function a(e,t,i){var n,s={};for(n in e)s[n]=new i(t,e[n]);return s}function r(e,t,i,d){var h,l,c,g,u,p,m,y,_;if(e&&!e.getAttribute("data-"+C.ns+"stop")&&(h=e.getAttribute("data-"+C.ns+"role"),c=e.getAttribute("data-"+C.ns+"bind"),g=[],u=!0,m={},d=d||[t],(h||c)&&o(e,!1),h&&(y=n(e,i)),c&&(c=s(c.replace(B,"")),y||(m=C.parseOptions(e,{textField:"",valueField:"",template:"",valueUpdate:j,valuePrimitive:!1,autoBind:!0},t),m.roles=i,y=new w(e,m)),y.source=t,p=a(c,d,f),m.template&&(p.template=new v(d,"",m.template)),p.click&&(c.events=c.events||{},c.events.click=c.click,p.click.destroy(),delete p.click),p.source&&(u=!1),c.attr&&(p.attr=a(c.attr,d,f)),c.style&&(p.style=a(c.style,d,f)),c.events&&(p.events=a(c.events,d,b)),c.css&&(p.css=a(c.css,d,f)),y.bind(p)),y&&(e.kendoBindingTarget=y),_=e.children,u&&_&&!e.getAttribute("data-"+C.ns+"stop"))){for(l=0;l<_.length;l++)g[l]=_[l];for(l=0;l<g.length;l++)r(g[l],t,i,d)}}function d(t,i){var n,s,a,d=C.rolesFromNamespaces([].slice.call(arguments,2));for(i=C.observable(i),t=e(t),n=0,s=t.length;n<s;n++)a=t[n],1===a.nodeType&&r(a,i,d)}function o(t,i){var n,s=t.kendoBindingTarget;s&&(s.destroy(),L?delete t.kendoBindingTarget:t.removeAttribute?t.removeAttribute("kendoBindingTarget"):t.kendoBindingTarget=null),i&&(n=C.widgetInstance(e(t)),n&&typeof n.destroy===P&&n.destroy())}function h(e,t){o(e,t),l(e,t)}function l(e,t){var i,n,s=e.children;if(s)for(i=0,n=s.length;i<n;i++)h(s[i],t)}function c(t){var i,n;for(t=e(t),i=0,n=t.length;i<n;i++)h(t[i],!1)}function g(e,t){var i=e.element,n=i[0].kendoBindingTarget;n&&d(i,n.source,t)}function u(e,t){var i,n,s=[],a=0;if(!t)return e;if(e instanceof D){for(i=e.length;a<i;a++)n=e[a],s[a]=n.get?n.get(t):n[t];e=s}else e instanceof S&&(e=e.get(t));return e}var f,b,v,p,m,y,w,_,x,B,C=window.kendo,k=C.Observable,S=C.data.ObservableObject,D=C.data.ObservableArray,F={}.toString,T={},A=C.Class,M=e.proxy,I="value",V="source",O="events",H="checked",N="css",L=!0,P="function",j="change";!function(){var e=document.createElement("a");try{delete e.test}catch(t){L=!1}}(),f=k.extend({init:function(e,t){var i=this;k.fn.init.call(i),i.source=e[0],i.parents=e,i.path=t,i.dependencies={},i.dependencies[t]=!0,i.observable=i.source instanceof k,i._access=function(e){i.dependencies[e.field]=!0},i.observable&&(i._change=function(e){i.change(e)},i.source.bind(j,i._change))},_parents:function(){var t,i=this.parents,n=this.get();return n&&"function"==typeof n.parent&&(t=n.parent(),e.inArray(t,i)<0&&(i=[t].concat(i))),i},change:function(e){var t,i,n=e.field,s=this;if("this"===s.path)s.trigger(j,e);else for(t in s.dependencies)if(0===t.indexOf(n)&&(i=t.charAt(n.length),!i||"."===i||"["===i)){s.trigger(j,e);break}},start:function(e){e.bind("get",this._access)},stop:function(e){e.unbind("get",this._access)},get:function(){var e=this,i=e.source,n=0,s=e.path,a=i;if(!e.observable)return a;for(e.start(e.source),a=i.get(s);a===t&&i;)i=e.parents[++n],i instanceof S&&(a=i.get(s));if(a===t)for(i=e.source;a===t&&i;)i=i.parent(),i instanceof S&&(a=i.get(s));return"function"==typeof a&&(n=s.lastIndexOf("."),n>0&&(i=i.get(s.substring(0,n))),e.start(i),a=i!==e.source?a.call(i,e.source):a.call(i),e.stop(i)),i&&i!==e.source&&(e.currentSource=i,i.unbind(j,e._change).bind(j,e._change)),e.stop(e.source),a},set:function(e){var t=this.currentSource||this.source,i=C.getter(this.path)(t);"function"==typeof i?t!==this.source?i.call(t,this.source,e):i.call(t,e):t.set(this.path,e)},destroy:function(){this.observable&&(this.source.unbind(j,this._change),this.currentSource&&this.currentSource.unbind(j,this._change)),this.unbind()}}),b=f.extend({get:function(){var e,t=this.source,i=this.path,n=0;for(e=t.get(i);!e&&t;)t=this.parents[++n],t instanceof S&&(e=t.get(i));return M(e,t)}}),v=f.extend({init:function(e,t,i){var n=this;f.fn.init.call(n,e,t),n.template=i},render:function(e){var t;return this.start(this.source),t=C.render(this.template,e),this.stop(this.source),t}}),p=A.extend({init:function(e,t,i){this.element=e,this.bindings=t,this.options=i},bind:function(e,t){var i=this;e=t?e[t]:e,e.bind(j,function(e){i.refresh(t||e)}),i.refresh(t)},destroy:function(){}}),m=p.extend({dataType:function(){var e=this.element.getAttribute("data-"+C.ns+"type")||this.element.type||"text";return e.toLowerCase()},parsedValue:function(){return this._parseValue(this.element.value,this.dataType())},_parseValue:function(e,t){return"date"==t?e=C.parseDate(e,"yyyy-MM-dd"):"datetime-local"==t?e=C.parseDate(e,["yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm"]):"number"==t?e=C.parseFloat(e):"boolean"==t&&(e=e.toLowerCase(),e=null!==C.parseFloat(e)?!!C.parseFloat(e):"true"===e.toLowerCase()),e}}),T.attr=p.extend({refresh:function(e){this.element.setAttribute(e,this.bindings.attr[e].get())}}),T.css=p.extend({init:function(e,t,i){p.fn.init.call(this,e,t,i),this.classes={}},refresh:function(t){var i=e(this.element),n=this.bindings.css[t],s=this.classes[t]=n.get();s?i.addClass(t):i.removeClass(t)}}),T.style=p.extend({refresh:function(e){this.element.style[e]=this.bindings.style[e].get()||""}}),T.enabled=p.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),T.readonly=p.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute("readonly","readonly"):this.element.removeAttribute("readonly")}}),T.disabled=p.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),T.events=p.extend({init:function(e,t,i){p.fn.init.call(this,e,t,i),this.handlers={}},refresh:function(t){var i=e(this.element),n=this.bindings.events[t],s=this.handlers[t];s&&i.off(t,s),s=this.handlers[t]=n.get(),i.on(t,n.source,s)},destroy:function(){var t,i=e(this.element);for(t in this.handlers)i.off(t,this.handlers[t])}}),T.text=p.extend({refresh:function(){var t=this.bindings.text.get(),i=this.element.getAttribute("data-"+C.ns+"format")||"";null==t&&(t=""),e(this.element).text(C.toString(t,i))}}),T.visible=p.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?"":"none"}}),T.invisible=p.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?"none":""}}),T.html=p.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),T.value=m.extend({init:function(t,i,n){m.fn.init.call(this,t,i,n),this._change=M(this.change,this),this.eventName=n.valueUpdate||j,e(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=j,this.bindings[I].set(this.parsedValue()),this._initChange=!1},refresh:function(){var e,t;this._initChange||(e=this.bindings[I].get(),null==e&&(e=""),t=this.dataType(),"date"==t?e=C.toString(e,"yyyy-MM-dd"):"datetime-local"==t&&(e=C.toString(e,"yyyy-MM-ddTHH:mm:ss")),this.element.value=e),this._initChange=!1},destroy:function(){e(this.element).off(this.eventName,this._change)}}),T.source=p.extend({init:function(e,t,i){p.fn.init.call(this,e,t,i);var n=this.bindings.source.get();n instanceof C.data.DataSource&&i.autoBind!==!1&&n.fetch()},refresh:function(e){var t=this,i=t.bindings.source.get();i instanceof D||i instanceof C.data.DataSource?(e=e||{},"add"==e.action?t.add(e.index,e.items):"remove"==e.action?t.remove(e.index,e.items):"itemchange"!=e.action&&t.render()):t.render()},container:function(){var e=this.element;return"table"==e.nodeName.toLowerCase()&&(e.tBodies[0]||e.appendChild(document.createElement("tbody")),e=e.tBodies[0]),e},template:function(){var e=this.options,t=e.template,i=this.container().nodeName.toLowerCase();return t||(t="select"==i?e.valueField||e.textField?C.format('<option value="#:{0}#">#:{1}#</option>',e.valueField||e.textField,e.textField||e.valueField):"<option>#:data#</option>":"tbody"==i?"<tr><td>#:data#</td></tr>":"ul"==i||"ol"==i?"<li>#:data#</li>":"#:data#",t=C.template(t)),t},add:function(t,i){var n,s,a,d,o=this.container(),h=o.cloneNode(!1),l=o.children[t];if(e(h).html(C.render(this.template(),i)),h.children.length)for(n=this.bindings.source._parents(),s=0,a=i.length;s<a;s++)d=h.children[0],o.insertBefore(d,l||null),r(d,i[s],this.options.roles,[i[s]].concat(n))},remove:function(e,t){var i,n,s=this.container();for(i=0;i<t.length;i++)n=s.children[e],h(n,!0),n.parentNode==s&&s.removeChild(n)},render:function(){var t,i,n,s=this.bindings.source.get(),a=this.container(),d=this.template();if(null!=s)if(s instanceof C.data.DataSource&&(s=s.view()),s instanceof D||"[object Array]"===F.call(s)||(s=[s]),this.bindings.template){if(l(a,!0),e(a).html(this.bindings.template.render(s)),a.children.length)for(t=this.bindings.source._parents(),i=0,n=s.length;i<n;i++)r(a.children[i],s[i],this.options.roles,[s[i]].concat(t))}else e(a).html(C.render(d,s))}}),T.input={checked:m.extend({init:function(t,i,n){m.fn.init.call(this,t,i,n),this._change=M(this.change,this),e(this.element).change(this._change)},change:function(){var e,t,i,n=this.element,s=this.value();if("radio"==n.type)s=this.parsedValue(),this.bindings[H].set(s);else if("checkbox"==n.type)if(e=this.bindings[H].get(),e instanceof D){if(s=this.parsedValue(),s instanceof Date){for(i=0;i<e.length;i++)if(e[i]instanceof Date&&+e[i]===+s){t=i;break}}else t=e.indexOf(s);t>-1?e.splice(t,1):e.push(s)}else this.bindings[H].set(s)},refresh:function(){var e,i,n=this.bindings[H].get(),s=n,a=this.dataType(),r=this.element;if("checkbox"==r.type)if(s instanceof D){if(e=-1,n=this.parsedValue(),n instanceof Date){for(i=0;i<s.length;i++)if(s[i]instanceof Date&&+s[i]===+n){e=i;break}}else e=s.indexOf(n);r.checked=e>=0}else r.checked=s;else"radio"==r.type&&("date"==a?n=C.toString(n,"yyyy-MM-dd"):"datetime-local"==a&&(n=C.toString(n,"yyyy-MM-ddTHH:mm:ss")),r.checked=null!==n&&t!==n&&r.value===""+n)},value:function(){var e=this.element,t=e.value;return"checkbox"==e.type&&(t=e.checked),t},destroy:function(){e(this.element).off(j,this._change)}})},T.select={source:T.source.extend({refresh:function(i){var n,s=this,a=s.bindings.source.get();a instanceof D||a instanceof C.data.DataSource?(i=i||{},"add"==i.action?s.add(i.index,i.items):"remove"==i.action?s.remove(i.index,i.items):"itemchange"!=i.action&&i.action!==t||(s.render(),s.bindings.value&&s.bindings.value&&(n=u(s.bindings.value.get(),e(s.element).data("valueField")),null===n?s.element.selectedIndex=-1:s.element.value=n))):s.render()}}),value:m.extend({init:function(t,i,n){m.fn.init.call(this,t,i,n),this._change=M(this.change,this),e(this.element).change(this._change)},parsedValue:function(){var e,t,i,n,s=this.dataType(),a=[];for(i=0,n=this.element.options.length;i<n;i++)t=this.element.options[i],t.selected&&(e=t.attributes.value,e=e&&e.specified?t.value:t.text,a.push(this._parseValue(e,s)));return a},change:function(){var e,i,n,s,a,r,d,o,h=[],l=this.element,c=this.options.valueField||this.options.textField,g=this.options.valuePrimitive;for(a=0,r=l.options.length;a<r;a++)i=l.options[a],i.selected&&(s=i.attributes.value,s=s&&s.specified?i.value:i.text,h.push(c?s:this._parseValue(s,this.dataType())));if(c)for(e=this.bindings.source.get(),e instanceof C.data.DataSource&&(e=e.view()),n=0;n<h.length;n++)for(a=0,r=e.length;a<r;a++)if(d=e[a].get(c),o=d+""===h[n]){h[n]=e[a];break}s=this.bindings[I].get(),s instanceof D?s.splice.apply(s,[0,s.length].concat(h)):this.bindings[I].set(g||!(s instanceof S||null===s||s===t)&&c?h[0].get(c):h[0])},refresh:function(){var e,t,i,n=this.element,s=n.options,a=this.bindings[I].get(),r=a,d=this.options.valueField||this.options.textField,o=!1,h=this.dataType();for(r instanceof D||(r=new D([a])),n.selectedIndex=-1,i=0;i<r.length;i++)for(a=r[i],d&&a instanceof S&&(a=a.get(d)),"date"==h?a=C.toString(r[i],"yyyy-MM-dd"):"datetime-local"==h&&(a=C.toString(r[i],"yyyy-MM-ddTHH:mm:ss")),e=0;e<s.length;e++)t=s[e].value,""===t&&""!==a&&(t=s[e].text),null!=a&&t==""+a&&(s[e].selected=!0,o=!0)},destroy:function(){e(this.element).off(j,this._change)}})},T.widget={events:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e,this.handlers={}},refresh:function(e){var t=this.bindings.events[e],i=this.handlers[e];i&&this.widget.unbind(e,i),i=t.get(),this.handlers[e]=function(e){e.data=t.source,i(e),e.data===t.source&&delete e.data},this.widget.bind(e,this.handlers[e])},destroy:function(){var e;for(e in this.handlers)this.widget.unbind(e,this.handlers[e])}}),checked:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e,this._change=M(this.change,this),this.widget.bind(j,this._change)},change:function(){this.bindings[H].set(this.value())},refresh:function(){this.widget.check(this.bindings[H].get()===!0)},value:function(){var e=this.element,t=e.value;return"on"!=t&&"off"!=t&&"checkbox"!=this.element.type||(t=e.checked),t},destroy:function(){this.widget.unbind(j,this._change)}}),start:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this._change=M(this.change,this),this.widget=e,this.widget.bind(j,this._change)},change:function(){this.bindings.start.set(this.widget.range().start)},refresh:function(){var e=this,t=this.bindings.start.get(),i=e.widget._range?e.widget._range.end:null;this.widget.range({start:t,end:i})},destroy:function(){this.widget.unbind(j,this._change)}}),end:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this._change=M(this.change,this),this.widget=e,this.widget.bind(j,this._change)},change:function(){this.bindings.end.set(this.widget.range().end)},refresh:function(){var e=this,t=this.bindings.end.get(),i=e.widget._range?e.widget._range.start:null;this.widget.range({start:i,end:t})},destroy:function(){this.widget.unbind(j,this._change)}}),visible:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){var e=this.bindings.visible.get();this.widget.wrapper[0].style.display=e?"":"none"}}),invisible:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){var e=this.bindings.invisible.get();this.widget.wrapper[0].style.display=e?"none":""}}),enabled:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:i("source","dataSource","setDataSource"),value:p.extend({init:function(t,i,n){p.fn.init.call(this,t.element[0],i,n),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(j,this._change);var s=this.bindings.value.get();this._valueIsObservableObject=!n.valuePrimitive&&(null==s||s instanceof S),this._valueIsObservableArray=s instanceof D,this._initChange=!1},_source:function(){var e;return this.widget.dataItem&&(e=this.widget.dataItem(),e&&e instanceof S)?[e]:(this.bindings.source&&(e=this.bindings.source.get()),(!e||e instanceof C.data.DataSource)&&(e=this.widget.dataSource.flatView()),e)},change:function(){var e,t,i,n,s,a,r,d=this.widget.value(),o=this.options.dataValueField||this.options.dataTextField,h="[object Array]"===F.call(d),l=this._valueIsObservableObject,c=[];if(this._initChange=!0,o)if(""===d&&(l||this.options.valuePrimitive))d=null;else{for(r=this._source(),h&&(t=d.length,c=d.slice(0)),s=0,a=r.length;s<a;s++)if(i=r[s],n=i.get(o),h){for(e=0;e<t;e++)if(n==c[e]){c[e]=i;break}}else if(n==d){d=l?i:n;break}c[0]&&(d=this._valueIsObservableArray?c:l||!o?c[0]:c[0].get(o))}this.bindings.value.set(d),this._initChange=!1},refresh:function(){var e,i,n,s,a,r,d,o,h;if(!this._initChange){if(e=this.widget,i=e.options,n=i.dataTextField,s=i.dataValueField||n,a=this.bindings.value.get(),r=i.text||"",d=0,h=[],a===t&&(a=null),s)if(a instanceof D){for(o=a.length;d<o;d++)h[d]=a[d].get(s);a=h}else a instanceof S&&(r=a.get(n),a=a.get(s));i.autoBind!==!1||i.cascadeFrom||!e.listView||e.listView.bound()?e.value(a):(n!==s||r||(r=a),r||!a&&0!==a||!i.valuePrimitive?e._preselect(a,r):e.value(a))}this._initChange=!1},destroy:function(){this.widget.unbind(j,this._change)}}),dropdowntree:{value:p.extend({init:function(t,i,n){p.fn.init.call(this,t.element[0],i,n),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(j,this._change),this._initChange=!1},change:function(){var e,i,n,s,a,r,d,o,h,l=this,c=l.bindings[I].get(),g=l.options.valuePrimitive,u=l.widget.treeview.select(),f=l.widget._isMultipleSelection()?l.widget._getAllChecked():l.widget.treeview.dataItem(u)||l.widget.value(),b=g||l.widget.options.autoBind===!1?l.widget.value():f,v=this.options.dataValueField||this.options.dataTextField;if(b=b.slice?b.slice(0):b,l._initChange=!0,c instanceof D){for(e=[],i=b.length,n=0,s=0,a=c[n],r=!1;a!==t;){for(h=!1,s=0;s<i;s++)if(g?r=b[s]==a:(o=b[s],o=o.get?o.get(v):o,r=o==(a.get?a.get(v):a)),r){b.splice(s,1),i-=1,h=!0;break}h?n+=1:(e.push(a),y(c,n,1),d=n),a=c[n]}y(c,c.length,0,b),e.length&&c.trigger("change",{action:"remove",items:e,index:d}),b.length&&c.trigger("change",{action:"add",items:b,index:c.length-1})}else l.bindings[I].set(b);l._initChange=!1},refresh:function(){if(!this._initChange){var e,t,i=this.options,n=this.widget,s=i.dataValueField||i.dataTextField,a=this.bindings.value.get(),r=a,d=0,o=[];if(s)if(a instanceof D){for(e=a.length;d<e;d++)t=a[d],o[d]=t.get?t.get(s):t;a=o}else a instanceof S&&(a=a.get(s));i.autoBind===!1&&i.valuePrimitive!==!0?n._preselect(r,a):n.value(a)}},destroy:function(){this.widget.unbind(j,this._change)}})},gantt:{dependencies:i("dependencies","dependencies","setDependenciesDataSource")},multiselect:{value:p.extend({init:function(t,i,n){p.fn.init.call(this,t.element[0],i,n),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(j,this._change),this._initChange=!1},change:function(){var e,i,n,s,a,r,d,o,h,l=this,c=l.bindings[I].get(),g=l.options.valuePrimitive,u=g?l.widget.value():l.widget.dataItems(),f=this.options.dataValueField||this.options.dataTextField;if(u=u.slice(0),l._initChange=!0,c instanceof D){for(e=[],i=u.length,n=0,s=0,a=c[n],r=!1;a!==t;){for(h=!1,s=0;s<i;s++)if(g?r=u[s]==a:(o=u[s],o=o.get?o.get(f):o,r=o==(a.get?a.get(f):a)),r){u.splice(s,1),i-=1,h=!0;break}h?n+=1:(e.push(a),y(c,n,1),d=n),a=c[n]}y(c,c.length,0,u),e.length&&c.trigger("change",{action:"remove",items:e,index:d}),u.length&&c.trigger("change",{action:"add",items:u,index:c.length-1})}else l.bindings[I].set(u);l._initChange=!1},refresh:function(){if(!this._initChange){var e,i,n=this.options,s=this.widget,a=n.dataValueField||n.dataTextField,r=this.bindings.value.get(),d=r,o=0,h=[];if(r===t&&(r=null),a)if(r instanceof D){for(e=r.length;o<e;o++)i=r[o],h[o]=i.get?i.get(a):i;r=h}else r instanceof S&&(r=r.get(a));n.autoBind!==!1||n.valuePrimitive===!0||s._isBound()?s.value(r):s._preselect(d,r)}},destroy:function(){this.widget.unbind(j,this._change)}})},scheduler:{source:i("source","dataSource","setDataSource").extend({dataBound:function(e){var t,i,n,s,a=this.widget,d=e.addedItems||a.items();if(d.length)for(n=e.addedDataItems||a.dataItems(),s=this.bindings.source._parents(),t=0,i=n.length;t<i;t++)r(d[t],n[t],this._ns(e.ns),[n[t]].concat(s))}})},grid:{source:i("source","dataSource","setDataSource").extend({dataBound:function(e){var t,i,n,s,a=this.widget,d=e.addedItems||a.items();if(d.length)for(s=e.addedDataItems||a.dataItems(),n=this.bindings.source._parents(),t=0,i=s.length;t<i;t++)r(d[t],s[t],this._ns(e.ns),[s[t]].concat(n))}})},badge:{text:p.extend({init:function(e,t,i){p.fn.init.call(this,e.element[0],t,i),this.widget=e},refresh:function(){var e=this.bindings.text.get();null==e&&(e=""),this.widget.text(e)}})}},y=function(e,t,i,n){var s,a,r,d,o;if(n=n||[],i=i||0,s=n.length,a=e.length,r=[].slice.call(e,t+i),d=r.length,s){for(s=t+s,o=0;t<s;t++)e[t]=n[o],o++;e.length=s}else if(i)for(e.length=t,i+=t;t<i;)delete e[--i];if(d){for(d=t+d,o=0;t<d;t++)e[t]=r[o],o++;e.length=d}for(t=e.length;t<a;)delete e[t],t++},w=A.extend({init:function(e,t){this.target=e,this.options=t,this.toDestroy=[]},bind:function(e){var t,i,n,s,a,r,d=this instanceof _,o=this.binders();for(t in e)t==I?i=!0:t==V?n=!0:t!=O||d?t==H?a=!0:t==N?r=!0:this.applyBinding(t,e,o):s=!0;n&&this.applyBinding(V,e,o),i&&this.applyBinding(I,e,o),a&&this.applyBinding(H,e,o),s&&!d&&this.applyBinding(O,e,o),r&&!d&&this.applyBinding(N,e,o)},binders:function(){return T[this.target.nodeName.toLowerCase()]||{}},applyBinding:function(e,t,i){var n,s=i[e]||T[e],a=this.toDestroy,r=t[e];if(s)if(s=new s(this.target,t,this.options),a.push(s),r instanceof f)s.bind(r),a.push(r);else for(n in r)s.bind(r,n),a.push(r[n]);else if("template"!==e)throw Error("The "+e+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var e,t,i=this.toDestroy;for(e=0,t=i.length;e<t;e++)i[e].destroy()}}),_=w.extend({binders:function(){return T.widget[this.target.options.name.toLowerCase()]||{}},applyBinding:function(e,t,i){var n,s=i[e]||T.widget[e],a=this.toDestroy,r=t[e];if(!s)throw Error("The "+e+" binding is not supported by the "+this.target.options.name+" widget");if(s=new s(this.target,t,this.target.options),a.push(s),r instanceof f)s.bind(r),a.push(r);else for(n in r)s.bind(r,n),a.push(r[n])}}),x=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,B=/\s/g,C.unbind=c,C.bind=d,C.data.binders=T,C.data.Binder=p,C.notify=g,C.observable=function(e){return e instanceof S||(e=new S(e)),e},C.observableHierarchy=function(e){function t(e){var i,n;for(i=0;i<e.length;i++)e[i]._initChildren(),n=e[i].children,n.fetch(),e[i].items=n.data(),t(e[i].items)}var i=C.data.HierarchicalDataSource.create(e);return i.fetch(),t(i.data()),i._data._dataSource=i,i._data}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()});;!function(t,define){define("kendo.fx.min",["kendo.core.min"],t)}(function(){return function(t,e){function i(t){return parseInt(t,10)}function r(t,e){return i(t.css(e))}function n(t){var e,i=[];for(e in t)i.push(e);return i}function s(t){for(var e in t)L.indexOf(e)!=-1&&Q.indexOf(e)==-1&&delete t[e];return t}function o(t,e){var i,r,n,s,o=[],a={};for(r in e)i=r.toLowerCase(),s=H&&L.indexOf(i)!=-1,!E.hasHW3D&&s&&Q.indexOf(i)==-1?delete e[r]:(n=e[r],s?o.push(r+"("+n+")"):a[r]=n);return o.length&&(a[at]=o.join(" ")),a}function a(t,e){var r,n,s;return H?(r=t.css(at),r==J?"scale"==e?1:0:(n=r.match(RegExp(e+"\\s*\\(([\\d\\w\\.]+)")),s=0,n?s=i(n[1]):(n=r.match(I)||[0,0,0,0,0],e=e.toLowerCase(),A.test(e)?s=parseFloat(n[3]/n[2]):"translatey"==e?s=parseFloat(n[4]/n[2]):"scale"==e?s=parseFloat(n[2]):"rotate"==e&&(s=parseFloat(Math.atan2(n[2],n[1])))),s)):parseFloat(t.css(e))}function c(t){return t.charAt(0).toUpperCase()+t.substring(1)}function l(t,e){var i=h.extend(e),r=i.prototype.directions;P[c(t)]=i,P.Element.prototype[t]=function(t,e,r,n){return new i(this.element,t,e,r,n)},T(r,function(e,r){P.Element.prototype[t+c(r)]=function(t,e,n){return new i(this.element,r,t,e,n)}})}function d(t,i,r,n){l(t,{directions:v,startValue:function(t){return this._startValue=t,this},endValue:function(t){return this._endValue=t,this},shouldHide:function(){return this._shouldHide},prepare:function(t,s){var o,a,c=this,l="out"===this._direction,d=c.element.data(i),u=!(isNaN(d)||d==r);o=u?d:e!==this._startValue?this._startValue:l?r:n,a=e!==this._endValue?this._endValue:l?n:r,this._reverse?(t[i]=a,s[i]=o):(t[i]=o,s[i]=a),c._shouldHide=s[i]===n}})}function u(t,e){var i=C.directions[e].vertical,r=t[i?Y:X]()/2+"px";return _[e].replace("$size",r)}var f,p,h,m,v,x,_,g,y,k,b,w,C=window.kendo,P=C.effects,T=t.each,N=t.extend,z=t.proxy,E=C.support,R=E.browser,H=E.transforms,D=E.transitions,O={scale:0,scalex:0,scaley:0,scale3d:0},F={translate:0,translatex:0,translatey:0,translate3d:0},S=e!==document.documentElement.style.zoom&&!H,I=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,q=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,A=/translatex?$/i,V=/(zoom|fade|expand)(\w+)/,M=/(zoom|fade|expand)/,$=/[xy]$/i,L=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],Q=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],W={rotate:"deg",scale:"",skew:"px",translate:"px"},j=H.css,B=Math.round,U="",G="px",J="none",K="auto",X="width",Y="height",Z="hidden",tt="origin",et="abortId",it="overflow",rt="translate",nt="position",st="completeCallback",ot=j+"transition",at=j+"transform",ct=j+"backface-visibility",lt=j+"perspective",dt="1500px",ut="perspective("+dt+")",ft={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1},vertical:{reverse:"vertical"},horizontal:{reverse:"horizontal"}};C.directions=ft,N(t.fn,{kendoStop:function(t,e){return D?P.stopQueue(this,t||!1,e||!1):this.stop(t,e)}}),H&&!D&&(T(Q,function(i,r){t.fn[r]=function(i){if(e===i)return a(this,r);var n=t(this)[0],s=r+"("+i+W[r.replace($,"")]+")";return n.style.cssText.indexOf(at)==-1?t(this).css(at,s):n.style.cssText=n.style.cssText.replace(RegExp(r+"\\(.*?\\)","i"),s),this},t.fx.step[r]=function(e){t(e.elem)[r](e.now)}}),f=t.fx.prototype.cur,t.fx.prototype.cur=function(){return Q.indexOf(this.prop)!=-1?parseFloat(t(this.elem)[this.prop]()):f.apply(this,arguments)}),C.toggleClass=function(t,e,i,r){return e&&(e=e.split(" "),D&&(i=N({exclusive:"all",duration:400,ease:"ease-out"},i),t.css(ot,i.exclusive+" "+i.duration+"ms "+i.ease),setTimeout(function(){t.css(ot,"").css(Y)},i.duration)),T(e,function(e,i){t.toggleClass(i,r)})),t},C.parseEffects=function(t,e){var i={};return"string"==typeof t?T(t.split(" "),function(t,r){var n=!M.test(r),s=r.replace(V,function(t,e,i){return e+":"+i.toLowerCase()}),o=s.split(":"),a=o[1],c={};o.length>1&&(c.direction=e&&n?ft[a].reverse:a),i[o[0]]=c}):T(t,function(t){var r=this.direction;r&&e&&!M.test(t)&&(this.direction=ft[r].reverse),i[t]=this}),i},D&&N(P,{transition:function(e,i,r){var s,a,c,l,d=0,u=e.data("keys")||[];r=N({duration:200,ease:"ease-out",complete:null,exclusive:"all"},r),c=!1,l=function(){c||(c=!0,a&&(clearTimeout(a),a=null),e.removeData(et).dequeue().css(ot,"").css(ot),r.complete.call(e))},r.duration=t.fx?t.fx.speeds[r.duration]||r.duration:r.duration,s=o(e,i),t.merge(u,n(s)),t.hasOwnProperty("uniqueSort")?e.data("keys",t.uniqueSort(u)).height():e.data("keys",t.unique(u)).height(),e.css(ot,r.exclusive+" "+r.duration+"ms "+r.ease).css(ot),e.css(s).css(at),D.event&&(e.one(D.event,l),0!==r.duration&&(d=500)),a=setTimeout(l,r.duration+d),e.data(et,a),e.data(st,l)},stopQueue:function(t,e,i){var r,n=t.data("keys"),s=!i&&n,o=t.data(st);return s&&(r=C.getComputedStyles(t[0],n)),o&&o(),s&&t.css(r),t.removeData("keys").stop(e)}}),p=C.Class.extend({init:function(t,e){var i=this;i.element=t,i.effects=[],i.options=e,i.restore=[]},run:function(e){var i,r,n,a,c,l,d,u=this,f=e.length,p=u.element,h=u.options,m=t.Deferred(),v={},x={};for(u.effects=e,m.done(t.proxy(u,"complete")),p.data("animating",!0),r=0;r<f;r++)for(i=e[r],i.setReverse(h.reverse),i.setOptions(h),u.addRestoreProperties(i.restore),i.prepare(v,x),c=i.children(),n=0,l=c.length;n<l;n++)c[n].duration(h.duration).run();for(d in h.effects)N(x,h.effects[d].properties);for(p.is(":visible")||N(v,{display:p.data("olddisplay")||"block"}),H&&!h.reset&&(a=p.data("targetTransform"),a&&(v=N(a,v))),v=o(p,v),H&&!D&&(v=s(v)),p.css(v).css(at),r=0;r<f;r++)e[r].setup();return h.init&&h.init(),p.data("targetTransform",x),P.animate(p,x,N({},h,{complete:m.resolve})),m.promise()},stop:function(){t(this.element).kendoStop(!0,!0)},addRestoreProperties:function(t){for(var e,i=this.element,r=0,n=t.length;r<n;r++)e=t[r],this.restore.push(e),i.data(e)||i.data(e,i.css(e))},restoreCallback:function(){var t,e,i,r=this.element;for(t=0,e=this.restore.length;t<e;t++)i=this.restore[t],r.css(i,r.data(i))},complete:function(){var e=this,i=0,r=e.element,n=e.options,s=e.effects,o=s.length;for(r.removeData("animating").dequeue(),n.hide&&r.data("olddisplay",r.css("display")).hide(),this.restoreCallback(),S&&!H&&setTimeout(t.proxy(this,"restoreCallback"),0);i<o;i++)s[i].teardown();n.completeCallback&&n.completeCallback(r)}}),P.promise=function(t,e){var i,r,n,s=[],o=new p(t,e),a=C.parseEffects(e.effects);e.effects=a;for(n in a)i=P[c(n)],i&&(r=new i(t,a[n].direction),s.push(r));s[0]?o.run(s):(t.is(":visible")||t.css({display:t.data("olddisplay")||"block"}).css("display"),e.init&&e.init(),t.dequeue(),o.complete())},N(P,{animate:function(i,n,o){var a=o.transition!==!1;delete o.transition,D&&"transition"in P&&a?P.transition(i,n,o):H?i.animate(s(n),{queue:!1,show:!1,hide:!1,duration:o.duration,complete:o.complete}):i.each(function(){var i=t(this),s={};T(L,function(t,o){var a,c,l,d,u,f,p,h=n?n[o]+" ":null;h&&(c=n,o in O&&n[o]!==e?(a=h.match(q),H&&N(c,{scale:+a[0]})):o in F&&n[o]!==e&&(l=i.css(nt),d="absolute"==l||"fixed"==l,i.data(rt)||(d?i.data(rt,{top:r(i,"top")||0,left:r(i,"left")||0,bottom:r(i,"bottom"),right:r(i,"right")}):i.data(rt,{top:r(i,"marginTop")||0,left:r(i,"marginLeft")||0})),u=i.data(rt),a=h.match(q),a&&(f=o==rt+"y"?0:+a[1],p=o==rt+"y"?+a[1]:+a[2],d?(isNaN(u.right)?isNaN(f)||N(c,{left:u.left+f}):isNaN(f)||N(c,{right:u.right-f}),isNaN(u.bottom)?isNaN(p)||N(c,{top:u.top+p}):isNaN(p)||N(c,{bottom:u.bottom-p})):(isNaN(f)||N(c,{marginLeft:u.left+f}),isNaN(p)||N(c,{marginTop:u.top+p})))),!H&&"scale"!=o&&o in c&&delete c[o],c&&N(s,c))}),R.msie&&delete s.scale,i.animate(s,{queue:!1,show:!1,hide:!1,duration:o.duration,complete:o.complete})})}}),P.animatedPromise=P.promise,h=C.Class.extend({init:function(t,e){var i=this;i.element=t,i._direction=e,i.options={},i._additionalEffects=[],i.restore||(i.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function(t){return this._additionalEffects.push(t),this},direction:function(t){return this._direction=t,this},duration:function(t){return this._duration=t,this},compositeRun:function(){var t=this,e=new p(t.element,{reverse:t._reverse,duration:t._duration}),i=t._additionalEffects.concat([t]);return e.run(i)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var e,i,r=this,n=r.element,a=0,c=r.restore,l=c.length,d=t.Deferred(),u={},f={},p=r.children(),h=p.length;for(d.done(t.proxy(r,"_complete")),n.data("animating",!0),a=0;a<l;a++)e=c[a],n.data(e)||n.data(e,n.css(e));for(a=0;a<h;a++)p[a].duration(r._duration).run();return r.prepare(u,f),n.is(":visible")||N(u,{display:n.data("olddisplay")||"block"}),H&&(i=n.data("targetTransform"),i&&(u=N(i,u))),u=o(n,u),H&&!D&&(u=s(u)),n.css(u).css(at),r.setup(),n.data("targetTransform",f),P.animate(n,f,{duration:r._duration,complete:d.resolve}),d.promise()},stop:function(){var e=0,i=this.children(),r=i.length;for(e=0;e<r;e++)i[e].stop();return t(this.element).kendoStop(!0,!0),this},restoreCallback:function(){var t,e,i,r=this.element;for(t=0,e=this.restore.length;t<e;t++)i=this.restore[t],r.css(i,r.data(i))},_complete:function(){var e=this,i=e.element;i.removeData("animating").dequeue(),e.restoreCallback(),e.shouldHide()&&i.data("olddisplay",i.css("display")).hide(),S&&!H&&setTimeout(t.proxy(e,"restoreCallback"),0),e.teardown()},setOptions:function(t){N(!0,this.options,t)},children:function(){return[]},shouldHide:t.noop,setup:t.noop,prepare:t.noop,teardown:t.noop,directions:[],setReverse:function(t){return this._reverse=t,this}}),m=["left","right","up","down"],v=["in","out"],l("slideIn",{directions:m,divisor:function(t){return this.options.divisor=t,this},prepare:function(t,e){var i,r=this,n=r.element,s=C._outerWidth,o=C._outerHeight,a=ft[r._direction],c=-a.modifier*(a.vertical?o(n):s(n)),l=c/(r.options&&r.options.divisor||1)+G,d="0px";r._reverse&&(i=t,t=e,e=i),H?(t[a.transition]=l,e[a.transition]=d):(t[a.property]=l,e[a.property]=d)}}),l("tile",{directions:m,init:function(t,e,i){h.prototype.init.call(this,t,e),this.options={previous:i}},previousDivisor:function(t){return this.options.previousDivisor=t,this},children:function(){var t=this,e=t._reverse,i=t.options.previous,r=t.options.previousDivisor||1,n=t._direction,s=[C.fx(t.element).slideIn(n).setReverse(e)];return i&&s.push(C.fx(i).slideIn(ft[n].reverse).divisor(r).setReverse(!e)),s}}),d("fade","opacity",1,0),d("zoom","scale",1,.01),l("slideMargin",{prepare:function(t,e){var i,r=this,n=r.element,s=r.options,o=n.data(tt),a=s.offset,c=r._reverse;c||null!==o||n.data(tt,parseFloat(n.css("margin-"+s.axis))),i=n.data(tt)||0,e["margin-"+s.axis]=c?i:i+a}}),l("slideTo",{prepare:function(t,e){var i=this,r=i.element,n=i.options,s=n.offset.split(","),o=i._reverse;H?(e.translatex=o?0:s[0],e.translatey=o?0:s[1]):(e.left=o?0:s[0],e.top=o?0:s[1]),r.css("left")}}),l("expand",{directions:["horizontal","vertical"],restore:[it],prepare:function(t,i){var r=this,n=r.element,s=r.options,o=r._reverse,a="vertical"===r._direction?Y:X,c=n[0].style[a],l=n.data(a),d=parseFloat(l||c),u=B(n.css(a,K)[a]());t.overflow=Z,d=s&&s.reset?u||d:d||u,i[a]=(o?0:d)+G,t[a]=(o?d:0)+G,l===e&&n.data(a,c)},shouldHide:function(){return this._reverse},teardown:function(){var t=this,e=t.element,i="vertical"===t._direction?Y:X,r=e.data(i);r!=K&&r!==U||setTimeout(function(){e.css(i,K).css(i)},0)}}),x={position:"absolute",marginLeft:0,marginTop:0,scale:1},l("transfer",{init:function(t,e){this.element=t,this.options={target:e},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function(t,e){var i=this,r=i.element,n=P.box(r),s=P.box(i.options.target),o=a(r,"scale"),c=P.fillScale(s,n),l=P.transformOrigin(s,n);N(t,x),e.scale=1,r.css(at,"scale(1)").css(at),r.css(at,"scale("+o+")"),t.top=n.top,t.left=n.left,t.transformOrigin=l.x+G+" "+l.y+G,i._reverse?t.scale=c:e.scale=c}}),_={top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",right:"rect(auto auto auto $size)"},g={top:{start:"rotatex(0deg)",end:"rotatex(180deg)"},bottom:{start:"rotatex(-180deg)",end:"rotatex(0deg)"},left:{start:"rotatey(0deg)",end:"rotatey(-180deg)"},right:{start:"rotatey(180deg)",end:"rotatey(0deg)"}},l("turningPage",{directions:m,init:function(t,e,i){h.prototype.init.call(this,t,e),this._container=i},prepare:function(t,e){var i=this,r=i._reverse,n=r?ft[i._direction].reverse:i._direction,s=g[n];t.zIndex=1,i._clipInHalf&&(t.clip=u(i._container,C.directions[n].reverse)),t[ct]=Z,e[at]=ut+(r?s.start:s.end),t[at]=ut+(r?s.end:s.start)},setup:function(){this._container.append(this.element)},face:function(t){return this._face=t,this},shouldHide:function(){var t=this,e=t._reverse,i=t._face;return e&&!i||!e&&i},clipInHalf:function(t){return this._clipInHalf=t,this},temporary:function(){return this.element.addClass("temp-page"),this}}),l("staticPage",{directions:m,init:function(t,e,i){h.prototype.init.call(this,t,e),this._container=i},restore:["clip"],prepare:function(t,e){var i=this,r=i._reverse?ft[i._direction].reverse:i._direction;t.clip=u(i._container,r),t.opacity=.999,e.opacity=1},shouldHide:function(){var t=this,e=t._reverse,i=t._face;return e&&!i||!e&&i},face:function(t){return this._face=t,this}}),l("pageturn",{directions:["horizontal","vertical"],init:function(t,e,i,r){h.prototype.init.call(this,t,e),this.options={},this.options.face=i,this.options.back=r},children:function(){var t,e=this,i=e.options,r="horizontal"===e._direction?"left":"top",n=C.directions[r].reverse,s=e._reverse,o=i.face.clone(!0).removeAttr("id"),a=i.back.clone(!0).removeAttr("id"),c=e.element;return s&&(t=r,r=n,n=t),[C.fx(i.face).staticPage(r,c).face(!0).setReverse(s),C.fx(i.back).staticPage(n,c).setReverse(s),C.fx(o).turningPage(r,c).face(!0).clipInHalf(!0).temporary().setReverse(s),C.fx(a).turningPage(n,c).clipInHalf(!0).temporary().setReverse(s)]},prepare:function(t,e){t[lt]=dt,t.transformStyle="preserve-3d",t.opacity=.999,e.opacity=1},teardown:function(){this.element.find(".temp-page").remove()}}),l("flip",{directions:["horizontal","vertical"],init:function(t,e,i,r){h.prototype.init.call(this,t,e),this.options={},this.options.face=i,this.options.back=r},children:function(){var t,e=this,i=e.options,r="horizontal"===e._direction?"left":"top",n=C.directions[r].reverse,s=e._reverse,o=e.element;return s&&(t=r,r=n,n=t),[C.fx(i.face).turningPage(r,o).face(!0).setReverse(s),C.fx(i.back).turningPage(n,o).setReverse(s)]},prepare:function(t){t[lt]=dt,t.transformStyle="preserve-3d"}}),y=!E.mobileOS.android,k=".km-touch-scrollbar, .km-actionsheet-wrapper",l("replace",{_before:t.noop,_after:t.noop,init:function(e,i,r){h.prototype.init.call(this,e),this._previous=t(i),this._transitionClass=r},duration:function(){throw Error("The replace effect does not support duration setting; the effect duration may be customized through the transition class rule")},beforeTransition:function(t){return this._before=t,this},afterTransition:function(t){return this._after=t,this},_both:function(){return t().add(this._element).add(this._previous)},_containerClass:function(){var t=this._direction,e="k-fx k-fx-start k-fx-"+this._transitionClass;return t&&(e+=" k-fx-"+t),this._reverse&&(e+=" k-fx-reverse"),e},complete:function(e){if(!(!this.deferred||e&&t(e.target).is(k))){var i=this.container;i.removeClass("k-fx-end").removeClass(this._containerClass()).off(D.event,this.completeProxy),this._previous.hide().removeClass("k-fx-current"),this.element.removeClass("k-fx-next"),y&&i.css(it,""),this.isAbsolute||this._both().css(nt,""),this.deferred.resolve(),delete this.deferred}},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var e,i=this,r=i.element,n=i._previous,s=r.parents().filter(n.parents()).first(),o=i._both(),a=t.Deferred(),c=r.css(nt);return s.length||(s=r.parent()),this.container=s,this.deferred=a,this.isAbsolute="absolute"==c,this.isAbsolute||o.css(nt,"absolute"),y&&(e=s.css(it),s.css(it,"hidden")),D?(r.addClass("k-fx-hidden"),s.addClass(this._containerClass()),this.completeProxy=t.proxy(this,"complete"),s.on(D.event,this.completeProxy),C.animationFrame(function(){r.removeClass("k-fx-hidden").addClass("k-fx-next"),n.css("display","").addClass("k-fx-current"),i._before(n,r),C.animationFrame(function(){s.removeClass("k-fx-start").addClass("k-fx-end"),i._after(n,r)})})):this.complete(),a.promise()},stop:function(){this.complete()}}),b=C.Class.extend({init:function(){var t=this;t._tickProxy=z(t._tick,t),t._started=!1},tick:t.noop,done:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,C.animationFrame(this._tickProxy)))},enabled:function(){return!0},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var t=this;t._started&&(t.tick(),t.done()?(t._started=!1,t.onEnd()):C.animationFrame(t._tickProxy))}}),w=b.extend({init:function(t){var e=this;N(e,t),b.fn.init.call(e)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function(t){var e=this,i=e.movable;e.initial=i[e.axis],e.delta=t.location-e.initial,e.duration="number"==typeof t.duration?t.duration:300,e.tick=e._easeProxy(t.ease),e.startDate=new Date,e.start()},_easeProxy:function(t){var e=this;return function(){e.movable.moveAxis(e.axis,t(e.timePassed(),e.initial,e.delta,e.duration))}}}),N(w,{easeOutExpo:function(t,e,i,r){return t==r?e+i:i*(-Math.pow(2,-10*t/r)+1)+e},easeOutBack:function(t,e,i,r,n){return n=1.70158,i*((t=t/r-1)*t*((n+1)*t+n)+1)+e}}),P.Animation=b,P.Transition=w,P.createEffect=l,P.box=function(e){e=t(e);var i=e.offset();return i.width=C._outerWidth(e),i.height=C._outerHeight(e),i},P.transformOrigin=function(t,e){var i=(t.left-e.left)*e.width/(e.width-t.width),r=(t.top-e.top)*e.height/(e.height-t.height);return{x:isNaN(i)?0:i,y:isNaN(r)?0:r}},P.fillScale=function(t,e){return Math.min(t.width/e.width,t.height/e.height)},P.fitScale=function(t,e){return Math.max(t.width/e.width,t.height/e.height)}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()});;!function(e,define){define("kendo.view.min",["kendo.core.min","kendo.binder.min","kendo.fx.min"],e)}(function(){return function(e,t){function n(e){if(!e)return{};var t=e.match(R)||[];return{type:t[1],direction:t[3],reverse:"reverse"===t[5]}}var i=window.kendo,r=i.attr,o=i.ui,a=i.attrValue,s=i.directiveSelector,d=i.Observable,c=i.ui.Widget,h=i.roleSelector,l="SCRIPT",f="init",w="transitionStart",u="transitionEnd",p="show",v="hide",g="attach",m="detach",_=/unrecognized expression/,y=/<body[^>]*>(([\u000a\u000d\u2028\u2029]|.)*)<\/body>/i,V="loadStart",C="loadComplete",S="showStart",b="sameViewRequested",x="viewShow",E="viewTypeDetermined",T="after",I={content:"k-content",view:"k-view",stretchedView:"k-stretched-view",widget:"k-widget",header:"k-header",footer:"k-footer"},O=i.ui.Widget.extend({init:function(t,n){var r=this;n=n||{},r.id=i.guid(),d.fn.init.call(r),this.options=e.extend({},this.options,n),r.content=t,r.options.renderOnInit&&c.fn.init.call(r,r._createElement(),n),r.options.wrapInSections&&r._renderSections(),r.tagName=n.tagName||"div",r.model=n.model,r._wrap=n.wrap!==!1,this._evalTemplate=n.evalTemplate||!1,r._fragments={},r.bind([f,p,v,w,u],n)},options:{name:"View",renderOnInit:!1,wrapInSections:!1,detachOnHide:!0,detachOnDestroy:!0},render:function(t){var n=this,r=!n.element;return r&&(n.element=n._createElement()),t&&e(t).append(n.element),r&&(i.bind(n.element,n.model),n.trigger(f)),t&&(n._eachFragment(g),n.trigger(p)),n.element},clone:function(){return new k(this)},triggerBeforeShow:function(){return!0},triggerBeforeHide:function(){return!0},showStart:function(){var e=this,t=e.render();t&&t.css("display",""),this.trigger(S,{view:this})},showEnd:function(){},hideEnd:function(){this.hide()},beforeTransition:function(e){this.trigger(w,{type:e})},afterTransition:function(e){this.trigger(u,{type:e})},hide:function(){this.options.detachOnHide&&(this._eachFragment(m),e(this.element).detach()),this.trigger(v)},destroy:function(){var e=this,t=e.element;t&&(c.fn.destroy.call(e),i.unbind(t),i.destroy(t),e.options.detachOnDestroy&&t.remove())},purge:function(){var t=this;t.destroy(),e(t.element).add(t.content).add(t.wrapper).off().remove()},fragments:function(t){e.extend(this._fragments,t)},_eachFragment:function(e){for(var t in this._fragments)this._fragments[t][e](this,t)},_createElement:function(){var t,n,r,o=this,a="<"+o.tagName+">";try{n=e(document.getElementById(o.content)||o.content),n[0].tagName===l&&(n=n.html())}catch(s){_.test(s.message)&&(n=o.content)}return"string"==typeof n?(n=n.replace(/^\s+|\s+$/g,""),o._evalTemplate&&(n=i.template(n)(o.model||{})),t=e(a).append(n),o._wrap||(t=t.contents())):(t=n,o._evalTemplate&&(r=e(i.template(e("<div />").append(t.clone(!0)).html())(o.model||{})),e.contains(document,t[0])&&t.replaceWith(r),t=r),o._wrap&&(t=t.wrapAll(a).parent())),t},_renderSections:function(){var e=this;e.options.wrapInSections&&(e._wrapper(),e._createContent(),e._createHeader(),e._createFooter())},_wrapper:function(){var e,t=this,n=t.content;t.wrapper=n.is(h("view"))?t.content:n.wrap("<div data-"+i.ns+'stretch="true" data-'+i.ns+'role="view" data-'+i.ns+'init-widgets="false"></div>').parent(),e=t.wrapper,e.attr("id",t.id),e.addClass(I.view),e.addClass(I.widget),e.attr("role","view")},_createContent:function(){var t,n=this,i=e(n.wrapper),o=h("content");i.children(o)[0]||(t=i.children().filter(function(){var t=e(this);if(!t.is(h("header"))&&!t.is(h("footer")))return t}),t.wrap("<div "+r("role")+'="content"></div>')),this.contentElement=i.children(h("content")),this.contentElement.addClass(I.stretchedView).addClass(I.content)},_createHeader:function(){var e=this,t=e.wrapper;this.header=t.children(h("header")).addClass(I.header)},_createFooter:function(){var e=this,t=e.wrapper;this.footer=t.children(h("footer")).addClass(I.footer)}}),k=i.Class.extend({init:function(t){e.extend(this,{element:t.element.clone(!0),transition:t.transition,id:t.id}),t.element.parent().append(this.element)},hideEnd:function(){this.element.remove()},beforeTransition:e.noop,afterTransition:e.noop}),H=O.extend({init:function(e,t){O.fn.init.call(this,e,t),this.containers={}},container:function(e){var t=this.containers[e];return t||(t=this._createContainer(e),this.containers[e]=t),t},showIn:function(e,t,n){this.container(e).show(t,n)},_createContainer:function(e){var t,n=this.render(),i=n.find(e);if(!i.length&&n.is(e)){if(!n.is(e))throw Error("can't find a container with the specified "+e+" selector");i=n}return t=new F(i),t.bind("accepted",function(e){e.view.render(i)}),t}}),B=O.extend({attach:function(e,t){e.element.find(t).replaceWith(this.render())},detach:function(){}}),R=/^(\w+)(:(\w+))?( (\w+))?$/,F=d.extend({init:function(e){d.fn.init.call(this),this.container=e,this.history=[],this.view=null,this.running=!1},after:function(){this.running=!1,this.trigger("complete",{view:this.view}),this.trigger("after")},end:function(){this.view.showEnd(),this.previous.hideEnd(),this.after()},show:function(e,t,r){if(!e.triggerBeforeShow()||this.view&&!this.view.triggerBeforeHide())return this.trigger("after"),!1;r=r||e.id;var o=this,a=e===o.view?e.clone():o.view,s=o.history,d=s[s.length-2]||{},c=d.id===r,h=t||(c?s[s.length-1].transition:e.transition),l=n(h);return o.running&&o.effect.stop(),"none"===h&&(h=null),o.trigger("accepted",{view:e}),o.view=e,o.previous=a,o.running=!0,c?s.pop():s.push({id:r,transition:h}),a?(h&&i.effects.enabled?(e.element.addClass("k-fx-hidden"),e.showStart(),c&&!t&&(l.reverse=!l.reverse),o.effect=i.fx(e.element).replace(a.element,l.type).beforeTransition(function(){e.beforeTransition("show"),a.beforeTransition("hide")}).afterTransition(function(){e.afterTransition("show"),a.afterTransition("hide")}).direction(l.direction).setReverse(l.reverse),o.effect.run().then(function(){o.end()})):(e.showStart(),o.end()),!0):(e.showStart(),e.showEnd(),o.after(),!0)},destroy:function(){var e=this,t=e.view;t&&t.destroy&&t.destroy()}}),L=d.extend({init:function(t){var n,r,o=this;d.fn.init.call(o),o.options=t,e.extend(o,t),o.sandbox=e("<div />"),r=o.container,n=o._hideViews(r),o.rootView=n.first(),o.layouts={},o.viewContainer=new i.ViewContainer(o.container),o.viewContainer.bind("accepted",function(e){e.view.params=o.params}),o.viewContainer.bind("complete",function(e){o.trigger(x,{view:e.view})}),o.viewContainer.bind(T,function(){o.trigger(T)}),this.bind(this.events,t)},events:[S,T,x,V,C,b,E],destroy:function(){var e,t=this,n=t.viewContainer;i.destroy(t.container);for(e in t.layouts)this.layouts[e].destroy();n&&n.destroy()},view:function(){return this.viewContainer.view},showView:function(e,t,n){if(e=e.replace(RegExp("^"+this.remoteViewURLPrefix),""),""===e&&this.remoteViewURLPrefix&&(e="/"),e.replace(/^#/,"")===this.url)return this.trigger(b),!1;this.trigger(S);var r=this,o=r._findViewElement(e),a=i.widgetInstance(o);return r.url=e.replace(/^#/,""),r.params=n,a&&a.reload&&(a.purge(),o=[]),this.trigger(E,{remote:0===o.length,url:e}),!o[0]||(a||(a=r._createView(o)),r.viewContainer.show(a,t,e))},append:function(e,t){var n,i,o=this.sandbox,a=(t||"").split("?")[0],s=this.container;return y.test(e)&&(e=RegExp.$1),o[0].innerHTML=e,s.append(o.children("script, style")),n=this._hideViews(o),i=n.first(),i.length||(n=i=o.wrapInner("<div data-role=view />").children()),a&&i.hide().attr(r("url"),a),s.append(n),this._createView(i)},_locate:function(e){return this.$angular?s(e):h(e)},_findViewElement:function(e){var t,n=e.split("?")[0];return n?(t=this.container.children("["+r("url")+"='"+n+"']"),t[0]||n.indexOf("/")!==-1||(t=this.container.children("#"===n.charAt(0)?n:"#"+n)),t[0]||(t=this._findViewElementById(e)),t):this.rootView},_findViewElementById:function(e){var t=this.container.children("[id='"+e+"']");return t},_createView:function(e){return this._createSpaView(e)},_createMobileView:function(e){return i.initWidget(e,{defaultTransition:this.transition,loader:this.loader,container:this.container,getLayout:this.getLayoutProxy,modelScope:this.modelScope,reload:a(e,"reload")},o.roles)},_createSpaView:function(e){var t=(this.options||{}).viewOptions||{};return new i.View(e,{renderOnInit:t.renderOnInit,wrap:t.wrap||!1,wrapInSections:t.wrapInSections,detachOnHide:t.detachOnHide,detachOnDestroy:t.detachOnDestroy})},_hideViews:function(e){return e.children(this._locate("view")).hide()}});i.ViewEngine=L,i.ViewContainer=F,i.Fragment=B,i.Layout=H,i.View=O,i.ViewClone=k}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(i,define){define("kendo.pane.min",["kendo.view.min"],i)}(function(){return function(i,e){var t=window.kendo,n=t.roleSelector,o=t.ui,a=o.Widget,r=t.ViewEngine,s=t.View,l=i.extend,c="navigate",p="viewShow",d="sameViewRequested",u=t.support.mobileOS,h=u.ios&&!u.appMode&&u.flatVersion>=700,v="#:back",f=".",w={pane:"k-pane",paneWrapper:"k-pane-wrapper",collapsiblePane:"k-collapsible-pane",vertical:"k-vertical"},g=a.extend({init:function(i,e){var n=this;a.fn.init.call(n,i,e),e=n.options,i=n.element,i.addClass(w.pane),n.options.collapsible&&i.addClass(w.collapsiblePane),this.history=[],this.historyCallback=function(i,e,t){var o=n.transition;return n.transition=null,h&&t&&(o="none"),n.viewEngine.showView(i,o,e)},this._historyNavigate=function(i){if(i===v){if(1===n.history.length)return;n.history.pop(),i=n.history[n.history.length-1]}else i instanceof s&&(i=""),n.history.push(i);n.historyCallback(i,t.parseQueryStringParams(i))},this._historyReplace=function(i){var e=t.parseQueryStringParams(i);n.history[n.history.length-1]=i,n.historyCallback(i,e)},n.viewEngine=new r(l({},{container:i,transition:e.transition,modelScope:e.modelScope,rootNeeded:!e.initial,serverNavigation:e.serverNavigation,remoteViewURLPrefix:e.root||"",layout:e.layout,$angular:e.$angular,showStart:function(){n.closeActiveDialogs()},after:function(){},viewShow:function(i){n.trigger(p,i)},loadStart:function(){},loadComplete:function(){},sameViewRequested:function(){n.trigger(d)},viewTypeDetermined:function(i){i.remote&&n.options.serverNavigation||n.trigger(c,{url:i.url})}},this.options.viewEngine)),this._setPortraitWidth(),t.onResize(function(){n._setPortraitWidth()})},closeActiveDialogs:function(){var e=this.element.find(n("actionsheet popover modalview")).filter(":visible");e.each(function(){t.widgetInstance(i(this),o).close()})},navigateToInitial:function(){var i=this.options.initial;return i&&this.navigate(i),i},options:{name:"Pane",portraitWidth:"",transition:"",layout:"",collapsible:!1,initial:null,modelScope:window},events:[c,p,d],append:function(i){return this.viewEngine.append(i)},destroy:function(){var i=this;a.fn.destroy.call(i),i.viewEngine&&i.viewEngine.destroy()},navigate:function(i,e){i instanceof s&&(i=i.id),this.transition=e,this._historyNavigate(i)},replace:function(i,e){i instanceof s&&(i=i.id),this.transition=e,this._historyReplace(i)},view:function(){return this.viewEngine.view()},_setPortraitWidth:function(){var i,e=this.options.portraitWidth;e&&(i=t.mobile.application.element.is(f+w.vertical)?e:"auto",this.element.css("width",i))}});g.wrap=function(i,e){var o,a;return i.is(n("view"))||(i=i.wrap("<div data-"+t.ns+'role="view" data-stretch="true"></div>').parent()),o=i.wrap('<div class="'+w.paneWrapper+' k-widget"><div></div></div>').parent(),a=new g(o,e),a.navigate(""),a},t.Pane=g}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(i,e,t){(t||e)()});;!function(e,define){define("kendo.switch.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,a=n.ui,c=".kendoSwitch",i=a.Widget,s=n.support,r="change",l={widget:"k-switch k-widget",container:"k-switch-container",handle:"k-switch-handle",checked:"k-switch-on",checkedLabel:"k-switch-label-on",unchecked:"k-switch-off",uncheckedLabel:"k-switch-label-off",disabled:"k-state-disabled",readonly:"k-state-readonly",active:"k-state-active"},d="disabled",o="aria-disabled",h="readonly",p="aria-readonly",k="aria-checked",u="checked",w=s.click+c,f=s.pointers?"pointerup":"touchend",y="keydown"+c,b="_label",m=e.proxy,g=n.template('<span class="#=styles.widget#" role="switch"></span>'),v=n.template("<span class='#=styles.container#'><span class='#=styles.checkedLabel#'>#=checked#</span><span class='#=styles.uncheckedLabel#'>#=unchecked#</span><span class='#=styles.handle#'></span></span>"),_=i.extend({init:function(e,t){var a=this;i.fn.init.call(a,e,t),a._wrapper(),a._initSettings(),a._aria(),a._attachEvents(),n.notify(a,n.ui)},_wrapper:function(){var t=this,n=t.options,a=t.element[0],c=e(g({styles:l}));a.type="checkbox",t.wrapper=t.element.wrap(c).parent(),t.wrapper[0].style.cssText=t.element[0].style.cssText,t.wrapper.append(e(v({styles:l,checked:n.messages.checked,unchecked:n.messages.unchecked}))).addClass(a.className).removeClass("input-validation-error")},_attachEvents:function(){var e=this;e.wrapper.on(w,m(e._click,e)).on(f,m(e._touchEnd,e)).on(y,m(e._keydown,e))},setOptions:function(n){var a,c,i=this,s=n.messages;i.options=e.extend(i.options,n),s&&s.checked!==t&&(a=i.wrapper.find("."+l.checkedLabel),a.text(s.checked)),s&&s.unchecked!==t&&(c=i.wrapper.find("."+l.uncheckedLabel),c.text(s.unchecked)),n.width&&i.wrapper.css({width:n.width}),n.enabled!==t&&i.enable(n.enabled),n.readonly!==t&&i.readonly(n.readonly),i.check(n.checked)},_initSettings:function(){var e=this,t=e.element[0],n=e.options;n.enabled&&e._tabindex(),n.width&&e.wrapper.css({width:n.width}),null===n.checked&&(n.checked=t.checked),e.check(n.checked),n.enabled=n.enabled&&!e.element.attr(d),e.enable(n.enabled),n.readonly=n.readonly||!!e.element.attr(h),e.readonly(n.readonly)},_aria:function(){var t,a=this,c=a.element,i=a.wrapper,s=c.attr("id"),r=e('label[for="'+s+'"]'),l=c.attr("aria-label"),d=c.attr("aria-labelledby");l?i.attr("aria-label",l):d?i.attr("aria-labelledby",d):r.length&&(t=r.attr("id"),t||(t=(s||n.guid())+b,r.attr("id",t)),i.attr("aria-labelledby",t))},events:[r],options:{name:"Switch",messages:{checked:"On",unchecked:"Off"},width:null,checked:null,enabled:!0,readonly:!1},check:function(e){var n=this,a=n.element[0];return e===t?a.checked:(a.checked!==e&&(n.options.checked=a.checked=e),n.wrapper.attr(k,e).toggleClass(l.checked,e).toggleClass(l.unchecked,!e),e?n.element.attr(u,u):n.element.removeAttr(u),t)},value:function(e){return"string"==typeof e&&(e="true"===e),this.check.apply(this,[e])},destroy:function(){i.fn.destroy.call(this),this.wrapper.off(c)},toggle:function(){var e=this;e.check(!e.element[0].checked)},enable:function(e){var n=this.element,a=this.wrapper;t===e&&(e=!0),this.options.enabled=e,e?(n.removeAttr(d),a.removeAttr(o)):(n.attr(d,d),a.attr(o,!0)),a.toggleClass(l.disabled,!e)},readonly:function(e){var n=this,a=n.element,c=n.wrapper;t===e&&(e=!0),n.options.readonly=e,e?(a.attr(h,!0),c.attr(p,!0)):(a.removeAttr(h),c.removeAttr(p)),c.toggleClass(l.readonly,e)},_check:function(){var e=this,n=e.element[0].checked=!e.element[0].checked;return e.wrapper.focus(),!e.options.enabled||e.options.readonly||e.trigger(r,{checked:n})?(e.element[0].checked=!n,t):(e.check(n),t)},_keydown:function(e){e.keyCode===n.keys.SPACEBAR&&(this._check(),e.preventDefault())},_isTouch:function(e){return/touch/.test(e.type)||e.originalEvent&&/touch/.test(e.originalEvent.pointerType)},_click:function(e){this._isTouch(e)||1!==e.which||this._check()},_touchEnd:function(e){this._isTouch(e)&&(this._check(),e.preventDefault())}});a.plugin(_)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(e,define){define("kendo.color.min",["kendo.core.min"],e)}(function(){function e(e,t,n){void 0===n&&(n="0");for(var r=e.toString(16);t>r.length;)r=n+r;return r}function t(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function n(e,t){var r,l,u;if(null==e||"none"===e)return null;if(e instanceof s)return e;if(u=e.toLowerCase(),r=i(u))return u="transparent"===r[1]?new f(1,1,1,0):n(a[r[1]],t),u.match=[r[1]],u;if((r=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(u))?l=new o(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16),1):(r=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(u))?l=new o(parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16),1):(r=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(u))?l=new o(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),1):(r=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(u))?l=new o(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),parseFloat(r[4])):(r=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(u))?l=new f(parseFloat(r[1])/100,parseFloat(r[2])/100,parseFloat(r[3])/100,1):(r=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(u))&&(l=new f(parseFloat(r[1])/100,parseFloat(r[2])/100,parseFloat(r[3])/100,parseFloat(r[4]))),l)l.match=r;else if(!t)throw Error("Cannot parse color: "+u);return l}var r,a,i,s,f,o,l,u,h,d;window.kendo=window.kendo||{},r=kendo.Class,a={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},i=function(e){var t,n=Object.keys(a);return n.push("transparent"),t=RegExp("^("+n.join("|")+")(\\W|$)","i"),i=function(e){return t.exec(e)},t.exec(e)},s=r.extend({init:function(){},toHSV:function(){return this},toRGB:function(){return this},toHex:function(){return this.toBytes().toHex()},toBytes:function(){return this},toCss:function(){return"#"+this.toHex()},toCssRgba:function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat((+this.a).toFixed(3))+")"},toDisplay:function(){return this.toCssRgba()},equals:function(e){return e===this||null!==e&&this.toCssRgba()===n(e).toCssRgba()},diff:function(e){var t,n;return null===e?NaN:(t=this.toBytes(),n=e.toBytes(),Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2)))},clone:function(){var e=this.toBytes();return e===this&&(e=new o(e.r,e.g,e.b,e.a)),e}}),f=s.extend({init:function(e,t,n,r){s.fn.init.call(this),this.r=e,this.g=t,this.b=n,this.a=r},toHSV:function(){var e,t,n=this,r=n.r,a=n.g,i=n.b,s=Math.min(r,a,i),f=Math.max(r,a,i),o=f-s,u=f;return 0===o?new l(0,0,u,this.a):(0!==f?(t=o/f,e=r===f?(a-i)/o:a===f?2+(i-r)/o:4+(r-a)/o,e*=60,e<0&&(e+=360)):(t=0,e=-1),new l(e,t,u,this.a))},toHSL:function(){var e,t,n,r=this,a=r.r,i=r.g,s=r.b,f=Math.max(a,i,s),o=Math.min(a,i,s),l=(f+o)/2;if(f===o)e=t=0;else switch(n=f-o,t=l>.5?n/(2-f-o):n/(f+o),f){case a:e=(i-s)/n+(i<s?6:0);break;case i:e=(s-a)/n+2;break;case s:e=(a-i)/n+4}return new u(60*e,100*t,100*l,this.a)},toBytes:function(){return new o(255*this.r,255*this.g,255*this.b,this.a)}}),o=f.extend({init:function(e,t,n,r){f.fn.init.call(this,Math.round(e),Math.round(t),Math.round(n),r)},toRGB:function(){return new f(this.r/255,this.g/255,this.b/255,this.a)},toHSV:function(){return this.toRGB().toHSV()},toHSL:function(){return this.toRGB().toHSL()},toHex:function(){return e(this.r,2)+e(this.g,2)+e(this.b,2)},toBytes:function(){return this}}),l=s.extend({init:function(e,t,n,r){s.fn.init.call(this),this.h=e,this.s=t,this.v=n,this.a=r},toRGB:function(){var e,t,n,r,a,i,s,o,l=this,u=l.h,h=l.s,d=l.v;if(0===h)e=t=n=d;else switch(u/=60,r=Math.floor(u),a=u-r,i=d*(1-h),s=d*(1-h*a),o=d*(1-h*(1-a)),r){case 0:e=d,t=o,n=i;break;case 1:e=s,t=d,n=i;break;case 2:e=i,t=d,n=o;break;case 3:e=i,t=s,n=d;break;case 4:e=o,t=i,n=d;break;default:e=d,t=i,n=s}return new f(e,t,n,this.a)},toHSL:function(){return this.toRGB().toHSL()},toBytes:function(){return this.toRGB().toBytes()}}),u=s.extend({init:function(e,t,n,r){s.fn.init.call(this),this.h=e,this.s=t,this.l=n,this.a=r},toRGB:function(){var e,n,r,a,i,s=this.h/360,o=this.s/100,l=this.l/100;return 0===o?e=n=r=l:(a=l<.5?l*(1+o):l+o-l*o,i=2*l-a,e=t(i,a,s+1/3),n=t(i,a,s),r=t(i,a,s-1/3)),new f(e,n,r,this.a)},toHSV:function(){return this.toRGB().toHSV()},toBytes:function(){return this.toRGB().toBytes()}}),h=180,d=r.extend({init:function(e){var t,n,r,a,i,s,f,o=this;if(1===arguments.length)for(t=d.formats,n=this.resolveColor(e),r=0;r<t.length;r++)a=t[r].re,i=t[r].process,s=a.exec(n),s&&(f=i(s),o.r=f[0],o.g=f[1],o.b=f[2]);else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)},toHex:function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),r=this.b.toString(16);return"#"+e(t)+e(n)+e(r)},resolveColor:function(e){var t=e||"black";return"#"===t.charAt(0)&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase(),t=d.namedColors[t]||t},normalizeByte:function(e){return e<0||isNaN(e)?0:e>255?255:e},padDigit:function(e){return 1===e.length?"0"+e:e},brightness:function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},percBrightness:function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},isDark:function(){return this.percBrightness()<h}}),d.fromBytes=function(e,t,n,r){return new o(e,t,n,null!=r?r:1)},d.fromRGB=function(e,t,n,r){return new f(e,t,n,null!=r?r:1)},d.fromHSV=function(e,t,n,r){return new l(e,t,n,null!=r?r:1)},d.fromHSL=function(e,t,n,r){return new u(e,t,n,null!=r?r:1)},d.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],d.namedColors=a,kendo.deepExtend(kendo,{parseColor:n,namedColors:a,Color:d})},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(t,define){define("drawing/util.min",["kendo.core.min"],t)}(function(){return function(t){function e(){return t.Deferred()}function n(e){return t.when.apply(t,e)}function o(t,e){if(e)if("function"==typeof e.__proto__)t.__proto__=e;else for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}kendo.drawing.util=kendo.drawing.util||{},kendo.deepExtend(kendo.drawing.util,{createPromise:e,promiseAll:n,extendStatic:o})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("util/text-metrics.min",["kendo.core.min"],t)}(function(){!function(t){function e(t){return(t+"").replace(a,p)}function n(t){var e,n=[];for(e in t)n.push(e+t[e]);return n.sort().join("")}function o(t){var e,n=2166136261;for(e=0;e<t.length;++e)n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24),n^=t.charCodeAt(e);return n>>>0}function r(){return{width:0,height:0,baseline:0}}function i(t,e,n){return u.current.measure(t,e,n)}var s,a,p,c,h,u;window.kendo.util=window.kendo.util||{},s=kendo.Class.extend({init:function(t){this._size=t,this._length=0,this._map={}},put:function(t,e){var n=this._map,o={key:t,value:e};n[t]=o,this._head?(this._tail.newer=o,o.older=this._tail,this._tail=o):this._head=this._tail=o,this._length>=this._size?(n[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},get:function(t){var e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value}}),a=/\r?\n|\r|\t/g,p=" ",c={baselineMarkerSize:1},"undefined"!=typeof document&&(h=document.createElement("div"),h.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;"),u=kendo.Class.extend({init:function(e){this._cache=new s(1e3),this.options=t.extend({},c,e)},measure:function(t,i,s){var a,p,c,u,l,f,d,y,g;if(void 0===s&&(s={}),void 0===t||null===t)return r();if(a=n(i),p=o(t+a),c=this._cache.get(p))return c;u=r(),l=s.box||h,f=this._baselineMarker().cloneNode(!1);for(d in i)y=i[d],void 0!==y&&(l.style[d]=y);return g=s.normalizeText!==!1?e(t):t+"",l.textContent=g,l.appendChild(f),document.body.appendChild(l),g.length&&(u.width=l.offsetWidth-this.options.baselineMarkerSize,u.height=l.offsetHeight,u.baseline=f.offsetTop+this.options.baselineMarkerSize),u.width>0&&u.height>0&&this._cache.put(p,u),l.parentNode.removeChild(l),u},_baselineMarker:function(){var t=document.createElement("div");return t.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",t}}),u.current=new u,kendo.deepExtend(kendo.util,{LRUCache:s,TextMetrics:u,measureText:i,objectKey:n,hashKey:o,normalizeText:e})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/kendo-drawing.min",["drawing/util.min","kendo.color.min","util/text-metrics.min"],t)}(function(){!function(t){function e(t,e){return t.push.apply(t,e),t}function n(t){for(var e=[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],n="";t>0;)t<e[0]?e.shift():(n+=on[e[0]],t-=e[0]);return n}function o(t){return typeof t!==rn}function r(){return"kdef"+sn++}function i(t){return t/an}function s(t){var e,n,o="";for(e=0;e<t.length;e++)n=t.charCodeAt(e),n<128?o+=hn(n):n<2048?(o+=hn(192|n>>>6),o+=hn(128|63&n)):n<65536&&(o+=hn(224|n>>>12),o+=hn(128|n>>>6&63),o+=hn(128|63&n));return o}function a(t){for(var e,n,o,r,i,a,p,c="",h=0,u=s(t);h<u.length;)e=u.charCodeAt(h++),n=u.charCodeAt(h++),o=u.charCodeAt(h++),r=e>>2,i=(3&e)<<4|n>>4,a=(15&n)<<2|o>>6,p=63&o,isNaN(n)?a=p=64:isNaN(o)&&(p=64),c=c+un.charAt(r)+un.charAt(i)+un.charAt(a)+un.charAt(p);return c}function p(t){return o((t.x||{}).location)?{x:t.x.location,y:t.y.location}:{x:t.pageX||t.clientX||0,y:t.pageY||t.clientY||0}}function c(t){return void 0===t&&(t={}),t.touch?t.touch.initialTouch:t.target}function h(t){return""===t||null===t||"none"===t||"transparent"===t||!o(t)}function u(t){if(t)return t[t.length-1]}function l(t,e,n){return Math.max(Math.min(t,n),e)}function f(t,e){function n(t,n){for(var o=[],r=0,i=0,s=0;r<t.length&&i<n.length;)e(t[r],n[i])<=0?o[s++]=t[r++]:o[s++]=n[i++];return r<t.length&&o.push.apply(o,t.slice(r)),i<n.length&&o.push.apply(o,n.slice(i)),o}return t.length<2?t.slice():function o(t){var e,r,i;return t.length<=1?t:(e=Math.floor(t.length/2),r=t.slice(0,e),i=t.slice(e),r=o(r),i=o(i),n(r,i))}(t)}function d(t){return t*an}function y(t){return t?Math.pow(10,t):1}function g(t,e){var n=y(e);return Math.round(t*n)/n}function m(t,e){return o(t)?t:e}function v(t,e){var n,o,r;for(n in e)for(o=n.trim().split(" "),r=0;r<o.length;r++)t.addEventListener(o[r],e[n],!1)}function x(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}}function w(t,e){var n,o,r={},i=window.getComputedStyle(t)||{},s=Array.isArray(e)?e:[e];for(n=0;n<s.length;n++)o=s[n],r[o]=i[o];return r}function b(t){return isNaN(t)?t:t+"px"}function _(t,e){var n,r,i;return e?(n=e.width,r=e.height,o(n)&&(t.style.width=b(n)),o(r)&&(t.style.height=b(r)),void 0):(i=w(t,["width","height"]),{width:parseInt(i.width,10),height:parseInt(i.height,10)})}function C(t,e){var n,o,r;void 0===e&&(e={});for(n in e)for(o=n.trim().split(" "),r=0;r<o.length;r++)t.removeEventListener(o[r],e[n],!1)}function k(t){var e=w(t,["paddingLeft","paddingTop"]),n=e.paddingLeft,o=e.paddingTop;return{top:parseFloat(o),left:parseFloat(n)}}function T(t){var e,n=t.match(dn);return null===n||2!==n.length?fn.unit():(e=n[1].split(",").map(function(t){return parseFloat(t)}),new(Function.prototype.bind.apply(fn,[null].concat(e))))}function O(t){var e=getComputedStyle(t).transform;return"none"===e?fn.unit():T(e)}function M(t){var e,n,o;if(!t)return fn.unit();for(e=O(t),n=t.parentElement;n;)o=O(n),e=e.multiplyCopy(o),n=n.parentElement;return e.b=e.c=e.e=e.f=0,e}function S(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function E(t){return function(){return this[t]}}function P(t,e){var n,o,r;for(n=0;n<e.length;n++)o=e[n],r=o.charAt(0).toUpperCase()+o.substring(1,o.length),t["set"+r]=S(o),t["get"+r]=E(o)}function A(t){return t&&"function"==typeof t.matrix?t.matrix():t}function z(t){return null===t?null:t instanceof _n?t:new _n(t)}function N(t,e,n,o){var r=0,i=0;return o&&(r=Math.atan2(o.c*n,o.a*e),0!==o.b&&(i=Math.atan2(o.d*n,o.b*e))),{x:r,y:i}}function j(t){var e="_"+t;return function(t){return o(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}function R(t,e){for(var n=0;n<e.length;n++)t[e[n]]=j(e[n])}function B(t,e,n){return void 0===n&&(n=Nn),0===g(Math.abs(t-e),n)}function F(t,e,n){return t<e||B(t,e,n)}function L(t,e,n,o){var r=e.x-t.x,i=o.x-n.x,s=e.y-t.y,a=o.y-n.y,p=t.x-n.x,c=t.y-n.y,h=r*a-i*s,u=(r*c-s*p)/h,l=(i*c-a*p)/h;if(u>=0&&u<=1&&l>=0&&l<=1)return new xn(t.x+l*r,t.y+l*s)}function I(t,e,n,o,r,s){var a=g((r-t)/n,3),p=g((s-e)/o,3);return g(i(Math.atan2(p,a)))}function D(t){var e,n,o,r,s,a,p,c,h,u,l,f,y,m,v,x,w,b,_,C,k,T,O,M,S,E=t.x1,P=t.y1,A=t.x2,z=t.y2,N=t.rx,j=t.ry,R=t.largeArc,B=t.swipe,F=t.rotation;return void 0===F&&(F=0),e=d(F),n=Math.cos(e),o=Math.sin(e),r=n*(E-A)/2+o*(P-z)/2,s=-o*(E-A)/2+n*(P-z)/2,a=R!==B?1:-1,p=Math.pow(r,2),c=Math.pow(s,2),h=Math.pow(N,2),u=Math.pow(j,2),l=p/h+c/u,l>1&&(l=Math.sqrt(p/h+c/u),N=l*N,h=Math.pow(N,2),j=l*j,u=Math.pow(j,2)),f=a*Math.sqrt((h*u-h*c-u*p)/(h*c+u*p)),isNaN(f)&&(f=0),y=f*(N*s)/j,m=-f*(j*r)/N,v=n*y-o*m+(E+A)/2,x=o*y+n*m+(P+z)/2,w=(r-y)/N,b=(s-m)/j,_=-(r+y)/N,C=-(s+m)/j,k=(b>=0?1:-1)*i(Math.acos(w/Math.sqrt(w*w+b*b))),T=g((w*_+b*C)/(Math.sqrt(w*w+b*b)*Math.sqrt(_*_+C*C)),10),O=(w*C-b*_>=0?1:-1)*i(Math.acos(T)),!B&&O>0&&(O-=360),B&&O<0&&(O+=360),M=k+O,S=M>=0?1:-1,M=Math.abs(M)%360*S,{center:new xn(v,x),startAngle:k,endAngle:M,radiusX:N,radiusY:j,xRotation:F}}function H(t,e){for(var n=t;n<e;)n+=90;return n}function q(t,e,n){var o=i(Math.atan2(e.y-t.y,e.x-t.x)),r=n.transformCopy(z().rotate(-o,t));return r.x<t.x}function G(t,e,n){var o=1-t;return Math.pow(o,3)*n[0][e]+3*Math.pow(o,2)*t*n[1][e]+3*Math.pow(t,2)*o*n[2][e]+Math.pow(t,3)*n[3][e]}function $(t,e){return[-t[0][e]+3*t[1][e]-3*t[2][e]+t[3][e],3*(t[0][e]-2*t[1][e]+t[2][e]),3*(-t[0][e]+t[1][e]),t[0][e]]}function V(t){return t<0?-1:1}function U(t,e,n){var o=Math.sqrt(Math.pow(e,2)-4*t*n);return[(-e+o)/(2*t),(-e-o)/(2*t)]}function X(t,e,n,o){var r,i,s,a,p,c,h,u,l,f,d,y,m;return 0===t?U(e,n,o):(r=(3*t*n-Math.pow(e,2))/(3*Math.pow(t,2)),i=(2*Math.pow(e,3)-9*t*e*n+27*Math.pow(t,2)*o)/(27*Math.pow(t,3)),s=Math.pow(r/3,3)+Math.pow(i/2,2),a=new Un(0,1),p=-e/(3*t),s<0?(c=new Un(-i/2,Math.sqrt(-s)).nthRoot(3),h=new Un(-i/2,(-Math.sqrt(-s))).nthRoot(3)):(c=-i/2+Math.sqrt(s),c=new Un(V(c)*Math.pow(Math.abs(c),1/3)),h=-i/2-Math.sqrt(s),h=new Un(V(h)*Math.pow(Math.abs(h),1/3))),u=c.add(h),d=c.add(h).multiplyConstant(-.5),y=c.add(h.negate()).multiplyConstant(Math.sqrt(3)/2),l=d.add(a.multiply(y)),f=d.add(a.negate().multiply(y)),m=[],u.isReal()&&m.push(g(u.real+p,Nn)),l.isReal()&&m.push(g(l.real+p,Nn)),f.isReal()&&m.push(g(f.real+p,Nn)),m)}function Y(t,e,n,o,r){var i,s,a=$(t,o),p=X(a[0],a[1],a[2],a[3]-e[o]);for(s=0;s<p.length;s++)if(0<=p[s]&&p[s]<=1&&(i=G(p[s],n,t),Math.abs(i-e[n])<=r))return!0}function W(t,e,n){var o,r,i,s=$(t,"x"),a=X(s[0],s[1],s[2],s[3]-e.x),p=0;for(i=0;i<a.length;i++)o=G(a[i],"y",t),r=B(o,e.y)||o>e.y,r&&((0===a[i]||1===a[i])&&n.bottomRight().x>e.x||0<a[i]&&a[i]<1)&&p++;return p}function Q(t,e,n){var o,r,i,s,a,p;return t.x!==e.x&&(r=Math.min(t.x,e.x),i=Math.max(t.x,e.x),s=Math.min(t.y,e.y),a=Math.max(t.y,e.y),p=r<=n.x&&n.x<i,o=s===a?n.y<=s&&p:p&&(a-s)*((t.x-e.x)*(t.y-e.y)>0?n.x-r:i-n.x)/(i-r)+s-n.y>=0),o?1:0}function Z(t){var e="_"+t;return function(t){return o(t)?(this._observerField(e,xn.create(t)),this.geometryChange(),this):this[e]}}function J(t,e){for(var n=0;n<e.length;n++)t[e[n]]=Z(e[n])}function K(t){var e,n=t.length,o=pn,r=cn;for(e=0;e<n;e++)r=Math.max(r,t[e]),o=Math.min(o,t[e]);return{min:o,max:r}}function tt(t,e,n){var o,r=e?0:1;for(o=0;o<t.length;o+=2)t.splice(o+r,0,n)}function et(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}function nt(t,e,n){var o=e.clone().scale(2/3);return{controlOut:o.clone().translateWith(t.scaleCopy(Zn)),controlIn:o.translateWith(n.scaleCopy(Zn))}}function ot(t){var e=[];return t.replace(Kn,function(t,n){e.push(parseFloat(n))}),e}function rt(t,e){var n,o=new xn;return e.replace(Jn,function(e,r,i,s){var a=r.toLowerCase(),p=a===r,c=ot(i.trim());if(a===to&&(p?(o.x+=c[0],o.y+=c[1]):(o.x=c[0],o.y=c[1]),t.moveTo(o.x,o.y),c.length>2&&(a="l",c.splice(0,2))),Qn[a])Qn[a](t,{parameters:c,position:o,isRelative:p,previousCommand:n}),s&&s.toLowerCase()===eo&&t.close();else if(a!==to)throw Error("Error while parsing SVG path. Unsupported command: "+a);n=a}),t}function it(t,e,n){var o,r,i,s;for(r=0;r<t.length;r++)i=t[r],i.visible()&&(s=e?i.bbox(n):i.rawBBox(),s&&(o=o?bn.union(o,s):s));return o}function st(t,e){var n,o,r,i;for(o=0;o<t.length;o++)r=t[o],r.visible()&&(i=r.clippedBBox(e),i&&(n=n?bn.union(n,i):i));return n}function at(t,e,n){var o=n.transform()||z(),r=o.matrix();r.e+=t.x-e.origin.x,r.f+=t.y-e.origin.y,o.matrix(r),n.transform(o)}function pt(t,e,n,o,r){var i;return i="start"===n?e.origin[o]:"end"===n?e.origin[o]+e.size[r]-t:e.origin[o]+(e.size[r]-t)/2}function ct(t,e,n,o,r){var i;return i="start"===n?e.origin[o]+e.size[r]-t:"end"===n?e.origin[o]:e.origin[o]+(e.size[r]-t)/2}function ht(t,e,n,o,r){var i,s,a;for(i=0;i<t.length;i++)s=t[i].clippedBBox(),s&&(a=s.origin.clone(),a[o]=pt(s.size[r],e,n||"start",o,r),at(a,s,t[i]))}function ut(t,e,n){ht(t,e,n,"x","width")}function lt(t,e,n){ht(t,e,n,"y","height")}function ft(t,e,n,o){var r,i,s,a,p;if(t.length>1)for(r=new xn,i=t[0].bbox,s=1;s<t.length;s++)a=t[s].element,p=t[s].bbox,r[e]=i.origin[e]+i.size[o],r[n]=p.origin[n],at(r,p,a),p.origin[e]=r[e],i=p}function dt(t){var e,n,o,r=[];for(e=0;e<t.length;e++)n=t[e],o=n.clippedBBox(),o&&r.push({element:n,bbox:o});return r}function yt(t){ft(dt(t),"x","y","width")}function gt(t){ft(dt(t),"y","x","height")}function mt(t,e,n){var o,r,i,s,a=e.size[n],p=[],c=[],h=0,u=function(){c.push({element:o,bbox:r})};for(i=0;i<t.length;i++)o=t[i],r=o.clippedBBox(),r&&(s=r.size[n],h+s>a?c.length?(p.push(c),c=[],u(),h=s):(u(),p.push(c),c=[],h=0):(u(),h+=s));return c.length&&p.push(c),p}function vt(t,e,n,o,r){var i,s,a,p,c=mt(t,e,r),h=e.origin.clone(),u=[];for(i=0;i<c.length;i++)for(s=c[i],a=s[0],h[o]=a.bbox.origin[o],at(h,a.bbox,a.element),a.bbox.origin[n]=h[n],ft(s,n,o,r),u.push([]),p=0;p<s.length;p++)u[i].push(s[p].element);return u}function xt(t,e){return vt(t,e,"x","y","width")}function wt(t,e){return vt(t,e,"y","x","height")}function bt(t,e){var n,o,r,i,s=t.clippedBBox();s&&(n=s.size,o=e.size,(o.width<n.width||o.height<n.height)&&(r=Math.min(o.width/n.width,o.height/n.height),i=t.transform()||z(),i.scale(r,r),t.transform(i)))}function _t(t){return function(e){return o(e)?(this.options.set(t,e),this):this.options.get(t)}}function Ct(t,e){for(var n=0;n<e.length;n++)t[e[n]]=_t(e[n])}function kt(t){return.5-Math.cos(t*Math.PI)/2}function Tt(t){return t}function Ot(t,e,n,o){var r=1.70158,i=0,s=o;return 0===t?n:1===t?n+o:(i||(i=.5),s<Math.abs(o)?(s=o,r=i/4):r=i/(2*Math.PI)*Math.asin(o/s),s*Math.pow(2,-10*t)*Math.sin((+t-r)*(1.1*Math.PI)/i)+o+n)}function Mt(t,e){return o(e)&&null!==e?" "+t+'="'+e+'" ':""}function St(t){var e,n="";for(e=0;e<t.length;e++)n+=Mt(t[e][0],t[e][1]);return n}function Et(t){var e,n,r="";for(e=0;e<t.length;e++)n=t[e][1],o(n)&&(r+=t[e][0]+":"+n+";");if(""!==r)return r}function Pt(t,e){return"clip"===t||"fill"===t&&(!e||"Gradient"===e.nodeType)}function At(){var t,e=document.getElementsByTagName("base")[0],n=document.location.href,o="";return e&&!(Ke||{}).msie&&(t=n.indexOf("#"),t!==-1&&(n=n.substring(0,t)),o=n),o}function zt(t){if(!t||"string"!=typeof t||!ur.test(t))return t;var e=zt._element;return ur.lastIndex=0,t.replace(ur,function(t){return e.innerHTML=t,e.textContent||e.innerText})}function Nt(t){var e,n,o,r;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(i){}e&&(n=-e.e%1,o=-e.f%1,r=t.style,0===n&&0===o||(r.left=n+"px",r.top=o+"px"))}function jt(t,e){var n,o,r,i,s,a,p=e.segments;if(0!==p.length){for(n=p[0],o=n.anchor(),t.moveTo(o.x,o.y),r=1;r<p.length;r++)n=p[r],o=n.anchor(),i=p[r-1],s=i.controlOut(),a=n.controlIn(),s&&a?t.bezierCurveTo(s.x,s.y,a.x,a.y,o.x,o.y):t.lineTo(o.x,o.y);e.options.closed&&t.closePath()}}function Rt(t,e){return t._zIndex<e._zIndex?1:t._zIndex>e._zIndex?-1:0}function Bt(t,e){var n,o,r;for(n=0;n<e.length;n++)o=e[n],r=kendo.parseColor(o.color()),r.a*=o.opacity(),t.addColorStop(o.offset(),r.toCssRgba())}function Ft(t){var e,n,o,r=new Jo({skipBaseHref:!0}),i=t.clippedBBox(),s=t;return i&&(e=i.getOrigin(),n=new uo,n.transform(z().translate(-e.x,-e.y)),n.children.push(t),s=n),r.load([s]),o="<?xml version='1.0' ?><svg xmlns='"+Bo+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+r.render()+"</svg>",r.destroy(),o}function Lt(e,n){var o,r,i,s,a,p,c,h,u={width:"800px",height:"600px",cors:"Anonymous"},l=e,f=e.clippedBBox();return f&&(o=f.getOrigin(),l=new uo,l.transform(z().translate(-o.x,-o.y)),l.children.push(e),r=f.getSize(),u.width=r.width+"px",u.height=r.height+"px"),i=t.extend(u,n),s=document.createElement("div"),a=s.style,a.display="none",a.width=i.width,a.height=i.height,document.body.appendChild(s),p=new Rr(s,i),p.suspendTracking(),p.draw(l),c=p.image(),h=function(){p.destroy(),document.body.removeChild(s)},c.then(h,h),c}function It(t,e){var n=Ft(t);return e&&e.raw||(n="data:image/svg+xml;base64,"+a(n)),tn().resolve(n)}function Dt(t){return Array.prototype.slice.call(t)}function Ht(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function qt(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/\s+/).reduce(function(t,n){return n!=e&&t.push(n),t},[]).join(" ")}function Gt(t,e){Object.keys(e).forEach(function(n){t.style[n]=e[n]})}function $t(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(t+"");){if(1==t.nodeType&&Jr(t,e))return t;t=t.parentNode}}function Vt(t){return"number"==typeof t?{x:t,y:t}:Array.isArray(t)?{x:t[0],y:t[1]}:{x:t.x,y:t.y}}function Ut(t,e){function n(t){var n=new uo,o=t.getBoundingClientRect();return _e(n,[s.x,0,0,s.y,-o.left*s.x,-o.top*s.y]),Yr._clipbox=!1,Yr._matrix=fn.unit(),Yr._stackingContext={element:t,group:n},Yr._avoidLinks=e.avoidLinks===!0?"a":e.avoidLinks,Ht(t,"k-pdf-export"),Ve(t,n),qt(t,"k-pdf-export"),n}function o(t){if(null!=t)return"string"==typeof t&&(t=kendo.template(t.replace(/^\s+|\s+$/g,""))),"function"==typeof t?function(e){var n,o=t(e);return o&&"string"==typeof o&&(n=document.createElement("div"),n.innerHTML=o,o=n.firstElementChild),o}:function(){return t.cloneNode(!0)}}function r(t,e,n,r,i,s,a){function p(){("-"!=n||i)&&h(w);var e=f();w.parentNode.insertBefore(e,w),e.appendChild(w),m&&x.forEach(function(t,e){var n=m({element:t,pageNum:e+1,totalPages:x.length});n&&t.appendChild(n)}),re(x,function(){oe(x,function(){t({pages:x,container:b})})})}function c(t){if(a.keepTogether&&Jr(t,a.keepTogether)&&t.offsetHeight<=i-_)return!0;var e=t.tagName;return!(/^h[1-6]$/i.test(e)&&t.offsetHeight>=i-_)&&(t.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(t.tagName))}function h(t){var e,o,r,s,a,p,u;if("TABLE"==t.tagName&&Gt(t,{tableLayout:"fixed"}),!c(t)){for(e=ue(t),o=parseFloat(le(e,"padding-bottom")),r=parseFloat(le(e,"border-bottom-width")),s=_,_+=o+r,a=!0,p=t.firstChild;p;p=p.nextSibling)if(1==p.nodeType){if(a=!1,Jr(p,n)){l(p);continue}if(!i){h(p);continue}if(!/^(?:static|relative)$/.test(le(ue(p),"position")))continue;u=d(p),1==u?l(p):u&&c(p)?l(p):h(p)}else 3==p.nodeType&&i&&(y(p,a),a=!1);_=s}}function u(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 l(t){var e,n,o,r,i,s,p;return 1==t.nodeType&&t!==w&&u(t)?l(t.parentNode):(e=$t(t,"table"),n=e&&e.querySelector("colgroup"),a.repeatHeaders&&(o=e&&e.querySelector("thead"),r=$t(t,".k-grid.k-widget"),r&&r.querySelector(".k-auto-scrollable")&&(i=r.querySelector(".k-grid-header"))),s=f(),p=v.createRange(),p.setStartBefore(w),p.setEndBefore(t),s.appendChild(p.extractContents()),w.parentNode.insertBefore(s,w),g(t.parentNode),e&&(e=$t(t,"table"),a.repeatHeaders&&o&&e.insertBefore(o.cloneNode(!0),e.firstChild),n&&e.insertBefore(n.cloneNode(!0),e.firstChild)),void(a.repeatHeaders&&i&&(r=$t(t,".k-grid.k-widget"),r.insertBefore(i.cloneNode(!0),r.firstChild))))}function f(){var t=v.createElement("KENDO-PDF-PAGE");return Gt(t,{display:"block",boxSizing:"content-box",width:r?r+"px":"auto",padding:s.top+"px "+s.right+"px "+s.bottom+"px "+s.left+"px",position:"relative",height:i?i+"px":"auto",overflow:i||r?"hidden":"visible",clear:"both"}),a&&a.pageClassName&&(t.className=a.pageClassName),x.push(t),t}function d(t){var e,n,o=t.getBoundingClientRect();return 0===o.width||0===o.height?0:(e=w.getBoundingClientRect().top,n=i-_,o.height>n?3:o.top-e>n?1:o.bottom-e>n?2:0)}function y(t,e){var n,o,r,i,s;/\S/.test(t.data)&&(n=t.data.length,o=v.createRange(),o.selectNodeContents(t),r=d(o),r&&(i=t,1==r?l(e?t.parentNode:t):(!function a(e,n,r){return o.setEnd(t,n),e==n||n==r?n:d(o)?a(e,e+n>>1,n):a(n,n+r>>1,r)}(0,n>>1,n),!/\S/.test(""+o)&&e?l(t.parentNode):(i=t.splitText(o.endOffset),s=f(),o.setStartBefore(w),s.appendChild(o.extractContents()),w.parentNode.insertBefore(s,w),g(i.parentNode))),y(i)))}function g(t){var e=$t(t,"li");e&&(e.setAttribute("kendo-no-bullet","1"),g(e.parentNode))}var m=o(a.template),v=e.ownerDocument,x=[],w=a._destructive?e:Kr(e),b=v.createElement("KENDO-PDF-DOCUMENT"),_=0;Dt(w.querySelectorAll("tfoot")).forEach(function(t){t.parentNode.appendChild(t)}),Dt(w.querySelectorAll("ol")).forEach(function(t){Dt(t.children).forEach(function(t,e){t.setAttribute("kendo-split-index",e)})}),Gt(b,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),r&&(Gt(b,{width:r+"px",paddingLeft:s.left+"px",paddingRight:s.right+"px"}),Gt(w,{overflow:"hidden"})),e.parentNode.insertBefore(b,e),b.appendChild(w),a.beforePageBreak?setTimeout(function(){a.beforePageBreak(b,p)},15):setTimeout(p,15)}var i,s;if(e||(e={}),i=tn(),!t)return i.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.defineFont(Yt(t.ownerDocument)),s=Vt(e.scale||1),re(t,function(){var o,a=e&&e.forcePageBreak,p=e&&e.paperSize&&"auto"!=e.paperSize,c=kendo.pdf.getPaperOptions(function(t,n){return"paperSize"==t?p?e[t]:"A4":t in e?e[t]:n}),h=p&&c.paperSize[0],u=p&&c.paperSize[1],l=e.margin&&c.margin,f=!!l;a||u?(l||(l={left:0,top:0,right:0,bottom:0}),h&&(h/=s.x),u&&(u/=s.y),l.left/=s.x,l.right/=s.x,l.top/=s.y,l.bottom/=s.y,o=new uo({pdf:{multiPage:!0,paperSize:p?c.paperSize:"auto",_ignoreMargin:f}}),r(function(t){if(e.progress){var r=!1,s=0;!function a(){if(s<t.pages.length){var p=n(t.pages[s]);o.append(p),e.progress({page:p,pageNum:++s,totalPages:t.pages.length,cancel:function(){r=!0}}),r?t.container.parentNode.removeChild(t.container):setTimeout(a)}else t.container.parentNode.removeChild(t.container),i.resolve(o)}()}else t.pages.forEach(function(t){o.append(n(t))}),t.container.parentNode.removeChild(t.container),i.resolve(o)},t,a,h?h-l.left-l.right:null,u?u-l.top-l.bottom:null,l,e)):i.resolve(n(t))}),i}function Xt(t){var e=new uo;return Yr._clipbox=!1,Yr._matrix=fn.unit(),Yr._stackingContext={element:t,group:e},se(t,ue(t),e),3==t.firstChild.nodeType?Ge(t,t.firstChild,e):Ne(t,e),ae(),e}function Yt(t){function e(t){if(t){var e=null;try{e=t.cssRules}catch(n){}e&&o(t,e)}}function n(t){var e,n=le(t.style,"src");return n?ei(n).reduce(function(t,e){var n=ni(e);return n&&t.push(n),t},[]):(e=ni(t.cssText),e?[e]:[])}function o(t,o){var i,s,a,p,c,h,u;for(i=0;i<o.length;++i)switch(s=o[i],s.type){case 3:e(s.styleSheet);break;case 5:a=s.style,p=ei(le(a,"font-family")),c=/^([56789]00|bold)$/i.test(le(a,"font-weight")),h="italic"==le(a,"font-style"),u=n(s),u.length>0&&r(t,p,c,h,u[0])}}function r(t,e,n,o,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"),o&&(t+="|italic"),i[t]=r})}var i,s;for(null==t&&(t=document),i={},s=0;s<t.styleSheets.length;++s)e(t.styleSheets[s]);return i}function Wt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Qt(t){return t="_counter_"+t,Yr[t]}function Zt(t){var e=[],n=Yr;for(t="_counter_"+t;n;)Wt(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}function Jt(t,e){var n=Yr;for(t="_counter_"+t;n&&!Wt(n,t);)n=Object.getPrototypeOf(n);n||(n=Yr._root),n[t]=(n[t]||0)+(null==e?1:e)}function Kt(t,e){t="_counter_"+t,Yr[t]=null==e?0:e}function te(t,e,n){var o,r,i;for(o=0;o<t.length;)r=t[o++],i=parseFloat(t[o]),isNaN(i)?e(r,n):(e(r,i),++o)}function ee(t){var e,n=le(t,"counter-reset");n&&te(ei(n,/^\s+/),Kt,0),e=le(t,"counter-increment"),e&&te(ei(e,/^\s+/),Jt,1)}function ne(t,e){var n=kendo.parseColor(t,!0);return n&&(n=n.toRGB(),e?n=n.toCssRgba():0===n.a&&(n=null)),n}function oe(t,e){function n(){--o<=0&&e()}var o=0;t.forEach(function(t){var e,r,i=t.querySelectorAll("img");for(e=0;e<i.length;++e)r=i[e],r.complete||(o++,r.onload=r.onerror=n)}),o||n()}function re(t,e){function n(t){Xr[t]||(Xr[t]=!0,s.push(t))}function o(t){/^img$/i.test(t.tagName)&&n(t.src),ti(le(ue(t),"background-image")).forEach(function(t){"url"==t.type&&n(t.url)}),t.children&&Dt(t.children).forEach(o)}function r(){--i<=0&&e()}var i,s=[];Array.isArray(t)?t.forEach(o):o(t),i=s.length,0===i&&r(),s.forEach(function(t){var e=Xr[t]=new window.Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?r():(e.onload=r,e.onerror=function(){Xr[t]=null,r()})})}function ie(t){var e,n="";do e=t%26,n=String.fromCharCode(97+e)+n,t=Math.floor(t/26);while(t>0);return n}function se(t,e,n){var o,r;Yr=Object.create(Yr),Yr[t.tagName.toLowerCase()]={element:t,style:e},o=le(e,"text-decoration"),o&&"none"!=o&&(r=le(e,"color"),o.split(/\s+/g).forEach(function(t){Yr[t]||(Yr[t]=r)})),he(e)&&(Yr._stackingContext={element:t,group:n})}function ae(){Yr=Object.getPrototypeOf(Yr)}function pe(t){if(null!=Yr._clipbox){var e=t.bbox(Yr._matrix);Yr._clipbox=Yr._clipbox?bn.intersect(Yr._clipbox,e):e}}function ce(){var t=Yr._clipbox;return null==t||(t?0===t.width()||0===t.height():void 0)}function he(t){function e(e){return le(t,e)}if("none"!=e("transform")||"static"!=e("position")||"auto"!=e("z-index")||e("opacity")<1)return!0}function ue(t,e){return window.getComputedStyle(t,e||null)}function le(t,e,n){var o=t.getPropertyValue(e);return null!=o&&""!==o||(Vr.webkit?o=t.getPropertyValue("-webkit-"+e):Vr.mozilla?o=t.getPropertyValue("-moz-"+e):Vr.opera?o=t.getPropertyValue("-o-"+e):Qr&&(o=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==o||""===o)?n:o}function fe(t,e,n,o){t.setProperty(e,n,o),Vr.webkit?t.setProperty("-webkit-"+e,n,o):Vr.mozilla?t.setProperty("-moz-"+e,n,o):Vr.opera?t.setProperty("-o-"+e,n,o):Qr&&(t.setProperty("-ms-"+e,n,o),e="ms"+e.replace(/(^|-)([a-z])/g,function(t,e,n){return e+n.toUpperCase()}),t[e]=n)}function de(t,e){return e="border-"+e,{width:parseFloat(le(t,e+"-width")),style:le(t,e+"-style"),color:ne(le(t,e+"-color"),!0)}}function ye(t,e){var n=t.style.cssText,o=e();return t.style.cssText=n,o}function ge(t,e){var n=le(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),Te({x:n[0],y:n[1]})}function me(t){var e=t.getBoundingClientRect();return e=ve(e,"border-*-width",t),e=ve(e,"padding-*",t)}function ve(t,e,n){var o,r,i,s,a;return"string"==typeof e?(o=ue(n),r=parseFloat(le(o,e.replace("*","top"))),i=parseFloat(le(o,e.replace("*","right"))),s=parseFloat(le(o,e.replace("*","bottom"))),a=parseFloat(le(o,e.replace("*","left")))):"number"==typeof e&&(r=i=s=a=e),{top:t.top+r,right:t.right-i,bottom:t.bottom-s,left:t.left+a,width:t.right-t.left-i-a,height:t.bottom-t.top-s-r}}function xe(t){var e,n,o=le(t,"transform");return"none"==o?null:(e=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(o),e?(n=le(t,"transform-origin"),e=e[1].split(/\s*,\s*/g).map(parseFloat),n=n.split(/\s+/g).map(parseFloat),{matrix:e,origin:n}):void 0)}function we(t){return 180*t/Math.PI%360}function be(t){var e=parseFloat(t);return/grad$/.test(t)?Math.PI*e/200:/rad$/.test(t)?e:/turn$/.test(t)?Math.PI*e*2:/deg$/.test(t)?Math.PI*e/180:void 0}function _e(t,e){return e=new fn(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function Ce(t,e){t.clip(e)}function ke(t,e,n,o){for(var r=new Fn([e,n],o).curvePoints(),i=1;i<r.length;)t.curveTo(r[i++],r[i++],r[i++])}function Te(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function Oe(t,e,n,o,r){var i=Math.max(0,e.x),s=Math.max(0,e.y),a=Math.max(0,n.x),p=Math.max(0,n.y),c=Math.max(0,o.x),h=Math.max(0,o.y),u=Math.max(0,r.x),l=Math.max(0,r.y),f=Math.min(t.width/(i+a),t.height/(p+h),t.width/(c+u),t.height/(l+s));return f<1&&(i*=f,s*=f,a*=f,p*=f,c*=f,h*=f,u*=f,l*=f),{tl:{x:i,y:s},tr:{x:a,y:p},br:{x:c,y:h},bl:{x:u,y:l}}}function Me(t,e,n){var o,r,i,s,a,p,c,h,u=ue(t),l=ge(u,"top-left"),f=ge(u,"top-right"),d=ge(u,"bottom-left"),y=ge(u,"bottom-right");return"padding"!=n&&"content"!=n||(o=de(u,"top"),r=de(u,"right"),i=de(u,"bottom"),s=de(u,"left"),l.x-=s.width,l.y-=o.width,f.x-=r.width,f.y-=o.width,y.x-=r.width,y.y-=i.width,d.x-=s.width,d.y-=i.width,"content"==n&&(a=parseFloat(le(u,"padding-top")),p=parseFloat(le(u,"padding-right")),c=parseFloat(le(u,"padding-bottom")),h=parseFloat(le(u,"padding-left")),l.x-=h,l.y-=a,f.x-=p,f.y-=a,y.x-=p,y.y-=c,d.x-=h,d.y-=c)),"number"==typeof n&&(l.x-=n,l.y-=n,f.x-=n,f.y-=n,y.x-=n,y.y-=n,d.x-=n,d.y-=n),Se(e,l,f,y,d)}function Se(t,e,n,o,r){var i=Oe(t,e,n,o,r),s=i.tl,a=i.tr,p=i.br,c=i.bl,h=new no({fill:null,stroke:null});return h.moveTo(t.left,t.top+s.y),s.x&&ke(h,t.left+s.x,t.top+s.y,{startAngle:-180,endAngle:-90,radiusX:s.x,radiusY:s.y}),h.lineTo(t.right-a.x,t.top),a.x&&ke(h,t.right-a.x,t.top+a.y,{startAngle:-90,endAngle:0,radiusX:a.x,radiusY:a.y}),h.lineTo(t.right,t.bottom-p.y),p.x&&ke(h,t.right-p.x,t.bottom-p.y,{startAngle:0,endAngle:90,radiusX:p.x,radiusY:p.y}),h.lineTo(t.left+c.x,t.bottom),c.x&&ke(h,t.left+c.x,t.bottom-c.y,{startAngle:90,endAngle:180,radiusX:c.x,radiusY:c.y}),h.close()}function Ee(t,e){var o=parseFloat(t)+"";switch(e){case"decimal-leading-zero":return o.length<2&&(o="0"+o),o;case"lower-roman":return n(t).toLowerCase();case"upper-roman":return n(t).toUpperCase();case"lower-latin":case"lower-alpha":return ie(t-1);case"upper-latin":case"upper-alpha":return ie(t-1).toUpperCase();default:return o}}function Pe(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),Zt(t).map(function(t){return Ee(t,e)}).join(n)):Ee(Qt(t)||0,e)}var o,r=ei(e,/^\s+/),i=[];return r.forEach(function(e){var r;(o=/^\s*(["'])(.*)\1\s*$/.exec(e))?i.push(o[2].replace(/\\([0-9a-f]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))})):(o=/^\s*counter\((.*?)\)\s*$/.exec(e))?(r=ei(o[1]),i.push(n(r[0],r[1]))):(o=/^\s*counters\((.*?)\)\s*$/.exec(e))?(r=ei(o[1]),i.push(n(r[0],r[2],r[1]))):i.push((o=/^\s*attr\((.*?)\)\s*$/.exec(e))?t.getAttribute(o[1])||"":e)}),i.join("")}function Ae(t){var e,n;if(t.cssText)return t.cssText;for(e=[],n=0;n<t.length;++n)e.push(t[n]+": "+le(t,t[n]));return e.join(";\n")}function ze(t,e){function n(e,n){var r,i=ue(t,e),s=i.content;ee(i),s&&"normal"!=s&&"none"!=s&&"0px"!=i.width&&(r=t.ownerDocument.createElement(Ur),r.style.cssText=Ae(i),r.textContent=Pe(t,s),t.insertBefore(r,n),o.push(r))}var o,r;return t.tagName==Ur?void Ne(t,e):(o=[],n(":before",t.firstChild),n(":after",null),void(o.length>0?(r=t.className,t.className+=" kendo-pdf-hide-pseudo-elements",Ne(t,e),t.className=r,o.forEach(function(e){t.removeChild(e)})):Ne(t,e)))}function Ne(t,e){function o(e){var n,o,r,i,s,a;if(/^td$/i.test(t.tagName)&&(n=Yr.table,n&&"collapse"==le(n.style,"border-collapse"))){if(o=de(n.style,"left").width,r=de(n.style,"top").width,0===o&&0===r)return e;if(i=n.element.getBoundingClientRect(),s=n.element.rows[0].cells[0],a=s.getBoundingClientRect(),a.top==i.top||a.left==i.left)return Dt(e).map(function(t){return{left:t.left+o,top:t.top+r,right:t.right+o,bottom:t.bottom+r,height:t.height,width:t.width}})}return e}function r(t,n,o,r,i,s,a,p){function c(e,n,r){var i=Math.PI/2*e/(e+o),s={x:n.x-e,y:n.y-o},a=new no({fill:{color:t},stroke:null}).moveTo(0,0);_e(a,r),ke(a,0,n.y,{startAngle:-90,endAngle:-we(i),radiusX:n.x,radiusY:n.y}),s.x>0&&s.y>0?(a.lineTo(s.x*Math.cos(i),n.y-s.y*Math.sin(i)),ke(a,0,n.y,{startAngle:-we(i),endAngle:-90,radiusX:s.x,radiusY:s.y,anticlockwise:!0})):s.x>0?a.lineTo(s.x,o).lineTo(0,o):a.lineTo(s.x,o).lineTo(s.x,0),u.append(a.close())}if(!(o<=0)){var h,u=new uo;_e(u,p),e.append(u),Te(s),Te(a),h=new no({fill:{color:t},stroke:null}),u.append(h),h.moveTo(s.x?Math.max(s.x,r):0,0).lineTo(n-(a.x?Math.max(a.x,i):0),0).lineTo(n-Math.max(a.x,i),o).lineTo(Math.max(s.x,r),o).close(),s.x&&c(r,s,[-1,0,0,1,s.x,0]),a.x&&c(i,a,[1,0,0,1,n-a.x,0])}}function i(t){var n,o,r=new uo;for(Ce(r,Se(t,M,S,P,E)),e.append(r),z&&(n=new no({fill:{color:z.toCssRgba()},stroke:null}),n.moveTo(t.left,t.top).lineTo(t.right,t.top).lineTo(t.right,t.bottom).lineTo(t.left,t.bottom).close(),r.append(n)),o=c.length;--o>=0;)s(r,t,c[o],h[o%h.length],u[o%u.length],l[o%l.length],f[o%f.length])}function s(e,n,o,r,i,s,a){ function p(e,n,o,p,c){function h(){for(;g.origin.x>n.left;)g.origin.x-=o}function u(){for(;g.origin.y>n.top;)g.origin.y-=p}function l(){for(;g.origin.x<n.right;)c(e,g.clone()),g.origin.x+=o}var f,d,y,g,m,v=o/p,x=n;switch("content-box"==s?(x=ve(x,"border-*-width",t),x=ve(x,"padding-*",t)):"padding-box"==s&&(x=ve(x,"border-*-width",t)),/^\s*auto(\s+auto)?\s*$/.test(a)||("contain"==a?(f=Math.min(x.width/o,x.height/p),o*=f,p*=f):"cover"==a?(f=Math.max(x.width/o,x.height/p),o*=f,p*=f):(d=a.split(/\s+/g),o=/%$/.test(d[0])?x.width*parseFloat(d[0])/100:parseFloat(d[0]),p=1==d.length||"auto"==d[1]?o/v:/%$/.test(d[1])?x.height*parseFloat(d[1])/100:parseFloat(d[1]))),y=i+""){case"bottom":y="50% 100%";break;case"top":y="50% 0";break;case"left":y="0 50%";break;case"right":y="100% 50%";break;case"center":y="50% 50%"}if(y=y.split(/\s+/),1==y.length&&(y[1]="50%"),y[0]=/%$/.test(y[0])?parseFloat(y[0])/100*(x.width-o):parseFloat(y[0]),y[1]=/%$/.test(y[1])?parseFloat(y[1])/100*(x.height-p):parseFloat(y[1]),g=new bn([x.left+y[0],x.top+y[1]],[o,p]),"no-repeat"==r)c(e,g);else if("repeat-x"==r)h(),l();else if("repeat-y"==r)for(u();g.origin.y<n.bottom;)c(e,g.clone()),g.origin.y+=p;else if("repeat"==r)for(h(),u(),m=g.origin.clone();g.origin.y<n.bottom;)g.origin.x=m.x,l(),g.origin.y+=p}if(o&&"none"!=o)if("url"==o.type){if(/^url\(\"data:image\/svg/i.test(o.url))return;var c=Xr[o.url];c&&c.width>0&&c.height>0&&p(e,n,c.width,c.height,function(t,e){t.append(new co(o.url,e))})}else{if("linear"!=o.type)return;p(e,n,n.width,n.height,je(o))}}function a(){function o(n){ye(t,function(){t.style.position="relative";var o=t.ownerDocument.createElement(Ur);o.style.position="absolute",o.style.boxSizing="border-box","outside"==i?(o.style.width="6em",o.style.left="-6.8em",o.style.textAlign="right"):o.style.left="0px",n(o),t.insertBefore(o,t.firstChild),Ve(o,e),t.removeChild(o)})}function r(e){var n,o=t.parentNode.children,r=t.getAttribute("kendo-split-index");if(null!=r)return e(0|r,o.length);for(n=0;n<o.length;++n)if(o[n]===t)return e(n,o.length)}var i,s=le(_,"list-style-type");if("none"!=s)switch(i=le(_,"list-style-position"),s){case"circle":case"disc":case"square":o(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:"■"}[s]});break;case"decimal":case"decimal-leading-zero":o(function(t){r(function(e){++e,"decimal-leading-zero"==s&&e<10&&(e="0"+e),t.innerHTML=e+"."})});break;case"lower-roman":case"upper-roman":o(function(t){r(function(e){e=n(e+1),"upper-roman"==s&&(e=e.toUpperCase()),t.innerHTML=e+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":o(function(t){r(function(e){e=ie(e),/^upper/i.test(s)&&(e=e.toUpperCase()),t.innerHTML=e+"."})})}}function p(n,o,s){function a(t){return{x:t.y,y:t.x}}var p,c,h,u,l,f,d,y;if(0!==n.width&&0!==n.height&&(i(n),p=O.width>0&&(o&&"ltr"==A||s&&"rtl"==A),c=k.width>0&&(s&&"ltr"==A||o&&"rtl"==A),0!==C.width||0!==O.width||0!==k.width||0!==T.width)){if(C.color==k.color&&C.color==T.color&&C.color==O.color&&C.width==k.width&&C.width==T.width&&C.width==O.width&&p&&c)return n=ve(n,C.width/2),h=Me(t,n,C.width/2),h.options.stroke={color:C.color,width:C.width},void e.append(h);if(0===M.x&&0===S.x&&0===P.x&&0===E.x&&C.width<2&&O.width<2&&k.width<2&&T.width<2)return C.width>0&&e.append(new no({stroke:{width:C.width,color:C.color}}).moveTo(n.left,n.top+C.width/2).lineTo(n.right,n.top+C.width/2)),T.width>0&&e.append(new no({stroke:{width:T.width,color:T.color}}).moveTo(n.left,n.bottom-T.width/2).lineTo(n.right,n.bottom-T.width/2)),p&&e.append(new no({stroke:{width:O.width,color:O.color}}).moveTo(n.left+O.width/2,n.top).lineTo(n.left+O.width/2,n.bottom)),void(c&&e.append(new no({stroke:{width:k.width,color:k.color}}).moveTo(n.right-k.width/2,n.top).lineTo(n.right-k.width/2,n.bottom)));u=Oe(n,M,S,P,E),l=u.tl,f=u.tr,d=u.br,y=u.bl,r(C.color,n.width,C.width,O.width,k.width,l,f,[1,0,0,1,n.left,n.top]),r(T.color,n.width,T.width,k.width,O.width,d,y,[-1,0,0,-1,n.right,n.bottom]),r(O.color,n.height,O.width,T.width,C.width,a(y),a(l),[0,-1,1,0,n.left,n.bottom]),r(k.color,n.height,k.width,C.width,T.width,a(f),a(d),[0,1,-1,0,n.right,n.top])}}var c,h,u,l,f,d,y,g,m,v,x,w,b,_=ue(t),C=de(_,"top"),k=de(_,"right"),T=de(_,"bottom"),O=de(_,"left"),M=ge(_,"top-left"),S=ge(_,"top-right"),E=ge(_,"bottom-left"),P=ge(_,"bottom-right"),A=le(_,"direction"),z=le(_,"background-color");if(z=ne(z),c=ti(le(_,"background-image")),h=ei(le(_,"background-repeat")),u=ei(le(_,"background-position")),l=ei(le(_,"background-origin")),f=ei(le(_,"background-size")),Qr&&(d=_.textOverflow,"ellipsis"==d&&(y=t.style.textOverflow,t.style.textOverflow="clip")),Vr.msie&&Vr.version<10&&(u=ei(t.currentStyle.backgroundPosition)),g=ve(t.getBoundingClientRect(),"border-*-width",t),function(){var t,n,o,r,i,s,a,p=le(_,"clip"),c=/^\s*rect\((.*)\)\s*$/.exec(p);c&&(t=c[1].split(/[ ,]+/g),n="auto"==t[0]?g.top:parseFloat(t[0])+g.top,o="auto"==t[1]?g.right:parseFloat(t[1])+g.left,r="auto"==t[2]?g.bottom:parseFloat(t[2])+g.top,i="auto"==t[3]?g.left:parseFloat(t[3])+g.left,s=new uo,a=(new no).moveTo(i,n).lineTo(o,n).lineTo(o,r).lineTo(i,r).close(),Ce(s,a),e.append(s),e=s,pe(a))}(),w=le(_,"display"),"table-row"==w)for(m=[],v=0,x=t.children;v<x.length;++v)m.push(x[v].getBoundingClientRect());else m=t.getClientRects(),1==m.length&&(m=[t.getBoundingClientRect()]);for(m=o(m),v=0;v<m.length;++v)p(m[v],0===v,v==m.length-1);return"A"==t.tagName&&t.href&&!/^#?$/.test(t.getAttribute("href"))&&(Yr._avoidLinks&&Jr(t,Yr._avoidLinks)||(b=document.createRange(),b.selectNodeContents(t),Dt(b.getClientRects()).forEach(function(n){var o=new uo;o._pdfLink={url:t.href,top:n.top,right:n.right,bottom:n.bottom,left:n.left},e.append(o)}))),m.length>0&&"list-item"==w&&!t.getAttribute("kendo-no-bullet")&&a(m[0]),function(){function n(){var n=Me(t,g,"padding"),o=new uo;Ce(o,n),e.append(o),e=o,pe(n)}Le(t)?n():/^(hidden|auto|scroll)/.test(le(_,"overflow"))?n():/^(hidden|auto|scroll)/.test(le(_,"overflow-x"))?n():/^(hidden|auto|scroll)/.test(le(_,"overflow-y"))&&n()}(),Re(t,e)||qe(t,e),Qr&&"ellipsis"==d&&(t.style.textOverflow=y),e}function je(t){return function(e,n){var o,r,i,s,a,p,c,h,u,l,f,d,y,g=n.width(),m=n.height();switch(t.type){case"linear":switch(o=null!=t.angle?t.angle:Math.PI,t.to){case"top":o=0;break;case"left":o=-Math.PI/2;break;case"bottom":o=Math.PI;break;case"right":o=Math.PI/2;break;case"top left":case"left top":o=-Math.atan2(m,g);break;case"top right":case"right top":o=Math.atan2(m,g);break;case"bottom left":case"left bottom":o=Math.PI+Math.atan2(m,g);break;case"bottom right":case"right bottom":o=Math.PI-Math.atan2(m,g)}t.reverse&&(o-=Math.PI),o%=2*Math.PI,o<0&&(o+=2*Math.PI),r=Math.abs(g*Math.sin(o))+Math.abs(m*Math.cos(o)),i=Math.atan(g*Math.tan(o)/m),s=Math.sin(i),a=Math.cos(i),p=Math.abs(s)+Math.abs(a),c=p/2*s,h=p/2*a,o>Math.PI/2&&o<=3*Math.PI/2&&(c=-c,h=-h),u=[],l=0,f=t.stops.map(function(e,n){var o,i=e.percent;return i?i=parseFloat(i)/100:e.length?i=parseFloat(e.length)/r:0===n?i=0:n==t.stops.length-1&&(i=1),o={color:e.color.toCssRgba(),offset:i},null!=i?(l=i,u.forEach(function(t,e){var n=t.stop;n.offset=t.left+(l-t.left)*(e+1)/(u.length+1)}),u=[]):u.push({left:l,stop:o}),o}),d=[.5-c,.5+h],y=[.5+c,.5-h],e.append(no.fromRect(n).stroke(null).fill(new ko({start:d,end:y,stops:f,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}function Re(t,e){var n,o,r,i;return t._kendoExportVisual?n=t._kendoExportVisual():window.kendo&&window.kendo.jQuery&&t.getAttribute(window.kendo.attr("role"))&&(o=window.kendo.widgetInstance(window.kendo.jQuery(t)),o&&(o.exportDOMVisual||o.exportVisual)&&(n=o.exportDOMVisual?o.exportDOMVisual():o.exportVisual())),!!n&&(r=new uo,r.children.push(n),i=t.getBoundingClientRect(),r.transform(z().translate(i.left,i.top)),e.append(r),!0)}function Be(t,e,n){var o=me(t),r=new bn([o.left,o.top],[o.width,o.height]),i=new co(e,r);Ce(i,Me(t,o,"content")),n.append(i)}function Fe(t,e){var n=ue(t),o=ue(e),r=parseFloat(le(n,"z-index")),i=parseFloat(le(o,"z-index")),s=le(n,"position"),a=le(o,"position");return isNaN(r)&&isNaN(i)?/static|absolute/.test(s)&&/static|absolute/.test(a)?0:"static"==s?-1:"static"==a?1:0:isNaN(r)?0===i?0:i>0?-1:1:isNaN(i)?0===r?0:r>0?1:-1:parseFloat(r)-parseFloat(i)}function Le(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}function Ie(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}function De(t,e){var n=ue(t),o=le(n,"color"),r=t.getBoundingClientRect();"checkbox"==t.type?(e.append(no.fromRect(new bn([r.left+1,r.top+1],[r.width-2,r.height-2])).stroke(o,1)),t.checked&&e.append((new no).stroke(o,1.2).moveTo(r.left+.22*r.width,r.top+.55*r.height).lineTo(r.left+.45*r.width,r.top+.75*r.height).lineTo(r.left+.78*r.width,r.top+.22*r.width))):(e.append(new zn(new Tn([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-2,r.height-2)/2)).stroke(o,1)),t.checked&&e.append(new zn(new Tn([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-8,r.height-8)/2)).fill(o).stroke(null)))}function He(t,e){var n,o,r,i,s,a=t.tagName.toLowerCase();if("input"==a&&("checkbox"==t.type||"radio"==t.type))return De(t,e);if(n=t.parentNode,o=t.ownerDocument,r=o.createElement(Ur),r.style.cssText=Ae(ue(t)),"input"==a&&(r.style.whiteSpace="pre"),"select"!=a&&"textarea"!=a||(r.style.overflow="auto"),"select"==a)if(t.multiple)for(s=0;s<t.options.length;++s)i=o.createElement(Ur),i.style.cssText=Ae(ue(t.options[s])),i.style.display="block",i.textContent=t.options[s].textContent,r.appendChild(i);else i=Ie(t),i&&(r.textContent=i.textContent);else r.textContent=t.value;n.insertBefore(r,t),r.scrollLeft=t.scrollLeft,r.scrollTop=t.scrollTop,t.style.display="none",qe(r,e),t.style.display="",n.removeChild(r)}function qe(t,e){var n,o,r,i,s,a,p;switch(Yr._stackingContext.element===t&&(Yr._stackingContext.group=e),t.tagName.toLowerCase()){case"img":Be(t,t.src,e);break;case"canvas":try{Be(t,t.toDataURL("image/png"),e)}catch(c){}break;case"textarea":case"input":case"select":He(t,e);break;default:for(n=[],o=[],r=[],i=t.firstChild;i;i=i.nextSibling)switch(i.nodeType){case 3:/\S/.test(i.data)&&Ge(t,i,e);break;case 1:s=ue(i),a=le(s,"float"),p=le(s,"position"),"static"!=p?r.push(i):"none"!=a?o.push(i):n.push(i)}f(n,Fe).forEach(function(t){Ve(t,e)}),f(o,Fe).forEach(function(t){Ve(t,e)}),f(r,Fe).forEach(function(t){Ve(t,e)})}}function Ge(t,e,n){function o(t){var e,n,o,r,i;if(Qr||Vr.chrome){for(e=t.getClientRects(),n={top:1/0,right:-(1/0),bottom:-(1/0),left:1/0},o=!1,r=0;r<e.length;++r)i=e[r],i.width<=1||i.bottom===_||(n.left=Math.min(i.left,n.left),n.top=Math.min(i.top,n.top),n.right=Math.max(i.right,n.right),n.bottom=Math.max(i.bottom,n.bottom),o=!0);return o?(n.width=n.right-n.left,n.height=n.bottom-n.top,n):t.getBoundingClientRect()}return t.getBoundingClientRect()}function r(){var t,n,r,s,a,u,l,f=c,d=p.substr(c).search(/\S/);if(c+=d,d<0||c>=h)return!0;if(y.setStart(e,c),y.setEnd(e,c+1),t=o(y),n=!1,(m||v>1)&&(d=p.substr(c).search(/\s/),d>=0&&(y.setEnd(e,c+d),r=o(y),r.bottom==t.bottom&&(t=r,n=!0,c+=d))),!n){if(d=function g(n,r,i){y.setEnd(e,r);var s=o(y);return s.bottom!=t.bottom&&n<r?g(n,n+r>>1,r):s.right!=t.right?(t=s,r<i?g(r,r+i>>1,i):r):r}(c,Math.min(h,c+b),h),d==c)return!0;if(c=d,d=(""+y).search(/\s+$/),0===d)return!1;d>0&&(y.setEnd(e,y.startOffset+d),t=o(y))}if(Qr&&(t=y.getClientRects()[0]),s=""+y,/^(?:pre|pre-wrap)$/i.test(x)){if(/\t/.test(s)){for(a=0,d=f;d<y.startOffset;++d)u=p.charCodeAt(d),9==u?a+=8-a%8:10==u||13==u?a=0:a++;for(;(d=s.search("\t"))>=0;)l=" ".substr(0,8-(a+d)%8),s=s.substr(0,d)+l+s.substr(d+1)}}else s=s.replace(/\s+/g," ");n||(_=t.bottom),i(s,t)}function i(t,e){var o,r,i;switch(Qr&&!isNaN(l)&&(o=oi(f),r=(e.top+e.bottom-o)/2,e={top:r,right:e.right,bottom:r+o,left:e.left,height:o,width:e.right-e.left}),w){case"uppercase":t=t.toUpperCase();break;case"lowercase":t=t.toLowerCase();break;case"capitalize":t=t.replace(/(?:^|\s)\S/g,function(t){return t.toUpperCase()})}i=new Zr(t,new bn([e.left,e.top],[e.width,e.height]),{font:f,fill:{color:d}}),n.append(i)}function s(t){function e(e,o){var r,i;e&&(r=u/12,i=new no({stroke:{width:r,color:e}}),o-=r,i.moveTo(t.left,o).lineTo(t.right,o),n.append(i))}e(C,t.bottom),e(k,t.bottom-t.height/2.7),e(T,t.top)}var a,p,c,h,u,l,f,d,y,g,m,v,x,w,b,_,C,k,T,O;if(!ce()&&(a=ue(t),!(parseFloat(le(a,"text-indent"))<-500)&&(p=e.data,c=0,h=p.search(/\S\s*$/)+1,h&&(u=le(a,"font-size"),l=le(a,"line-height"),f=[le(a,"font-style"),le(a,"font-variant"),le(a,"font-weight"),u,le(a,"font-family")].join(" "),u=parseFloat(u),l=parseFloat(l),0!==u)))){for(d=le(a,"color"),y=t.ownerDocument.createRange(),g=le(a,"text-align"),m="justify"==g,v=le(a,"column-count",1),x=le(a,"white-space"),w=le(a,"text-transform"),b=t.getBoundingClientRect().width/u*5,0===b&&(b=500),_=null,C=Yr.underline,k=Yr["line-through"],T=Yr.overline,O=C||k||T;!r(););O&&(y.selectNode(e),Dt(y.getClientRects()).forEach(s))}}function $e(t,e,n){var o,r,i,s,a,p;for("auto"!=n?(o=Yr._stackingContext.group,n=parseFloat(n)):(o=e,n=0),r=o.children,i=0;i<r.length&&!(null!=r[i]._dom_zIndex&&r[i]._dom_zIndex>n);++i);return s=new uo,o.insert(i,s),s._dom_zIndex=n,o!==e&&Yr._clipbox&&(a=Yr._matrix.invert(),p=Yr._clipbox.transformCopy(a),Ce(s,no.fromRect(p))),s}function Ve(t,e){var n,o,r,i,s,a,p=ue(t);ee(p),/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(t.tagName)||null!=Yr._clipbox&&(n=parseFloat(le(p,"opacity")),o=le(p,"visibility"),r=le(p,"display"),0!==n&&"hidden"!=o&&"none"!=r&&(i=xe(p),a=le(p,"z-index"),(i||n<1)&&"auto"==a&&(a=0),s=$e(t,e,a),n<1&&s.opacity(n*s.opacity()),se(t,p,s),i?ye(t,function(){var e,n,o,r;fe(t.style,"transform","none","important"),fe(t.style,"transition","none","important"),"static"==le(p,"position")&&fe(t.style,"position","relative","important"),e=t.getBoundingClientRect(),n=e.left+i.origin[0],o=e.top+i.origin[1],r=[1,0,0,1,-n,-o],r=Ue(r,i.matrix),r=Ue(r,[1,0,0,1,n,o]),r=_e(s,r),Yr._matrix=Yr._matrix.multiplyCopy(r),ze(t,s)}):ze(t,s),ae()))}function Ue(t,e){var n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],p=e[0],c=e[1],h=e[2],u=e[3],l=e[4],f=e[5];return[n*p+o*h,n*c+o*u,r*p+i*h,r*c+i*u,s*p+a*h+l,s*c+a*u+f]}var Xe,Ye,We,Qe,Ze,Je,Ke,tn,en,nn,on,rn,sn,an,pn,cn,hn,un,ln,fn,dn,yn,gn,mn,vn,xn,wn,bn,_n,Cn,kn,Tn,On,Mn,Sn,En,Pn,An,zn,Nn,jn,Rn,Bn,Fn,Ln,In,Dn,Hn,qn,Gn,$n,Vn,Un,Xn,Yn,Wn,Qn,Zn,Jn,Kn,to,eo,no,oo,ro,io,so,ao,po,co,ho,uo,lo,fo,yo,go,mo,vo,xo,wo,bo,_o,Co,ko,To,Oo,Mo,So,Eo,Po,Ao,zo,No,jo,Ro,Bo,Fo,Lo,Io,Do,Ho,qo,Go,$o,Vo,Uo,Xo,Yo,Wo,Qo,Zo,Jo,Ko,tr,er,nr,or,rr,ir,sr,ar,pr,cr,hr,ur,lr,fr,dr,yr,gr,mr,vr,xr,wr,br,_r,Cr,kr,Tr,Or,Mr,Sr,Er,Pr,Ar,zr,Nr,jr,Rr,Br,Fr,Lr,Ir,Dr,Hr,qr,Gr,$r,Vr,Ur,Xr,Yr,Wr,Qr,Zr,Jr,Kr,ti,ei,ni,oi,ri;window.kendo=window.kendo||{},Xe=kendo.drawing,Ye=Xe.util,We=Ye.extendStatic,Qe=kendo.Class,Ze=kendo.util,Je=kendo.support,Ke=Je.browser,tn=Ye.createPromise,en=Ye.promiseAll,nn=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.observers=function(){return this._observers=this._observers||[]},e.prototype.addObserver=function(t){return this._observers?this._observers.push(t):this._observers=[t],this},e.prototype.removeObserver=function(t){var e=this.observers(),n=e.indexOf(t);return n!==-1&&e.splice(n,1),this},e.prototype.trigger=function(t,e){var n,o,r=this._observers;if(r&&!this._suspended)for(n=0;n<r.length;n++)o=r[n],o[t]&&o[t](e);return this},e.prototype.optionsChange=function(t){void 0===t&&(t={}),t.element=this,this.trigger("optionsChange",t)},e.prototype.geometryChange=function(){this.trigger("geometryChange",{element:this})},e.prototype.suspend=function(){return this._suspended=(this._suspended||0)+1,this},e.prototype.resume=function(){return this._suspended=Math.max((this._suspended||0)-1,0),this},e.prototype._observerField=function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)},e}(Qe),on={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"},rn="undefined",sn=1,an=Math.PI/180,pn=Number.MAX_VALUE,cn=-Number.MAX_VALUE,hn=String.fromCharCode,un="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ln=Date.now||function(){return(new Date).getTime()},fn=function(t){function e(e,n,o,r,i,s){void 0===e&&(e=0),void 0===n&&(n=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===s&&(s=0),t.call(this),this.a=e,this.b=n,this.c=o,this.d=r,this.e=i,this.f=s}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.multiplyCopy=function(t){return new e(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)},e.prototype.invert=function(){var t=this,n=t.a,o=t.b,r=t.c,i=t.d,s=t.e,a=t.f,p=n*i-o*r;return 0===p?null:new e(i/p,-o/p,-r/p,n/p,(r*a-i*s)/p,(o*s-n*a)/p)},e.prototype.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},e.prototype.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)},e.prototype.round=function(t){return this.a=g(this.a,t),this.b=g(this.b,t),this.c=g(this.c,t),this.d=g(this.d,t),this.e=g(this.e,t),this.f=g(this.f,t),this},e.prototype.toArray=function(t){var e,n=[this.a,this.b,this.c,this.d,this.e,this.f];if(o(t))for(e=0;e<n.length;e++)n[e]=g(n[e],t);return n},e.prototype.toString=function(t,e){return void 0===e&&(e=","),this.toArray(t).join(e)},e.translate=function(t,n){return new e(1,0,0,1,t,n)},e.unit=function(){return new e(1,0,0,1,0,0)},e.rotate=function(t,n,o){var r=new e;return r.a=Math.cos(d(t)),r.b=Math.sin(d(t)),r.c=-r.b,r.d=r.a,r.e=n-n*r.a+o*r.b||0,r.f=o-o*r.a-n*r.b||0,r},e.scale=function(t,n){return new e(t,0,0,n,0,0)},e}(Qe),fn.IDENTITY=fn.unit(),dn=/matrix\((.*)\)/,yn={append:e,arabicToRoman:n,createPromise:tn,defined:o,definitionId:r,deg:i,encodeBase64:a,eventCoordinates:p,eventElement:c,isTransparent:h,last:u,limitValue:l,mergeSort:f,now:ln,promiseAll:en,rad:d,round:g,valueOrDefault:m,bindEvents:v,elementOffset:x,elementSize:_,elementStyles:w,unbindEvents:C,elementPadding:k,elementScale:M,DEG_TO_RAD:an,MAX_NUM:pn,MIN_NUM:cn},gn={}.toString,mn=function(t){function e(e,n){var o,r,i=this;void 0===n&&(n=""),t.call(this),this.prefix=n;for(o in e)r=e[o],r=i._wrap(r,o),i[o]=r}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.get=function(t){for(var e,n=t.split("."),o=this;n.length&&o;)e=n.shift(),o=o[e];return o},e.prototype.set=function(t,e){var n=this.get(t);n!==e&&(this._set(t,this._wrap(e,t)),this.optionsChange({field:this.prefix+t,value:e}))},e.prototype._set=function(t,n){var o,r,i,s=this,a=t.indexOf(".")>=0,p=this,c=t;if(a){for(o=c.split("."),r=this.prefix;o.length>1;)c=o.shift(),r+=c+".",i=p[c],i||(i=new e({},r),i.addObserver(s),p[c]=i),p=i;c=o[0]}p._clear(c),p[c]=n},e.prototype._clear=function(t){var e=this[t];e&&e.removeObserver&&e.removeObserver(this)},e.prototype._wrap=function(t,n){var r=gn.call(t),i=t;return null!==i&&o(i)&&"[object Object]"===r&&(t instanceof e||t instanceof Qe||(i=new e(i,this.prefix+n+".")),i.addObserver(this)),i},e}(nn),vn=function(t,e){var n=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e}(t);return P(n.prototype,e),n},xn=function(t){function e(e,n){t.call(this),this.x=e||0,this.y=n||0}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={ZERO:{}};return e.prototype.equals=function(t){return t&&t.x===this.x&&t.y===this.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.rotate=function(t,n){var o=e.create(n)||e.ZERO;return this.transform(fn.rotate(t,o.x,o.y))},e.prototype.translate=function(t,e){return this.x+=t,this.y+=e,this.geometryChange(),this},e.prototype.translateWith=function(t){return this.translate(t.x,t.y)},e.prototype.move=function(t,e){return this.x=this.y=0,this.translate(t,e)},e.prototype.scale=function(t,e){return void 0===e&&(e=t),this.x*=t,this.y*=e,this.geometryChange(),this},e.prototype.scaleCopy=function(t,e){return this.clone().scale(t,e)},e.prototype.transform=function(t){var e=A(t),n=this,o=n.x,r=n.y;return this.x=e.a*o+e.c*r+e.e,this.y=e.b*o+e.d*r+e.f,this.geometryChange(),this},e.prototype.transformCopy=function(t){var e=this.clone();return t&&e.transform(t),e},e.prototype.distanceTo=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},e.prototype.round=function(t){return this.x=g(this.x,t),this.y=g(this.y,t),this.geometryChange(),this},e.prototype.toArray=function(t){var e=o(t),n=e?g(this.x,t):this.x,r=e?g(this.y,t):this.y;return[n,r]},e.prototype.toString=function(t,e){var n,r,i;return void 0===e&&(e=" "),n=this,r=n.x,i=n.y,o(t)&&(r=g(r,t),i=g(i,t)),r+e+i},e.create=function(t,n){if(o(t))return t instanceof e?t:1===arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,n)},e.min=function(){var t,n,o=arguments,r=pn,i=pn;for(t=0;t<arguments.length;t++)n=o[t],r=Math.min(n.x,r),i=Math.min(n.y,i);return new e(r,i)},e.max=function(){var t,n,o=arguments,r=cn,i=cn;for(t=0;t<arguments.length;t++)n=o[t],r=Math.max(n.x,r),i=Math.max(n.y,i);return new e(r,i)},e.minPoint=function(){return new e(cn,cn)},e.maxPoint=function(){return new e(pn,pn)},n.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,n),e}(vn(nn,["x","y"])),wn=function(t){function e(e,n){t.call(this),this.width=e||0,this.height=n||0}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={ZERO:{}};return e.prototype.equals=function(t){return t&&t.width===this.width&&t.height===this.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.toArray=function(t){var e=o(t),n=e?g(this.width,t):this.width,r=e?g(this.height,t):this.height;return[n,r]},e.create=function(t,n){if(o(t))return t instanceof e?t:1===arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,n)},n.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,n),e}(vn(nn,["width","height"])),bn=function(t){function e(e,n){void 0===e&&(e=new xn),void 0===n&&(n=new wn),t.call(this),this.setOrigin(e),this.setSize(n)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.clone=function(){return new e(this.origin.clone(),this.size.clone())},e.prototype.equals=function(t){return t&&t.origin.equals(this.origin)&&t.size.equals(this.size)},e.prototype.setOrigin=function(t){return this._observerField("origin",xn.create(t)),this.geometryChange(),this},e.prototype.getOrigin=function(){return this.origin},e.prototype.setSize=function(t){return this._observerField("size",wn.create(t)),this.geometryChange(),this},e.prototype.getSize=function(){return this.size},e.prototype.width=function(){return this.size.width},e.prototype.height=function(){return this.size.height},e.prototype.topLeft=function(){return this.origin.clone()},e.prototype.bottomRight=function(){return this.origin.clone().translate(this.width(),this.height())},e.prototype.topRight=function(){return this.origin.clone().translate(this.width(),0)},e.prototype.bottomLeft=function(){return this.origin.clone().translate(0,this.height())},e.prototype.center=function(){return this.origin.clone().translate(this.width()/2,this.height()/2)},e.prototype.bbox=function(t){var n=this.topLeft().transformCopy(t),o=this.topRight().transformCopy(t),r=this.bottomRight().transformCopy(t),i=this.bottomLeft().transformCopy(t);return e.fromPoints(n,o,r,i)},e.prototype.transformCopy=function(t){return e.fromPoints(this.topLeft().transform(t),this.bottomRight().transform(t))},e.prototype.expand=function(t,e){return void 0===e&&(e=t),this.size.width+=2*t,this.size.height+=2*e,this.origin.translate(-t,-e),this},e.prototype.expandCopy=function(t,e){return this.clone().expand(t,e)},e.prototype.containsPoint=function(t){var e=this.origin,n=this.bottomRight();return!(t.x<e.x||t.y<e.y||n.x<t.x||n.y<t.y)},e.prototype._isOnPath=function(t,e){var n=this.expandCopy(e,e),o=this.expandCopy(-e,-e);return n.containsPoint(t)&&!o.containsPoint(t)},e.fromPoints=function(){var t=xn.min.apply(null,arguments),n=xn.max.apply(null,arguments),o=new wn(n.x-t.x,n.y-t.y);return new e(t,o)},e.union=function(t,n){return e.fromPoints(xn.min(t.topLeft(),n.topLeft()),xn.max(t.bottomRight(),n.bottomRight()))},e.intersect=function(t,n){var o={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y},r={left:n.topLeft().x,top:n.topLeft().y,right:n.bottomRight().x,bottom:n.bottomRight().y};if(o.left<=r.right&&r.left<=o.right&&o.top<=r.bottom&&r.top<=o.bottom)return e.fromPoints(new xn(Math.max(o.left,r.left),Math.max(o.top,r.top)),new xn(Math.min(o.right,r.right),Math.min(o.bottom,r.bottom)))},e}(nn),_n=function(t){function e(e){void 0===e&&(e=fn.unit()),t.call(this),this._matrix=e}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.clone=function(){return new e(this._matrix.clone())},e.prototype.equals=function(t){return t&&t._matrix.equals(this._matrix)},e.prototype.translate=function(t,e){return this._matrix=this._matrix.multiplyCopy(fn.translate(t,e)),this._optionsChange(),this},e.prototype.scale=function(t,e,n){void 0===e&&(e=t),void 0===n&&(n=null);var o=n;return o&&(o=xn.create(o),this._matrix=this._matrix.multiplyCopy(fn.translate(o.x,o.y))),this._matrix=this._matrix.multiplyCopy(fn.scale(t,e)),o&&(this._matrix=this._matrix.multiplyCopy(fn.translate(-o.x,-o.y))),this._optionsChange(),this},e.prototype.rotate=function(t,e){var n=xn.create(e)||xn.ZERO;return this._matrix=this._matrix.multiplyCopy(fn.rotate(t,n.x,n.y)),this._optionsChange(),this},e.prototype.multiply=function(t){var e=A(t);return this._matrix=this._matrix.multiplyCopy(e),this._optionsChange(),this},e.prototype.matrix=function(t){return t?(this._matrix=t,this._optionsChange(),this):this._matrix},e.prototype._optionsChange=function(){this.optionsChange({field:"transform",value:this})},e}(nn),Cn=function(t){function e(e){t.call(this),this._initOptions(e)}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return"Rect"},e.prototype._initOptions=function(t){var e,n;void 0===t&&(t={}),e=t.clip,n=t.transform,n&&(t.transform=z(n)),e&&!e.id&&(e.id=r()),this.options=new mn(t),this.options.addObserver(this)},e.prototype.transform=function(t){return o(t)?void this.options.set("transform",z(t)):this.options.get("transform")},e.prototype.parentTransform=function(){for(var t,e,n=this;n.parent;)n=n.parent,e=n.transform(),e&&(t=e.matrix().multiplyCopy(t||fn.unit()));if(t)return z(t)},e.prototype.currentTransform=function(t){var e,n,o,r;if(void 0===t&&(t=this.parentTransform()),e=this.transform(),n=A(e),o=A(t),r=n&&o?o.multiplyCopy(n):n||o)return z(r)},e.prototype.visible=function(t){return o(t)?(this.options.set("visible",t),this):this.options.get("visible")!==!1},e.prototype.clip=function(t){var e=this.options;return o(t)?(t&&!t.id&&(t.id=r()),e.set("clip",t),this):e.get("clip")},e.prototype.opacity=function(t){return o(t)?(this.options.set("opacity",t),this):m(this.options.get("opacity"),1)},e.prototype.clippedBBox=function(t){var e,n=this._clippedBBox(t);if(n)return e=this.clip(),e?bn.intersect(n,e.bbox(t)):n},e.prototype.containsPoint=function(t,e){var n,o;return!!this.visible()&&(n=this.currentTransform(e),o=t,n&&(o=t.transformCopy(n.matrix().invert())),this._hasFill()&&this._containsPoint(o)||this._isOnPath&&this._hasStroke()&&this._isOnPath(o))},e.prototype._hasFill=function(){var t=this.options.fill;return t&&!h(t.color)},e.prototype._hasStroke=function(){var t=this.options.stroke;return t&&t.width>0&&!h(t.color)},e.prototype._clippedBBox=function(t){return this.bbox(t)},Object.defineProperties(e.prototype,n),e}(nn),kn=Math.PI/2,Tn=function(t){function e(e,n){void 0===e&&(e=new xn),void 0===n&&(n=0),t.call(this),this.setCenter(e),this.setRadius(n)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.setCenter=function(t){return this._observerField("center",xn.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.equals=function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},e.prototype.clone=function(){return new e(this.center.clone(),this.radius)},e.prototype.pointAt=function(t){return this._pointAt(d(t))},e.prototype.bbox=function(t){var e,n,o,r,i=this,s=N(this.center,this.radius,this.radius,t),a=xn.maxPoint(),p=xn.minPoint();for(e=0;e<4;e++)n=i._pointAt(s.x+e*kn).transformCopy(t),o=i._pointAt(s.y+e*kn).transformCopy(t),r=new xn(n.x,o.y),a=xn.min(a,r),p=xn.max(p,r);return bn.fromPoints(a,p)},e.prototype._pointAt=function(t){var e=this,n=e.center,o=e.radius;return new xn(n.x+o*Math.cos(t),n.y+o*Math.sin(t))},e.prototype.containsPoint=function(t){var e=this,n=e.center,o=e.radius,r=Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)<=Math.pow(o,2);return r},e.prototype._isOnPath=function(t,e){var n=this,o=n.center,r=n.radius,i=o.distanceTo(t);return r-e<=i&&i<=r+e},e}(vn(nn,["radius"])),On="Gradient",Mn=function(t){return function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.fill=function(t,e){var n,r=this.options;return o(t)?(t&&t.nodeType!==On?(n={color:t},o(e)&&(n.opacity=e),r.set("fill",n)):r.set("fill",t),this):r.get("fill")},e.prototype.stroke=function(t,e,n){return o(t)?(this.options.set("stroke.color",t),o(e)&&this.options.set("stroke.width",e),o(n)&&this.options.set("stroke.opacity",n),this):this.options.get("stroke")},e}(t)},Sn=""+fn.IDENTITY,En=function(t){return function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.bbox=function n(t){var n,e,o=A(this.currentTransform(t)),r=o?""+o:Sn;return this._bboxCache&&this._matrixHash===r?n=this._bboxCache.clone():(n=this._bbox(o),this._bboxCache=n?n.clone():null,this._matrixHash=r),e=this.options.get("stroke.width"),e&&n&&n.expand(e/2),n},e.prototype.geometryChange=function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})},e}(t)},Pn=function(t,e){void 0===e&&(e=["geometry"]);var n=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e}(t);return R(n.prototype,e),n},An="#000",zn=function(t){function e(e,n){void 0===e&&(e=new Tn),void 0===n&&(n={}),t.call(this,n),this.geometry(e),o(this.options.stroke)||this.stroke(An)}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return"Circle"},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype._containsPoint=function(t){return this.geometry().containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,n),e}(Mn(En(Pn(Cn)))), Nn=10,jn=45,Rn=Math.pow,Bn=["radiusX","radiusY","startAngle","endAngle","anticlockwise"],Fn=function(t){function e(e,n){void 0===e&&(e=new xn),void 0===n&&(n={}),t.call(this),this.setCenter(e),this.radiusX=n.radiusX,this.radiusY=n.radiusY||n.radiusX,this.startAngle=n.startAngle,this.endAngle=n.endAngle,this.anticlockwise=n.anticlockwise||!1,this.xRotation=n.xRotation}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.clone=function(){return new e(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},e.prototype.setCenter=function(t){return this._observerField("center",xn.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.pointAt=function(t){var e=this.center,n=d(t);return new xn(e.x+this.radiusX*Math.cos(n),e.y+this.radiusY*Math.sin(n))},e.prototype.curvePoints=function n(){var t,e,o,r,i=this,s=this.startAngle,a=this.anticlockwise?-1:1,n=[this.pointAt(s)],p=this._arcInterval(),c=p.endAngle-p.startAngle,h=Math.ceil(c/jn),u=c/h,l=s;for(this.xRotation&&(t=z().rotate(this.xRotation,this.center)),e=1;e<=h;e++)o=l+a*u,r=i._intervalCurvePoints(l,o,t),n.push(r.cp1,r.cp2,r.p2),l=o;return n},e.prototype.bbox=function(t){for(var e,n,o=this,r=this._arcInterval(),s=r.startAngle,a=r.endAngle,p=N(this.center,this.radiusX,this.radiusY,t),c=i(p.x),h=i(p.y),u=this.pointAt(a).transformCopy(t),l=H(c,s),f=H(h,s),d=this.pointAt(s).transformCopy(t),y=xn.min(d,u),g=xn.max(d,u);l<a||f<a;)e=void 0,l<a&&(e=o.pointAt(l).transformCopy(t),l+=90),n=void 0,f<a&&(n=o.pointAt(f).transformCopy(t),f+=90),d=new xn(e.x,n.y),y=xn.min(y,d),g=xn.max(g,d);return bn.fromPoints(y,g)},e.prototype._arcInterval=function(){var t,e=this,n=e.startAngle,o=e.endAngle,r=e.anticlockwise;return r&&(t=n,n=o,o=t),(n>o||r&&n===o)&&(o+=360),{startAngle:n,endAngle:o}},e.prototype._intervalCurvePoints=function(t,e,n){var o=this.pointAt(t),r=this.pointAt(e),i=this._derivativeAt(t),s=this._derivativeAt(e),a=(d(e)-d(t))/3,p=new xn(o.x+a*i.x,o.y+a*i.y),c=new xn(r.x-a*s.x,r.y-a*s.y);return n&&(o.transform(n),r.transform(n),p.transform(n),c.transform(n)),{p1:o,cp1:p,cp2:c,p2:r}},e.prototype._derivativeAt=function(t){var e=d(t);return new xn(-this.radiusX*Math.sin(e),this.radiusY*Math.cos(e))},e.prototype.containsPoint=function o(t){var o,e,n,r=this._arcInterval(),i=r.endAngle-r.startAngle,s=this,a=s.center,p=s.radiusX,c=s.radiusY,h=a.distanceTo(t),u=Math.atan2(t.y-a.y,t.x-a.x),l=p*c/Math.sqrt(Rn(p,2)*Rn(Math.sin(u),2)+Rn(c,2)*Rn(Math.cos(u),2)),f=this.pointAt(this.startAngle).round(Nn),d=this.pointAt(this.endAngle).round(Nn),y=L(a,t.round(Nn),f,d);return i<180?o=y&&F(a.distanceTo(y),h)&&F(h,l):(e=I(a.x,a.y,p,c,t.x,t.y),360!==e&&(e=(360+e)%360),n=r.startAngle<=e&&e<=r.endAngle,o=n&&F(h,l)||!n&&(!y||y.equals(t))),o},e.prototype._isOnPath=function(t,e){var n,o=this._arcInterval(),r=this.center,i=I(r.x,r.y,this.radiusX,this.radiusY,t.x,t.y);return 360!==i&&(i=(360+i)%360),n=o.startAngle<=i&&i<=o.endAngle,n&&this.pointAt(i).distanceTo(t)<=e},e.fromPoints=function(t,n,o,r,i,s,a){var p=D({x1:t.x,y1:t.y,x2:n.x,y2:n.y,rx:o,ry:r,largeArc:i,swipe:s,rotation:a});return new e(p.center,{startAngle:p.startAngle,endAngle:p.endAngle,radiusX:p.radiusX,radiusY:p.radiusY,xRotation:p.xRotation,anticlockwise:0===s})},e}(vn(nn,Bn)),Ln=[].push,In=[].pop,Dn=[].splice,Hn=[].shift,qn=[].slice,Gn=[].unshift,$n=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.length=0,this._splice(0,e.length,e)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.elements=function(t){return t?(this._splice(0,this.length,t),this._change(),this):this.slice(0)},e.prototype.push=function(){var t=arguments,e=Ln.apply(this,t);return this._add(t),e},e.prototype.slice=function(){return qn.call(this)},e.prototype.pop=function(){var t=this.length,e=In.apply(this);return t&&this._remove([e]),e},e.prototype.splice=function(t,e){var n=qn.call(arguments,2),o=this._splice(t,e,n);return this._change(),o},e.prototype.shift=function(){var t=this.length,e=Hn.apply(this);return t&&this._remove([e]),e},e.prototype.unshift=function(){var t=arguments,e=Gn.apply(this,t);return this._add(t),e},e.prototype.indexOf=function(t){var e,n=this,o=this.length;for(e=0;e<o;e++)if(n[e]===t)return e;return-1},e.prototype._splice=function(t,e,n){var o=Dn.apply(this,[t,e].concat(n));return this._clearObserver(o),this._setObserver(n),o},e.prototype._add=function(t){this._setObserver(t),this._change()},e.prototype._remove=function(t){this._clearObserver(t),this._change()},e.prototype._setObserver=function(t){var e,n=this;for(e=0;e<t.length;e++)t[e].addObserver(n)},e.prototype._clearObserver=function(t){var e,n=this;for(e=0;e<t.length;e++)t[e].removeObserver(n)},e.prototype._change=function(){},e}(nn),Vn=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype._change=function(){this.geometryChange()},e}($n),Un=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=0),t.call(this),this.real=e,this.img=n}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.add=function(t){return new e(g(this.real+t.real,Nn),g(this.img+t.img,Nn))},e.prototype.addConstant=function(t){return new e(this.real+t,this.img)},e.prototype.negate=function(){return new e((-this.real),(-this.img))},e.prototype.multiply=function(t){return new e(this.real*t.real-this.img*t.img,this.real*t.img+this.img*t.real)},e.prototype.multiplyConstant=function(t){return new e(this.real*t,this.img*t)},e.prototype.nthRoot=function(t){var n=Math.atan2(this.img,this.real),o=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),r=Math.pow(o,1/t);return new e(r*Math.cos(n/t),r*Math.sin(n/t))},e.prototype.equals=function(t){return this.real===t.real&&this.img===t.img},e.prototype.isReal=function(){return 0===this.img},e}(Qe),Xn=function(t,e){var n=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e}(t);return J(n.prototype,e),n},Yn=["anchor","controlIn","controlOut"],Wn=function(t){function e(e,n,o){t.call(this),this.anchor(e||new xn),this.controlIn(n),this.controlOut(o)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.bboxTo=function(t,e){var n,o=this.anchor().transformCopy(e),r=t.anchor().transformCopy(e);return n=this.controlOut()&&t.controlIn()?this._curveBoundingBox(o,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),r):this._lineBoundingBox(o,r)},e.prototype._lineBoundingBox=function(t,e){return bn.fromPoints(t,e)},e.prototype._curveBoundingBox=function(t,e,n,o){var r=[t,e,n,o],i=this._curveExtremesFor(r,"x"),s=this._curveExtremesFor(r,"y"),a=K([i.min,i.max,t.x,o.x]),p=K([s.min,s.max,t.y,o.y]);return bn.fromPoints(new xn(a.min,p.min),new xn(a.max,p.max))},e.prototype._curveExtremesFor=function(t,e){var n=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:G(n.min,e,t),max:G(n.max,e,t)}},e.prototype._curveExtremes=function(t,e,n,o){var r,i,s=t-3*e+3*n-o,a=-2*(t-2*e+n),p=t-e,c=Math.sqrt(a*a-4*s*p),h=0,u=1;return 0===s?0!==a&&(h=u=-p/a):isNaN(c)||(h=(-a+c)/(2*s),u=(-a-c)/(2*s)),r=Math.max(Math.min(h,u),0),(r<0||r>1)&&(r=0),i=Math.min(Math.max(h,u),1),(i>1||i<0)&&(i=1),{min:r,max:i}},e.prototype._intersectionsTo=function(t,e){var n;return n=this.controlOut()&&t.controlIn()?W([this.anchor(),this.controlOut(),t.controlIn(),t.anchor()],e,this.bboxTo(t)):Q(this.anchor(),t.anchor(),e)},e.prototype._isOnCurveTo=function(t,e,n,o){var r,i,s,a,p,c,h,u=this.bboxTo(t).expand(n,n);if(u.containsPoint(e))return r=this.anchor(),i=this.controlOut(),s=t.controlIn(),a=t.anchor(),"start"===o&&r.distanceTo(e)<=n?!q(r,i,e):"end"===o&&a.distanceTo(e)<=n?!q(a,s,e):(p=[r,i,s,a],!(!Y(p,e,"x","y",n)&&!Y(p,e,"y","x",n))||(c=z().rotate(45,e),h=[r.transformCopy(c),i.transformCopy(c),s.transformCopy(c),a.transformCopy(c)],Y(h,e,"x","y",n)||Y(h,e,"y","x",n)))},e.prototype._isOnLineTo=function(t,e,n){var o=this.anchor(),r=t.anchor(),s=i(Math.atan2(r.y-o.y,r.x-o.x)),a=new bn([o.x,o.y-n/2],[o.distanceTo(r),n]);return a.containsPoint(e.transformCopy(z().rotate(-s,o)))},e.prototype._isOnPathTo=function(t,e,n,o){var r;return r=this.controlOut()&&t.controlIn()?this._isOnCurveTo(t,e,n/2,o):this._isOnLineTo(t,e,n)},e}(Xn(nn,Yn)),Qn={l:function(t,e){var n,o,r=e.parameters,i=e.position;for(n=0;n<r.length;n+=2)o=new xn(r[n],r[n+1]),e.isRelative&&o.translateWith(i),t.lineTo(o.x,o.y),i.x=o.x,i.y=o.y},c:function(t,e){var n,o,r,i,s=e.parameters,a=e.position;for(n=0;n<s.length;n+=6)o=new xn(s[n],s[n+1]),r=new xn(s[n+2],s[n+3]),i=new xn(s[n+4],s[n+5]),e.isRelative&&(r.translateWith(a),o.translateWith(a),i.translateWith(a)),t.curveTo(o,r,i),a.x=i.x,a.y=i.y},v:function(t,e){var n=e.isRelative?0:e.position.x;tt(e.parameters,!0,n),this.l(t,e)},h:function(t,e){var n=e.isRelative?0:e.position.y;tt(e.parameters,!1,n),this.l(t,e)},a:function(t,e){var n,o,r,i,s,a,p,c=e.parameters,h=e.position;for(n=0;n<c.length;n+=7)o=c[n],r=c[n+1],i=c[n+2],s=c[n+3],a=c[n+4],p=new xn(c[n+5],c[n+6]),e.isRelative&&p.translateWith(h),h.x===p.x&&h.y===p.y||(t.arcTo(p,o,r,s,a,i),h.x=p.x,h.y=p.y)},s:function(t,e){var n,o,r,i,s,a=e.parameters,p=e.position,c=e.previousCommand;for("s"!==c&&"c"!==c||(n=u(u(t.paths).segments).controlIn()),o=0;o<a.length;o+=4)r=new xn(a[o],a[o+1]),i=new xn(a[o+2],a[o+3]),s=void 0,e.isRelative&&(r.translateWith(p),i.translateWith(p)),s=n?et(n,p):p.clone(),n=r,t.curveTo(s,r,i),p.x=i.x,p.y=i.y},q:function(t,e){var n,o,r,i,s=e.parameters,a=e.position;for(n=0;n<s.length;n+=4)o=new xn(s[n],s[n+1]),r=new xn(s[n+2],s[n+3]),e.isRelative&&(o.translateWith(a),r.translateWith(a)),i=nt(a,o,r),t.curveTo(i.controlOut,i.controlIn,r),a.x=r.x,a.y=r.y},t:function(t,e){var n,o,r,i,s,a=e.parameters,p=e.position,c=e.previousCommand;for("q"!==c&&"t"!==c||(o=u(u(t.paths).segments),n=o.controlIn().clone().translateWith(p.scaleCopy(-1/3)).scale(1.5)),r=0;r<a.length;r+=2)i=new xn(a[r],a[r+1]),e.isRelative&&i.translateWith(p),n=n?et(n,p):p.clone(),s=nt(p,n,i),t.curveTo(s.controlOut,s.controlIn,i),p.x=i.x,p.y=i.y}},Zn=1/3,Jn=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,Kn=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,to="m",eo="z",no=function(t){function e(e){t.call(this,e),this.segments=new Vn,this.segments.addObserver(this),o(this.options.stroke)||(this.stroke("#000"),o(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return e.parse=function(t,e){return oo.parse(t,e)},n.nodeType.get=function(){return"Path"},e.prototype.moveTo=function(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this},e.prototype.lineTo=function(t,e){var n=o(e)?new xn(t,e):t,r=new Wn(n);return this.segments.push(r),this},e.prototype.curveTo=function(t,e,n){var o,r;return this.segments.length>0&&(o=u(this.segments),r=new Wn(n,e),this.suspend(),o.controlOut(t),this.resume(),this.segments.push(r)),this},e.prototype.arc=function r(t,e,n,o,i){var s,a,p,c,r;return this.segments.length>0&&(s=u(this.segments),a=s.anchor(),p=d(t),c=new xn(a.x-n*Math.cos(p),a.y-o*Math.sin(p)),r=new Fn(c,{startAngle:t,endAngle:e,radiusX:n,radiusY:o,anticlockwise:i}),this._addArcSegments(r)),this},e.prototype.arcTo=function(t,e,n,o,r,i){var s,a,p;return this.segments.length>0&&(s=u(this.segments),a=s.anchor(),p=Fn.fromPoints(a,t,e,n,o,r,i),this._addArcSegments(p)),this},e.prototype._addArcSegments=function(t){var e,n,o=this;for(this.suspend(),e=t.curvePoints(),n=1;n<e.length;n+=3)o.curveTo(e[n],e[n+1],e[n+2]);this.resume(),this.geometryChange()},e.prototype.close=function(){return this.options.closed=!0,this.geometryChange(),this},e.prototype.rawBBox=function(){return this._bbox()},e.prototype._containsPoint=function(t){var e,n,o,r=this.segments,i=r.length,s=0;for(o=1;o<i;o++)e=r[o-1],n=r[o],s+=e._intersectionsTo(n,t);return!this.options.closed&&r[0].anchor().equals(r[i-1].anchor())||(s+=Q(r[0].anchor(),r[i-1].anchor(),t)),s%2!==0},e.prototype._isOnPath=function(t,e){var n,o=this.segments,r=o.length,i=e||this.options.stroke.width;if(r>1){if(o[0]._isOnPathTo(o[1],t,i,"start"))return!0;for(n=2;n<=r-2;n++)if(o[n-1]._isOnPathTo(o[n],t,i))return!0;if(o[r-2]._isOnPathTo(o[r-1],t,i,"end"))return!0}return!1},e.prototype._bbox=function(t){var e,n,o,r,i=this.segments,s=i.length;if(1===s)n=i[0].anchor().transformCopy(t),e=new bn(n,wn.ZERO);else if(s>0)for(o=1;o<s;o++)r=i[o-1].bboxTo(i[o],t),e=e?bn.union(e,r):r;return e},e.fromRect=function(t,n){return new e(n).moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close()},e.fromPoints=function(t,n){var o,r,i;if(t){for(o=new e(n),r=0;r<t.length;r++)i=xn.create(t[r]),i&&(0===r?o.moveTo(i):o.lineTo(i));return o}},e.fromArc=function(t,n){var o=new e(n),r=t.startAngle,i=t.pointAt(r);return o.moveTo(i.x,i.y),o.arc(r,t.endAngle,t.radiusX,t.radiusY,t.anticlockwise),o},Object.defineProperties(e.prototype,n),e}(Mn(En(Cn))),oo=function(t){function e(e){t.call(this,e),this.paths=new Vn,this.paths.addObserver(this),o(this.options.stroke)||this.stroke("#000")}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return e.parse=function(t,n){var o=new e(n);return rt(o,t)},n.nodeType.get=function(){return"MultiPath"},e.prototype.moveTo=function(t,e){var n=new no;return n.moveTo(t,e),this.paths.push(n),this},e.prototype.lineTo=function(t,e){return this.paths.length>0&&u(this.paths).lineTo(t,e),this},e.prototype.curveTo=function(t,e,n){return this.paths.length>0&&u(this.paths).curveTo(t,e,n),this},e.prototype.arc=function(t,e,n,o,r){return this.paths.length>0&&u(this.paths).arc(t,e,n,o,r),this},e.prototype.arcTo=function(t,e,n,o,r,i){return this.paths.length>0&&u(this.paths).arcTo(t,e,n,o,r,i),this},e.prototype.close=function(){return this.paths.length>0&&u(this.paths).close(),this},e.prototype._bbox=function(t){return it(this.paths,!0,t)},e.prototype.rawBBox=function(){return it(this.paths,!1)},e.prototype._containsPoint=function(t){var e,n=this.paths;for(e=0;e<n.length;e++)if(n[e]._containsPoint(t))return!0;return!1},e.prototype._isOnPath=function(t){var e,n=this.paths,o=this.options.stroke.width;for(e=0;e<n.length;e++)if(n[e]._isOnPath(t,o))return!0;return!1},e.prototype._clippedBBox=function(t){return st(this.paths,this.currentTransform(t))},Object.defineProperties(e.prototype,n),e}(Mn(En(Cn))),ro="#000",io=function(t){function e(e,n){void 0===e&&(e=new Fn),void 0===n&&(n={}),t.call(this,n),this.geometry(e),o(this.options.stroke)||this.stroke(ro)}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return"Arc"},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype.rawBBox=function(){return this.geometry().bbox()},e.prototype.toPath=function(){var t,e=new no,n=this.geometry().curvePoints();if(n.length>0)for(e.moveTo(n[0].x,n[0].y),t=1;t<n.length;t+=3)e.curveTo(n[t],n[t+1],n[t+2]);return e},e.prototype._containsPoint=function(t){return this.geometry().containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,n),e}(Mn(En(Pn(Cn)))),so="12px sans-serif",ao="#000",po=function(t){function e(e,n,r){void 0===n&&(n=new xn),void 0===r&&(r={}),t.call(this,r),this.content(e),this.position(n),this.options.font||(this.options.font=so),o(this.options.fill)||this.fill(ao)}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return"Text"},e.prototype.content=function(t){return o(t)?(this.options.set("content",t),this):this.options.get("content")},e.prototype.measure=function(){var t=Ze.measureText(this.content(),{font:this.options.get("font")});return t},e.prototype.rect=function(){var t=this.measure(),e=this.position().clone();return new bn(e,[t.width,t.height])},e.prototype.bbox=function(t){var e=A(this.currentTransform(t));return this.rect().bbox(e)},e.prototype.rawBBox=function(){return this.rect().bbox()},e.prototype._containsPoint=function(t){return this.rect().containsPoint(t)},Object.defineProperties(e.prototype,n),e}(Mn(Xn(Cn,["position"]))),co=function(t){function e(e,n,o){void 0===n&&(n=new bn),void 0===o&&(o={}),t.call(this,o),this.src(e),this.rect(n)}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return"Image"},e.prototype.src=function(t){return o(t)?(this.options.set("src",t),this):this.options.get("src")},e.prototype.bbox=function(t){var e=A(this.currentTransform(t));return this._rect.bbox(e)},e.prototype.rawBBox=function(){return this._rect.bbox()},e.prototype._containsPoint=function(t){return this._rect.containsPoint(t)},e.prototype._hasFill=function(){return this.src()},Object.defineProperties(e.prototype,n),e}(Pn(Cn,["rect"])),ho=function(t,e){return function(t){function n(){t.apply(this,arguments)}return We(n,t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor,n.prototype.traverse=function(t){var n,o,r=this[e];for(n=0;n<r.length;n++)o=r[n],o.traverse?o.traverse(t):t(o);return this},n}(t)},uo=function(t){function n(e){t.call(this,e),this.children=[]}We(n,t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor;var o={nodeType:{}};return o.nodeType.get=function(){return"Group"},n.prototype.childrenChange=function(t,e,n){this.trigger("childrenChange",{action:t,items:e,index:n})},n.prototype.append=function(){return e(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this},n.prototype.insert=function(t,e){return this.children.splice(t,0,e),e.parent=this,this.childrenChange("add",[e],t),this},n.prototype.insertAt=function(t,e){return this.insert(e,t)},n.prototype.remove=function(t){var e=this.children.indexOf(t);return e>=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this},n.prototype.removeAt=function(t){if(0<=t&&t<this.children.length){var e=this.children[t];this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)}return this},n.prototype.clear=function(){var t=this.children;return this.children=[],this._reparent(t,null),this.childrenChange("remove",t,0),this},n.prototype.bbox=function(t){return it(this.children,!0,this.currentTransform(t))},n.prototype.rawBBox=function(){return it(this.children,!1)},n.prototype._clippedBBox=function(t){return st(this.children,this.currentTransform(t))},n.prototype.currentTransform=function(t){return Cn.prototype.currentTransform.call(this,t)||null},n.prototype.containsPoint=function(t,e){var n,o,r;if(this.visible())for(n=this.children,o=this.currentTransform(e),r=0;r<n.length;r++)if(n[r].containsPoint(t,o))return!0;return!1},n.prototype._reparent=function(t,e){var n,o,r,i=this;for(n=0;n<t.length;n++)o=t[n],r=o.parent,r&&r!==i&&r.remove&&r.remove(o),o.parent=e},Object.defineProperties(n.prototype,o),n}(ho(Cn,"children")),lo={alignContent:"start",justifyContent:"start",alignItems:"start",spacing:0,orientation:"horizontal",lineSpacing:0,wrap:!0,revers:!1},fo=function(t,e){t.forEach(e)},yo=function(t,e){var n,o=t.length;for(n=o-1;n>=0;n--)e(t[n],n)},go=function(e){function n(n,o){e.call(this,t.extend({},lo,o)),this._rect=n,this._fieldMap={}}return We(n,e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor,n.prototype.rect=function(t){return t?(this._rect=t,this):this._rect},n.prototype._initMap=function(){var t=this.options,e=this._fieldMap;"horizontal"===t.orientation?(e.sizeField="width",e.groupsSizeField="height",e.groupAxis="x",e.groupsAxis="y"):(e.sizeField="height",e.groupsSizeField="width",e.groupAxis="y",e.groupsAxis="x"),t.reverse?(this.forEach=yo,this.justifyAlign=ct):(this.forEach=fo,this.justifyAlign=pt)},n.prototype.reflow=function(){var t,e,n,o,r,i,s,a,p,c,h,u,l,f,d,y,g,m,v,x,w,b,_,C,k=this;if(this._rect&&0!==this.children.length){for(this._initMap(),this.options.transform&&this.transform(null),t=this.options,e=this._rect,n=this._initGroups(),o=n.groups,r=n.groupsSize,i=this._fieldMap,s=i.sizeField,a=i.groupsSizeField,p=i.groupAxis,c=i.groupsAxis,h=new xn,u=new xn,l=new wn,f=pt(r,e,t.alignContent,c,a),m=function(e,n){var o=y.elements[n];u[p]=d,u[c]=pt(e.size[a],g,t.alignItems,c,a),at(u,e,o),d+=e.size[s]+t.spacing},v=0;v<o.length;v++)y=o[v],h[p]=d=k.justifyAlign(y.size,e,t.justifyContent,p,s),h[c]=f,l[s]=y.size,l[a]=y.lineSize,g=new bn(h,l),k.forEach(y.bboxes,m),f+=y.lineSize+t.lineSpacing;!t.wrap&&y.size>e.size[s]&&(x=e.size[s]/g.size[s],w=g.topLeft().scale(x,x),b=g.size[a]*x,_=pt(b,e,t.alignContent,c,a),C=z(),"x"===p?C.translate(e.origin.x-w.x,_-w.y):C.translate(_-w.x,e.origin.y-w.y),C.scale(x,x),this.transform(C))}},n.prototype._initGroups=function(){var t,e,n,o=this,r=this,i=r.options,s=r.children,a=i.lineSpacing,p=i.wrap,c=i.spacing,h=this._fieldMap.sizeField,u=this._newGroup(),l=[],f=function(){l.push(u),d+=u.lineSize+a},d=-a;for(t=0;t<s.length;t++)e=s[t],n=s[t].clippedBBox(),e.visible()&&n&&(p&&u.size+n.size[h]+c>o._rect.size[h]?0===u.bboxes.length?(o._addToGroup(u,n,e),f(),u=o._newGroup()):(f(),u=o._newGroup(),o._addToGroup(u,n,e)):o._addToGroup(u,n,e));return u.bboxes.length&&f(),{groups:l,groupsSize:d}},n.prototype._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)},n.prototype._newGroup=function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}},n}(uo),mo=function(t){function e(e,n){void 0===e&&(e=new bn),void 0===n&&(n={}),t.call(this,n),this.geometry(e),o(this.options.stroke)||this.stroke("#000")}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return"Rect"},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._containsPoint=function(t){return this._geometry.containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,n),e}(Mn(En(Pn(Cn)))),vo=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype._change=function(){this.optionsChange({field:"stops"})},e}($n),xo=function(t,e){var n=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e}(t);return Ct(n.prototype,e),n},wo=["offset","color","opacity"],bo=function(t){function e(e,n,r){t.call(this),this.options=new mn({offset:e,color:n,opacity:o(r)?r:1}),this.options.addObserver(this)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.create=function(t){if(o(t)){var n;return n=t instanceof e?t:t.length>1?new e(t[0],t[1],t[2]):new e(t.offset,t.color,t.opacity)}},e}(xo(nn,wo)),_o=function(t){function e(e){void 0===e&&(e={}),t.call(this),this.stops=new vo(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=r()}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return"Gradient"},e.prototype.userSpace=function(t){return o(t)?(this._userSpace=t,this.optionsChange(),this):this._userSpace},e.prototype._createStops=function(t){var e,n;for(void 0===t&&(t=[]),e=[],n=0;n<t.length;n++)e.push(bo.create(t[n]));return e},e.prototype.addStop=function(t,e,n){this.stops.push(new bo(t,e,n))},e.prototype.removeStop=function(t){var e=this.stops.indexOf(t);e>=0&&this.stops.splice(e,1)},e.prototype.optionsChange=function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},e.prototype.geometryChange=function(){this.optionsChange()},Object.defineProperties(e.prototype,n),e}(nn),Co=["start","end"],ko=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.start(e.start||new xn),this.end(e.end||new xn(1,0))}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e}(Xn(_o,Co)),To=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.center(e.center||new xn),this._radius=o(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.radius=function(t){return o(t)?(this._radius=t,this.geometryChange(),this):this._radius},e.prototype.fallbackFill=function(t){return o(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill},e}(Xn(_o,["center"])),Oo={swing:kt,linear:Tt,easeOutElastic:Ot},So=function(t){function e(){t.call(this),this._items=[]}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={current:{}};return n.current.get=function(){return Mo||(Mo=new e),Mo},e.prototype.register=function(t,e){this._items.push({name:t,type:e})},e.prototype.create=function(t,e){var n,o,r,i=this._items;if(e&&e.type)for(o=e.type.toLowerCase(),r=0;r<i.length;r++)if(i[r].name.toLowerCase()===o){n=i[r];break}if(n)return new n.type(t,e)},Object.defineProperties(e,n),e}(Qe),Eo=function(e){function n(n,o){e.call(this),this.options=t.extend({},this.options,o),this.element=n}We(n,e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor;var o={options:{}};return n.create=function(t,e,n){return So.current.create(t,e,n)},o.options.get=function(){return this._options||{duration:500,easing:"swing"}},o.options.set=function(t){this._options=t},n.prototype.setup=function(){},n.prototype.step=function(){},n.prototype.play=function(){var t,e,n,o=this,r=this.options,i=r.duration,s=r.delay;void 0===s&&(s=0),t=Oo[r.easing],e=ln()+s,n=e+i,0===i?(this.step(1),this.abort()):setTimeout(function(){var r=function(){var s,a,p,c;o._stopped||(s=ln(),a=l(s-e,0,i),p=a/i,c=t(p,a,0,1,i),o.step(c),s<n?kendo.animationFrame(r):o.abort())};r()},s)},n.prototype.abort=function(){this._stopped=!0},n.prototype.destroy=function(){this.abort()},Object.defineProperties(n.prototype,o),n}(Qe),Ao=function(t){function e(){t.apply(this,arguments)}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={current:{}};return n.current.get=function(){return Po||(Po=new e),Po},e.prototype.parse=function(t,e){var n=new oo(e);return rt(n,t)},Object.defineProperties(e,n),e}(Qe),zo=function(t){function e(e){t.call(this),this.childNodes=[],this.parent=null,e&&(this.srcElement=e,this.observe())}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.destroy=function(){var t,e,n=this;for(this.srcElement&&this.srcElement.removeObserver(this),t=this.childNodes,e=0;e<t.length;e++)n.childNodes[e].destroy();this.parent=null},e.prototype.load=function(){},e.prototype.observe=function(){this.srcElement&&this.srcElement.addObserver(this)},e.prototype.append=function(t){this.childNodes.push(t),t.parent=this},e.prototype.insertAt=function(t,e){this.childNodes.splice(e,0,t),t.parent=this},e.prototype.remove=function(t,e){var n,o=this,r=t+e;for(n=t;n<r;n++)o.childNodes[n].removeSelf();this.childNodes.splice(t,e)},e.prototype.removeSelf=function(){this.clear(),this.destroy()},e.prototype.clear=function(){this.remove(0,this.childNodes.length)},e.prototype.invalidate=function(){this.parent&&this.parent.invalidate()},e.prototype.geometryChange=function(){this.invalidate()},e.prototype.optionsChange=function(){this.invalidate()},e.prototype.childrenChange=function(t){"add"===t.action?this.load(t.items,t.index):"remove"===t.action&&this.remove(t.index,t.items.length),this.invalidate()},e}(Qe),No=["click","mouseenter","mouseleave","mousemove","resize"],jo=function(e){function n(n,o){e.call(this),this.options=t.extend({},o),this.element=n,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new uo,_(n,this.options),this.bind(No,this.options),this._enableTracking()}return We(n,e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor,n.prototype.draw=function(t){this._visual.children.push(t)},n.prototype.clear=function(){this._visual.children=[]},n.prototype.destroy=function(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()},n.prototype.eventTarget=function(t){for(var e,n=this,o=c(t);!e&&o&&(e=o._kendoNode,o!==n.element);)o=o.parentElement;if(e)return e.srcElement},n.prototype.exportVisual=function(){return this._visual},n.prototype.getSize=function(){return _(this.element)},n.prototype.currentSize=function(t){return t?void(this._size=t):this._size},n.prototype.setSize=function(t){_(this.element,t),this.currentSize(t),this._resize()},n.prototype.resize=function(t){var e=this.getSize(),n=this.currentSize();(t||(e.width>0||e.height>0)&&(!n||e.width!==n.width||e.height!==n.height))&&(this.currentSize(e),this._resize(e,t),this.trigger("resize",e))},n.prototype.size=function(t){return t?void this.setSize(t):this.getSize()},n.prototype.suspendTracking=function(){this._suspendedTracking=!0},n.prototype.resumeTracking=function(){this._suspendedTracking=!1},n.prototype._enableTracking=function(){},n.prototype._resize=function(){},n.prototype._handler=function(t){var e=this;return function(n){var o=e.eventTarget(n);o&&!e._suspendedTracking&&e.trigger(t,{element:o,originalEvent:n,type:t})}},n.prototype._elementOffset=function(){var t=this.element,e=k(t),n=x(t),o=n.left,r=n.top;return{left:o+e.left,top:r+e.top}},n.prototype._surfacePoint=function(t){var e=this._elementOffset(),n=p(t),o=n.x-e.left,r=n.y-e.top,i=M(this.element).invert(),s=new xn(o,r).transform(i);return s},n}(kendo.Observable),Ro={},Bo="http://www.w3.org/2000/svg",Fo="none",Lo=function(t,e){t.innerHTML=e},"undefined"!=typeof document&&(Io="<svg xmlns='"+Bo+"'></svg>",Do=document.createElement("div"),Ho="undefined"!=typeof DOMParser,Do.innerHTML=Io,Ho&&Do.firstChild.namespaceURI!==Bo&&(Lo=function(t,e){var n=new DOMParser,o=n.parseFromString(e,"text/xml"),r=document.adoptNode(o.documentElement);t.innerHTML="",t.appendChild(r)})),qo=Lo,Go="transform",$o={clip:"clip-path",fill:"fill"},Vo=function(t){function e(e,n){t.call(this,e),this.definitions={},this.options=n}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.destroy=function(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(), t.prototype.destroy.call(this)},e.prototype.load=function(t,e){var n,r,i,s,a,p=this;for(n=0;n<t.length;n++)r=t[n],i=r.children,s=new Ro[r.nodeType](r,p.options),o(e)?p.insertAt(s,e):p.append(s),s.createDefinitions(),i&&i.length>0&&s.load(i),a=p.element,a&&s.attachTo(a,e)},e.prototype.root=function n(){for(var n=this;n.parent;)n=n.parent;return n},e.prototype.attachTo=function(t,e){var n,r=document.createElement("div");qo(r,"<svg xmlns='"+Bo+"' version='1.1'>"+this.render()+"</svg>"),n=r.firstChild.firstChild,n&&(o(e)?t.insertBefore(n,t.childNodes[e]||null):t.appendChild(n),this.setElement(n))},e.prototype.setElement=function(t){var e,n,o;for(this.element&&(this.element._kendoNode=null),this.element=t,this.element._kendoNode=this,e=this.childNodes,n=0;n<e.length;n++)o=t.childNodes[n],e[n].setElement(o)},e.prototype.clear=function(){var t,e;for(this.clearDefinitions(),this.element&&(this.element.innerHTML=""),t=this.childNodes,e=0;e<t.length;e++)t[e].destroy();this.childNodes=[]},e.prototype.removeSelf=function(){if(this.element){var e=this.element.parentNode;e&&e.removeChild(this.element),this.element=null}t.prototype.removeSelf.call(this)},e.prototype.template=function(){return this.renderChildren()},e.prototype.render=function(){return this.template()},e.prototype.renderChildren=function(){var t,e=this.childNodes,n="";for(t=0;t<e.length;t++)n+=e[t].render();return n},e.prototype.optionsChange=function(e){var n=e.field,o=e.value;"visible"===n?this.css("display",o?"":Fo):$o[n]&&Pt(n,o)?this.updateDefinition(n,o):"opacity"===n?this.attr("opacity",o):"cursor"===n?this.css("cursor",o):"id"===n&&(o?this.attr("id",o):this.removeAttr("id")),t.prototype.optionsChange.call(this,e)},e.prototype.attr=function(t,e){this.element&&this.element.setAttribute(t,e)},e.prototype.allAttr=function(t){var e,n=this;for(e=0;e<t.length;e++)n.attr(t[e][0],t[e][1])},e.prototype.css=function(t,e){this.element&&(this.element.style[t]=e)},e.prototype.allCss=function(t){var e,n=this;for(e=0;e<t.length;e++)n.css(t[e][0],t[e][1])},e.prototype.removeAttr=function(t){this.element&&this.element.removeAttribute(t)},e.prototype.mapTransform=function(t){var e=[];return t&&e.push([Go,"matrix("+t.matrix().toString(6)+")"]),e},e.prototype.renderTransform=function(){return St(this.mapTransform(this.srcElement.transform()))},e.prototype.transformChange=function(t){t?this.allAttr(this.mapTransform(t)):this.removeAttr(Go)},e.prototype.mapStyle=function(){var t=this.srcElement.options,e=[["cursor",t.cursor]];return t.visible===!1&&e.push(["display",Fo]),e},e.prototype.renderStyle=function(){return Mt("style",Et(this.mapStyle(!0)))},e.prototype.renderOpacity=function(){return Mt("opacity",this.srcElement.options.opacity)},e.prototype.renderId=function(){return Mt("id",this.srcElement.options.id)},e.prototype.createDefinitions=function(){var t,e,n,o,r=this.srcElement,i=this.definitions;if(r){t=r.options;for(n in $o)o=t.get(n),o&&Pt(n,o)&&(i[n]=o,e=!0);e&&this.definitionChange({action:"add",definitions:i})}},e.prototype.definitionChange=function(t){this.parent&&this.parent.definitionChange(t)},e.prototype.updateDefinition=function(t,e){var n=this.definitions,o=n[t],r=$o[t],i={};o&&(i[t]=o,this.definitionChange({action:"remove",definitions:i}),delete n[t]),e?(i[t]=e,this.definitionChange({action:"add",definitions:i}),n[t]=e,this.attr(r,this.refUrl(e.id))):o&&this.removeAttr(r)},e.prototype.clearDefinitions=function(){var t=this.definitions;this.definitionChange({action:"remove",definitions:t}),this.definitions={}},e.prototype.renderDefinitions=function(){return St(this.mapDefinitions())},e.prototype.mapDefinitions=function(){var t,e=this,n=this.definitions,o=[];for(t in n)o.push([$o[t],e.refUrl(n[t].id)]);return o},e.prototype.refUrl=function(t){var e=(this.options||{}).skipBaseHref,n=this.baseUrl().replace(/'/g,"\\'"),o=e?"":n;return"url("+o+"#"+t+")"},e.prototype.baseUrl=function(){return At()},e}(zo),Uo=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.template=function(){return"<stop "+this.renderOffset()+" "+this.renderStyle()+" />"},e.prototype.renderOffset=function(){return Mt("offset",this.srcElement.offset())},e.prototype.mapStyle=function(){var t=this.srcElement;return[["stop-color",t.color()],["stop-opacity",t.opacity()]]},e.prototype.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)},e}(Vo),Xo=function(t){function e(e){t.call(this,e),this.id=e.id,this.loadStops()}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.loadStops=function(){var t,e,n=this,o=this.srcElement.stops,r=this.element;for(t=0;t<o.length;t++)e=new Uo(o[t]),n.append(e),r&&e.attachTo(r)},e.prototype.optionsChange=function(t){"gradient.stops"===t.field?(zo.prototype.clear.call(this),this.loadStops()):"gradient"===t.field&&this.allAttr(this.mapCoordinates())},e.prototype.renderCoordinates=function(){return St(this.mapCoordinates())},e.prototype.mapSpace=function(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]},e}(Vo),Yo=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.template=function(){return"<linearGradient id='"+this.id+"' "+this.renderCoordinates()+">"+this.renderChildren()+"</linearGradient>"},e.prototype.mapCoordinates=function(){var t=this.srcElement,e=t.start(),n=t.end(),o=[["x1",e.x],["y1",e.y],["x2",n.x],["y2",n.y],this.mapSpace()];return o},e}(Xo),Wo=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.template=function(){return"<radialGradient id='"+this.id+"' "+this.renderCoordinates()+">"+this.renderChildren()+"</radialGradient>"},e.prototype.mapCoordinates=function(){var t=this.srcElement,e=t.center(),n=t.radius(),o=[["cx",e.x],["cy",e.y],["r",n],this.mapSpace()];return o},e}(Xo),Qo=function(t){function e(e){t.call(this),this.srcElement=e,this.id=e.id,this.load([e])}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.template=function(){return"<clipPath id='"+this.id+"'>"+this.renderChildren()+"</clipPath>"},e}(Vo),Zo=function(t){function e(){t.call(this),this.definitionMap={}}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.attachTo=function(t){this.element=t},e.prototype.template=function(){return"<defs>"+this.renderChildren()+"</defs>"},e.prototype.definitionChange=function(t){var e=t.definitions,n=t.action;"add"===n?this.addDefinitions(e):"remove"===n&&this.removeDefinitions(e)},e.prototype.createDefinition=function(t,e){var n;return"clip"===t?n=Qo:"fill"===t&&(e instanceof ko?n=Yo:e instanceof To&&(n=Wo)),new n(e)},e.prototype.addDefinitions=function(t){var e,n=this;for(e in t)n.addDefinition(e,t[e])},e.prototype.addDefinition=function(t,e){var n,o=this,r=o.element,i=o.definitionMap,s=e.id,a=i[s];a?a.count++:(n=this.createDefinition(t,e),i[s]={element:n,count:1},this.append(n),r&&n.attachTo(this.element))},e.prototype.removeDefinitions=function(t){var e,n=this;for(e in t)n.removeDefinition(t[e])},e.prototype.removeDefinition=function(t){var e=this.definitionMap,n=t.id,o=e[n];o&&(o.count--,0===o.count&&(this.remove(this.childNodes.indexOf(o.element),1),delete e[n]))},e}(Vo),Jo=function(t){function e(e){t.call(this),this.options=e,this.defs=new Zo}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.attachTo=function(t){this.element=t,this.defs.attachTo(t.firstElementChild)},e.prototype.clear=function(){zo.prototype.clear.call(this)},e.prototype.template=function(){return this.defs.render()+this.renderChildren()},e.prototype.definitionChange=function(t){this.defs.definitionChange(t)},e}(Vo),Ko={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]},tr="solid",er="butt",nr={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},or=" ",rr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.geometryChange=function(){this.attr("d",this.renderData()),this.invalidate()},e.prototype.optionsChange=function(e){switch(e.field){case"fill":e.value?this.allAttr(this.mapFill(e.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:e.value}));break;case"stroke":e.value?this.allAttr(this.mapStroke(e.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(e.value);break;default:var n=nr[e.field];n&&this.attr(n,e.value)}t.prototype.optionsChange.call(this,e)},e.prototype.content=function(){this.element&&(this.element.textContent=this.srcElement.content())},e.prototype.renderData=function(){return this.printPath(this.srcElement)},e.prototype.printPath=function(t){var e,n,o,r,i,s=this,a=t.segments,p=a.length;if(p>0){for(e=[],r=1;r<p;r++)i=s.segmentType(a[r-1],a[r]),i!==o&&(o=i,e.push(i)),e.push("L"===i?s.printPoints(a[r].anchor()):s.printPoints(a[r-1].controlOut(),a[r].controlIn(),a[r].anchor()));return n="M"+this.printPoints(a[0].anchor())+or+e.join(or),t.options.closed&&(n+="Z"),n}},e.prototype.printPoints=function(){var t,e=arguments,n=e.length,o=[];for(t=0;t<n;t++)o.push(e[t].toString(3));return o.join(" ")},e.prototype.segmentType=function(t,e){return t.controlOut()&&e.controlIn()?"C":"L"},e.prototype.mapStroke=function(t){var e=[];return t&&!h(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]),o(t.opacity)&&e.push(["stroke-opacity",t.opacity]),o(t.dashType)&&e.push(["stroke-dasharray",this.renderDashType(t)])):e.push(["stroke",Fo]),e},e.prototype.renderStroke=function(){return St(this.mapStroke(this.srcElement.options.stroke))},e.prototype.renderDashType=function(t){var e,n,o,r=t.dashType,i=t.width;if(void 0===i&&(i=1),r&&r!==tr){for(e=Ko[r.toLowerCase()],n=[],o=0;o<e.length;o++)n.push(e[o]*i);return n.join(" ")}},e.prototype.renderLinecap=function(t){var e=t.dashType,n=t.lineCap;return e&&"solid"!==e?er:n},e.prototype.mapFill=function(t){var e=[];return t&&"Gradient"===t.nodeType||(t&&!h(t.color)?(e.push(["fill",t.color]),o(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",Fo])),e},e.prototype.renderFill=function(){return St(this.mapFill(this.srcElement.options.fill))},e.prototype.template=function(){return"<path "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" "+Mt("d",this.renderData())+this.renderStroke()+this.renderFill()+this.renderDefinitions()+this.renderTransform()+"></path>"},e}(Vo),ir=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderData=function(){return this.printPath(this.srcElement.toPath())},e}(rr),sr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.geometryChange=function(){var t=this.center();this.attr("cx",t.x),this.attr("cy",t.y),this.attr("r",this.radius()),this.invalidate()},e.prototype.center=function(){return this.srcElement.geometry().center},e.prototype.radius=function(){return this.srcElement.geometry().radius},e.prototype.template=function(){return"<circle "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+"cx='"+this.center().x+"' cy='"+this.center().y+"' r='"+this.radius()+"'"+this.renderStroke()+" "+this.renderFill()+" "+this.renderDefinitions()+this.renderTransform()+" ></circle>"},e}(rr),ar=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.template=function(){return"<g"+(this.renderId()+this.renderTransform()+this.renderStyle()+this.renderOpacity()+this.renderDefinitions())+">"+this.renderChildren()+"</g>"},e.prototype.optionsChange=function(e){"transform"===e.field&&this.transformChange(e.value),t.prototype.optionsChange.call(this,e)},e}(Vo),pr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.geometryChange=function(){this.allAttr(this.mapPosition()),this.invalidate()},e.prototype.optionsChange=function(e){"src"===e.field&&this.allAttr(this.mapSource()),t.prototype.optionsChange.call(this,e)},e.prototype.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"]]},e.prototype.renderPosition=function(){return St(this.mapPosition())},e.prototype.mapSource=function(t){var e=this.srcElement.src();return t&&(e=kendo.htmlEncode(e)),[["xlink:href",e]]},e.prototype.renderSource=function(){return St(this.mapSource(!0))},e.prototype.template=function(){return"<image preserveAspectRatio='none' "+this.renderId()+" "+this.renderStyle()+" "+this.renderTransform()+" "+this.renderOpacity()+this.renderPosition()+" "+this.renderSource()+" "+this.renderDefinitions()+"></image>"},e}(rr),cr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderData=function(){var t,e,n=this,o=this.srcElement.paths;if(o.length>0){for(t=[],e=0;e<o.length;e++)t.push(n.printPath(o[e]));return t.join(" ")}},e}(rr),hr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.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()},e.prototype.size=function(){return this.srcElement.geometry().size},e.prototype.origin=function(){return this.srcElement.geometry().origin},e.prototype.template=function(){return"<rect "+this.renderId()+" "+this.renderStyle()+" "+this.renderOpacity()+" x='"+this.origin().x+"' y='"+this.origin().y+"' width='"+this.size().width+"' height='"+this.size().height+"' "+this.renderStroke()+" "+this.renderFill()+" "+this.renderDefinitions()+" "+this.renderTransform()+" />"},e}(rr),ur=/&(?:[a-zA-Z]+|#\d+);/g,"undefined"!=typeof document&&(zt._element=document.createElement("span")),lr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.geometryChange=function(){var t=this.pos();this.attr("x",t.x),this.attr("y",t.y),this.invalidate()},e.prototype.optionsChange=function(e){"font"===e.field?(this.attr("style",Et(this.mapStyle())),this.geometryChange()):"content"===e.field&&t.prototype.content.call(this,this.srcElement.content()),t.prototype.optionsChange.call(this,e)},e.prototype.mapStyle=function(e){var n=t.prototype.mapStyle.call(this,e),o=this.srcElement.options.font;return e&&(o=kendo.htmlEncode(o)),n.push(["font",o],["white-space","pre"]),n},e.prototype.pos=function n(){var n=this.srcElement.position(),t=this.srcElement.measure();return n.clone().setY(n.y+t.baseline)},e.prototype.renderContent=function(){var t=this.srcElement.content();return t=zt(t),t=kendo.htmlEncode(t),Ze.normalizeText(t)},e.prototype.renderTextAnchor=function(){var t;return!(this.options||{}).rtl||Ke.msie||Ke.edge||(t="end"),Mt("text-anchor",t)},e.prototype.template=function(){return"<text "+this.renderId()+" "+this.renderTextAnchor()+" "+this.renderStyle()+" "+this.renderOpacity()+"x='"+this.pos().x+"' y='"+this.pos().y+"' "+this.renderStroke()+" "+this.renderTransform()+" "+this.renderDefinitions()+this.renderFill()+">"+this.renderContent()+"</text>"},e}(rr),Ro.Arc=ir,Ro.Circle=sr,Ro.Group=ar,Ro.Image=pr,Ro.MultiPath=cr,Ro.Path=rr,Ro.Rect=hr,Ro.Text=lr,fr="rtl",dr=function(e){function n(n,o){e.call(this,n,o),this._root=new Jo(t.extend({rtl:w(n,"direction").direction===fr},this.options)),qo(this.element,this._template()),this._rootElement=this.element.firstElementChild,Nt(this._rootElement),this._root.attachTo(this._rootElement),v(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}We(n,e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor;var o={type:{}};return o.type.get=function(){return"svg"},n.prototype.destroy=function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,C(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),e.prototype.destroy.call(this)},n.prototype.translate=function(t){var e=Math.round(t.x)+" "+Math.round(t.y)+" "+this._size.width+" "+this._size.height;this._offset=t,this._rootElement.setAttribute("viewBox",e)},n.prototype.draw=function(t){e.prototype.draw.call(this,t),this._root.load([t])},n.prototype.clear=function(){e.prototype.clear.call(this),this._root.clear()},n.prototype.svg=function(){return"<?xml version='1.0' ?>"+this._template()},n.prototype.exportVisual=function(){var t,e=this,n=e._visual,o=e._offset;return o&&(t=new uo,t.children.push(n),t.transform(z().translate(-o.x,-o.y)),n=t),n},n.prototype._resize=function(){this._offset&&this.translate(this._offset)},n.prototype._template=function(){return"<svg style='width: 100%; height: 100%; overflow: hidden;' xmlns='"+Bo+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+this._root.render()+"</svg>"},Object.defineProperties(n.prototype,o),n}(jo),yr={},gr=function(t){function e(e){t.call(this,e),e&&this.initClip()}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.initClip=function(){var t=this.srcElement.clip();t&&(this.clip=t,t.addObserver(this))},e.prototype.clear=function(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),t.prototype.clear.call(this)},e.prototype.clearClip=function(){this.clip&&(this.clip.removeObserver(this),delete this.clip)},e.prototype.setClip=function(t){this.clip&&(t.beginPath(),jt(t,this.clip),t.clip())},e.prototype.optionsChange=function(e){"clip"===e.field&&(this.clearClip(),this.initClip()),t.prototype.optionsChange.call(this,e)},e.prototype.setTransform=function(t){if(this.srcElement){var e=this.srcElement.transform();e&&t.transform.apply(t,e.matrix().toArray(6))}},e.prototype.loadElements=function(t,e,n){var r,i,s,a,p=this;for(r=0;r<t.length;r++)i=t[r],s=i.children,a=new yr[i.nodeType](i,n),s&&s.length>0&&a.load(s,e,n),o(e)?p.insertAt(a,e):p.append(a)},e.prototype.load=function(t,e,n){this.loadElements(t,e,n),this.invalidate()},e.prototype.setOpacity=function(t){if(this.srcElement){var e=this.srcElement.opacity();o(e)&&this.globalAlpha(t,e)}},e.prototype.globalAlpha=function(t,e){var n=e;n&&t.globalAlpha&&(n*=t.globalAlpha),t.globalAlpha=n},e.prototype.visible=function(){var t=this.srcElement;return!t||t&&t.options.visible!==!1},e}(zo),mr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderTo=function(t){var e,n,o;if(this.visible()){for(t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),e=this.childNodes,n=0;n<e.length;n++)o=e[n],o.visible()&&o.renderTo(t);t.restore()}},e}(ho(gr,"childNodes")),vr=1e3/60,xr=function(t){function e(e,n){t.call(this),this.canvas=e,this.size=n,this.ctx=e.getContext("2d");var o=this._invalidate.bind(this);this.invalidate=kendo.throttle(function(){kendo.animationFrame(o)},vr)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.destroy=function(){t.prototype.destroy.call(this),this.canvas=null,this.ctx=null},e.prototype.load=function(t,e,n){this.loadElements(t,e,n),this._invalidate()},e.prototype._rescale=function(t){var e=this,n=e.canvas,o=e.size;n.width=o.width*t,n.height=o.height*t,this.ctx.scale(t,t)},e.prototype._devicePixelRatio=function(){return"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1},e.prototype._invalidate=function(t){var e,n;this.ctx&&(e=t&&t.fixedScale,n=e?1:this._devicePixelRatio(),this._rescale(n),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))},e}(ho(mr,"childNodes")),wr=function(t){function e(){t.call(this),this.shapes=[]}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype._add=function(t,e){this.shapes.push({bbox:e,shape:t}),t._quadNode=this},e.prototype.pointShapes=function(t){var e,n=this.shapes,o=n.length,r=[];for(e=0;e<o;e++)n[e].bbox.containsPoint(t)&&r.push(n[e].shape);return r},e.prototype.insert=function(t,e){this._add(t,e)},e.prototype.remove=function(t){var e,n=this.shapes,o=n.length;for(e=0;e<o;e++)if(n[e].shape===t){n.splice(e,1);break}},e}(Qe),br={Circle:Tn,Arc:Fn,Rect:bn,Point:xn,Segment:Wn,Matrix:fn,Size:wn,toMatrix:A,Transformation:_n,transform:z},_r=function(t){function n(e){t.call(this),this.children=[],this.rect=e}return We(n,t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor,n.prototype.inBounds=function o(t){var e=this.rect,n=e.bottomRight(),r=t.bottomRight(),o=e.origin.x<=t.origin.x&&e.origin.y<=t.origin.y&&r.x<=n.x&&r.y<=n.y;return o},n.prototype.pointShapes=function(n){var o,r=this.children,i=r.length,s=t.prototype.pointShapes.call(this,n);for(o=0;o<i;o++)e(s,r[o].pointShapes(n));return s},n.prototype.insert=function(t,e){var n,o=this.children,r=!1;if(this.inBounds(e)){if(this.shapes.length<4)this._add(t,e);else{for(o.length||this._initChildren(),n=0;n<o.length;n++)if(o[n].insert(t,e)){r=!0;break}r||this._add(t,e)}r=!0}return r},n.prototype._initChildren=function(){var t=this,e=t.rect,o=t.children,r=e.center(),i=e.width()/2,s=e.height()/2;o.push(new n(new bn([e.origin.x,e.origin.y],[i,s])),new n(new bn([r.x,e.origin.y],[i,s])),new n(new bn([e.origin.x,r.y],[i,s])),new n(new bn([r.x,r.y],[i,s])))},n}(wr),Cr=3e3,kr=1e4,Tr=75,Or=function(t){function n(){t.call(this),this.initRoots()}return We(n,t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor,n.prototype.initRoots=function(){this.rootMap={},this.root=new wr,this.rootElements=[]},n.prototype.clear=function(){var t,e=this,n=this.rootElements;for(t=0;t<n.length;t++)e.remove(n[t]);this.initRoots()},n.prototype.pointShape=function(t){var e,n=(this.rootMap[Math.floor(t.x/Cr)]||{})[Math.floor(t.y/Cr)],o=this.root.pointShapes(t);for(n&&(o=o.concat(n.pointShapes(t))),this.assignZindex(o),o.sort(Rt),e=0;e<o.length;e++)if(o[e].containsPoint(t))return o[e]},n.prototype.assignZindex=function(t){var e,n,o,r,i,s=this;for(e=0;e<t.length;e++){for(n=t[e],o=0,r=Math.pow(kr,Tr),i=[];n;)i.push(n),n=n.parent;for(;i.length;)n=i.pop(),o+=((n.parent?n.parent.children:s.rootElements).indexOf(n)+1)*r,r/=kr;t[e]._zIndex=o}},n.prototype.optionsChange=function(t){"transform"!==t.field&&"stroke.width"!==t.field||this.bboxChange(t.element)},n.prototype.geometryChange=function(t){this.bboxChange(t.element)},n.prototype.bboxChange=function(t){var e,n=this;if("Group"===t.nodeType)for(e=0;e<t.children.length;e++)n.bboxChange(t.children[e]);else t._quadNode&&t._quadNode.remove(t),this._insertShape(t)},n.prototype.add=function(t){var n=Array.isArray(t)?t.slice(0):[t];e(this.rootElements,n),this._insert(n)},n.prototype.childrenChange=function(t){var e,n=this;if("remove"===t.action)for(e=0;e<t.items.length;e++)n.remove(t.items[e]);else this._insert(Array.prototype.slice.call(t.items,0))},n.prototype._insert=function(t){for(var n,o=this;t.length>0;)n=t.pop(),n.addObserver(o),"Group"===n.nodeType?e(t,n.children):o._insertShape(n)},n.prototype._insertShape=function(t){var e,n,o,r,i=t.bbox();i&&(e=this.getSectors(i),n=e[0][0],o=e[1][0],this.inRoot(e)?this.root.insert(t,i):(r=this.rootMap,r[n]||(r[n]={}),r[n][o]||(r[n][o]=new _r(new bn([n*Cr,o*Cr],[Cr,Cr]))),r[n][o].insert(t,i)))},n.prototype.remove=function(t){var e,n,o=this;if(t.removeObserver(this),"Group"===t.nodeType)for(e=t.children,n=0;n<e.length;n++)o.remove(e[n]);else t._quadNode&&(t._quadNode.remove(t),delete t._quadNode)},n.prototype.inRoot=function(t){return t[0].length>1||t[1].length>1},n.prototype.getSectors=function(t){var e,n,o=t.bottomRight(),r=Math.floor(o.x/Cr),i=Math.floor(o.y/Cr),s=[[],[]];for(e=Math.floor(t.origin.x/Cr);e<=r;e++)s[0].push(e);for(n=Math.floor(t.origin.y/Cr);n<=i;n++)s[1].push(n);return s},n}(Qe),Mr=function(t){t.bind("mouseenter",this._mouseenter.bind(this)),t.bind("mouseleave",this._mouseleave.bind(this)),this.element=t.element},Mr.prototype.clear=function(){this._resetCursor()},Mr.prototype.destroy=function(){this._resetCursor(),delete this.element},Mr.prototype._mouseenter=function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()},Mr.prototype._mouseleave=function(){this._resetCursor()},Mr.prototype._shapeCursor=function(t){for(var e=t.element;e&&!o(e.options.cursor);)e=e.parent;if(e)return e.options.cursor},Mr.prototype._getCursor=function(){if(this.element)return this.element.style.cursor},Mr.prototype._setCursor=function(t){this.element&&(this.element.style.cursor=t,this._current=t)},Mr.prototype._resetCursor=function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)},Sr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.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()},e.prototype.setFill=function(t){var e=this.srcElement.options.fill,n=!1;return e&&("Gradient"===e.nodeType?(this.setGradientFill(t,e),n=!0):h(e.color)||(t.fillStyle=e.color,t.save(),this.globalAlpha(t,e.opacity),t.fill(),t.restore(),n=!0)),n},e.prototype.setGradientFill=function(t,e){var n,o,r,i,s=this.srcElement.rawBBox();e instanceof ko?(o=e.start(),r=e.end(),n=t.createLinearGradient(o.x,o.y,r.x,r.y)):e instanceof To&&(i=e.center(),n=t.createRadialGradient(i.x,i.y,0,i.x,i.y,e.radius())),Bt(n,e.stops),t.save(),e.userSpace()||t.transform(s.width(),0,0,s.height(),s.origin.x,s.origin.y),t.fillStyle=n,t.fill(),t.restore()},e.prototype.setStroke=function(t){var e=this.srcElement.options.stroke;if(e&&!h(e.color)&&e.width>0)return t.strokeStyle=e.color,t.lineWidth=m(e.width,1),t.save(),this.globalAlpha(t,e.opacity),t.stroke(),t.restore(),!0},e.prototype.dashType=function(){var t=this.srcElement.options.stroke;if(t&&t.dashType)return t.dashType.toLowerCase()},e.prototype.setLineDash=function(t){var e,n=this.dashType();n&&n!==tr&&(e=Ko[n],t.setLineDash?t.setLineDash(e):(t.mozDash=e,t.webkitLineDash=e))},e.prototype.setLineCap=function(t){var e=this.dashType(),n=this.srcElement.options.stroke;e&&e!==tr?t.lineCap=er:n&&n.lineCap&&(t.lineCap=n.lineCap)},e.prototype.setLineJoin=function(t){var e=this.srcElement.options.stroke;e&&e.lineJoin&&(t.lineJoin=e.lineJoin)},e.prototype.renderPoints=function(t,e){jt(t,e)},e}(gr),Er=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderPoints=function(t){var e=this.srcElement.toPath();jt(t,e)},e}(Sr),Pr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),n=e.center,o=e.radius;t.arc(n.x,n.y,o,0,2*Math.PI)},e}(Sr),Ar=function(t){function e(e,n){t.call(this,e),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=tn();var o=this.img=new Image;n&&!/^data:/i.test(e.src())&&(o.crossOrigin=n),o.src=e.src(),o.complete?this.onLoad():(o.onload=this.onLoad,o.onerror=this.onError)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderTo=function(t){"resolved"===this.loading.state()&&(t.save(),this.setTransform(t),this.setClip(t),this.drawImage(t),t.restore())},e.prototype.optionsChange=function(e){"src"===e.field?(this.loading=tn(),this.img.src=this.srcElement.src()):t.prototype.optionsChange.call(this,e)},e.prototype.onLoad=function(){this.loading.resolve(),this.invalidate()},e.prototype.onError=function(){this.loading.reject(Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))},e.prototype.drawImage=function(t){var e=this.srcElement.rect(),n=e.topLeft();t.drawImage(this.img,n.x,n.y,e.width(),e.height())},e}(Sr),zr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderPoints=function(t){var e,n=this.srcElement.paths;for(e=0;e<n.length;e++)jt(t,n[e])},e}(Sr),Nr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),n=e.origin,o=e.size;t.rect(n.x,n.y,o.width,o.height)},e}(Sr),jr=function(t){function e(){t.apply(this,arguments)}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.renderTo=function(t){var e=this.srcElement,n=e.position(),o=e.measure();t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),t.font=e.options.font,t.textAlign="left",this.setFill(t)&&t.fillText(e.content(),n.x,n.y+o.baseline),this.setStroke(t)&&(this.setLineDash(t),t.strokeText(e.content(),n.x,n.y+o.baseline)),t.restore()},e}(Sr),yr.Arc=Er,yr.Circle=Pr,yr.Group=mr,yr.Image=Ar,yr.MultiPath=zr,yr.Path=Sr,yr.Rect=Nr,yr.Text=jr,Rr=function(t){function e(e,n){var o,r;t.call(this,e,n),this.element.innerHTML=this._template(this),o=this.element.firstElementChild,r=_(e),o.width=r.width,o.height=r.height,this._rootElement=o,this._root=new xr(o,r),this._mouseTrackHandler=this._trackMouse.bind(this),v(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={type:{}};return n.type.get=function(){return"canvas"},e.prototype.destroy=function(){t.prototype.destroy.call(this),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),C(this.element,{ click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})},e.prototype.draw=function(e){t.prototype.draw.call(this,e),this._root.load([e],void 0,this.options.cors),this._searchTree&&this._searchTree.add([e])},e.prototype.clear=function(){t.prototype.clear.call(this),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()},e.prototype.eventTarget=function(t){var e,n;if(this._searchTree)return e=this._surfacePoint(t),n=this._searchTree.pointShape(e)},e.prototype.image=function(){var t,e,n=this,o=n._root,r=n._rootElement,i=[];return o.traverse(function(t){t.loading&&i.push(t.loading)}),t=tn(),e=function(){o._invalidate({fixedScale:!0});try{var e=r.toDataURL();t.resolve(e)}catch(n){t.reject(n)}},en(i).then(e,e),t},e.prototype.suspendTracking=function(){t.prototype.suspendTracking.call(this),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)},e.prototype.resumeTracking=function(){var e,n,o;if(t.prototype.resumeTracking.call(this),!this._searchTree){for(this._searchTree=new Or,e=this._root.childNodes,n=[],o=0;o<e.length;o++)n.push(e[o].srcElement);this._searchTree.add(n)}},e.prototype._resize=function(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.size=this._size,this._root.invalidate()},e.prototype._template=function(){return"<canvas style='width: 100%; height: 100%;'></canvas>"},e.prototype._enableTracking=function(){this._searchTree=new Or,this._cursor=new Mr(this),t.prototype._enableTracking.call(this)},e.prototype._trackMouse=function(t){var e,n;this._suspendedTracking||(e=this.eventTarget(t),"click"!==t.type?(n=this._currentShape,n&&n!==e&&this.trigger("mouseleave",{element:n,originalEvent:t,type:"mouseleave"}),e&&n!==e&&this.trigger("mouseenter",{element:e,originalEvent:t,type:"mouseenter"}),this.trigger("mousemove",{element:e,originalEvent:t,type:"mousemove"}),this._currentShape=e):e&&this.trigger("click",{element:e,originalEvent:t,type:"click"}))},Object.defineProperties(e.prototype,n),e}(jo),Lr=function(){return"undefined"!=typeof document},Ir=function(){return Lr()&&document.createElement("canvas").getContext},Dr=function(){return Lr()&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")},Hr=function(t){function e(){t.call(this),this._items=[{name:"svg",type:dr},{name:"canvas",type:Rr}]}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={support:{},current:{}};return n.support.get=function(){return Fr||(Fr={canvas:Ir(),svg:Dr()}),Fr},n.current.get=function(){return Br||(Br=new e),Br},e.prototype.create=function(t,e){var n,o,r=this._items,i=r[0];if(e&&e.type)for(n=e.type.toLowerCase(),o=0;o<r.length;o++)if(r[o].name===n){i=r[o];break}return i?new i.type(t,e):void kendo.logToConsole("Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG and Canvas. User agent: "+navigator.userAgent)},Object.defineProperties(e,n),e}(Qe),qr=function(t){function e(){t.apply(this,arguments)}We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor;var n={support:{}};return n.support.get=function(){return Hr.support},e.create=function(t,e){return Hr.current.create(t,e)},Object.defineProperties(e,n),e}(jo),Gr={Surface:dr,RootNode:Jo,Node:Vo,GroupNode:ar,ArcNode:ir,CircleNode:sr,RectNode:hr,ImageNode:pr,TextNode:lr,PathNode:rr,MultiPathNode:cr,DefinitionNode:Zo,ClipNode:Qo,GradientStopNode:Uo,LinearGradientNode:Yo,RadialGradientNode:Wo,exportGroup:Ft},$r={Surface:Rr,RootNode:xr,Node:gr,GroupNode:mr,ArcNode:Er,CircleNode:Pr,RectNode:Nr,ImageNode:Ar,TextNode:jr,PathNode:Sr,MultiPathNode:zr},Vr=Ke||{},Ur="KENDO-PSEUDO-ELEMENT",Xr={},Yr={},Yr._root=Yr,Wr="undefined"!=typeof window,Qr=!!Wr&&(Vr.msie||Vr.edge),Zr=function(t){function e(e,n,o){t.call(this,e,n.getOrigin(),o),this._pdfRect=n}return We(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.rect=function(){return this._pdfRect},e.prototype.rawBBox=function(){return this._pdfRect},e}(po),Jr="undefined"!=typeof Element&&Element.prototype&&function(t){return t.matches?function(t,e){return t.matches(e)}:t.webkitMatchesSelector?function(t,e){return t.webkitMatchesSelector(e)}:t.mozMatchesSelector?function(t,e){return t.mozMatchesSelector(e)}:t.msMatchesSelector?function(t,e){return t.msMatchesSelector(e)}:function(t){return[].indexOf.call(document.querySelectorAll(t),this)!==-1}}(Element.prototype),Kr=function(t){return t?function e(n){var o,r,i,s,a=n.cloneNode(!1);if(1==n.nodeType){o=t(n),r=t(a),s=o.data();for(i in s)r.data(i,s[i]);for(/^canvas$/i.test(n.tagName)?a.getContext("2d").drawImage(n,0,0):/^(?:input|select|textarea|option)$/i.test(n.tagName)&&(a.removeAttribute("id"),a.removeAttribute("name"),/^textarea$/i.test(n.tagName)||(a.value=n.value),a.checked=n.checked,a.selected=n.selected),i=n.firstChild;i;i=i.nextSibling)a.appendChild(e(i))}return a}:function(t){var e,n=function r(t){var e,n=t.cloneNode(!1);for(t._kendoExportVisual&&(n._kendoExportVisual=t._kendoExportVisual),e=t.firstChild;e;e=e.nextSibling)n.appendChild(r(e));return n}(t),o=t.querySelectorAll("canvas");return o.length&&Dt(n.querySelectorAll("canvas")).forEach(function(t,e){t.getContext("2d").drawImage(o[e],0,0)}),e=t.querySelectorAll("input, select, textarea, option"),Dt(n.querySelectorAll("input, select, textarea, option")).forEach(function(t,n){t.removeAttribute("id"),t.removeAttribute("name"),/^textarea$/i.test(t.tagName)||(t.value=e[n].value),t.checked=e[n].checked,t.selected=e[n].selected}),n}}("undefined"!=typeof window&&window.kendo&&window.kendo.jQuery),ti=function(){function t(t){function f(){var e=s.exec(t);e&&(t=t.substr(e[1].length))}function d(e){f();var n=e.exec(t);if(n)return t=t.substr(n[1].length),n[1]}function y(){var e,r,i,s=kendo.parseColor(t,!0);if(s)return i=/^#[0-9a-f]+/i.exec(t)||/^rgba?\(.*?\)/i.exec(t)||/^..*?\b/.exec(t),t=t.substr(i[0].length),s=s.toRGB(),(e=d(o))||(r=d(n)),{color:s,length:e,percent:r}}function g(e){var o,s,h,u,l,f,g=[],m=!1;if(d(a)){for(o=d(i),"0"==o&&(o="0deg"),o?(o=be(o),d(c)):(s=d(r),"to"==s?s=d(r):s&&/^-/.test(e)&&(m=!0),h=d(r),d(c)),/-moz-/.test(e)&&null==o&&null==s&&(u=d(n),l=d(n),m=!0,"0%"==u?s="left":"100%"==u&&(s="right"),"0%"==l?h="top":"100%"==l&&(h="bottom"),d(c));t&&!d(p)&&(f=y());)g.push(f),d(c);return{type:"linear",angle:o,to:s&&h?s+" "+h:s?s:h?h:null,stops:g,reverse:m}}}function m(){if(d(a)){var t=d(u);return t=t.replace(/^['"]+|["']+$/g,""),d(p),{type:"url",url:t}}}var v,x=t;return Wt(l,x)?l[x]:((v=d(e))?v=g(v):(v=d(h))&&(v=m()),l[x]=v||{type:"none"})}var e=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,n=/^([-0-9.]+%)/,o=/^([-0-9.]+px)/,r=/^(left|right|top|bottom|to|center)\W/,i=/^([-0-9.]+(deg|grad|rad|turn)|0)/,s=/^(\s+)/,a=/^(\()/,p=/^(\))/,c=/^(,)/,h=/^(url)\(/,u=/^(.*?)\)/,l={},f={};return function(e){return Wt(f,e)?f[e]:f[e]=ei(e).map(t)}}(),ei=function(){var t={};return function(e,n){function o(t){return u=t.exec(e.substr(p))}function r(t){return t.replace(/^\s+|\s+$/g,"")}var i,s,a,p,c,h,u;if(n||(n=/^\s*,\s*/),i=e+n,Wt(t,i))return t[i];for(s=[],a=0,p=0,c=0,h=!1;p<e.length;)!h&&o(/^[\(\[\{]/)?(c++,p++):!h&&o(/^[\)\]\}]/)?(c--,p++):!h&&o(/^[\"\']/)?(h=u[0],p++):"'"==h&&o(/^\\\'/)?p+=2:'"'==h&&o(/^\\\"/)?p+=2:"'"==h&&o(/^\'/)?(h=!1,p++):'"'==h&&o(/^\"/)?(h=!1,p++):o(n)?(!h&&!c&&p>a&&(s.push(r(e.substring(a,p))),a=p+u[0].length),p+=u[0].length):p++;return a<p&&s.push(r(e.substring(a,p))),t[i]=s}}(),ni=function(t){return function(e){var n,o=t[e];return o||((n=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(e))?o=t[e]=n[2]:(n=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(e))&&(o=t[e]=n[2])),o}}(Object.create?Object.create(null):{}),oi=function(t){return function(e){var n=t[e];return null==n&&(n=t[e]=Ze.measureText("Mapq",{font:e}).height),n}}(Object.create?Object.create(null):{}),ri={svg:Gr,canvas:$r,util:yn,HasObservers:nn,PathParser:Ao,parsePath:rt,BaseNode:zo,OptionsStore:mn,Surface:qr,SurfaceFactory:Hr,exportImage:Lt,exportSVG:It,QuadNode:_r,ShapesQuadTree:Or,Element:Cn,Circle:zn,Arc:io,Path:no,MultiPath:oo,Text:po,Image:co,Group:uo,Layout:go,Rect:mo,align:ut,vAlign:lt,stack:yt,vStack:gt,wrap:xt,vWrap:wt,fit:bt,LinearGradient:ko,RadialGradient:To,GradientStop:bo,Gradient:_o,Animation:Eo,AnimationFactory:So,drawDOM:Ut,drawText:Xt,getFontFaces:Yt},kendo.deepExtend(kendo,{drawing:ri,geometry:br}),kendo.drawing.Segment=kendo.geometry.Segment,kendo.dataviz.drawing=kendo.drawing,kendo.dataviz.geometry=kendo.geometry,kendo.drawing.util.measureText=kendo.util.measureText,kendo.drawing.util.objectKey=kendo.util.objectKey,kendo.drawing.Color=kendo.Color,kendo.util.encodeBase64=kendo.drawing.util.encodeBase64}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/surface-tooltip.min",["kendo.popup.min","drawing/kendo-drawing.min"],t)}(function(){!function(t){var e=".kendo",n=window.kendo,o=n.deepExtend,r=n.drawing.util,i=r.defined,s=r.limitValue,a=r.eventCoordinates,p=n._outerWidth,c=n._outerHeight,h=t.proxy,u='<div class="k-tooltip"><div class="k-tooltip-content"></div></div>',l='<div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close">close</a></div>',f=n.Class.extend({init:function(e,n){this.element=t(u),this.content=this.element.children(".k-tooltip-content"),n=n||{},this.options=o({},this.options,this._tooltipOptions(n)),this.popupOptions={appendTo:n.appendTo,animation:n.animation,copyAnchorStyles:!1,collision:"fit fit"},this._openPopupHandler=t.proxy(this._openPopup,this),this.surface=e,this._bindEvents()},options:{position:"top",showOn:"mouseenter",offset:7,autoHide:!0,hideDelay:0,showAfter:100},_bindEvents:function(){this._showHandler=h(this._showEvent,this),this._surfaceLeaveHandler=h(this._surfaceLeave,this),this._mouseleaveHandler=h(this._mouseleave,this),this._mousemoveHandler=h(this._mousemove,this),this.surface.bind("click",this._showHandler),this.surface.bind("mouseenter",this._showHandler),this.surface.bind("mouseleave",this._mouseleaveHandler),this.surface.bind("mousemove",this._mousemoveHandler),this.surface.element.on("mouseleave"+e,this._surfaceLeaveHandler),this.element.on("click"+e,".k-tooltip-button",h(this._hideClick,this)),this.element.on("mouseleave"+e,h(this._tooltipLeave,this))},getPopup:function(){return this.popup||(this.popup=new n.ui.Popup(this.element,this.popupOptions)),this.popup},destroy:function(){var t=this.popup;this.surface.unbind("click",this._showHandler),this.surface.unbind("mouseenter",this._showHandler),this.surface.unbind("mouseleave",this._mouseleaveHandler),this.surface.unbind("mousemove",this._mousemoveHandler),this.surface.element.off("mouseleave"+e,this._surfaceLeaveHandler),this.element.off("click"+e),this.element.off("mouseleave"+e),t&&(t.destroy(),delete this.popup),delete this.popupOptions,clearTimeout(this._timeout),delete this.element,delete this.content,delete this.surface},_tooltipOptions:function(t){return t=t||{},{position:t.position,showOn:t.showOn,offset:t.offset,autoHide:t.autoHide,width:t.width,height:t.height,content:t.content,shared:t.shared,hideDelay:t.hideDelay,showAfter:t.showAfter}},_tooltipShape:function(t){for(;t&&!t.options.tooltip;)t=t.parent;return t},_updateContent:function(t,e,o){var r=o.content;if(n.isFunction(r)&&(r=r({element:e,target:t})),r)return this.content.html(r),!0},_position:function(t,e,n,o){var r,i=e.position,p=e.offset||0,c=this.surface,h=c._instance._elementOffset(),u=c.getSize(),l=c._instance._offset,f=t.bbox(),d=n.width,y=n.height,g=0,m=0;return f.origin.translate(h.left,h.top),l&&f.origin.translate(-l.x,-l.y),"cursor"==i&&o?(r=a(o),g=r.x-d/2,m=r.y-y-p):"left"==i?(g=f.origin.x-d-p,m=f.center().y-y/2):"right"==i?(g=f.bottomRight().x+p,m=f.center().y-y/2):"bottom"==i?(g=f.center().x-d/2,m=f.bottomRight().y+p):(g=f.center().x-d/2,m=f.origin.y-y-p),{left:s(g,h.left,h.left+u.width),top:s(m,h.top,h.top+u.height)}},show:function(t,e){this._show(t,t,o({},this.options,this._tooltipOptions(t.options.tooltip),e))},hide:function(){var t=this.popup,e=this._current;delete this._current,clearTimeout(this._showTimeout),t&&t.visible()&&e&&!this.surface.trigger("tooltipClose",{element:e.shape,target:e.target,popup:t})&&t.close()},_hideClick:function(t){t.preventDefault(),this.hide()},_show:function(t,e,n,o,r){var i,s,a=this._current;clearTimeout(this._timeout),a&&(a.shape===e&&n.shared||a.target===t)||(clearTimeout(this._showTimeout),i=this.getPopup(),!this.surface.trigger("tooltipOpen",{element:e,target:t,popup:i})&&this._updateContent(t,e,n)&&(this._autoHide(n),s=this._measure(n),i.visible()&&i.close(!0),this._current={options:n,elementSize:s,shape:e,target:t,position:this._position(n.shared?e:t,n,s,o)},r?this._showTimeout=setTimeout(this._openPopupHandler,n.showAfter||0):this._openPopup()))},_openPopup:function(){var t=this._current,e=t.position;this.getPopup().open(e.left,e.top)},_autoHide:function(e){e.autoHide&&this._closeButton&&(this.element.removeClass("k-tooltip-closable"),this._closeButton.remove(),delete this._closeButton),e.autoHide||this._closeButton||(this.element.addClass("k-tooltip-closable"),this._closeButton=t(l).appendTo(this.element))},_showEvent:function(t){var e,n=this._tooltipShape(t.element);n&&(e=o({},this.options,this._tooltipOptions(n.options.tooltip)),e&&e.showOn==t.type&&this._show(t.element,n,e,t.originalEvent,!0))},_measure:function(t){var e,n,o,r=this.getPopup();return this.element.css({width:"auto",height:"auto"}),o=r.visible(),o||r.wrapper.show(),this.element.css({width:i(t.width)?t.width:"auto",height:i(t.height)?t.height:"auto"}),e=p(this.element),n=c(this.element),o||r.wrapper.hide(),{width:e,height:n}},_mouseleave:function(t){var e,n;this.popup&&!this._popupRelatedTarget(t.originalEvent)&&(e=this,n=e._current,n&&n.options.autoHide&&(e._timeout=setTimeout(function(){clearTimeout(e._showTimeout),e.hide()},n.options.hideDelay||0)))},_mousemove:function(t){var e,n,o=this._current;o&&t.element&&(e=o.options,"cursor"==e.position&&(n=this._position(t.element,e,o.elementSize,t.originalEvent),o.position=n,this.getPopup().wrapper.css({left:n.left,top:n.top})))},_surfaceLeave:function(t){this.popup&&!this._popupRelatedTarget(t)&&(clearTimeout(this._showTimeout),this.hide())},_popupRelatedTarget:function(e){return e.relatedTarget&&t(e.relatedTarget).closest(this.popup.wrapper).length},_tooltipLeave:function(){var t=this,e=t._current;e&&e.options.autoHide&&(t._timeout=setTimeout(function(){t.hide()},e.options.hideDelay||0))}});n.drawing.SurfaceTooltip=f}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/surface.min",["drawing/kendo-drawing.min","drawing/surface-tooltip.min"],t)}(function(){!function(t){function e(t){this._instance.translate(t)}var n,o=window.kendo,r=o.drawing,i=r.Surface,s=o.ui.Widget,a=o.deepExtend,p=t.proxy;o.support.svg=i.support.svg,o.support.canvas=i.support.canvas,n=s.extend({init:function(t,n){s.fn.init.call(this,t,{}),this.options=a({},this.options,n),this._instance=i.create(this.element[0],n),this._instance.translate&&(this.translate=e),this._triggerInstanceHandler=p(this._triggerInstanceEvent,this),this._bindHandler("click"),this._bindHandler("mouseenter"),this._bindHandler("mouseleave"),this._bindHandler("mousemove"),this._enableTracking()},options:{name:"Surface",tooltip:{}},events:["click","mouseenter","mouseleave","mousemove","resize","tooltipOpen","tooltipClose"],_triggerInstanceEvent:function(t){this.trigger(t.type,t)},_bindHandler:function(t){this._instance.bind(t,this._triggerInstanceHandler)},draw:function(t){this._instance.draw(t)},clear:function(){this._instance&&this._instance.clear(),this.hideTooltip()},destroy:function(){this._instance&&(this._instance.destroy(),delete this._instance),this._tooltip&&(this._tooltip.destroy(),delete this._tooltip),s.fn.destroy.call(this)},exportVisual:function(){return this._instance.exportVisual()},eventTarget:function(t){return this._instance.eventTarget(t)},showTooltip:function(t,e){this._tooltip&&this._tooltip.show(t,e)},hideTooltip:function(){this._tooltip&&this._tooltip.hide()},suspendTracking:function(){this._instance.suspendTracking(),this.hideTooltip()},resumeTracking:function(){this._instance.resumeTracking()},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._instance.currentSize(t),this._resize()},_resize:function(){this._instance.currentSize(this._size),this._instance._resize()},_enableTracking:function(){o.ui.Popup&&(this._tooltip=new r.SurfaceTooltip(this,this.options.tooltip||{}))}}),o.ui.plugin(n),n.create=function(t,e){return new n(t,e)},o.drawing.Surface=n}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/html.min",["drawing/kendo-drawing.min"],t)}(function(){!function(t){var e=window.kendo,n=e.drawing,o=n.drawDOM;n.drawDOM=function(e,n){return o(t(e)[0],n)},n.drawDOM.drawText=n.drawText,n.drawDOM.getFontFaces=n.getFontFaces}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("kendo.drawing.min",["drawing/util.min","drawing/kendo-drawing.min","drawing/surface-tooltip.min","drawing/surface.min","drawing/html.min"],t)}(function(){},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});;!function(t,define){define("util/text-metrics.min",["kendo.core.min"],t)}(function(){!function(t){function e(t){return(t+"").replace(s,h)}function r(t){var e,r=[];for(e in t)r.push(e+t[e]);return r.sort().join("")}function n(t){var e,r=2166136261;for(e=0;e<t.length;++e)r+=(r<<1)+(r<<4)+(r<<7)+(r<<8)+(r<<24),r^=t.charCodeAt(e);return r>>>0}function o(){return{width:0,height:0,baseline:0}}function i(t,e,r){return u.current.measure(t,e,r)}var a,s,h,c,f,u;window.kendo.util=window.kendo.util||{},a=kendo.Class.extend({init:function(t){this._size=t,this._length=0,this._map={}},put:function(t,e){var r=this._map,n={key:t,value:e};r[t]=n,this._head?(this._tail.newer=n,n.older=this._tail,this._tail=n):this._head=this._tail=n,this._length>=this._size?(r[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},get:function(t){var e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value}}),s=/\r?\n|\r|\t/g,h=" ",c={baselineMarkerSize:1},"undefined"!=typeof document&&(f=document.createElement("div"),f.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;"),u=kendo.Class.extend({init:function(e){this._cache=new a(1e3),this.options=t.extend({},c,e)},measure:function(t,i,a){var s,h,c,u,p,d,l,g,y;if(void 0===a&&(a={}),void 0===t||null===t)return o();if(s=r(i),h=n(t+s),c=this._cache.get(h))return c;u=o(),p=a.box||f,d=this._baselineMarker().cloneNode(!1);for(l in i)g=i[l],void 0!==g&&(p.style[l]=g);return y=a.normalizeText!==!1?e(t):t+"",p.textContent=y,p.appendChild(d),document.body.appendChild(p),y.length&&(u.width=p.offsetWidth-this.options.baselineMarkerSize,u.height=p.offsetHeight,u.baseline=d.offsetTop+this.options.baselineMarkerSize),u.width>0&&u.height>0&&this._cache.put(h,u),p.parentNode.removeChild(p),u},_baselineMarker:function(){var t=document.createElement("div");return t.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",t}}),u.current=new u,kendo.deepExtend(kendo.util,{LRUCache:a,TextMetrics:u,measureText:i,objectKey:r,hashKey:n,normalizeText:e})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}),function(t,define){define("pdf/pako.min",["kendo.core.min"],t)}(function(){return function(){kendo.pdf=kendo.pdf||{},kendo.pdf.supportsDeflate=function(){return window.pako&&"function"==typeof window.pako.deflate},kendo.pdf.deflate=function(t){return window.pako.deflate(t)}}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}),function(t,define){define("pdf/core.min",["pdf/pako.min","kendo.core.min","kendo.color.min","kendo.drawing.min"],t)}(function(){return function(t){function e(t){function e(){return k>=T}function r(){return k<T?t[k++]:0}function n(e){b(k),t[k++]=255&e,k>T&&(T=k)}function o(){return r()<<8|r()}function i(t){n(t>>8),n(t)}function a(){var t=o();return t>=32768?t-65536:t}function s(t){i(t<0?t+65536:t)}function h(){return 65536*o()+o()}function c(t){i(t>>>16&65535),i(65535&t)}function f(){var t=h();return t>=2147483648?t-4294967296:t}function u(t){c(t<0?t+4294967296:t)}function p(){return h()/65536}function d(t){c(Math.round(65536*t))}function l(){return f()/65536}function g(t){u(Math.round(65536*t))}function y(t){return S(t,r)}function m(t){return String.fromCharCode.apply(String,y(t))}function w(t){for(var e=0;e<t.length;++e)n(t.charCodeAt(e))}function S(t,e){for(var r=Array(t),n=0;n<t;++n)r[n]=e();return r}var b,x,v,_,C,k=0,T=0;return null==t?t=Ct?new Uint8Array(256):[]:T=t.length,b=Ct?function(e){if(e>=t.length){var r=new Uint8Array(Math.max(e+256,2*t.length));r.set(t,0),t=r}}:function(){},x=Ct?function(){return new Uint8Array(t.buffer,0,T)}:function(){return t},v=Ct?function(e){if("string"==typeof e)return w(e);var r=e.length;b(k+r),t.set(e,k),k+=r,k>T&&(T=k)}:function(t){if("string"==typeof t)return w(t);for(var e=0;e<t.length;++e)n(t[e])},_=Ct?function(e,r){if(t.buffer.slice)return new Uint8Array(t.buffer.slice(e,e+r));var n=new Uint8Array(r);return n.set(new Uint8Array(t.buffer,e,r)),n}:function(e,r){return t.slice(e,e+r)},C={eof:e,readByte:r,writeByte:n,readShort:o,writeShort:i,readLong:h,writeLong:c,readFixed:p,writeFixed:d,readShort_:a,writeShort_:s,readLong_:f,writeLong_:u,readFixed_:l,writeFixed_:g,read:y,write:v,readString:m,writeString:w,times:S,get:x,slice:_,offset:function(t){return null!=t?(k=t,C):k},skip:function(t){k+=t},toString:function(){throw Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return T},saveExcursion:function(t){var e=k;try{return t()}finally{k=e}},writeBase64:function(t){window.atob?w(window.atob(t)):v(kt.decode(t))},base64:function(){return kt.encode(x())}}}function r(t){for(var e,r,n=[],o=0,i=t.length;o<i;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<i?(r=t.charCodeAt(o++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--)):n.push(e);return n}function n(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("")}function o(t){var e,r=window.atob(t),n=new Uint8Array(r.length);for(e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n}function i(t){var e,r=new Uint8Array(t.length);for(e=0;e<t.length;e++)r[e]=t[e];return r}function a(t){return window.atob?o(t):i(kt.decode(t))}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t){return Object.keys(t).sort(function(t,e){return t-e}).map(parseFloat)}function c(){var t,e="",r=Nt+"";for(t=0;t<r.length;++t)e+=String.fromCharCode(r.charCodeAt(t)-48+65);return++Nt,e}function f(t){return zt(t>>8)+zt(255&t)}function u(t){var e,r,n,o,i="";for(e=0;e<t.length;e++)r=t.charCodeAt(e),r<65535?i+=f(r):(n=(r-65536>>10)+55296,o=(r-65536&1023)+56320,i+=f(n),i+=f(o));return i}function p(){function t(){var e,r,o,i=arguments;for(e=0;e<arguments.length;++e){if(r=i[e],void 0===r)throw Error("Cannot output undefined to PDF");if(r instanceof Vt)r.beforeRender(t),r.render(t);else if($t(r))C(r,t);else if(_(r))k(r,t);else if("number"==typeof r){if(isNaN(r))throw Error("Cannot output NaN to PDF");o=r.toFixed(7),o.indexOf(".")>=0&&(o=o.replace(/\.?0+$/,"")),"-0"==o&&(o="0"),n.writeString(o)}else/string|boolean/.test(typeof r)?n.writeString(r+""):"function"==typeof r.get?n.write(r.get()):"object"==typeof r&&(r?t(new oe(r)):n.writeString("null"))}}var r=0,n=e();return t.writeData=function(t){n.write(t)},t.withIndent=function(e){++r,e(t),--r},t.indent=function(){t(Ht,b("",2*r," ")),t.apply(null,arguments)},t.offset=function(){return n.offset()},t.toString=function(){throw Error("FIX CALLER")},t.get=function(){return n.get()},t.stream=function(){return n},t}function d(t,e){var r=t.beforeRender,n=t.render;t.beforeRender=function(){},t.render=function(t){t(e," 0 R")},t.renderFull=function(o){t._offset=o.offset(),o(e," 0 obj "),r.call(t,o),n.call(t,o),o(" endobj")}}function l(t){var e,r,n;if("function"!=typeof t&&(e=t,t=function(t,r){return t in e?e[t]:r}),r=t("paperSize",Xt.a4),!r)return{};if("string"==typeof r&&(r=Xt[r.toLowerCase()],null==r))throw Error("Unknown paper size");return r[0]=F(r[0]),r[1]=F(r[1]),t("landscape",!1)&&(r=[Math.max(r[0],r[1]),Math.min(r[0],r[1])]),n=t("margin"),n&&("string"==typeof n||"number"==typeof n?(n=F(n,0),n={left:n,top:n,right:n,bottom:n}):n={left:F(n.left,0),top:F(n.top,0),right:F(n.right,0),bottom:F(n.bottom,0)},t("addMargin")&&(r[0]+=n.left+n.right,r[1]+=n.top+n.bottom)),{paperSize:r,margin:n}}function g(t,e){function r(){window.console&&(window.console.error?window.console.error("Cannot load URL: %s",t):window.console.log("Cannot load URL: %s",t)),e(null)}var n,o;return qt.msie&&(n=/^data:.*?;base64,/i.exec(t))?void e(a(t.substr(n[0].length))):(o=new XMLHttpRequest,o.open("GET",t,!0),Ct&&(o.responseType="arraybuffer"),o.onload=function(){200==o.status||304==o.status?e(Ct?new Uint8Array(o.response):new window.VBArray(o.responseBody).toArray()):r()},o.onerror=r,void o.send(null))}function y(t,e){var r=Jt[t];r?e(r):g(t,function(r){if(null==r)throw Error("Cannot load font from "+t);var n=new Bt(r);Jt[t]=n,e(n)})}function m(){Zt={}}function w(t,r,n,o){function i(t){p.src=t,p.complete&&!qt.msie?h():(p.onload=h,p.onerror=s)}function a(){var i,a,h,f,u,d,l,g,y,m,w;r||(r={width:p.width,height:p.height}),i=document.createElement("canvas"),i.width=r.width,i.height=r.height,a=i.getContext("2d"),a.drawImage(p,0,0,r.width,r.height);try{h=a.getImageData(0,0,r.width,r.height)}catch(S){return void s()}finally{c&&URL.revokeObjectURL(c)}for(f=!1,u=e(),d=e(),l=h.data,g=0;g<l.length;)u.writeByte(l[g++]),u.writeByte(l[g++]),u.writeByte(l[g++]),y=l[g++],y<255&&(f=!0),d.writeByte(y);f||o.keepPNG?p=new fe(r.width,r.height,u,d):(m=i.toDataURL("image/jpeg",o.jpegQuality),m=m.substr(m.indexOf(";base64,")+8),w=e(),w.writeBase64(m),p=new ce(w)),n(Zt[t]=p)}function s(){n(Zt[t]="ERROR")}function h(){var o,i,s;r&&(o=f&&"image/svg+xml"===f.type,i=r.width>=p.width||r.height>=p.height,!o&&i&&(r=null)),!r&&f&&/^image\/jpe?g$/i.test(f.type)?(s=new FileReader,s.onload=function(){try{var r=new ce(e(new Uint8Array(this.result)));URL.revokeObjectURL(c),n(Zt[t]=r)}catch(o){a()}},s.readAsArrayBuffer(f)):a()}var c,f,u,p=Zt[t];p?n(p):(p=new Image,/^data:/i.test(t)||(p.crossOrigin="Anonymous"),Ct&&!/^data:/i.test(t)?(u=new XMLHttpRequest,u.onload=function(){f=u.response,c=URL.createObjectURL(f),i(c)},u.onerror=s,u.open("GET",t,!0),u.responseType="blob",u.send()):i(t))}function S(t){return function(e,r){function n(){0===--o&&r()}var o=e.length,i=o;if(0===o)return r();for(;i-- >0;)t(e[i],n)}}function b(t,e,r){for(;t.length<e;)t=r+t;return t}function x(t,e){return b(t+"",e,"0")}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function _(t){return t instanceof Date}function C(t,e){e("["),t.length>0&&e.withIndent(function(){for(var r=0;r<t.length;++r)r>0&&r%8===0?e.indent(t[r]):e(" ",t[r])}),e(" ]")}function k(t,e){e("(D:",x(t.getUTCFullYear(),4),x(t.getUTCMonth()+1,2),x(t.getUTCDate(),2),x(t.getUTCHours(),2),x(t.getUTCMinutes(),2),x(t.getUTCSeconds(),2),"Z)")}function T(t){return t*(72/25.4)}function D(t){return T(10*t)}function O(t){return 72*t}function F(t,e){var r,n;if("number"==typeof t)return t;if("string"==typeof t&&(r=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t),r&&(n=parseFloat(r[1]),!isNaN(n))))return"pt"==r[2]?n:{mm:T,cm:D,"in":O}[r[2]](n);if(null!=e)return e;throw Error("Can't parse unit: "+t)}function I(t){return v(ne,t)?ne[t]:ne[t]=new re(t)}function L(t){return t.map(function(t){return $t(t)?L(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t}).join(" ")}function M(t,e,r,n,o,i,a){var s=L([e,r,n,o,i,a]),h=t.GRAD_COL_FUNCTIONS[s];return h||(h=t.GRAD_COL_FUNCTIONS[s]=t.attach(new oe({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,r,n],C1:[o,i,a]}))),h}function A(t,e,r){var n=L([e,r]),o=t.GRAD_OPC_FUNCTIONS[n];return o||(o=t.GRAD_OPC_FUNCTIONS[n]=t.attach(new oe({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[r]}))),o}function R(t,e){function r(t){return 1==t.length?t[0]:{FunctionType:3,Functions:t,Domain:[0,1],Bounds:u,Encode:p}}var n,o,i,a,s,h=!1,c=[],f=[],u=[],p=[];for(n=1;n<e.length;++n)o=e[n-1],i=e[n],a=o.color,s=i.color,f.push(M(t,a.r,a.g,a.b,s.r,s.g,s.b)),(a.a<1||s.a<1)&&(h=!0),u.push(i.offset),p.push(0,1);if(h)for(n=1;n<e.length;++n)o=e[n-1],i=e[n],a=o.color,s=i.color,c.push(A(t,a.a,s.a));return u.pop(),{hasAlpha:h,colors:r(f),opacities:h?r(c):null}}function P(t,e,r,n,o,i){var a,s,h;return i||(h=[e].concat(n),r.forEach(function(t){h.push(t.offset,t.color.r,t.color.g,t.color.b)}),s=L(h),a=t.GRAD_COL[s]),a||(a=new oe({Type:I("Shading"),ShadingType:e?3:2,ColorSpace:I("DeviceRGB"),Coords:n,Domain:[0,1],Function:o,Extend:[!0,!0]}),t.attach(a),a._resourceName="S"+ ++Wt,s&&(t.GRAD_COL[s]=a)),a}function E(t,e,r,n,o,i){var a,s,h;return i||(h=[e].concat(n),r.forEach(function(t){h.push(t.offset,t.color.a)}),s=L(h),a=t.GRAD_OPC[s]),a||(a=new oe({Type:I("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:I("Mask"),S:I("Luminosity"),G:t.attach(new ie("/a0 gs /s0 sh",{Type:I("XObject"),Subtype:I("Form"),FormType:1,BBox:i?[i.left,i.top+i.height,i.left+i.width,i.top]:[0,1,1,0],Group:{Type:I("Group"),S:I("Transparency"),CS:I("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:I("DeviceGray"),Coords:n,Domain:[0,1],ShadingType:e?3:2,Function:o,Extend:[!0,!0]}}}}))}}),t.attach(a),a._resourceName="O"+ ++Wt,s&&(t.GRAD_OPC[s]=a)),a}function G(t,e,r){var n="radial"==e.type,o=R(t,e.stops),i=n?[e.start.x,e.start.y,e.start.r,e.end.x,e.end.y,e.end.r]:[e.start.x,e.start.y,e.end.x,e.end.y],a=P(t,n,e.stops,i,o.colors,e.userSpace&&r),s=o.hasAlpha?E(t,n,e.stops,i,o.opacities,e.userSpace&&r):null;return{hasAlpha:o.hasAlpha,shading:a,opacity:s}}function N(t){return t.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function j(t){var e,r=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i,n=r.exec(t);return n?(e=n[8]?parseInt(n[8],10):12,{italic:n[2]&&"italic"==n[2].toLowerCase(),variant:n[4],bold:n[6]&&/bold|700/i.test(n[6]),fontSize:e,lineHeight:n[12]?"normal"==n[12]?e:parseInt(n[12],10):null,fontFamily:n[14].split(/\s*,\s*/g).map(N)}):{fontSize:12,fontFamily:"sans-serif"}}function B(t){function e(e){return t.bold&&(e+="|bold"),t.italic&&(e+="|italic"),e.toLowerCase()}var r,n,o,i=t.fontFamily;if(i instanceof Array)for(o=0;o<i.length&&(r=e(i[o]),!(n=ge[r]));++o);else n=ge[i.toLowerCase()];for(;"function"==typeof n;)n=n();return n||(n="Times-Roman"),n}function z(t,e){t=t.toLowerCase(),ge[t]=function(){return ge[e]},ge[t+"|bold"]=function(){return ge[e+"|bold"]},ge[t+"|italic"]=function(){return ge[e+"|italic"]},ge[t+"|bold|italic"]=function(){return ge[e+"|bold|italic"]}}function U(t,e){if(1==arguments.length)for(var r in t)v(t,r)&&U(r,t[r]);else switch(t=t.toLowerCase(),ge[t]=e,t){case"dejavu sans":ge["sans-serif"]=e;break;case"dejavu sans|bold":ge["sans-serif|bold"]=e;break;case"dejavu sans|italic":ge["sans-serif|italic"]=e;break;case"dejavu sans|bold|italic":ge["sans-serif|bold|italic"]=e;break;case"dejavu serif":ge.serif=e;break;case"dejavu serif|bold":ge["serif|bold"]=e;break;case"dejavu serif|italic":ge["serif|italic"]=e;break;case"dejavu serif|bold|italic":ge["serif|bold|italic"]=e;break;case"dejavu mono":ge.monospace=e;break;case"dejavu mono|bold":ge["monospace|bold"]=e;break;case"dejavu mono|italic":ge["monospace|italic"]=e;break;case"dejavu mono|bold|italic":ge["monospace|bold|italic"]=e}}function q(t,e){var r=t[0],n=t[1],o=t[2],i=t[3],a=t[4],s=t[5],h=e[0],c=e[1],f=e[2],u=e[3],p=e[4],d=e[5];return[r*h+n*f,r*c+n*u,o*h+i*f,o*c+i*u,a*h+s*f+p,a*c+s*u+d]}function H(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]}function W(t,e){function r(t,e,r){return r||(r=s),r.pdf&&null!=r.pdf[t]?r.pdf[t]:e}function n(){function n(t){var e,n,o,a,s,h=t.options,c=lt(t),f=c.bbox;t=c.root,e=r("paperSize",r("paperSize","auto"),h),n=!1,"auto"==e&&(f?(o=f.getSize(),e=[o.width,o.height],n=!0,a=f.getOrigin(),c=new St.Group,c.transform(new _t.Matrix(1,0,0,1,(-a.x),(-a.y))),c.append(t),t=c):e="A4"),s=i.addPage({paperSize:e,margin:r("margin",r("margin"),h),addMargin:n,landscape:r("landscape",r("landscape",!1),h)}),Q(t,s,i)}if(!(--o>0)){var i=new Yt({producer:r("producer"),title:r("title"),author:r("author"),subject:r("subject"),keywords:r("keywords"),creator:r("creator"),date:r("date"),autoPrint:r("autoPrint")});h?t.children.forEach(n):n(t),e(i.render(),i)}}var o,i=[],a={},s=t.options,h=r("multiPage"),c=r("imgDPI");c&&m(),t.traverse(function(t){K({Image:function(t){var e,r,n=t.src();c?(e=t.bbox().size,r=a[n],e={width:Math.ceil(e.width*c/72),height:Math.ceil(e.height*c/72)},r&&(e.width=Math.max(r.width,e.width),e.height=Math.max(r.height,e.height)),a[n]=e):a[n]=null},Text:function(t){var e=j(t.options.font),r=B(e);i.indexOf(r)<0&&i.push(r)}},t)}),o=2,Kt(i,n),Qt(a,n,{jpegQuality:r("jpegQuality",.92),keepPNG:r("keepPNG",!1)})}function X(t,e){W(t,function(t){e("data:application/pdf;base64,"+t.base64())})}function J(t,e){W(t,function(t){e(new window.Blob([t.get()],{type:"application/pdf"}))})}function Z(t,e,r,n){window.Blob&&!wt.safari?J(t,function(t){kendo.saveAs({dataURI:t,fileName:e}),n&&n(t)}):X(t,function(t){kendo.saveAs({dataURI:t,fileName:e,proxyURL:r}),n&&n(t)})}function K(t,e){var r=t[e.nodeType];return r?r.call.apply(r,arguments):e}function Q(t,e,r){var n,o,i;t.options._pdfDebug&&e.comment("BEGIN: "+t.options._pdfDebug),n=t.transform(),o=t.opacity(),e.save(),null!=o&&o<1&&e.setOpacity(o),Y(t,e,r),$(t,e,r),n&&(i=n.matrix(),e.transform(i.a,i.b,i.c,i.d,i.e,i.f)),V(t,e,r),K({Path:it,MultiPath:at,Circle:st,Arc:ht,Text:ct,Image:ut,Group:ft,Rect:pt},t,e,r),e.restore(),t.options._pdfDebug&&e.comment("END: "+t.options._pdfDebug)}function Y(t,e){var r,n,o,i,a,s,h=t.stroke&&t.stroke();if(h){if(r=h.color){if(r=dt(r),null==r)return;e.setStrokeColor(r.r,r.g,r.b),1!=r.a&&e.setStrokeOpacity(r.a)}if(n=h.width,null!=n){if(0===n)return;e.setLineWidth(n)}o=h.dashType,o&&e.setDashPattern(we[o],0),i=h.lineCap,i&&e.setLineCap(Se[i]),a=h.lineJoin,a&&e.setLineJoin(be[a]),s=h.opacity,null!=s&&e.setStrokeOpacity(s)}}function $(t,e){var r,n,o=t.fill&&t.fill();if(o&&!(o instanceof St.Gradient)){if(r=o.color){if(r=dt(r),null==r)return;e.setFillColor(r.r,r.g,r.b),1!=r.a&&e.setFillOpacity(r.a)}n=o.opacity,null!=n&&e.setFillOpacity(n)}}function V(t,e,r){var n=t.clip();n&&(ot(n,e,r),e.clip())}function tt(t){return t&&(t instanceof St.Gradient||t.color&&!/^(none|transparent)$/i.test(t.color)&&(null==t.width||t.width>0)&&(null==t.opacity||t.opacity>0))}function et(t,e,r,n){var o,i,a,s,h,c,f,u,p=t.fill();if(p instanceof St.Gradient)return n?e.clipStroke():e.clip(),o=p instanceof St.RadialGradient,o?(i={x:p.center().x,y:p.center().y,r:0},a={x:p.center().x,y:p.center().y,r:p.radius()}):(i={x:p.start().x,y:p.start().y},a={x:p.end().x,y:p.end().y}),s=p.stops.elements().map(function(t){var e,r=t.offset();return r=/%$/.test(r)?parseFloat(r)/100:parseFloat(r),e=dt(t.color()),e.a*=t.opacity(),{offset:r,color:e}}),s.unshift(s[0]),s.push(s[s.length-1]),h={userSpace:p.userSpace(),type:o?"radial":"linear",start:i,end:a,stops:s},c=t.rawBBox(),f=c.topLeft(),u=c.getSize(),c={left:f.x,top:f.y,width:u.width,height:u.height},e.gradient(h,c),!0}function rt(t,e,r){tt(t.fill())&&tt(t.stroke())?et(t,e,r,!0)||e.fillStroke():tt(t.fill())?et(t,e,r,!1)||e.fill():tt(t.stroke())?e.stroke():e.nop()}function nt(t,e){var r,n,o,i=t.segments;if(4==i.length&&t.options.closed){for(r=[],n=0;n<i.length;++n){if(i[n].controlIn())return!1;r[n]=i[n].anchor()}if(o=r[0].y==r[1].y&&r[1].x==r[2].x&&r[2].y==r[3].y&&r[3].x==r[0].x||r[0].x==r[1].x&&r[1].y==r[2].y&&r[2].x==r[3].x&&r[3].y==r[0].y)return e.rect(r[0].x,r[0].y,r[2].x-r[0].x,r[2].y-r[0].y),!0}}function ot(t,e,r){var n,o,i,a,s,h,c=t.segments;if(0!==c.length&&!nt(t,e,r)){for(o=0;o<c.length;++o)i=c[o],a=i.anchor(),n?(s=n.controlOut(),h=i.controlIn(),s&&h?e.bezier(s.x,s.y,h.x,h.y,a.x,a.y):e.lineTo(a.x,a.y)):e.moveTo(a.x,a.y),n=i;t.options.closed&&e.close()}}function it(t,e,r){ot(t,e,r),rt(t,e,r)}function at(t,e,r){var n,o=t.paths;for(n=0;n<o.length;++n)ot(o[n],e,r);rt(t,e,r)}function st(t,e,r){var n=t.geometry();e.circle(n.center.x,n.center.y,n.radius),rt(t,e,r)}function ht(t,e,r){var n,o=t.geometry().curvePoints();for(e.moveTo(o[0].x,o[0].y),n=1;n<o.length;)e.bezier(o[n].x,o[n++].y,o[n].x,o[n++].y,o[n].x,o[n++].y);rt(t,e,r)}function ct(t,e){var r,n=j(t.options.font),o=t._position;t.fill()&&t.stroke()?r=me.fillAndStroke:t.fill()?r=me.fill:t.stroke()&&(r=me.stroke),e.transform(1,0,0,-1,o.x,o.y+n.fontSize),e.beginText(),e.setFont(B(n),n.fontSize),e.setTextRenderingMode(r),e.showText(t.content(),t._pdfRect?t._pdfRect.width():null),e.endText()}function ft(t,e,r){var n,o;for(t._pdfLink&&e.addLink(t._pdfLink.url,t._pdfLink),n=t.children,o=0;o<n.length;++o)Q(n[o],e,r)}function ut(t,e){var r,n,o,i=t.src();i&&(r=t.rect(),n=r.getOrigin(),o=r.getSize(),e.transform(o.width,0,0,-o.height,n.x,n.y+o.height),e.drawImage(i))}function pt(t,e,r){var n=t.geometry();e.rect(n.origin.x,n.origin.y,n.size.width,n.size.height),rt(t,e,r)}function dt(t){var e=kendo.parseColor(t,!0);return e?e.toRGB():null}function lt(t){function e(t){return s=!0,t}function r(t){return t.visible()&&t.opacity()>0&&(tt(t.fill())||tt(t.stroke()))}function n(t){var e,r,n=[];for(e=0;e<t.length;++e)r=a(t[e]),null!=r&&n.push(r);return n}function o(t,e){var r,n=h,o=c;t.transform()&&(c=c.multiplyCopy(t.transform().matrix())),r=t.clip(),r&&(r=r.bbox(),r&&(r=r.bbox(c),h=h?_t.Rect.intersect(h,r):r));try{return e()}finally{h=n,c=o}}function i(t){if(null==h)return!1;var e=t.rawBBox().bbox(c);return h&&e&&(e=_t.Rect.intersect(e,h)),e}function a(a){return o(a,function(){if(!(a instanceof St.Group||a instanceof St.MultiPath)){var o=i(a);if(!o)return e(null);f=f?_t.Rect.union(f,o):o}return K({Path:function(t){return 0!==t.segments.length&&r(t)?t:e(null)},MultiPath:function(t){if(!r(t))return e(null);var o=new St.MultiPath(t.options);return o.paths=n(t.paths),0===o.paths.length?e(null):o},Circle:function(t){return r(t)?t:e(null)},Arc:function(t){return r(t)?t:e(null)},Text:function(t){return/\S/.test(t.content())&&r(t)?t:e(null)},Image:function(t){return t.visible()&&t.opacity()>0?t:e(null)},Group:function(r){if(!(r.visible()&&r.opacity()>0))return e(null);var o=new St.Group(r.options);return o.children=n(r.children),o._pdfLink=r._pdfLink,r===t||0!==o.children.length||r._pdfLink?o:e(null)},Rect:function(t){return r(t)?t:e(null)}},a)})}var s,h=!1,c=_t.Matrix.unit(),f=null;do s=!1,t=a(t);while(t&&s);return{root:t,bbox:f}}function gt(t,e){var r,n=bt.createPromise();for(r in e)"margin"==r&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+r,e[r]);return X(t,n.resolve),n}function yt(t,e){var r,n=bt.createPromise();for(r in e)"margin"==r&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+r,e[r]);return window.Blob&&!wt.safari?J(t,n.resolve):X(t,n.resolve),n}var mt,wt,St,bt,xt,vt,_t,Ct,kt,Tt,Dt,Ot,Ft,It,Lt,Mt,At,Rt,Pt,Et,Gt,Nt,jt,Bt,zt,Ut,qt,Ht,Wt,Xt,Jt,Zt,Kt,Qt,Yt,$t,Vt,te,ee,re,ne,oe,ie,ae,se,he,ce,fe,ue,pe,de,le,ge,ye,me,we,Se,be;window.kendo.pdf=window.kendo.pdf||{},mt=kendo.support,wt=mt.browser,St=kendo.drawing,bt=St.util,xt=bt.extendStatic,vt=kendo.pdf,_t=kendo.geometry,Ct="undefined"!=typeof Uint8Array&&kendo.support.browser&&(!kendo.support.browser.msie||kendo.support.browser.version>9),kt=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(e){for(var r,n,o,i,a,s,h,c=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),f=0,u=c.length,p=[];f<u;)r=t.indexOf(c.charAt(f++)),n=t.indexOf(c.charAt(f++)),o=t.indexOf(c.charAt(f++)),i=t.indexOf(c.charAt(f++)),a=r<<2|n>>>4,s=(15&n)<<4|o>>>2,h=(3&o)<<6|i,p.push(a),64!=o&&p.push(s),64!=i&&p.push(h);return p},encode:function(e){for(var r,n,o,i,a,s,h,c=0,f=e.length,u="";c<f;)r=e[c++],n=e[c++],o=e[c++],i=r>>>2,a=(3&r)<<4|n>>>4,s=(15&n)<<2|o>>>6,h=63&o,c-f==2?s=h=64:c-f==1&&(h=64),u+=t.charAt(i)+t.charAt(a)+t.charAt(s)+t.charAt(h);return u}}}(),Tt=function(t){var e,r,n;for(this.raw=t,this.scalerType=t.readLong(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),e=this.tables={},r=0;r<this.tableCount;++r)n={tag:t.readString(4),checksum:t.readLong(),offset:t.readLong(),length:t.readLong()},e[n.tag]=n},Tt.prototype.readTable=function(t,e){var r=this.tables[t];if(!r)throw Error("Table "+t+" not found in directory");return this[t]=r.table=new e(this,r)},Tt.prototype.render=function(t){var r,n,o,i,a,h,c,f,u=this,p=Object.keys(t).length,d=Math.pow(2,Math.floor(Math.log(p)/Math.LN2)),l=16*d,g=Math.floor(Math.log(d)/Math.LN2),y=16*p-l,m=e();m.writeLong(this.scalerType),m.writeShort(p),m.writeShort(l),m.writeShort(g),m.writeShort(y),r=16*p,n=m.offset()+r,o=null,i=e();for(a in t)if(s(t,a))for(h=t[a],m.writeString(a),m.writeLong(u.checksum(h)),m.writeLong(n),m.writeLong(h.length),i.write(h),"head"==a&&(o=n),n+=h.length;n%4;)i.writeByte(0),n++;return m.write(i.get()),c=this.checksum(m.get()),f=2981146554-c,m.offset(o+8),m.writeLong(f),m.get()},Tt.prototype.checksum=function(t){t=e(t);for(var r=0;!t.eof();)r+=t.readLong();return 4294967295&r},Dt=function(t,e){this.definition=e,this.length=e.length,this.offset=e.offset,this.file=t,this.rawData=t.raw,this.parse(t.raw)},Dt.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)},Dt.prototype.parse=function(){},Ot=function(t){function r(){t.apply(this,arguments)}return xt(r,t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.fn=r.prototype,r.fn.init=r.fn.constructor,r.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.revision=t.readLong(),this.checkSumAdjustment=t.readLong(),this.magicNumber=t.readLong(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.read(8),this.modified=t.read(8),this.xMin=t.readShort_(),this.yMin=t.readShort_(),this.xMax=t.readShort_(),this.yMax=t.readShort_(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort_(),this.indexToLocFormat=t.readShort_(),this.glyphDataFormat=t.readShort_()},r.prototype.render=function(t){var r=e();return r.writeLong(this.version),r.writeLong(this.revision),r.writeLong(0),r.writeLong(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.write(this.created),r.write(this.modified),r.writeShort_(this.xMin),r.writeShort_(this.yMin),r.writeShort_(this.xMax),r.writeShort_(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort_(this.fontDirectionHint),r.writeShort_(t),r.writeShort_(this.glyphDataFormat),r.get()},r}(Dt),Ft=function(t){function r(){t.apply(this,arguments)}return xt(r,t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.fn=r.prototype,r.fn.init=r.fn.constructor,r.prototype.parse=function(t){t.offset(this.offset);var e=this.file.head.indexToLocFormat;this.offsets=0===e?t.times(this.length/2,function(){return 2*t.readShort()}):t.times(this.length/4,t.readLong)},r.prototype.offsetOf=function(t){return this.offsets[t]},r.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},r.prototype.render=function(t){var r,n=e(),o=t[t.length-1]>65535;for(r=0;r<t.length;++r)o?n.writeLong(t[r]):n.writeShort(t[r]/2);return{format:o?1:0,table:n.get()}},r}(Dt),It=function(t){function r(){t.apply(this,arguments)}return xt(r,t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.fn=r.prototype,r.fn.init=r.fn.constructor,r.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort_(),this.minRightSideBearing=t.readShort_(),this.xMaxExtent=t.readShort_(),this.caretSlopeRise=t.readShort_(),this.caretSlopeRun=t.readShort_(),this.caretOffset=t.readShort_(),t.skip(8),this.metricDataFormat=t.readShort_(),this.numOfLongHorMetrics=t.readShort()},r.prototype.render=function(t){var r=e();return r.writeLong(this.version),r.writeShort_(this.ascent),r.writeShort_(this.descent),r.writeShort_(this.lineGap),r.writeShort(this.advanceWidthMax),r.writeShort_(this.minLeftSideBearing),r.writeShort_(this.minRightSideBearing),r.writeShort_(this.xMaxExtent),r.writeShort_(this.caretSlopeRise),r.writeShort_(this.caretSlopeRun),r.writeShort_(this.caretOffset),r.write([0,0,0,0,0,0,0,0]),r.writeShort_(this.metricDataFormat),r.writeShort(t.length),r.get()},r}(Dt),Lt=function(t){function r(){t.apply(this,arguments)}return xt(r,t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.fn=r.prototype,r.fn.init=r.fn.constructor,r.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.numGlyphs=t.readShort(),this.maxPoints=t.readShort(),this.maxContours=t.readShort(),this.maxComponentPoints=t.readShort(),this.maxComponentContours=t.readShort(),this.maxZones=t.readShort(),this.maxTwilightPoints=t.readShort(),this.maxStorage=t.readShort(),this.maxFunctionDefs=t.readShort(),this.maxInstructionDefs=t.readShort(),this.maxStackElements=t.readShort(),this.maxSizeOfInstructions=t.readShort(),this.maxComponentElements=t.readShort(),this.maxComponentDepth=t.readShort()},r.prototype.render=function(t){var r=e();return r.writeLong(this.version),r.writeShort(t.length),r.writeShort(this.maxPoints),r.writeShort(this.maxContours),r.writeShort(this.maxComponentPoints),r.writeShort(this.maxComponentContours),r.writeShort(this.maxZones),r.writeShort(this.maxTwilightPoints),r.writeShort(this.maxStorage),r.writeShort(this.maxFunctionDefs),r.writeShort(this.maxInstructionDefs),r.writeShort(this.maxStackElements),r.writeShort(this.maxSizeOfInstructions),r.writeShort(this.maxComponentElements),r.writeShort(this.maxComponentDepth),r.get()},r}(Dt),Mt=function(t){function r(){t.apply(this,arguments)}return xt(r,t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.fn=r.prototype,r.fn.init=r.fn.constructor,r.prototype.parse=function(t){var e,r,n;t.offset(this.offset),e=this.file,r=e.hhea,this.metrics=t.times(r.numOfLongHorMetrics,function(){return{advance:t.readShort(),lsb:t.readShort_()}}),n=e.maxp.numGlyphs-e.hhea.numOfLongHorMetrics,this.leftSideBearings=t.times(n,t.readShort_)},r.prototype.forGlyph=function(t){var e=this.metrics,r=e.length;return t<r?e[t]:{advance:e[r-1].advance,lsb:this.leftSideBearings[t-r]}},r.prototype.render=function(t){var r,n,o=this,i=e();for(r=0;r<t.length;++r)n=o.forGlyph(t[r]),i.writeShort(n.advance),i.writeShort_(n.lsb);return i.get()},r}(Dt),At=function(){var t,r,n,o,i,a,h,c=function(t){this.raw=t},f={compound:{}};return f.compound.get=function(){return!1},c.prototype.render=function(){return this.raw.get()},Object.defineProperties(c.prototype,f),t=1,r=8,n=32,o=64,i=128,a=function(e){var a,s,h;for(this.raw=e,a=this.glyphIds=[],s=this.idOffsets=[];;){if(h=e.readShort(),s.push(e.offset()),a.push(e.readShort()),!(h&n))break;e.skip(h&t?4:2),h&i?e.skip(8):h&o?e.skip(4):h&r&&e.skip(2)}},h={compound:{}},h.compound.get=function(){return!0},a.prototype.render=function(t){var r,n,o=this,i=e(this.raw.get());for(r=0;r<this.glyphIds.length;++r)n=o.glyphIds[r],i.offset(o.idOffsets[r]),i.writeShort(t[n]);return i.get()},Object.defineProperties(a.prototype,h),function(t){function r(){t.apply(this,arguments)}return xt(r,t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.fn=r.prototype,r.fn.init=r.fn.constructor,r.prototype.parse=function(){this.cache={}},r.prototype.glyphFor=function(t){var r,n,o,i,h,f,u,p,d,l,g,y=this.cache;return s(y,t)?y[t]:(r=this.file.loca,n=r.lengthOf(t),0===n?y[t]=null:(o=this.rawData,i=this.offset+r.offsetOf(t),h=e(o.slice(i,n)),f=h.readShort_(),u=h.readShort_(),p=h.readShort_(),d=h.readShort_(),l=h.readShort_(),g=y[t]=f<0?new a(h):new c(h),g.numberOfContours=f,g.xMin=u,g.yMin=p,g.xMax=d,g.yMax=l,g))},r.prototype.render=function(t,r,n){var o,i,a,s=e(),h=[];for(o=0;o<r.length;++o)i=r[o],a=t[i],s.offset()%2&&s.writeByte(0),h.push(s.offset()),a&&s.write(a.render(n));return s.offset()%2&&s.writeByte(0),h.push(s.offset()),{table:s.get(),offsets:h}},r}(Dt)}(),Rt=function(){var t=function(t,e){this.text=t,this.length=t.length,this.platformID=e.platformID,this.platformSpecificID=e.platformSpecificID,this.languageID=e.languageID,this.nameID=e.nameID};return function(r){function n(){r.apply(this,arguments)}return xt(n,r),n.prototype=Object.create(r&&r.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor,n.prototype.parse=function(e){ var r,n,o,i,a,s,h;for(e.offset(this.offset),e.readShort(),r=e.readShort(),n=this.offset+e.readShort(),o=e.times(r,function(){return{platformID:e.readShort(),platformSpecificID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:e.readShort()+n}}),i=this.strings={},a=0;a<o.length;++a)s=o[a],e.offset(s.offset),h=e.readString(s.length),i[s.nameID]||(i[s.nameID]=[]),i[s.nameID].push(new t(h,s));this.postscriptEntry=i[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},n.prototype.render=function(r){var n,o,i,a,h,c,f=this,u=this.strings,p=0;for(n in u)s(u,n)&&(p+=u[n].length);o=e(),i=e(),o.writeShort(0),o.writeShort(p),o.writeShort(6+12*p);for(n in u)if(s(u,n))for(a=6==n?[new t(r,f.postscriptEntry)]:u[n],h=0;h<a.length;++h)c=a[h],o.writeShort(c.platformID),o.writeShort(c.platformSpecificID),o.writeShort(c.languageID),o.writeShort(c.nameID),o.writeShort(c.length),o.writeShort(i.offset()),i.writeString(c.text);return o.write(i.get()),o.get()},n}(Dt)}(),Pt=function(){var t=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g);return function(r){function n(){r.apply(this,arguments)}return xt(n,r),n.prototype=Object.create(r&&r.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor,n.prototype.parse=function(t){var e,r,n=this;switch(t.offset(this.offset),this.format=t.readLong(),this.italicAngle=t.readFixed_(),this.underlinePosition=t.readShort_(),this.underlineThickness=t.readShort_(),this.isFixedPitch=t.readLong(),this.minMemType42=t.readLong(),this.maxMemType42=t.readLong(),this.minMemType1=t.readLong(),this.maxMemType1=t.readLong(),this.format){case 65536:case 196608:break;case 131072:for(e=t.readShort(),this.glyphNameIndex=t.times(e,t.readShort),this.names=[],r=this.offset+this.length;t.offset()<r;)n.names.push(t.readString(t.readByte()));break;case 151552:e=t.readShort(),this.offsets=t.read(e);break;case 262144:this.map=t.times(this.file.maxp.numGlyphs,t.readShort)}},n.prototype.glyphFor=function(e){switch(this.format){case 65536:return t[e]||".notdef";case 131072:var r=this.glyphNameIndex[e];return r<t.length?t[r]:this.names[r-t.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[e]||65535}},n.prototype.render=function(r){var n,o,i,a,s,h,c,f=this;if(196608==this.format)return this.raw();for(n=e(this.rawData.slice(this.offset,32)),n.writeLong(131072),n.offset(32),o=[],i=[],a=0;a<r.length;++a)s=r[a],h=f.glyphFor(s),c=t.indexOf(h),c>=0?o.push(c):(o.push(t.length+i.length),i.push(h));for(n.writeShort(r.length),a=0;a<o.length;++a)n.writeShort(o[a]);for(a=0;a<i.length;++a)n.writeByte(i[a].length),n.writeString(i[a]);return n.get()},n}(Dt)}(),Et=function(){function t(t,r){function n(e){return r[t[e]]}var o,i,a,s,c,f,u,p,d,l,g,y,m,w,S,b,x,v=h(t),_=[],C=[],k=null,T=null;for(o=0;o<v.length;++o)i=v[o],a=n(i),s=a-i,null!=k&&s===T||(k&&C.push(k),_.push(i),T=s),k=i;for(k&&C.push(k),C.push(65535),_.push(65535),c=_.length,f=2*c,u=2*Math.pow(2,Math.floor(Math.log(c)/Math.LN2)),p=Math.log(u/2)/Math.LN2,d=f-u,l=[],g=[],y=[],o=0;o<c;++o){if(m=_[o],w=C[o],65535==m){l.push(0),g.push(0);break}if(S=n(m),m-S>=32768)for(l.push(0),g.push(2*(y.length+c-o)),b=m;b<=w;++b)y.push(n(b));else l.push(S-m),g.push(0)}return x=e(),x.writeShort(3),x.writeShort(1),x.writeLong(12),x.writeShort(4),x.writeShort(16+8*c+2*y.length),x.writeShort(0),x.writeShort(f),x.writeShort(u),x.writeShort(p),x.writeShort(d),C.forEach(x.writeShort),x.writeShort(0),_.forEach(x.writeShort),l.forEach(x.writeShort_),g.forEach(x.writeShort),y.forEach(x.writeShort),x.get()}var r=function(t,e,r){var n=this;n.platformID=t.readShort(),n.platformSpecificID=t.readShort(),n.offset=e+t.readLong(),t.saveExcursion(function(){var e,o,i,a,s,h,c,f,u,p,d,l,g,y,m,w,S;switch(t.offset(n.offset),n.format=t.readShort()){case 0:for(n.length=t.readShort(),n.language=t.readShort(),o=0;o<256;++o)r[o]=t.readByte();break;case 4:for(n.length=t.readShort(),n.language=t.readShort(),i=t.readShort()/2,t.skip(6),a=t.times(i,t.readShort),t.skip(2),s=t.times(i,t.readShort),h=t.times(i,t.readShort_),c=t.times(i,t.readShort),f=(n.length+n.offset-t.offset())/2,u=t.times(f,t.readShort),o=0;o<i;++o)for(p=s[o],d=a[o],e=p;e<=d;++e)0===c[o]?l=e+h[o]:(g=c[o]/2-(i-o)+(e-p),l=u[g]||0,0!==l&&(l+=h[o])),r[e]=65535&l;break;case 6:for(n.length=t.readShort(),n.language=t.readShort(),e=t.readShort(),y=t.readShort();y-- >0;)r[e++]=t.readShort();break;case 12:for(t.readShort(),n.length=t.readLong(),n.language=t.readLong(),m=t.readLong();m-- >0;)for(e=t.readLong(),w=t.readLong(),S=t.readLong();e<=w;)r[e++]=S++;break;default:window.console&&window.console.error("Unhandled CMAP format: "+n.format)}})};return function(n){function o(){n.apply(this,arguments)}return xt(o,n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.fn=o.prototype,o.fn.init=o.fn.constructor,o.prototype.parse=function(t){var e,n=this,o=n.offset;t.offset(o),n.codeMap={},n.version=t.readShort(),e=t.readShort(),n.tables=t.times(e,function(){return new r(t,o,n.codeMap)})},o.render=function(r,n){var o=e();return o.writeShort(0),o.writeShort(1),o.write(t(r,n)),o.get()},o}(Dt)}(),Gt=function(t){function e(){t.apply(this,arguments)}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readShort(),this.averageCharWidth=t.readShort_(),this.weightClass=t.readShort(),this.widthClass=t.readShort(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort_(),this.ySubscriptYSize=t.readShort_(),this.ySubscriptXOffset=t.readShort_(),this.ySubscriptYOffset=t.readShort_(),this.ySuperscriptXSize=t.readShort_(),this.ySuperscriptYSize=t.readShort_(),this.ySuperscriptXOffset=t.readShort_(),this.ySuperscriptYOffset=t.readShort_(),this.yStrikeoutSize=t.readShort_(),this.yStrikeoutPosition=t.readShort_(),this.familyClass=t.readShort_(),this.panose=t.times(10,t.readByte),this.charRange=t.times(4,t.readLong),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=t.times(2,t.readLong),this.version>1&&(this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()))},e.prototype.render=function(){return this.raw()},e}(Dt),Nt=1e5,jt=function(t){this.font=t,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=c()+"+"+this.font.psName},jt.prototype.use=function(t){var e,n,o,i=this;return"string"==typeof t?r(t).reduce(function(t,e){return t+String.fromCharCode(i.use(e))},""):(e=i.unicodes[t],e||(e=i.next++,i.subset[e]=t,i.unicodes[t]=e,n=i.font.cmap.codeMap[t],n&&(i.ncid2ogid[e]=n,null==i.ogid2ngid[n]&&(o=i.nextGid++,i.ogid2ngid[n]=o,i.ngid2ogid[o]=n))),e)},jt.prototype.encodeText=function(t){return this.use(t)},jt.prototype.glyphIds=function(){return h(this.ogid2ngid)},jt.prototype.glyphsFor=function(t,e){var r,n,o,i=this;for(e||(e={}),r=0;r<t.length;++r)n=t[r],e[n]||(o=e[n]=i.font.glyf.glyphFor(n),o&&o.compound&&i.glyphsFor(o.glyphIds,e));return e},jt.prototype.render=function(){var t,e,r,n,o,i,a,c,f=this,u=this.glyphsFor(this.glyphIds());for(t in u)s(u,t)&&(t=parseInt(t,10),null==f.ogid2ngid[t]&&(e=f.nextGid++,f.ogid2ngid[t]=e,f.ngid2ogid[e]=t));return r=h(this.ngid2ogid),n=r.map(function(t){return this.ngid2ogid[t]},this),o=this.font,i=o.glyf.render(u,n,this.ogid2ngid),a=o.loca.render(i.offsets),this.lastChar=this.next-1,c={cmap:Et.render(this.ncid2ogid,this.ogid2ngid),glyf:i.table,loca:a.table,hmtx:o.hmtx.render(n),hhea:o.hhea.render(n),maxp:o.maxp.render(n),post:o.post.render(n),name:o.name.render(this.psName),head:o.head.render(a.format),"OS/2":o.os2.render()},this.font.directory.render(c)},jt.prototype.cidToGidMap=function(){var t,r,n,o=this,i=e(),a=0;for(t=this.firstChar;t<this.next;++t){for(;a<t;)i.writeShort(0),a++;r=o.ncid2ogid[t],r?(n=o.ogid2ngid[r],i.writeShort(n)):i.writeShort(0),a++}return i.get()},Bt=function(t,r){var n,o,i,a,s=this,h=s.contents=e(t);if("ttcf"==h.readString(4)){if(o=function(){h.offset(n),s.parse()},!r)throw Error("Must specify a name for TTC files");for(h.readLong(),i=h.readLong(),a=0;a<i;++a)if(n=h.readLong(),h.saveExcursion(o),s.psName==r)return;throw Error("Font "+r+" not found in collection")}h.offset(0),s.parse()},Bt.prototype.parse=function(){var t=this.directory=new Tt(this.contents);this.head=t.readTable("head",Ot),this.loca=t.readTable("loca",Ft),this.hhea=t.readTable("hhea",It),this.maxp=t.readTable("maxp",Lt),this.hmtx=t.readTable("hmtx",Mt),this.glyf=t.readTable("glyf",At),this.name=t.readTable("name",Rt),this.post=t.readTable("post",Pt),this.cmap=t.readTable("cmap",Et),this.os2=t.readTable("OS/2",Gt),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm},Bt.prototype.widthOfGlyph=function(t){return this.hmtx.forGlyph(t).advance*this.scale},Bt.prototype.makeSubset=function(){return new jt(this)},zt=String.fromCharCode,Ut="þÿ",qt=kendo.support.browser,Ht="\n",Wt=0,Xt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]},Jt={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0},Zt={},Kt=S(y),Qt=function(e,r,n){function o(){0===--a&&r()}n=t.extend({jpegQuality:.92,keepPNG:!1},n);var i=Object.keys(e),a=i.length;return 0===a?r():void i.forEach(function(t){w(t,e[t],o,n)})},Yt=function(t){function e(e,r){return t&&null!=t[e]?t[e]:r}var r,n,o,i,a=this,s=p(),h=0,c=[];a.getOption=e,a.attach=function(t){return c.indexOf(t)<0&&(d(t,++h),c.push(t)),t},a.pages=[],a.FONTS={},a.IMAGES={},a.GRAD_COL_FUNCTIONS={},a.GRAD_OPC_FUNCTIONS={},a.GRAD_COL={},a.GRAD_OPC={},r=a.attach(new ae),n=a.attach(new se),e("autoPrint")&&(o={},o.JavaScript=new oe({Names:[new te("JS"),a.attach(new oe({S:I("JavaScript"),JS:new te("print(true);")}))]}),r.props.Names=new oe(o)),r.setPages(n),i=a.attach(new oe({Producer:new te(e("producer","Kendo UI PDF Generator"),(!0)),Title:new te(e("title",""),(!0)),Author:new te(e("author",""),(!0)),Subject:new te(e("subject",""),(!0)),Keywords:new te(e("keywords",""),(!0)),Creator:new te(e("creator","Kendo UI PDF Generator"),(!0)),CreationDate:e("date",new Date)})),a.addPage=function(t){var e,r,o,i=l(function(e,r){return t&&null!=t[e]?t[e]:r}),s=i.paperSize,h=i.margin,c=s[0],f=s[1];return h&&(c-=h.left+h.right,f-=h.top+h.bottom),e=new ie(p(),null,(!0)),r={Contents:a.attach(e),Parent:n,MediaBox:[0,0,s[0],s[1]]},o=new le(a,r),o._content=e,n.addPage(a.attach(o)),o.transform(1,0,0,-1,0,s[1]),h&&(o.translate(h.left,h.top),o.rect(0,0,c,f),o.clip()),a.pages.push(o),o},a.render=function(){var t,e;for(s("%PDF-1.4",Ht,"%ÂÁÚÏÎ",Ht,Ht),t=0;t<c.length;++t)c[t].renderFull(s),s(Ht,Ht);for(e=s.offset(),s("xref",Ht,0," ",c.length+1,Ht),s("0000000000 65535 f ",Ht),t=0;t<c.length;++t)s(x(c[t]._offset,10)," 00000 n ",Ht);return s(Ht),s("trailer",Ht),s(new oe({Size:c.length+1,Root:r,Info:i}),Ht,Ht),s("startxref",Ht,e,Ht),s("%%EOF",Ht),s.stream().offset(0)},a.loadFonts=Kt,a.loadImages=Qt},Yt.prototype.getFont=function(t){var e=this.FONTS[t];if(!e){if(e=Jt[t],!e)throw Error("Font "+t+" has not been loaded");e=this.attach(e===!0?new ue(t):new pe(this,e)),this.FONTS[t]=e}return e},Yt.prototype.getImage=function(t){var e=this.IMAGES[t];if(!e){if(e=Zt[t],!e)throw Error("Image "+t+" has not been loaded");if("ERROR"===e)return null;e=this.IMAGES[t]=this.attach(e.asStream(this))}return e},Yt.prototype.getOpacityGS=function(t,e){var r,n,o,i=parseFloat(t).toFixed(3);return t=parseFloat(i),i+=e?"S":"F",r=this._opacityGSCache||(this._opacityGSCache={}),n=r[i],n||(o={Type:I("ExtGState")},e?o.CA=t:o.ca=t,n=this.attach(new oe(o)),n._resourceName=I("GS"+ ++Wt),r[i]=n),n},Yt.prototype.dict=function(t){return new oe(t)},Yt.prototype.name=function(t){return I(t)},Yt.prototype.stream=function(t,e){return new ie(e,t)},$t=Array.isArray||function(t){return t instanceof Array},Vt=function(){},Vt.prototype.beforeRender=function(){},te=function(t){function e(e,r){t.call(this),this.value=e,this.utf16be=!!r}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.render=function(t){var e,r,n,o=this.value;if(this.utf16be)o=Ut+u(o),o=o.replace(/([\(\)\\])/g,"\\$1"),t("(",o,")");else{for(e=[40],r=0;r<o.length;++r)n=255&o.charCodeAt(r),40!=n&&41!=n&&92!=n||e.push(92),e.push(n);e.push(41),t.writeData(e)}},e.prototype.toString=function(){return this.value},e}(Vt),ee=function(t){function e(e){t.call(this,e),this.value=e}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.render=function(t){var e,r=this;for(t("<"),e=0;e<this.value.length;++e)t(x(r.value.charCodeAt(e).toString(16),4));t(">")},e}(te),re=function(t){function e(e){t.call(this),this.name=e}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.get=function(t){return I(t)},e.prototype.render=function(t){t("/"+this.escape())},e.prototype.escape=function(){return this.name.replace(/[^\x21-\x7E]/g,function(t){return"#"+x(t.charCodeAt(0).toString(16),2)})},e.prototype.toString=function(){return this.name},e}(Vt),ne={},oe=function(t){function e(e){t.call(this),this.props=e}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.render=function(t){var e=this.props,r=!0;t("<<"),t.withIndent(function(){for(var n in e)v(e,n)&&!/^_/.test(n)&&(r=!1,t.indent(I(n)," ",e[n]))}),r||t.indent(),t(">>")},e}(Vt),ie=function(t){function r(r,n,o){if(t.call(this),"string"==typeof r){var i=e();i.write(r),r=i}this.data=r,this.props=n||{},this.compress=o}return xt(r,t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.fn=r.prototype,r.fn.init=r.fn.constructor,r.prototype.render=function(t){var e=this.data.get(),r=this.props;this.compress&&vt.supportsDeflate()&&(r.Filter?r.Filter instanceof Array||(r.Filter=[r.Filter]):r.Filter=[],r.Filter.unshift(I("FlateDecode")),e=vt.deflate(e)),r.Length=e.length,t(new oe(r)," stream",Ht),t.writeData(e),t(Ht,"endstream")},r}(Vt),ae=function(t){function e(){t.call(this,{Type:I("Catalog")})}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.setPages=function(t){this.props.Pages=t},e}(oe),se=function(t){function e(){t.call(this,{Type:I("Pages"),Kids:[],Count:0})}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.addPage=function(t){this.props.Kids.push(t),this.props.Count++},e}(oe),he=[192,193,194,195,197,198,199,201,202,203,205,206,207],ce=function(t){var e,r,n,o,i,a,s,h,c;if(t.offset(0),i=t.readShort(),65496!=i)throw Error("Invalid JPEG image");for(;!t.eof();){if(a=t.readByte(),255!=a)throw Error("Invalid JPEG image");if(s=t.readByte(),h=t.readShort(),he.indexOf(s)>=0){o=t.readByte(),r=t.readShort(),e=t.readShort(),n=t.readByte();break}t.skip(h-2)}if(null==n)throw Error("Invalid JPEG image");switch(c={Type:I("XObject"),Subtype:I("Image"),Width:e,Height:r,BitsPerComponent:o,Filter:I("DCTDecode")},n){case 1:c.ColorSpace=I("DeviceGray");break;case 3:c.ColorSpace=I("DeviceRGB");break;case 4:c.ColorSpace=I("DeviceCMYK"),c.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){t.offset(0);var e=new ie(t,c);return e._resourceName=I("I"+ ++Wt),e}},fe=function(t,e,r,n){this.asStream=function(o){var i=new ie(n,{Type:I("XObject"),Subtype:I("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:I("DeviceGray")},(!0)),a=new ie(r,{Type:I("XObject"),Subtype:I("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:I("DeviceRGB"),SMask:o.attach(i)},(!0));return a._resourceName=I("I"+ ++Wt),a}},ue=function(t){function e(e){t.call(this,{Type:I("Font"),Subtype:I("Type1"),BaseFont:I(e)}),this._resourceName=I("F"+ ++Wt)}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.encodeText=function(t){return new te(t+"")},e}(oe),pe=function(t){function r(e,r,n){var o,i;t.call(this,{}),n=this.props,n.Type=I("Font"),n.Subtype=I("Type0"),n.Encoding=I("Identity-H"),this._pdf=e,this._font=r,this._sub=r.makeSubset(),this._resourceName=I("F"+ ++Wt),o=r.head,this.name=r.psName,i=this.scale=r.scale,this.bbox=[o.xMin*i,o.yMin*i,o.xMax*i,o.yMax*i],this.italicAngle=r.post.italicAngle,this.ascent=r.ascent*i,this.descent=r.descent*i,this.lineGap=r.lineGap*i,this.capHeight=r.os2.capHeight||this.ascent,this.xHeight=r.os2.xHeight||0,this.stemV=0,this.familyClass=(r.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(r.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32}return xt(r,t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.fn=r.prototype,r.fn.init=r.fn.constructor,r.prototype.encodeText=function(t){return new ee(this._sub.encodeText(t+""))},r.prototype.getTextWidth=function(t,e){var r,n,o=this,i=0,a=this._font.cmap.codeMap;for(r=0;r<e.length;++r)n=a[e.charCodeAt(r)],i+=o._font.widthOfGlyph(n||0);return i*t/1e3},r.prototype.beforeRender=function(){var r,n,o,i,a=this,s=a._sub,h=s.render(),c=new ie(e(h),{Length1:h.length},(!0)),f=a._pdf.attach(new t({Type:I("FontDescriptor"),FontName:I(a._sub.psName),FontBBox:a.bbox,Flags:a.flags,StemV:a.stemV,ItalicAngle:a.italicAngle,Ascent:a.ascent,Descent:a.descent,CapHeight:a.capHeight,XHeight:a.xHeight,FontFile2:a._pdf.attach(c)})),u=s.ncid2ogid,d=s.firstChar,l=s.lastChar,g=[];!function y(t,e){if(t<=l){var r=u[t];null==r?y(t+1):(e||g.push(t,e=[]),e.push(a._font.widthOfGlyph(r)),y(t+1,e))}}(d),r=new t({Type:I("Font"),Subtype:I("CIDFontType2"),BaseFont:I(a._sub.psName),CIDSystemInfo:new t({Registry:new te("Adobe"),Ordering:new te("Identity"),Supplement:0}),FontDescriptor:f,FirstChar:d,LastChar:l,DW:Math.round(a._font.widthOfGlyph(0)),W:g,CIDToGIDMap:a._pdf.attach(a._makeCidToGidMap())}),n=a.props,n.BaseFont=I(a._sub.psName),n.DescendantFonts=[a._pdf.attach(r)],o=new de(d,l,s.subset),i=new ie(p(),null,(!0)),i.data(o),n.ToUnicode=a._pdf.attach(i)},r.prototype._makeCidToGidMap=function(){return new ie(e(this._sub.cidToGidMap()),null,(!0))},r}(oe),de=function(t){function e(e,r,n){t.call(this),this.firstChar=e,this.lastChar=r,this.map=n}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype.render=function(t){t.indent("/CIDInit /ProcSet findresource begin"),t.indent("12 dict begin"),t.indent("begincmap"),t.indent("/CIDSystemInfo <<"),t.indent(" /Registry (Adobe)"),t.indent(" /Ordering (UCS)"),t.indent(" /Supplement 0"),t.indent(">> def"),t.indent("/CMapName /Adobe-Identity-UCS def"),t.indent("/CMapType 2 def"),t.indent("1 begincodespacerange"),t.indent(" <0000><ffff>"),t.indent("endcodespacerange");var e=this;t.indent(e.lastChar-e.firstChar+1," beginbfchar"),t.withIndent(function(){var r,o,i,a;for(r=e.firstChar;r<=e.lastChar;++r){for(o=e.map[r],i=n([o]),t.indent("<",x(r.toString(16),4),">","<"),a=0;a<i.length;++a)t(x(i.charCodeAt(a).toString(16),4));t(">")}}),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")},e}(Vt),le=function(t){function e(e,r){t.call(this,r),this._pdf=e,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],r=this.props,r.Type=I("Page"),r.ProcSet=[I("PDF"),I("Text"),I("ImageB"),I("ImageC"),I("ImageI")],r.Resources=new t({Font:new t(this._fontResources),ExtGState:new t(this._gsResources),XObject:new t(this._xResources),Pattern:new t(this._patResources),Shading:new t(this._shResources)}),r.Annots=this._annotations}return xt(e,t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.fn=e.prototype,e.fn.init=e.fn.constructor,e.prototype._out=function(){this._content.data.apply(null,arguments)},e.prototype.transform=function(t,e,r,n,o,i){H(arguments)||(this._matrix=q(arguments,this._matrix),this._out(t," ",e," ",r," ",n," ",o," ",i," cm"),this._out(Ht))},e.prototype.translate=function(t,e){this.transform(1,0,0,1,t,e)},e.prototype.scale=function(t,e){this.transform(t,0,0,e,0,0)},e.prototype.rotate=function(t){var e=Math.cos(t),r=Math.sin(t);this.transform(e,r,-r,e,0,0)},e.prototype.beginText=function(){this._textMode=!0,this._out("BT",Ht)},e.prototype.endText=function(){this._textMode=!1,this._out("ET",Ht)},e.prototype._requireTextMode=function(){if(!this._textMode)throw Error("Text mode required; call page.beginText() first")},e.prototype._requireFont=function(){if(!this._font)throw Error("No font selected; call page.setFont() first")},e.prototype.setFont=function(t,e){this._requireTextMode(),null==t?t=this._font:t instanceof pe||(t=this._pdf.getFont(t)),null==e&&(e=this._fontSize),this._fontResources[t._resourceName]=t,this._font=t,this._fontSize=e,this._out(t._resourceName," ",e," Tf",Ht)},e.prototype.setTextLeading=function(t){this._requireTextMode(),this._out(t," TL",Ht)},e.prototype.setTextRenderingMode=function(t){this._requireTextMode(),this._out(t," Tr",Ht)},e.prototype.showText=function(t,e){var r,n;this._requireFont(),t.length>1&&e&&this._font instanceof pe&&(r=this._font.getTextWidth(this._fontSize,t),n=e/r*100,this._out(n," Tz ")),this._out(this._font.encodeText(t)," Tj",Ht)},e.prototype.showTextNL=function(t){this._requireFont(),this._out(this._font.encodeText(t)," '",Ht)},e.prototype.addLink=function(e,r){var n=this._toPage({x:r.left,y:r.bottom}),o=this._toPage({x:r.right,y:r.top});this._annotations.push(new t({Type:I("Annot"),Subtype:I("Link"),Rect:[n.x,n.y,o.x,o.y],Border:[0,0,0],A:new t({Type:I("Action"),S:I("URI"),URI:new te(e)})}))},e.prototype.setStrokeColor=function(t,e,r){this._out(t," ",e," ",r," RG",Ht)},e.prototype.setOpacity=function(t){this.setFillOpacity(t),this.setStrokeOpacity(t),this._opacity*=t},e.prototype.setStrokeOpacity=function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!0);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Ht)}},e.prototype.setFillColor=function(t,e,r){this._out(t," ",e," ",r," rg",Ht)},e.prototype.setFillOpacity=function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!1);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Ht)}},e.prototype.gradient=function r(r,t){var e,n,o;this.save(),this.rect(t.left,t.top,t.width,t.height),this.clip(),r.userSpace||this.transform(t.width,0,0,t.height,t.left,t.top),e=G(this._pdf,r,t),n=e.shading._resourceName,this._shResources[n]=e.shading,e.hasAlpha&&(o=e.opacity._resourceName,this._gsResources[o]=e.opacity,this._out("/"+o+" gs ")),this._out("/"+n+" sh",Ht),this.restore()},e.prototype.setDashPattern=function(t,e){this._out(t," ",e," d",Ht)},e.prototype.setLineWidth=function(t){this._out(t," w",Ht)},e.prototype.setLineCap=function(t){this._out(t," J",Ht)},e.prototype.setLineJoin=function(t){this._out(t," j",Ht)},e.prototype.setMitterLimit=function(t){this._out(t," M",Ht)},e.prototype.save=function(){this._contextStack.push(this._context()),this._out("q",Ht)},e.prototype.restore=function(){this._out("Q",Ht),this._context(this._contextStack.pop())},e.prototype.moveTo=function(t,e){this._out(t," ",e," m",Ht)},e.prototype.lineTo=function(t,e){this._out(t," ",e," l",Ht)},e.prototype.bezier=function(t,e,r,n,o,i){this._out(t," ",e," ",r," ",n," ",o," ",i," c",Ht)},e.prototype.bezier1=function(t,e,r,n){this._out(t," ",e," ",r," ",n," y",Ht)},e.prototype.bezier2=function(t,e,r,n){this._out(t," ",e," ",r," ",n," v",Ht)},e.prototype.close=function(){this._out("h",Ht)},e.prototype.rect=function(t,e,r,n){this._out(t," ",e," ",r," ",n," re",Ht)},e.prototype.ellipse=function(t,e,r,n){function o(e){return t+e}function i(t){return e+t}var a=.5522847498307936;this.moveTo(o(0),i(n)),this.bezier(o(r*a),i(n),o(r),i(n*a),o(r),i(0)),this.bezier(o(r),i(-n*a),o(r*a),i(-n),o(0),i(-n)),this.bezier(o(-r*a),i(-n),o(-r),i(-n*a),o(-r),i(0)),this.bezier(o(-r),i(n*a),o(-r*a),i(n),o(0),i(n))},e.prototype.circle=function(t,e,r){this.ellipse(t,e,r,r)},e.prototype.stroke=function(){this._out("S",Ht)},e.prototype.nop=function(){this._out("n",Ht)},e.prototype.clip=function(){this._out("W n",Ht)},e.prototype.clipStroke=function(){this._out("W S",Ht)},e.prototype.closeStroke=function(){this._out("s",Ht)},e.prototype.fill=function(){this._out("f",Ht)},e.prototype.fillStroke=function(){this._out("B",Ht)},e.prototype.drawImage=function(t){var e=this._pdf.getImage(t);e&&(this._xResources[e._resourceName]=e,this._out(e._resourceName," Do",Ht))},e.prototype.comment=function(t){var e=this;t.split(/\r?\n/g).forEach(function(t){e._out("% ",t,Ht)})},e.prototype._context=function(t){return null==t?{opacity:this._opacity,matrix:this._matrix}:(this._opacity=t.opacity,void(this._matrix=t.matrix))},e.prototype._toPage=function(t){var e=this._matrix,r=e[0],n=e[1],o=e[2],i=e[3],a=e[4],s=e[5];return{x:r*t.x+o*t.y+a,y:n*t.x+i*t.y+s}},e}(oe),ge={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"},z("Times New Roman","serif"),z("Courier New","monospace"),z("Arial","sans-serif"),z("Helvetica","sans-serif"),z("Verdana","sans-serif"),z("Tahoma","sans-serif"),z("Georgia","sans-serif"),z("Monaco","monospace"),z("Andale Mono","monospace"),ye={fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7},me=ye,we={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},Se={butt:0,round:1,square:2},be={miter:0,round:1,bevel:2},kendo.deepExtend(kendo.pdf,{Document:Yt,BinaryStream:e,defineFont:U,parseFontDef:j,getFontURL:B,loadFonts:Kt,loadImages:Qt,getPaperOptions:l,clearImageCache:m,TEXT_RENDERING_MODE:ye,exportPDF:gt,exportPDFToBlob:yt,saveAs:Z,toDataURL:X,toBlob:J,render:W}),kendo.drawing.exportPDF=kendo.pdf.exportPDF,kendo.drawing.pdf=kendo.pdf}(window.kendo.jQuery),kendo},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}),function(t,define){define("pdf/mixins.min",["pdf/core.min"],t)}(function(){return function(t,e){kendo.PDFMixin={extend:function(t){t.events.push("pdfExport"),t.options.pdf=this.options,t.saveAsPDF=this.saveAsPDF,t._drawPDF=this._drawPDF,t._drawPDFShadow=this._drawPDFShadow},options:{fileName:"Export.pdf",proxyURL:"",paperSize:"auto",allPages:!1,landscape:!1,margin:null,title:null,author:null,subject:null,keywords:null,creator:"Kendo UI PDF Generator v."+kendo.version,date:null},saveAsPDF:function(){var e,r=new t.Deferred,n=r.promise(),o={promise:n};if(!this.trigger("pdfExport",o))return e=this.options.pdf,e.multiPage=e.multiPage||e.allPages,this._drawPDF(r).then(function(t){return kendo.drawing.exportPDF(t,e)}).done(function(t){kendo.saveAs({dataURI:t,fileName:e.fileName,proxyURL:e.proxyURL,forceProxy:e.forceProxy,proxyTarget:e.proxyTarget}),r.resolve()}).fail(function(t){r.reject(t)}),n},_drawPDF:function(e){var r=new t.Deferred;return kendo.drawing.drawDOM(this.wrapper).done(function(t){var n={page:t,pageNumber:1,progress:1,totalPages:1};e.notify(n),r.resolve(n.page)}).fail(function(t){r.reject(t)}),r},_drawPDFShadow:function(e,r){var n,o,i;return e=e||{},n=this.wrapper,o=t("<div class='k-pdf-export-shadow'>"),e.width&&o.css({width:e.width,overflow:"visible"}),n.before(o),o.append(e.content||n.clone(!0,!0)),i=t.Deferred(),setTimeout(function(){var t=kendo.drawing.drawDOM(o,r);t.always(function(){o.remove()}).then(function(){i.resolve.apply(i,arguments)}).fail(function(){i.reject.apply(i,arguments)}).progress(function(){i.progress.apply(i,arguments)})},15),i.promise()}}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()}),function(t,define){define("kendo.pdf.min",["kendo.core.min","kendo.drawing.min","pdf/core.min","pdf/mixins.min"],t)}(function(){},"function"==typeof define&&define.amd?define:function(t,e,r){(r||e)()});;!function(e,define){define("kendo.list.min",["kendo.data.min","kendo.popup.min"],e)}(function(){return function(e,t){function i(e,i){return e!==t&&""!==e&&null!==e&&("boolean"===i?("boolean"!=typeof e&&(e="true"===(""+e).toLowerCase()),e=!!e):"number"===i?e=+e:"string"===i&&(e=""+e)),e}function a(e){return e[e.length-1]}function n(e){var t=e.selectedIndex;return t>-1?e.options[t]:{}}function s(e,t){var i,a,n,s,r=t.length,l=e.length,o=[],u=[];if(l)for(n=0;n<l;n++){for(i=e[n],a=!1,s=0;s<r;s++)if(i===t[s]){a=!0,o.push({index:n,item:i});break}a||u.push(i)}return{changed:o,unchanged:u}}function r(t){return!(!t||e.isEmptyObject(t))&&!(t.filters&&!t.filters.length)}function l(t,i){var a,n=!1;return t.filters&&(a=e.grep(t.filters,function(e){return n=l(e,i),e.filters?e.filters.length:e.field!=i}),n||t.filters.length===a.length||(n=!0),t.filters=a),n}var o,u,c=window.kendo,d=c.ui,h=c._outerHeight,f=/^\d+(\.\d+)?%$/i,p=d.Widget,_=c.keys,g=c.support,m=c.htmlEncode,v=c._activeElement,b=c._outerWidth,x=c.data.ObservableArray,I="id",w="change",y="k-state-focused",S="k-state-hover",T="k-i-loading",F=".k-group-header",V=".k-item",C="_label",k="open",D="close",H="cascade",B="select",E="selected",L="requestStart",P="requestEnd",G="blur",W="focus",A="focusout",q=e.extend,N=e.proxy,O=e.isArray,M=g.browser,z="k-hidden",R="width",U=M.msie,j=/"/g,$={ComboBox:["DropDownList","MultiColumnComboBox"],DropDownList:["ComboBox","MultiColumnComboBox"],MultiColumnComboBox:["ComboBox","DropDownList"]},Q=c.ui.DataBoundWidget.extend({init:function(t,i){var a,n=this,s=n.ns;p.fn.init.call(n,t,i),t=n.element,i=n.options,n._isSelect=t.is(B),n._isSelect&&n.element[0].length&&(i.dataSource||(i.dataTextField=i.dataTextField||"text",i.dataValueField=i.dataValueField||"value")),n.ul=e('<ul unselectable="on" class="k-list k-reset"/>').attr({tabIndex:-1,"aria-hidden":!0}),n.list=e("<div class='k-list-container'/>").append(n.ul).on("mousedown"+s,N(n._listMousedown,n)),a=t.attr(I),a||(a=c.guid()),n.list.attr(I,a+"-list"),n.ul.attr(I,a+"_listbox"),i.columns&&i.columns.length&&(n.ul.removeClass("k-list").addClass("k-grid-list"),n._columnsHeader()),n._header(),n._noData(),n._footer(),n._accessors(),n._initValue()},options:{valuePrimitive:!1,footerTemplate:"",headerTemplate:"",noDataTemplate:!0,messages:{noData:"No data found.",clear:"clear"}},setOptions:function(e){p.fn.setOptions.call(this,e),e&&e.enable!==t&&(e.enabled=e.enable),e.columns&&e.columns.length&&this._columnsHeader(),this._header(),this._noData(),this._footer(),this._renderFooter(),this._renderNoData()},focus:function(){this._focused.focus()},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},_header:function(){var i,a=this,n=e(a.header),s=a.options.headerTemplate;return this._angularElement(n,"cleanup"),c.destroy(n),n.remove(),s?(i="function"!=typeof s?c.template(s):s,n=e(i({})),a.header=n[0]?n:null,a.list.prepend(n),this._angularElement(a.header,"compile"),t):(a.header=null,t)},_columnsHeader:function(){var t,i,a,n,s,r,l,o,u,d,h,p=this,_=e(p.columnsHeader);for(this._angularElement(_,"cleanup"),c.destroy(_),_.remove(),t="<div class='k-grid-header'><div class='k-grid-header-wrap'><table role='presentation'>",i="<colgroup>",a="<tr>",n=0;n<this.options.columns.length;n++)s=this.options.columns[n],r=s.title||s.field||"",l=s.headerTemplate||r,o="function"!=typeof l?c.template(l):l,u=s.width,d=parseInt(u,10),h="",u&&!isNaN(d)&&(h+="style='width:",h+=d,h+=f.test(u)?"%":"px",h+=";'"),i+="<col "+h+"/>",a+="<th class='k-header'>",a+=o(s),a+="</th>";i+="</colgroup>",a+="</tr>",t+=i,t+=a,t+="</table></div></div>",p.columnsHeader=_=e(t),p.list.prepend(_),this._angularElement(p.columnsHeader,"compile")},_noData:function(){var i=this,a=e(i.noData),n=i.options.noDataTemplate===!0?i.options.messages.noData:i.options.noDataTemplate;return i.angular("cleanup",function(){return{elements:a}}),c.destroy(a),a.remove(),n?(i.noData=e('<div class="k-nodata" style="display:none"><div></div></div>').appendTo(i.list),i.noDataTemplate="function"!=typeof n?c.template(n):n,t):(i.noData=null,t)},_footer:function(){var i=this,a=e(i.footer),n=i.options.footerTemplate;return this._angularElement(a,"cleanup"),c.destroy(a),a.remove(),n?(i.footer=e('<div class="k-footer"></div>').appendTo(i.list),i.footerTemplate="function"!=typeof n?c.template(n):n,t):(i.footer=null,t)},_listOptions:function(t){var i=this,a=i.options,n=a.virtual,s={change:N(i._listChange,i)},r=N(i._listBound,i),l=i._focused,o=i.element.attr("id"),u=e('label[for="'+i.element.attr("id")+'"]'),d=l.attr("aria-labelledby");return!d&&u.length&&(d=u.attr("id")||i._generateLabelId(u,o||c.guid())),n="object"==typeof n?n:{},t=e.extend({autoBind:!1,selectable:!0,dataSource:i.dataSource,click:N(i._click,i),activate:N(i._activateItem,i),columns:a.columns,deactivate:N(i._deactivateItem,i),dataBinding:function(){i.trigger("dataBinding")},dataBound:r,height:a.height,dataValueField:a.dataValueField,dataTextField:a.dataTextField,groupTemplate:a.groupTemplate,fixedGroupTemplate:a.fixedGroupTemplate,template:a.template,ariaLabel:l.attr("aria-label"),ariaLabelledBy:d},t,n,s),t.template||(t.template="#:"+c.expr(t.dataTextField,"data")+"#"),a.$angular&&(t.$angular=a.$angular),t},_initList:function(){var e=this,t=e._listOptions({selectedItemChange:N(e._listChange,e)});e.listView=e.options.virtual?new c.ui.VirtualList(e.ul,t):new c.ui.StaticList(e.ul,t),e.listView.bind("listBound",N(e._listBound,e)),e._setListValue()},_setListValue:function(e){e=e||this.options.value,e!==t&&this.listView.value(e).done(N(this._updateSelectionState,this))},_updateSelectionState:e.noop,_listMousedown:function(e){this.filterInput&&this.filterInput[0]===e.target||e.preventDefault()},_isFilterEnabled:function(){var e=this.options.filter;return e&&"none"!==e},_hideClear:function(){var e=this;e._clear&&e._clear.addClass(z)},_showClear:function(){this._clear&&this._clear.removeClass(z)},_clearValue:function(){this._clearText(),this._accessor(""),this.listView.value([]),this._isSelect&&(this._customOption=t),this._isFilterEnabled()&&!this.options.enforceMinLength&&(this._filter({word:"",open:!1}),this.options.highlightFirst&&this.listView.focus(0)),this._change()},_clearText:function(){this.text("")},_clearFilter:function(){this.options.virtual||this.listView.bound(!1),this._filterSource()},_filterSource:function(t,i){var a,n,s=this,o=s.options,u=o.filterFields&&t&&t.logic&&t.filters&&t.filters.length,c=s.dataSource,d=q({},c.filter()||{}),h=t||d.filters&&d.filters.length&&!t,f=l(d,o.dataTextField);return this._clearFilterExpressions(d),(t||f)&&s.trigger("filtering",{filter:t})?e.Deferred().reject().promise():(a={filters:[],logic:"and"},u?a.filters.push(t):this._pushFilterExpression(a,t),r(d)&&(a.logic===d.logic?a.filters=a.filters.concat(d.filters):a.filters.push(d)),s._cascading&&this.listView.setDSFilter(a),n=q({},{page:h?1:c.page(),pageSize:h?c.options.pageSize:c.pageSize(),sort:c.sort(),filter:c.filter(),group:c.group(),aggregate:c.aggregate()},{filter:a}),c[i?"read":"query"](c._mergeState(n)))},_pushFilterExpression:function(e,t){r(t)&&""!==t.value&&e.filters.push(t)},_clearFilterExpressions:function(e){var t,i;if(e.filters){for(i=0;i<e.filters.length;i++)"fromFilter"in e.filters[i]&&(t=i);isNaN(t)||e.filters.splice(t,1)}},_angularElement:function(e,t){e&&this.angular(t,function(){return{elements:e}})},_renderNoData:function(){var e=this,t=e.noData;t&&(this._angularElement(t,"cleanup"),t.children(":first").html(e.noDataTemplate({instance:e})),this._angularElement(t,"compile"))},_toggleNoData:function(t){e(this.noData).toggle(t)},_toggleHeader:function(e){var t=this.listView.content.prev(F);t.toggle(e)},_renderFooter:function(){var e=this,t=e.footer;t&&(this._angularElement(t,"cleanup"),t.html(e.footerTemplate({instance:e})),this._angularElement(t,"compile"))},_allowOpening:function(){return this.options.noDataTemplate||this.dataSource.flatView().length},_initValue:function(){var e=this,t=e.options.value;null!==t?e.element.val(t):(t=e._accessor(),e.options.value=t),e._old=t},_ignoreCase:function(){var e,t=this,i=t.dataSource.reader.model;i&&i.fields&&(e=i.fields[t.options.dataTextField],e&&e.type&&"string"!==e.type&&(t.options.ignoreCase=!1))},_focus:function(e){return this.listView.focus(e)},_filter:function(e){var t,i,a=this,n=a.options,s=e.word,r=n.filterFields,l=n.dataTextField;if(r&&r.length)for(t={logic:"or",filters:[],fromFilter:!0},i=0;i<r.length;i++)this._pushFilterExpression(t,a._buildExpression(s,r[i]));else t=a._buildExpression(s,l);a._open=e.open,a._filterSource(t)},_buildExpression:function(e,t){var i=this,a=i.options,n=a.ignoreCase,s=i.dataSource.options.accentFoldingFiltering;return{value:n?s?e.toLocaleLowerCase(s):e.toLowerCase():e,field:t,operator:a.filter,ignoreCase:n}},_clearButton:function(){var t=this,i=t.options.messages.clear;t._clear||(t._clear=e('<span unselectable="on" class="k-clear-value" title="'+i+'"><span class="k-icon k-i-x"></span></span>').attr({role:"button",tabIndex:-1})),t.options.clearButton||t._clear.remove(),this._hideClear()},search:function(e){var t=this.options;e="string"==typeof e?e:this._inputValue(),clearTimeout(this._typingTimeout),(!t.enforceMinLength&&!e.length||e.length>=t.minLength)&&(this._state="filter",this.listView&&(this.listView._emptySearch=!c.trim(e).length),this._isFilterEnabled()?this._filter({word:e,open:!0}):this._searchByWord(e))},current:function(e){return this._focus(e)},items:function(){return this.ul[0].children},destroy:function(){var e=this,t=e.ns;p.fn.destroy.call(e),e._unbindDataSource(),e.listView.destroy(),e.list.off(t),e.popup.destroy(),e._form&&e._form.off("reset",e._resetHandler)},dataItem:function(i){var a=this;if(i===t)return a.listView.selectedDataItems()[0];if("number"!=typeof i){if(a.options.virtual)return a.dataSource.getByUid(e(i).data("uid"));i=e(a.items()).index(i)}return a.dataSource.flatView()[i]},_activateItem:function(){var e=this.listView.focus();e&&this._focused.add(this.filterInput).attr("aria-activedescendant",e.attr("id"))},_deactivateItem:function(){this._focused.add(this.filterInput).removeAttr("aria-activedescendant")},_accessors:function(){var e=this,t=e.element,i=e.options,a=c.getter,n=t.attr(c.attr("text-field")),s=t.attr(c.attr("value-field"));!i.dataTextField&&n&&(i.dataTextField=n),!i.dataValueField&&s&&(i.dataValueField=s),e._text=a(i.dataTextField),e._value=a(i.dataValueField)},_aria:function(e){var i,a=this,n=a.options,s=a._focused;n.suggest!==t&&(i="none"===n.filter?n.suggest===!0?"inline":"none":n.suggest===!0?"both":"list",s.attr("aria-autocomplete",i)),e=e?e+" "+a.ul[0].id:a.ul[0].id,s.attr({"aria-owns":e,"aria-controls":e}),a.filterInput&&a.filterInput.length>0&&a.filterInput.attr("aria-controls",e),a.ul.attr("aria-live",a._isFilterEnabled()?"polite":"off"),a._ariaLabel()},_ariaLabel:function(){var t,i=this,a=i._focused,n=i.element,s=n.attr("id"),r=e('label[for="'+s+'"]'),l=n.attr("aria-label"),o=n.attr("aria-labelledby");a!==n&&(l?a.attr("aria-label",l):o?a.attr("aria-labelledby",o):r.length&&(t=r.attr("id")||i._generateLabelId(r,s||c.guid()),a.attr("aria-labelledby",t)))},_generateLabelId:function(e,t){var i=t+C;return e.attr("id",i),i},_blur:function(){var e=this;e._change(),e.close(),e._userTriggered=!1},_isValueChanged:function(e){return e!==i(this._old,typeof e)},_change:function(){var e,a=this,n=a.selectedIndex,s=a.options.value,r=a.value();a._isSelect&&!a.listView.bound()&&s&&(r=s),a._isValueChanged(r)?e=!0:a._valueBeforeCascade!==t&&a._valueBeforeCascade!==i(a._old,typeof a._valueBeforeCascade)&&a._userTriggered?e=!0:n===t||n===a._oldIndex||a.listView.isFiltered()||(e=!0),e&&(a._valueBeforeCascade=a._old=null===a._old||""===a._old||""===r?r:a.dataItem()?a.options.dataValueField?a.dataItem()[a.options.dataValueField]:a.dataItem():null,a._oldIndex=n,a._typing||a.element.trigger(w),a.trigger(w)),a.typing=!1},_data:function(){return this.dataSource.view()},_enable:function(){var e=this,i=e.options,a=e.element.is("[disabled]");i.enable!==t&&(i.enabled=i.enable),!i.enabled||a?e.enable(!1):e.readonly(e.element.is("[readonly]"))},_dataValue:function(e){var i=this._value(e);return i===t&&(i=this._text(e)),i},_offsetHeight:function(){var t=0,i=this.listView.content.prevAll(":visible");return i.each(function(){var i=e(this);t+=h(i,!0)}),t},_height:function(i){var a,n,s,r=this,l=r.list,o=r.options.height,u=r.popup.visible();if(i||r.options.noDataTemplate){if(n=l.add(l.parent(".k-animation-container")).show(),!l.is(":visible"))return n.hide(),t;o=r.listView.content[0].scrollHeight>o?o:"auto",n.height(o),"auto"!==o&&(a=r._offsetHeight(),s=h(e(r.footer))||0,o=o-a-s),r.listView.content.height(o),u||n.hide()}return o},_openHandler:function(e){this._adjustListWidth(),this.trigger(k)?e.preventDefault():(this._focused.attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))},_adjustListWidth:function(){var e,t,i=this,a=i.list,n=a[0].style.width,s=i.wrapper;if(a.data(R)||!n)return e=window.getComputedStyle?window.getComputedStyle(s[0],null):0,t=parseFloat(e&&e.width)||b(s),e&&M.msie&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),n="border-box"!==a.css("box-sizing")?t-(b(a)-a.width()):t,a.css({fontFamily:s.css("font-family"),width:i.options.autoWidth?"auto":n,minWidth:n,whiteSpace:i.options.autoWidth?"nowrap":"normal"}).data(R,n),!0},_closeHandler:function(e){this.trigger(D)?e.preventDefault():(this._focused.attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_focusItem:function(){var e=this.listView,i=!e.focus(),n=a(e.select());n===t&&this.options.highlightFirst&&i&&(n=0),n!==t?e.focus(n):i&&e.scrollToIndex(0)},_calculateGroupPadding:function(e){var t=this.ul.children(".k-first:first"),i=this.listView.content.prev(F),a=0,n="right";i[0]&&"none"!==i[0].style.display&&("auto"!==e&&(a=c.support.scrollbar()),this.element.parents(".k-rtl").length&&(n="left"),a+=parseFloat(t.css("border-"+n+"-width"),10)+parseFloat(t.children(".k-group").css("padding-"+n),10),i.css("padding-"+n,a))},_calculatePopupHeight:function(e){var t=this._height(this.dataSource.flatView().length||e);this._calculateGroupPadding(t),this._calculateColumnsHeaderPadding(t)},_calculateColumnsHeaderPadding:function(e){var t,i,a;this.options.columns&&this.options.columns.length&&(t=this,i=g.isRtl(t.wrapper),a=c.support.scrollbar(),t.columnsHeader.css(i?"padding-left":"padding-right","auto"!==e?a:0))},_refreshScroll:function(){var e=this.listView,t=e.element.height()>e.content.height();this.options.autoWidth&&e.content.css({overflowX:"hidden",overflowY:t?"scroll":"auto"})},_resizePopup:function(e){this.options.virtual||(this.popup.element.is(":visible")?this._calculatePopupHeight(e):(this.popup.one("open",function(e){return N(function(){this._calculatePopupHeight(e)},this)}.call(this,e)),this.popup.one("activate",N(this._refreshScroll,this))))},_popup:function(){var e=this;e.popup=new d.Popup(e.list,q({},e.options.popup,{anchor:e.wrapper,open:N(e._openHandler,e),close:N(e._closeHandler,e),animation:e.options.animation,isRtl:g.isRtl(e.wrapper),autosize:e.options.autoWidth}))},_toggleHover:function(t){e(t.currentTarget).toggleClass(S,"mouseenter"===t.type)},_toggle:function(e,i){var a=this,n=g.mobileOS&&(g.touch||g.MSPointers||g.pointers);e=e!==t?e:!a.popup.visible(),i||n||a._focused[0]===v()||(a._prevent=!0,a._focused.focus(),a._prevent=!1),a[e?k:D]()},_triggerCascade:function(){var e=this;e._cascadeTriggered&&e.value()===i(e._cascadedValue,typeof e.value())||(e._cascadedValue=e.value(),e._cascadeTriggered=!0,e.trigger(H,{userTriggered:e._userTriggered}))},_triggerChange:function(){this._valueBeforeCascade!==this.value()&&this.trigger(w)},_unbindDataSource:function(){var e=this;e.dataSource.unbind(L,e._requestStartHandler).unbind(P,e._requestEndHandler).unbind("error",e._errorHandler)},requireValueMapper:function(e,t){var i=(e.value instanceof Array?e.value.length:e.value)||(t instanceof Array?t.length:t);if(i&&e.virtual&&"function"!=typeof e.virtual.valueMapper)throw Error("ValueMapper is not provided while the value is being set. See http://docs.telerik.com/kendo-ui/controls/editors/combobox/virtualization#the-valuemapper-function")}});q(Q,{inArray:function(e,t){var i,a,n=t.children;if(!e||e.parentNode!==t)return-1;for(i=0,a=n.length;i<a;i++)if(e===n[i])return i;return-1},unifyType:i}),c.ui.List=Q,d.Select=Q.extend({init:function(e,t){Q.fn.init.call(this,e,t),this._initial=this.element.val()},setDataSource:function(e){var t,i=this;i.options.dataSource=e,i._dataSource(),i.listView.bound()&&(i._initialIndex=null,i.listView._current=null),i.listView.setDataSource(i.dataSource),i.options.autoBind&&i.dataSource.fetch(),t=i._parentWidget(),t&&i._cascadeSelect(t)},close:function(){this.popup.close()},select:function(e){var i=this;return e===t?i.selectedIndex:i._select(e).done(function(){i._cascadeValue=i._old=i._accessor(),i._oldIndex=i.selectedIndex})},_accessor:function(e,t){return this[this._isSelect?"_accessorSelect":"_accessorInput"](e,t)},_accessorInput:function(e){var i=this.element[0];return e===t?i.value:(null===e&&(e=""),i.value=e,t)},_accessorSelect:function(e,i){var a,s=this.element[0];return e===t?n(s).value||"":(n(s).selected=!1,i===t&&(i=-1),a=null!==e&&""!==e,a&&i==-1?this._custom(e):e?s.value=e:s.selectedIndex=i,t)},_syncValueAndText:function(){return!0},_custom:function(t){var i=this,a=i.element,n=i._customOption;n||(n=e("<option/>"),i._customOption=n,a.append(n)),n.text(t),n[0].selected=!0},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._arrowIcon.removeClass(T),e._focused.attr("aria-busy",!1),e._busy=null,e._showClear()},_showBusy:function(e){var t=this;e.isDefaultPrevented()||(t._request=!0,t._busy||(t._busy=setTimeout(function(){t._arrowIcon&&(t._focused.attr("aria-busy",!0),t._arrowIcon.addClass(T),t._hideClear())},100)))},_requestEnd:function(){this._request=!1,this._hideBusy()},_dataSource:function(){var t,i=this,a=i.element,n=i.options,s=n.dataSource||{};s=e.isArray(s)?{data:s}:s,i._isSelect&&(t=a[0].selectedIndex,t>-1&&(n.index=t),s.select=a,s.fields=[{field:n.dataTextField},{field:n.dataValueField}]),i.dataSource?i._unbindDataSource():(i._requestStartHandler=N(i._showBusy,i),i._requestEndHandler=N(i._requestEnd,i),i._errorHandler=N(i._hideBusy,i)),i.dataSource=c.data.DataSource.create(s).bind(L,i._requestStartHandler).bind(P,i._requestEndHandler).bind("error",i._errorHandler)},_firstItem:function(){this.listView.focusFirst()},_lastItem:function(){this.listView.focusLast()},_nextItem:function(){return this.listView.focusNext()},_prevItem:function(){return this.listView.focusPrev()},_getNormalizedDataItem:function(e){var t,i=this,a=i.listView,n="number"==typeof e,s=i.optionLabel&&i.optionLabel.length;return t=n?s?--e:e:a.getElementIndex(e),a.dataItemByIndex(t)},_getNormalizedSelectCandidate:function(e){var t=this,i=t.optionLabel&&t.optionLabel.length,a="number"==typeof e,n=e;return i&&a&&n++,n},_move:function(e){var t,i,a,n,s,r,l,o,u,c=this,d=c.listView,h=e.keyCode,f=h===_.DOWN,p=c.options.virtual;if(h===_.UP||f){if(e.altKey)c.toggle(f);else{if(!d.bound()&&!c.ul[0].firstChild)return c._fetch||(c.dataSource.one(w,function(){c._fetch=!1,c._move(e)}),c._fetch=!0,c._filterSource()),e.preventDefault(),!0;a=c._focus(),c._fetch||a&&!a.hasClass("k-state-selected")||(f?(n=c._nextItem(),(p&&n<=0||!c._focus()&&!n)&&c._lastItem()):(n=c._prevItem(),(p&&n>=d.dataSource.total()-1||!c._focus()&&!n)&&c._firstItem())),s=c._getNormalizedSelectCandidate(c._get(c._focus())||n||0),c._select(s,!0).done(function(){var e=function(){c.popup.visible()||c._blur(),c._cascadedValue=null===c._cascadedValue?c.value():c.dataItem()?c.dataItem()[c.options.dataValueField]||c.dataItem():null};c.trigger(B,{dataItem:c._getNormalizedDataItem(s),item:c._focus()})?c._select(a).done(e):e()})}e.preventDefault(),i=!0}else if(h===_.ENTER||h===_.TAB){if(c.popup.visible()&&e.preventDefault(),a=c._focus(),t=c.dataItem(),c.popup.visible()||t&&c.text()===c._text(t)||(a=null),r=c.filterInput&&c.filterInput[0]===v(),a){if(t=d.dataItemByIndex(d.getElementIndex(a)),o=!0,t&&(o=c._value(t)!==Q.unifyType(c.value(),typeof c._value(t))),o&&c.trigger(B,{dataItem:t,item:a}))return;l=c._select(a)}else c.input&&((c._syncValueAndText()||c._isSelect)&&c._accessor(c.input.val()),c.listView.value(c.input.val()));c._focusElement&&c._focusElement(c.wrapper),r&&h===_.TAB?c.wrapper.focusout():l&&"function"==typeof l.done?l.done(function(){c._blur()}):c._blur(),c.close(),i=!0}else h===_.ESC?(c.popup.visible()&&e.preventDefault(),c.close(),i=!0):!c.popup.visible()||h!==_.PAGEDOWN&&h!==_.PAGEUP||(e.preventDefault(),u=h===_.PAGEDOWN?1:-1,d.scrollWith(u*d.screenHeight()),i=!0);return i},_fetchData:function(){var e=this,t=!!e.dataSource.view().length;e._request||e.options.cascadeFrom||e.listView.bound()||e._fetch||t||(e._fetch=!0,e.dataSource.fetch().done(function(){e._fetch=!1}))},_options:function(e,i,a){var s,r,l,o,u=this,c=u.element,d=c[0],h=e.length,f="",p=0;for(i&&(f=i);p<h;p++)s="<option",r=e[p],l=u._text(r),o=u._value(r),o!==t&&(o+="",o.indexOf('"')!==-1&&(o=o.replace(j,""")),s+=' value="'+o+'"'),s+=">",l!==t&&(s+=m(l)),s+="</option>",f+=s;c.html(f),a!==t&&(d.value=a,d.value&&!a&&(d.selectedIndex=-1)),d.selectedIndex!==-1&&(s=n(d),s&&s.setAttribute(E,E))},_reset:function(){var t=this,i=t.element,a=i.attr("form"),n=a?e("#"+a):i.closest("form");n[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initial)})},t._form=n.on("reset",t._resetHandler))},_parentWidget:function(){var t,i,a,n=this.options.name;if(this.options.cascadeFrom){if(t=e("#"+this.options.cascadeFrom),i=t.data("kendo"+n),!i)for(a=0;a<$[n].length&&!(i=t.data("kendo"+$[n][a]));a+=1);return i}},_cascade:function(){var e,t=this,i=t.options,a=i.cascadeFrom;if(a){if(e=t._parentWidget(),!e)return;t._cascadeHandlerProxy=N(t._cascadeHandler,t),t._cascadeFilterRequests=[],i.autoBind=!1,e.bind("set",function(){t.one("set",function(e){t._selectedValue=e.value||t._accessor()})}),e.first(H,t._cascadeHandlerProxy),e.listView.bound()?(t._toggleCascadeOnFocus(),t._cascadeSelect(e)):(e.one("dataBound",function(){t._toggleCascadeOnFocus(),e.popup.visible()&&e._focused.focus()}),e.value()||t.enable(!1))}},_toggleCascadeOnFocus:function(){var e=this,t=e._parentWidget(),i=U&&t instanceof d.DropDownList?G:A;t._focused.add(t.filterInput).bind(W,function(){t.unbind(H,e._cascadeHandlerProxy),t.first(w,e._cascadeHandlerProxy)}),t._focused.add(t.filterInput).bind(i,function(){t.unbind(w,e._cascadeHandlerProxy),t.first(H,e._cascadeHandlerProxy)})},_cascadeHandler:function(e){var t=this._parentWidget(),i=this.value();this._userTriggered=e.userTriggered||t._userTriggered,this.listView.bound()&&this._clearSelection(t,!0),this._cascadeSelect(t,i)},_cascadeChange:function(e){var t=this,a=t._accessor()||t._selectedValue;t._cascadeFilterRequests.length||(t._selectedValue=null),t._userTriggered?t._clearSelection(e,!0):a?(a!==i(t.listView.value()[0],typeof a)&&t.value(a),t.dataSource.view()[0]&&t.selectedIndex!==-1||t._clearSelection(e,!0)):t.dataSource.flatView().length&&t.select(t.options.index),t.enable(),t._triggerCascade(),t._triggerChange(),t._userTriggered=!1},_cascadeSelect:function(e,i){var a,n,s=this,r=e.dataItem(),o=r?r[s.options.cascadeFromParentField]||e._value(r):null,u=s.options.cascadeFromField||e.options.dataValueField;s._valueBeforeCascade=i!==t?i:s.value(),o||0===o?(a=s.dataSource.filter()||{},l(a,u),n=function(){var t=s._cascadeFilterRequests.shift();t&&s.unbind("dataBound",t),t=s._cascadeFilterRequests[0],t&&s.first("dataBound",t),s._cascadeChange(e)},s._cascadeFilterRequests.push(n),1===s._cascadeFilterRequests.length&&s.first("dataBound",n),s._cascading=!0,s._filterSource({field:u,operator:"eq",value:o}),s._cascading=!1):(s.enable(!1),s._clearSelection(e),s._triggerCascade(),s._triggerChange(),s._userTriggered=!1)}}),o=".StaticList",u=c.ui.DataBoundWidget.extend({init:function(t,i){p.fn.init.call(this,t,i),this.element.attr("role","listbox").on("click"+o,"li",N(this._click,this)).on("mouseenter"+o,"li",function(){e(this).addClass(S)}).on("mouseleave"+o,"li",function(){e(this).removeClass(S)}),i&&i.ariaLabel?this.element.attr("aria-label",i.ariaLabel):i&&i.ariaLabelledBy&&this.element.attr("aria-labelledby",i.ariaLabelledBy),g.touch&&this._touchHandlers(),"multiple"===this.options.selectable&&this.element.attr("aria-multiselectable",!0),this.content=this.element.wrap("<div class='k-list-scroller' unselectable='on'></div>").parent(),this.header=this.content.before('<div class="k-group-header" style="display:none"></div>').prev(),this.bound(!1),this._optionID=c.guid(),this._selectedIndices=[],this._view=[],this._dataItems=[],this._values=[];var a=this.options.value;a&&(this._values=e.isArray(a)?a.slice(0):[a]),this._getter(),this._templates(),this.setDataSource(this.options.dataSource),this._onScroll=N(function(){var e=this;clearTimeout(e._scrollId),e._scrollId=setTimeout(function(){e._renderHeader()},50)},this)},options:{name:"StaticList",dataValueField:null,valuePrimitive:!1,selectable:!0,template:null,groupTemplate:null,fixedGroupTemplate:null,ariaLabel:null,ariaLabelledBy:null},events:["click",w,"activate","deactivate","dataBinding","dataBound","selectedItemChange"],setDataSource:function(t){var i,a=this,n=t||{};n=e.isArray(n)?{data:n}:n,n=c.data.DataSource.create(n),a.dataSource?(a.dataSource.unbind(w,a._refreshHandler),i=a.value(),a.value([]),a.bound(!1),a.value(i)):a._refreshHandler=N(a.refresh,a),a.setDSFilter(n.filter()),a.dataSource=n.bind(w,a._refreshHandler),a._fixedHeader()},_touchHandlers:function(){var t,i,a=this,n=function(e){return(e.originalEvent||e).changedTouches[0].pageY};a.element.on("touchstart"+o,function(e){t=n(e)}),a.element.on("touchend"+o,function(s){s.isDefaultPrevented()||(i=n(s),Math.abs(i-t)<10&&(a._touchTriggered=!0,a._triggerClick(e(s.target).closest(V).get(0))))})},skip:function(){return this.dataSource.skip()},setOptions:function(e){p.fn.setOptions.call(this,e),this._getter(),this._templates(),this._render()},destroy:function(){this.element.off(o),this._refreshHandler&&this.dataSource.unbind(w,this._refreshHandler),clearTimeout(this._scrollId),p.fn.destroy.call(this)},dataItemByIndex:function(e){return this.dataSource.flatView()[e]},screenHeight:function(){return this.content[0].clientHeight},scrollToIndex:function(e){var t=this.element[0].children[e];t&&this.scroll(t)},scrollWith:function(e){this.content.scrollTop(this.content.scrollTop()+e)},scroll:function(e){if(e){e[0]&&(e=e[0]);var t=this.content[0],i=e.offsetTop,a=e.offsetHeight,n=t.scrollTop,s=t.clientHeight,r=i+a;n>i?n=i:r>n+s&&(n=r-s),t.scrollTop=n}},selectedDataItems:function(e){return e===t?this._dataItems.slice():(this._dataItems=e,this._values=this._getValues(e),t)},_getValues:function(t){var i=this._valueGetter;return e.map(t,function(e){return i(e)})},focusNext:function(){var e=this.focus();e=e?e.next():0,this.focus(e)},focusPrev:function(){var e=this.focus();e=e?e.prev():this.element[0].children.length-1,this.focus(e)},focusFirst:function(){this.focus(this.element[0].children[0])},focusLast:function(){this.focus(a(this.element[0].children))},focus:function(i){var n,s=this,r=s._optionID;return i===t?s._current:(i=a(s._get(i)),i=e(this.element[0].children[i]),s._current&&(s._current.removeClass(y).removeAttr(I),s.trigger("deactivate")),n=!!i[0],n&&(i.addClass(y),s.scroll(i),i.attr("id",r)),s._current=n?i:null,s.trigger("activate"),t)},focusIndex:function(){return this.focus()?this.focus().index():t},skipUpdate:function(e){this._skipUpdate=e},select:function(i){var n,s,r,l=this,o=l.options.selectable,u="multiple"!==o&&o!==!1,c=l._selectedIndices,d=[this.element.find(".k-state-selected").index()],h=[],f=[];return i===t?c.slice():(i=l._get(i),1===i.length&&i[0]===-1&&(i=[]),s=e.Deferred().resolve(),r=l.isFiltered(),r&&!u&&l._deselectFiltered(i)?s:u&&!r&&e.inArray(a(i),c)!==-1&&e.inArray(a(i),d)!==-1?(l._dataItems.length&&l._view.length&&(l._dataItems=[l._view[c[0]].item]),s):(n=l._deselect(i),f=n.removed,i=n.indices,i.length&&(u&&(i=[a(i)]),h=l._select(i)),(h.length||f.length)&&(l._valueComparer=null,l.trigger(w,{added:h,removed:f})),s))},removeAt:function(e){return this._selectedIndices.splice(e,1),this._values.splice(e,1),this._valueComparer=null,{position:e,dataItem:this._dataItems.splice(e,1)[0]}},setValue:function(t){t=e.isArray(t)||t instanceof x?t.slice(0):[t],this._values=t,this._valueComparer=null},value:function(i){var a,n=this,s=n._valueDeferred;return i===t?n._values.slice():(n.setValue(i),s&&"resolved"!==s.state()||(n._valueDeferred=s=e.Deferred()),n.bound()&&(a=n._valueIndices(n._values),"multiple"===n.options.selectable&&n.select(-1),n.select(a),s.resolve()),n._skipUpdate=!1,s)},items:function(){return this.element.children(V)},_click:function(e){return this._touchTriggered?(this._touchTriggered=!1,t):(e.isDefaultPrevented()||this._triggerClick(e.currentTarget),t)},_triggerClick:function(t){this.trigger("click",{item:e(t)})||this.select(t)},_valueExpr:function(e,t){var a,n,s=this,r=0,l=[];if(!s._valueComparer||s._valueType!==e){for(s._valueType=e;r<t.length;r++)l.push(i(t[r],e));a="for (var idx = 0; idx < "+l.length+"; idx++) { if (current === values[idx]) { return idx; }} return -1;",n=Function("current","values",a),s._valueComparer=function(e){return n(e,l)}}return s._valueComparer},_dataItemPosition:function(e,t){var i=this._valueGetter(e),a=this._valueExpr(typeof i,t);return a(i)},_getter:function(){this._valueGetter=c.getter(this.options.dataValueField)},_deselect:function(t){var i,a,n,s,r,l=this,o=l.element[0].children,u=l.options.selectable,c=l._selectedIndices,d=l._dataItems,h=l._values,f=[],p=0,_=0;if(t=t.slice(),u!==!0&&t.length){if("multiple"===u)for(;p<t.length;p++)if(a=t[p],e(o[a]).hasClass("k-state-selected"))for(i=0;i<c.length;i++)if(n=c[i],n===a){e(o[n]).removeClass("k-state-selected").attr("aria-selected",!1),s=this._view[a].item,r=this._dataItemPosition(s,this._values),f.push({position:r,dataItem:s}),d.splice(i,1),c.splice(i,1),t.splice(p,1),h.splice(i,1),_+=1,p-=1,i-=1;break}}else{for(;p<c.length;p++)e(o[c[p]]).removeClass("k-state-selected").attr("aria-selected",!1),f.push({position:p,dataItem:d[p]});l._values=[],l._dataItems=[],l._selectedIndices=[]}return{indices:t,removed:f}},_deselectFiltered:function(t){for(var i,a,n,s=this.element[0].children,r=[],l=0;l<t.length;l++)a=t[l],i=this._view[a].item,n=this._dataItemPosition(i,this._values),n>-1&&(r.push(this.removeAt(n)),e(s[a]).removeClass("k-state-selected"));return!!r.length&&(this.trigger(w,{added:[],removed:r}),!0)},_select:function(t){var i,n,s=this,r=s.element[0].children,l=s._view,o=[],u=0;for(a(t)!==-1&&s.focus(t);u<t.length;u++)n=t[u],i=l[n],n!==-1&&i&&(i=i.item,s._selectedIndices.push(n),s._dataItems.push(i),s._values.push(s._valueGetter(i)),e(r[n]).addClass("k-state-selected").attr("aria-selected",!0),o.push({dataItem:i}));return o},getElementIndex:function(t){return e(t).data("offset-index")},_get:function(e){return"number"==typeof e?e=[e]:O(e)||(e=this.getElementIndex(e),e=[e!==t?e:-1]),e},_template:function(){var e=this,t=e.options,i=t.template;return i?(i=c.template(i),i=function(e){return'<li tabindex="-1" role="option" unselectable="on" class="k-item">'+i(e)+"</li>"}):i=c.template('<li tabindex="-1" role="option" unselectable="on" class="k-item">${'+c.expr(t.dataTextField,"data")+"}</li>",{useWithBlock:!1}),i},_templates:function(){var e,t,i,a,n,s=this.options,r={template:s.template,groupTemplate:s.groupTemplate,fixedGroupTemplate:s.fixedGroupTemplate};if(s.columns)for(t=0;t<s.columns.length;t++)i=s.columns[t],a=i.field?""+i.field:"text",r["column"+t]=i.template||"#: "+a+"#";for(n in r)e=r[n],e&&"function"!=typeof e&&(r[n]=c.template(e));this.templates=r},_normalizeIndices:function(e){for(var i=[],a=0;a<e.length;a++)e[a]!==t&&i.push(e[a]);return i},_valueIndices:function(e,t){var i,a=this._view,n=0;if(t=t?t.slice():[],!e.length)return[];for(;n<a.length;n++)i=this._dataItemPosition(a[n].item,e), i!==-1&&(t[i]=n);return this._normalizeIndices(t)},_firstVisibleItem:function(){for(var t=this.element[0],i=this.content[0],a=i.scrollTop,n=e(t.children[0]).height(),s=Math.floor(a/n)||0,r=t.children[s]||t.lastChild,l=r.offsetTop<a;r;)if(l){if(r.offsetTop+n>a||!r.nextSibling)break;r=r.nextSibling}else{if(r.offsetTop<=a||!r.previousSibling)break;r=r.previousSibling}return this._view[e(r).data("offset-index")]},_fixedHeader:function(){this.isGrouped()&&this.templates.fixedGroupTemplate?(this.header.show(),this.content.scroll(this._onScroll)):(this.header.hide(),this.content.off("scroll",this._onScroll))},_renderHeader:function(){var e,t=this.templates.fixedGroupTemplate;t&&(e=this._firstVisibleItem(),e&&(""+e.group).length&&this.header.html(t(e.group)))},_renderItem:function(e){var t='<li tabindex="-1" role="option" unselectable="on" class="k-item',i=e.item,a=0!==e.index,n=e.selected,s=this.isGrouped(),r=this.options.columns&&this.options.columns.length;return a&&e.newGroup&&(t+=" k-first"),e.isLastGroupedItem&&r&&(t+=" k-last"),n&&(t+=" k-state-selected"),t+='" aria-selected="'+(n?"true":"false")+'" data-offset-index="'+e.index+'">',t+=r?this._renderColumns(i):this.templates.template(i),a&&e.newGroup?t+=r?'<div class="k-cell k-group-cell"><span>'+this.templates.groupTemplate(e.group)+"</span></div>":'<div class="k-group">'+this.templates.groupTemplate(e.group)+"</div>":s&&r&&(t+="<div class='k-cell k-spacer-cell'></div>"),t+"</li>"},_renderColumns:function(e){var t,i,a,n,s="";for(t=0;t<this.options.columns.length;t++)i=this.options.columns[t].width,a=parseInt(i,10),n="",i&&!isNaN(a)&&(n+="style='width:",n+=a,n+=f.test(i)?"%":"px",n+=";'"),s+="<span class='k-cell' "+n+">",s+=this.templates["column"+t](e),s+="</span>";return s},_render:function(){var e,t,i,a,n="",s=0,r=0,l=[],o=this.dataSource.view(),u=this.value(),c=this.isGrouped();if(c)for(s=0;s<o.length;s++)for(t=o[s],i=!0,a=0;a<t.items.length;a++)e={selected:this._selected(t.items[a],u),item:t.items[a],group:t.value,newGroup:i,isLastGroupedItem:a===t.items.length-1,index:r},l[r]=e,r+=1,n+=this._renderItem(e),i=!1;else for(s=0;s<o.length;s++)e={selected:this._selected(o[s],u),item:o[s],index:s},l[s]=e,n+=this._renderItem(e);this._view=l,this.element[0].innerHTML=n,c&&l.length&&this._renderHeader()},_selected:function(e,t){var i=!this.isFiltered()||"multiple"===this.options.selectable;return i&&this._dataItemPosition(e,t)!==-1},setDSFilter:function(e){this._lastDSFilter=q({},e)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!c.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},refresh:function(e){var t,i=this,a=e&&e.action,n=i.options.skipUpdateOnBind,r="itemchange"===a;i.trigger("dataBinding"),i._angularItems("cleanup"),i._fixedHeader(),i._render(),i.bound(!0),r||"remove"===a?(t=s(i._dataItems,e.items),t.changed.length&&(r?i.trigger("selectedItemChange",{items:t.changed}):i.value(i._getValues(t.unchanged)))):i.isFiltered()||i._skipUpdate||i._emptySearch?(i.focus(0),i._skipUpdate&&(i._skipUpdate=!1,i._selectedIndices=i._valueIndices(i._values,i._selectedIndices))):n||a&&"add"!==a||i.value(i._values),i._valueDeferred&&i._valueDeferred.resolve(),i._angularItems("compile"),i.trigger("dataBound")},bound:function(e){return e===t?this._bound:(this._bound=e,t)},isGrouped:function(){return(this.dataSource.group()||[]).length}}),d.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()});;!function(t,define){define("kendo.dropdownlist.min",["kendo.list.min","kendo.mobile.scroller.min","kendo.virtuallist.min"],t)}(function(){return function(t,e){function i(t,e,i){for(var n,a=0,o=e.length-1;a<o;++a)n=e[a],n in t||(t[n]={}),t=t[n];t[e[o]]=i}function n(t,e){return t>=e&&(t-=e),t}function a(t,e){for(var i=0;i<t.length;i++)if(t.charAt(i)!==e)return!1;return!0}var o=window.kendo,s=o.ui,l=s.List,r=s.Select,p=o.support,u=o._activeElement,c=o.data.ObservableObject,d=o.keys,f=".kendoDropDownList",_=f+"FocusEvent",h="disabled",m="readonly",v="change",b="k-state-focused",w="k-state-default",g="k-state-disabled",I="aria-disabled",x="aria-readonly",L="click"+f+" touchend"+f,k="mouseenter"+f+" mouseleave"+f,y="tabindex",T="filter",V="accept",C="The `optionLabel` option is not valid due to missing fields. Define a custom optionLabel as shown here http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-optionLabel",O=t.proxy,D="open",F="close",S=r.extend({init:function(i,n){var a,s,l,p=this,u=n&&n.index;p.ns=f,n=t.isArray(n)?{dataSource:n}:n,r.fn.init.call(p,i,n),n=p.options,i=p.element.on("focus"+f,O(p._focusHandler,p)),p._focusInputHandler=t.proxy(p._focusInput,p),p.optionLabel=t(),p._optionLabel(),p._inputTemplate(),p._reset(),p._prev="",p._word="",p._wrapper(),p._tabindex(),p.wrapper.data(y,p.wrapper.attr(y)),p._span(),p._popup(),p._mobile(),p._dataSource(),p._ignoreCase(),p._filterHeader(),p._aria(),p.wrapper.attr("aria-live","polite"),p._enable(),p._attachFocusHandlers(),p._oldIndex=p.selectedIndex=-1,u!==e&&(n.index=u),p._initialIndex=n.index,p.requireValueMapper(p.options),p._initList(),p.listView.one("dataBound",O(p._attachAriaActiveDescendant,p)),p._cascade(),p.one("set",function(t){!t.sender.listView.bound()&&p.hasOptionLabel()&&p._textAccessor(p._optionLabelText())}),n.autoBind?p.dataSource.fetch():p.selectedIndex===-1&&(s=n.text||"",s||(a=n.optionLabel,a&&0===n.index?s=a:p._isSelect&&(s=i.children(":selected").text())),p._textAccessor(s)),l=t(p.element).parents("fieldset").is(":disabled"),l&&p.enable(!1),p.listView.bind("click",function(t){t.preventDefault()}),o.notify(p)},options:{name:"DropDownList",enabled:!0,autoBind:!0,index:0,text:null,value:null,delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",cascadeFromField:"",cascadeFromParentField:"",ignoreCase:!0,animation:{},filter:"none",minLength:1,enforceMinLength:!1,virtual:!1,template:null,valueTemplate:null,optionLabelTemplate:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",autoWidth:!1,popup:null,filterTitle:null},events:["open","close",v,"select","filtering","dataBinding","dataBound","cascade","set","kendoKeydown"],setOptions:function(t){r.fn.setOptions.call(this,t),this.listView.setOptions(this._listOptions(t)),this._optionLabel(),this._inputTemplate(),this._accessors(),this._filterHeader(),this._enable(),this._aria(),!this.value()&&this.hasOptionLabel()&&this.select(0)},destroy:function(){var t=this;r.fn.destroy.call(t),t.wrapper.off(f),t.wrapper.off(_),t.element.off(f),t._inputWrapper.off(f),t._arrow.off(),t._arrow=null,t._arrowIcon=null,t.optionLabel.off(),t.filterInput&&t.filterInput.off(_)},open:function(){var t=this,e=!!t.dataSource.filter()&&t.dataSource.filter().filters.length>0,i=this.listView;t.popup.visible()||(t.listView.bound()&&t._state!==V?t._allowOpening()&&(t._focusFilter=!0,t.popup.one("activate",t._focusInputHandler),t.popup._hovered=!0,t.wrapper.attr("aria-activedescendant",i._optionID),t.popup.open(),t._resizeFilterInput(),t._focusItem()):(t._open=!0,t._state="rebind",t.filterInput&&(t.filterInput.val(""),t._prev=""),t.filterInput&&1!==t.options.minLength&&!e?(t.refresh(),t.popup.one("activate",t._focusInputHandler),t.wrapper.attr("aria-activedescendant",i._optionID),t.popup.open(),t._resizeFilterInput()):t._filterSource()))},close:function(){this._attachAriaActiveDescendant(),this.popup.close()},_attachAriaActiveDescendant:function(){var t=this.wrapper,e=t.find(".k-input").attr("id");t.attr("aria-activedescendant",e)},_focusInput:function(){this._focusElement(this.filterInput)},_resizeFilterInput:function(){var t,e,i=this.filterInput,n=this._prevent;i&&(t=this.filterInput[0]===u(),e=o.caret(this.filterInput[0])[0],this._prevent=!0,i.css("display","none").css("width",this.popup.element.css("width")).css("display","inline-block"),t&&(i.focus(),o.caret(i[0],e)),this._prevent=n)},_allowOpening:function(){return this.hasOptionLabel()||this.filterInput||r.fn._allowOpening.call(this)},toggle:function(t){this._toggle(t,!0)},current:function(t){var i;return t===e?(i=this.listView.focus(),!i&&0===this.selectedIndex&&this.hasOptionLabel()?this.optionLabel:i):(this._focus(t),e)},dataItem:function(i){var n=this,a=null;if(null===i)return i;if(i===e)a=n.listView.selectedDataItems()[0];else{if("number"!=typeof i){if(n.options.virtual)return n.dataSource.getByUid(t(i).data("uid"));i=i.hasClass("k-list-optionlabel")?-1:t(n.items()).index(i)}else n.hasOptionLabel()&&(i-=1);a=n.dataSource.flatView()[i]}return a||(a=n._optionLabelDataItem()),a},refresh:function(){this.listView.refresh()},text:function(t){var i,n=this,a=n.options.ignoreCase;return t=null===t?"":t,t===e?n._textAccessor():"string"!=typeof t?(n._textAccessor(t),e):(i=a?t.toLowerCase():t,n._select(function(t){return t=n._text(t),a&&(t=(t+"").toLowerCase()),t===i}).done(function(){n._textAccessor(n.dataItem()||t)}),e)},_clearFilter:function(){t(this.filterInput).val(""),r.fn._clearFilter.call(this)},value:function(t){var i=this,n=i.listView,a=i.dataSource;return t===e?(t=i._accessor()||i.listView.value()[0],t===e||null===t?"":t):(i.requireValueMapper(i.options,t),!t&&i.hasOptionLabel()||(i._initialIndex=null),this.trigger("set",{value:t}),i._request&&i.options.cascadeFrom&&i.listView.bound()?(i._valueSetter&&a.unbind(v,i._valueSetter),i._valueSetter=O(function(){i.value(t)},i),a.one(v,i._valueSetter),e):(i._isFilterEnabled()&&n.bound()&&n.isFiltered()?i._clearFilter():i._fetchData(),n.value(t).done(function(){i._old=i._valueBeforeCascade=i._accessor(),i._oldIndex=i.selectedIndex}),e))},hasOptionLabel:function(){return this.optionLabel&&!!this.optionLabel[0]},_optionLabel:function(){var i=this,n=i.options,a=n.optionLabel,s=n.optionLabelTemplate;return a?(s||(s="#:",s+="string"==typeof a?"data":o.expr(n.dataTextField,"data"),s+="#"),"function"!=typeof s&&(s=o.template(s)),i.optionLabelTemplate=s,i.hasOptionLabel()||(i.optionLabel=t('<div class="k-list-optionlabel"></div>').prependTo(i.list)),i.optionLabel.html(s(a)).off().on(L,O(i._click,i)).on(k,i._toggleHover),i.angular("compile",function(){return{elements:i.optionLabel,data:[{dataItem:i._optionLabelDataItem()}]}}),e):(i.optionLabel.off().remove(),i.optionLabel=t(),e)},_optionLabelText:function(){var t=this.options.optionLabel;return"string"==typeof t?t:this._text(t)},_optionLabelDataItem:function(){var i=this,n=i.options.optionLabel;return i.hasOptionLabel()?t.isPlainObject(n)?new c(n):i._assignInstance(i._optionLabelText(),""):e},_buildOptions:function(t){var i,n,a,o=this;o._isSelect&&(i=o.listView.value()[0],n=o._optionLabelDataItem(),a=n&&o._value(n),i!==e&&null!==i||(i=""),n&&(a!==e&&null!==a||(a=""),n='<option value="'+a+'">'+o._text(n)+"</option>"),o._options(t,n,i),i!==l.unifyType(o._accessor(),typeof i)&&(o._customOption=null,o._custom(i)))},_listBound:function(){var t,e=this,i=e._initialIndex,n=e._state===T,a=e.dataSource.flatView();e._presetValue=!1,e._renderFooter(),e._renderNoData(),e._toggleNoData(!a.length),e._resizePopup(!0),e.popup.position(),e._buildOptions(a),n||(e._open&&e.toggle(e._allowOpening()),e._open=!1,e._fetch||(a.length?(!e.listView.value().length&&i>-1&&null!==i&&e.select(i),e._initialIndex=null,t=e.listView.selectedDataItems()[0],t&&e.text()!==e._text(t)&&e._selectValue(t)):e._textAccessor()!==e._optionLabelText()&&(e.listView.value(""),e._selectValue(null),e._oldIndex=e.selectedIndex))),e._hideBusy(),e.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),(this._presetValue||this._old&&this._oldIndex===-1)&&(this._oldIndex=this.selectedIndex)},_filterPaste:function(){this._search()},_attachFocusHandlers:function(){var t=this,e=t.wrapper;e.on("focusin"+_,O(t._focusinHandler,t)).on("focusout"+_,O(t._focusoutHandler,t)),t.filterInput&&t.filterInput.on("focusin"+_,O(t._focusinHandler,t)).on("focusout"+_,O(t._focusoutHandler,t))},_focusHandler:function(){this.wrapper.focus()},_focusinHandler:function(){this._inputWrapper.addClass(b),this._prevent=!1},_focusoutHandler:function(){var t=this,e=window.self!==window.top;t._prevent||(clearTimeout(t._typingTimeout),p.mobileOS.ios&&e?t._change():t._blur(),t._inputWrapper.removeClass(b),t._prevent=!0,t._open=!1,t.element.blur())},_wrapperMousedown:function(){this._prevent=!!this.filterInput},_wrapperClick:function(t){t.preventDefault(),this.popup.unbind("activate",this._focusInputHandler),this._focused=this.wrapper,this._prevent=!1,this._toggle()},_editable:function(t){var e=this,i=e.element,n=t.disable,a=t.readonly,s=e.wrapper.add(e.filterInput).off(f),l=e._inputWrapper.off(k);a||n?n?(s.removeAttr(y),l.addClass(g).removeClass(w)):l.addClass(w).removeClass(g):(i.removeAttr(h).removeAttr(m),l.addClass(w).removeClass(g).on(k,e._toggleHover),s.attr(y,s.data(y)).attr(I,!1).attr(x,!1).on("keydown"+f,e,O(e._keydown,e)).on(o.support.mousedown+f,O(e._wrapperMousedown,e)).on("paste"+f,O(e._filterPaste,e)),e.wrapper.on("click"+f,O(e._wrapperClick,e)),e.filterInput?s.on("input"+f,O(e._search,e)):s.on("keypress"+f,O(e._keypress,e))),i.attr(h,n).attr(m,a),s.attr(I,n).attr(x,a)},_keydown:function(t){var i,n,a,o=this,s=t.keyCode,l=t.altKey,r=o.popup.visible();if(o.filterInput&&(i=o.filterInput[0]===u()),s===d.LEFT?(s=d.UP,n=!0):s===d.RIGHT&&(s=d.DOWN,n=!0),!n||!i){if(t.keyCode=s,(l&&s===d.UP||s===d.ESC)&&o._focusElement(o.wrapper),o._state===T&&s===d.ESC&&(o._clearFilter(),o._open=!1,o._state=V),s===d.ENTER&&o._typingTimeout&&o.filterInput&&r)return t.preventDefault(),e;if(s!==d.SPACEBAR||i||(o.toggle(!r),t.preventDefault()),n=o._move(t),!n){if((!r||!o.filterInput)&&(a=o._focus(),s===d.HOME?(n=!0,o._firstItem()):s===d.END&&(n=!0,o._lastItem()),n)){if(o.trigger("select",{dataItem:o._getElementDataItem(o._focus()),item:o._focus()}))return o._focus(a),e;o._select(o._focus(),!0).done(function(){r||o._blur()}),t.preventDefault()}l||n||!o.filterInput||o._search()}}},_matchText:function(t,i){var n=this.options.ignoreCase;return t!==e&&null!==t&&(t+="",n&&(t=t.toLowerCase()),0===t.indexOf(i))},_shuffleData:function(t,e){var i=this._optionLabelDataItem();return i&&(t=[i].concat(t)),t.slice(e).concat(t.slice(0,e))},_selectNext:function(){var t,e,i,o=this,s=o.dataSource.flatView(),l=s.length+(o.hasOptionLabel()?1:0),r=a(o._word,o._last),p=o.selectedIndex;for(p===-1?p=0:(p+=r?1:0,p=n(p,l)),s=s.toJSON?s.toJSON():s.slice(),s=o._shuffleData(s,p),i=0;i<l&&(e=o._text(s[i]),!r||!o._matchText(e,o._last))&&!o._matchText(e,o._word);i++);i!==l&&(t=o._focus(),o._select(n(p+i,l)).done(function(){var e=function(){o.popup.visible()||o._change()};o.trigger("select",{dataItem:o._getElementDataItem(o._focus()),item:o._focus()})?o._select(t).done(e):e()}))},_keypress:function(t){var e,i=this;0!==t.which&&t.keyCode!==o.keys.ENTER&&(e=String.fromCharCode(t.charCode||t.keyCode),i.options.ignoreCase&&(e=e.toLowerCase())," "===e&&t.preventDefault(),i._word+=e,i._last=e,i._search())},_popupOpen:function(){var t=this.popup;t.wrapper=o.wrap(t.element),t.element.closest(".km-root")[0]&&(t.wrapper.addClass("km-popup km-widget"),this.wrapper.addClass("km-widget"))},_popup:function(){r.fn._popup.call(this),this.popup.one("open",O(this._popupOpen,this))},_getElementDataItem:function(t){return t&&t[0]?t[0]===this.optionLabel[0]?this._optionLabelDataItem():this.listView.dataItemByIndex(this.listView.getElementIndex(t)):null},_click:function(i){var n=this,a=i.item||t(i.currentTarget);return i.preventDefault(),n.trigger("select",{dataItem:n._getElementDataItem(a),item:a})?(n.close(),e):(n._userTriggered=!0,n._select(a).done(function(){n._blur(),n._focusElement(n.wrapper)}),e)},_focusElement:function(t){var e=u(),i=this.wrapper,n=this.filterInput,a=t===n?i:n,o=p.mobileOS&&(p.touch||p.MSPointers||p.pointers);n&&n[0]===t[0]&&o||n&&(a[0]===e||this._focusFilter)&&(this._focusFilter=!1,this._prevent=!0,this._focused=t.focus())},_searchByWord:function(t){var e,i;t&&(e=this,i=e.options.ignoreCase,i&&(t=t.toLowerCase()),e._select(function(i){return e._matchText(e._text(i),t)}))},_inputValue:function(){return this.text()},_search:function(){var t=this,i=t.dataSource;if(clearTimeout(t._typingTimeout),t._isFilterEnabled())t._typingTimeout=setTimeout(function(){var e=t.filterInput.val();t._prev!==e&&(t._prev=e,t.search(e),t._resizeFilterInput()),t._typingTimeout=null},t.options.delay);else{if(t._typingTimeout=setTimeout(function(){t._word=""},t.options.delay),!t.listView.bound())return i.fetch().done(function(){t._selectNext()}),e;t._selectNext()}},_get:function(e){var i,n,a,o="function"==typeof e,s=o?t():t(e);if(this.hasOptionLabel()&&("number"==typeof e?e>-1&&(e-=1):s.hasClass("k-list-optionlabel")&&(e=-1)),o){for(i=this.dataSource.flatView(),a=0;a<i.length;a++)if(e(i[a])){e=a,n=!0;break}n||(e=-1)}return e},_firstItem:function(){this.hasOptionLabel()?this._focus(this.optionLabel):this.listView.focusFirst()},_lastItem:function(){this._resetOptionLabel(),this.listView.focusLast()},_nextItem:function(){var t;return this.optionLabel.hasClass("k-state-focused")?(this._resetOptionLabel(),this.listView.focusFirst(),t=1):t=this.listView.focusNext(),t},_prevItem:function(){var t;if(!this.optionLabel.hasClass("k-state-focused"))return t=this.listView.focusPrev(),this.listView.focus()||this.options.virtual||this._focus(this.optionLabel),t},_focusItem:function(){var t=this.options,i=this.listView,n=i.focus(),a=i.select();a=a[a.length-1],a===e&&t.highlightFirst&&!n&&(a=0),a!==e?i.focus(a):!t.optionLabel||t.virtual&&"dataItem"===t.virtual.mapValueTo?i.scrollToIndex(0):(this._focus(this.optionLabel),this._select(this.optionLabel),this.listView.content.scrollTop(0))},_resetOptionLabel:function(t){this.optionLabel.removeClass("k-state-focused"+(t||"")).removeAttr("id")},_focus:function(t){var i=this.listView,n=this.optionLabel;return t===e?(t=i.focus(),!t&&n.hasClass("k-state-focused")&&(t=n),t):(this._resetOptionLabel(),t=this._get(t),i.focus(t),t===-1&&(n.addClass("k-state-focused").attr("id",i._optionID),this._focused.add(this.filterInput).removeAttr("aria-activedescendant").attr("aria-activedescendant",i._optionID)),e)},_select:function(t,e){var i=this;return t=i._get(t),i.listView.select(t).done(function(){e||i._state!==T||(i._state=V),t===-1&&i._selectValue(null)})},_selectValue:function(t){var i=this,n=i.options.optionLabel,a=i.listView.select(),o="",s="";a=a[a.length-1],a===e&&(a=-1),this._resetOptionLabel(" k-state-selected"),t||0===t?(s=t,o=i._dataValue(t),n&&(a+=1)):n&&(i._focus(i.optionLabel.addClass("k-state-selected")),s=i._optionLabelText(),o="string"==typeof n?"":i._value(n),a=0),i.selectedIndex=a,null===o&&(o=""),i._textAccessor(s),i._accessor(o,a),i._triggerCascade()},_mobile:function(){var t=this,e=t.popup,i=p.mobileOS,n=e.element.parents(".km-root").eq(0);n.length&&i&&(e.options.animation.open.effects=i.android||i.meego?"fadeIn":i.ios||i.wp?"slideIn:up":e.options.animation.open.effects)},_filterHeader:function(){var e;this.filterInput&&(this.filterInput.off(f).parent().remove(),this.filterInput=null),this._isFilterEnabled()&&(e='<span class="k-icon k-i-zoom"></span>',this.filterInput=t('<input class="k-textbox"/>').attr({placeholder:this.element.attr("placeholder"),title:this.options.filterTitle||this.element.attr("title"),role:"searchbox","aria-haspopup":"listbox","aria-autocomplete":"list"}),this.list.prepend(t('<span class="k-list-filter" />').append(this.filterInput.add(e))))},_span:function(){var e,i=this,n=i.wrapper,a="span.k-input",s=o.guid();e=n.find(a),e[0]||(n.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span id="'+s+'" unselectable="on" role="option" aria-selected="true" class="k-input"> </span><span role="button" unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-arrow-60-down"></span></span></span>').append(i.element),e=n.find(a)),i.span=e,i._inputWrapper=t(n[0].firstChild),i._arrow=n.find(".k-select"),i._arrowIcon=i._arrow.find(".k-icon")},_wrapper:function(){var t,e=this,i=e.element,n=i[0];t=i.parent(),t.is("span.k-widget")||(t=i.wrap("<span />").parent(),t[0].style.cssText=n.style.cssText,t[0].title=n.title),e._focused=e.wrapper=t.addClass("k-widget k-dropdown").addClass(n.className).removeClass("input-validation-error").css("display","").attr({accesskey:i.attr("accesskey"),unselectable:"on",role:"listbox","aria-haspopup":"listbox","aria-expanded":!1}),i.hide().removeAttr("accesskey")},_clearSelection:function(t){this.select(t.value()?0:-1)},_openHandler:function(t){this._adjustListWidth(),this.trigger(D)?t.preventDefault():(this.wrapper.attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))},_closeHandler:function(t){this.trigger(F)?t.preventDefault():(this.wrapper.attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_inputTemplate:function(){var e=this,i=e.options.valueTemplate;if(i=i?o.template(i):t.proxy(o.template("#:this._text(data)#",{useWithBlock:!1}),e),e.valueTemplate=i,e.hasOptionLabel()&&!e.options.optionLabelTemplate)try{e.valueTemplate(e._optionLabelDataItem())}catch(n){throw Error(C)}},_textAccessor:function(i){var n,a=null,o=this.valueTemplate,s=this._optionLabelText(),l=this.span;if(i===e)return l.text();t.isPlainObject(i)||i instanceof c?a=i:s&&s===i&&(a=this.options.optionLabel),a||(a=this._assignInstance(i,this._accessor())),this.hasOptionLabel()&&(a!==s&&this._text(a)!==s||(o=this.optionLabelTemplate,"string"!=typeof this.options.optionLabel||this.options.optionLabelTemplate||(a=s))),n=function(){return{elements:l.get(),data:[{dataItem:a}]}},this.angular("cleanup",n);try{l.html(o(a))}catch(r){l.html("")}this.angular("compile",n)},_preselect:function(t,e){t||e||(e=this._optionLabelText()),this._accessor(t),this._textAccessor(e),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(t),this._initialIndex=null,this._presetValue=!0},_assignInstance:function(t,e){var n=this.options.dataTextField,a={};return n?(i(a,n.split("."),t),i(a,this.options.dataValueField.split("."),e),a=new c(a)):a=t,a}});s.plugin(S)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()});;!function(e,define){define("kendo.userevents.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e,t){var n=e.x.location,i=e.y.location,o=t.x.location,r=t.y.location,s=n-o,a=i-r;return{center:{x:(n+o)/2,y:(i+r)/2},distance:Math.sqrt(s*s+a*a)}}function i(e){var t,n,i,o=[],r=e.originalEvent,a=e.currentTarget,c=0;if(e.api)o.push({id:2,event:e,target:e.target,currentTarget:e.target,location:e,type:"api"});else if(e.type.match(/touch/))for(n=r?r.changedTouches:[],t=n.length;c<t;c++)i=n[c],o.push({location:i,event:e,target:i.target,currentTarget:a,id:i.identifier,type:"touch"});else o.push(s.pointers||s.msPointers?{location:r,event:e,target:e.target,currentTarget:a,id:r.pointerId,type:"pointer"}:{id:1,event:e,target:e.target,currentTarget:a,location:e,type:"mouse"});return o}function o(e){for(var t=r.eventMap.up.split(" "),n=0,i=t.length;n<i;n++)e(t[n])}var r=window.kendo,s=r.support,a=r.Class,c=r.Observable,u=e.now,l=e.extend,h=s.mobileOS,p=h&&h.android,d=800,f=300,v=s.browser.msie?5:0,g="press",_="hold",m="select",T="start",y="move",k="end",E="cancel",x="tap",D="doubleTap",M="release",w="gesturestart",b="gesturechange",A="gestureend",C="gesturetap",I={api:0,touch:0,mouse:9,pointer:9},S=!s.touch||s.mouseAndTouchPresent,P=a.extend({init:function(e,t){var n=this;n.axis=e,n._updateLocationData(t),n.startLocation=n.location,n.velocity=n.delta=0,n.timeStamp=u()},move:function(e){var t=this,n=e["page"+t.axis],i=u(),o=i-t.timeStamp||1;!n&&p||(t.delta=n-t.location,t._updateLocationData(e),t.initialDelta=n-t.startLocation,t.velocity=t.delta/o,t.timeStamp=i)},_updateLocationData:function(e){var t=this,n=t.axis;t.location=e["page"+n],t.client=e["client"+n],t.screen=e["screen"+n]}}),L=a.extend({init:function(e,t,n){l(this,{x:new P("X",n.location),y:new P("Y",n.location),type:n.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||I[n.type],userEvents:e,target:t,currentTarget:n.currentTarget,initialTouch:n.target,id:n.id,pressEvent:n,_clicks:e._clicks,supportDoubleTap:e.supportDoubleTap,_moved:!1,_finished:!1})},press:function(){this._holdTimeout=setTimeout(e.proxy(this,"_hold"),this.userEvents.minHold),this._trigger(g,this.pressEvent)},_tap:function(e){var t=this;t.userEvents._clicks++,1==t.userEvents._clicks&&(t._clickTimeout=setTimeout(function(){1==t.userEvents._clicks?t._trigger(x,e):t._trigger(D,e),t.userEvents._clicks=0},f))},_hold:function(){this._trigger(_,this.pressEvent)},move:function(e){var t=this,n="api"!==e.type&&t.userEvents._shouldNotMove;if(!t._finished&&!n){if(t.x.move(e.location),t.y.move(e.location),!t._moved){if(t._withinIgnoreThreshold())return;if(X.current&&X.current!==t.userEvents)return t.dispose();t._start(e)}t._finished||t._trigger(y,e)}},end:function(e){this.endTime=u(),this._finished||(this._finished=!0,this._trigger(M,e),this._moved?this._trigger(k,e):this.useClickAsTap||(this.supportDoubleTap?this._tap(e):this._trigger(x,e)),clearTimeout(this._holdTimeout),this.dispose())},dispose:function(){var t=this.userEvents,n=t.touches;this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout),n.splice(e.inArray(this,n),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(e){clearTimeout(this._holdTimeout),this.startTime=u(),this._moved=!0,this._trigger(T,e)},_trigger:function(e,t){var n=this,i=t.event,o={touch:n,x:n.x,y:n.y,target:n.target,event:i};n.userEvents.notify(e,o)&&i.preventDefault()},_withinIgnoreThreshold:function(){var e=this.x.initialDelta,t=this.y.initialDelta;return Math.sqrt(e*e+t*t)<=this.threshold}}),X=c.extend({init:function(t,n){var i,a,u,h,p=this,f=r.guid();n=n||{},i=p.filter=n.filter,p.threshold=n.threshold||v,p.minHold=n.minHold||d,p.touches=[],p._maxTouches=n.multiTouch?2:1,p.allowSelection=n.allowSelection,p.captureUpIfMoved=n.captureUpIfMoved,p.useClickAsTap=!n.fastTap&&!s.delayedClick(),p.eventNS=f,p._clicks=0,p.supportDoubleTap=n.supportDoubleTap,t=e(t).handler(p),c.fn.init.call(p),l(p,{element:t,surface:e(n.global&&S?t[0].ownerDocument.documentElement:n.surface||t),stopPropagation:n.stopPropagation,pressed:!1}),p.surface.handler(p).on(r.applyEventMap("move",f),"_move").on(r.applyEventMap("up cancel",f),"_end"),t.on(r.applyEventMap("down",f),i,"_start"),p.useClickAsTap&&t.on(r.applyEventMap("click",f),i,"_click"),(s.pointers||s.msPointers)&&(s.browser.version<11?(a="pinch-zoom double-tap-zoom",t.css("-ms-touch-action",n.touchAction&&"none"!=n.touchAction?a+" "+n.touchAction:a)):t.css("touch-action",n.touchAction||"none")),n.preventDragEvent&&t.on(r.applyEventMap("dragstart",f),r.preventDefault),t.on(r.applyEventMap("mousedown",f),i,{root:t},"_select"),p.captureUpIfMoved&&s.eventCapture&&(u=p.surface[0],h=e.proxy(p.preventIfMoving,p),o(function(e){u.addEventListener(e,h,!0)})),p.bind([g,_,x,D,T,y,k,M,E,w,b,A,C,m],n)},preventIfMoving:function(e){this._isMoved()&&e.preventDefault()},destroy:function(){var e,t=this;t._destroyed||(t._destroyed=!0,t.captureUpIfMoved&&s.eventCapture&&(e=t.surface[0],o(function(n){e.removeEventListener(n,t.preventIfMoving)})),t.element.kendoDestroy(t.eventNS),t.surface.kendoDestroy(t.eventNS),t.element.removeData("handler"),t.surface.removeData("handler"),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget)},capture:function(){X.current=this},cancel:function(){this._disposeAll(),this.trigger(E)},notify:function(e,t){var i=this,o=i.touches;if(this._isMultiTouch()){switch(e){case y:e=b;break;case k:e=A;break;case x:e=C}l(t,{touches:o},n(o[0],o[1]))}return this.trigger(e,l(t,{type:e}))},press:function(e,t,n){this._apiCall("_start",e,t,n)},move:function(e,t){this._apiCall("_move",e,t)},end:function(e,t){this._apiCall("_end",e,t)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){for(var e=this.touches;e.length>0;)e.pop().dispose()},_isMoved:function(){return e.grep(this.touches,function(e){return e.isMoved()}).length},_select:function(e){this.allowSelection&&!this.trigger(m,{event:e})||e.preventDefault()},_start:function(t){var n,o,r=this,s=0,a=r.filter,c=i(t),u=c.length,l=t.which;if(!(l&&l>1||r._maxTouchesReached()))for(X.current=null,r.currentTarget=t.currentTarget,r.stopPropagation&&t.stopPropagation();s<u&&!r._maxTouchesReached();s++)o=c[s],n=a?e(o.currentTarget):r.element,n.length&&(o=new L(r,n,o),r.touches.push(o),o.press(),r._isMultiTouch()&&r.notify("gesturestart",{}))},_move:function(e){this._eachTouch("move",e)},_end:function(e){this._eachTouch("end",e)},_click:function(t){var n={touch:{initialTouch:t.target,target:e(t.currentTarget),endTime:u(),x:{location:t.pageX,client:t.clientX},y:{location:t.pageY,client:t.clientY}},x:t.pageX,y:t.pageY,target:e(t.currentTarget),event:t,type:"tap"};this.trigger("tap",n)&&t.preventDefault()},_eachTouch:function(e,t){var n,o,r,s,a=this,c={},u=i(t),l=a.touches;for(n=0;n<l.length;n++)o=l[n],c[o.id]=o;for(n=0;n<u.length;n++)r=u[n],s=c[r.id],s&&s[e](r)},_apiCall:function(t,n,i,o){this[t]({api:!0,pageX:n,pageY:i,clientX:n,clientY:i,target:e(o||this.element)[0],stopPropagation:e.noop,preventDefault:e.noop})}});X.defaultThreshold=function(e){v=e},X.minHold=function(e){d=e},r.getTouches=i,r.touchDelta=n,r.UserEvents=X}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(e,define){define("kendo.selectable.min",["kendo.core.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(e,t){if(!e.is(":visible"))return!1;var n=s.getOffset(e),i=t.left+t.width,l=t.top+t.height;return n.right=n.left+s._outerWidth(e),n.bottom=n.top+s._outerHeight(e),!(n.left>i||n.right<t.left||n.top>l||n.bottom<t.top)}function i(e,t){return!(e.right<=t.left||e.left>=t.right||e.bottom<=t.top||e.top>=t.bottom)}var l,s=window.kendo,a=s.ui.Widget,o=e.proxy,r=Math.abs,c="aria-selected",u="k-state-selected",d="k-state-selecting",f="k-selectable",h="change",v=".kendoSelectable",p="unselect",m="k-state-unselecting",g="input,a,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up,label.k-checkbox-label.k-no-text,.k-icon.k-i-collapse,.k-icon.k-i-expand,span.k-numeric-wrap,.k-focusable",_=s.support.browser.msie,y=!1,k=e.extend;!function(e){!function(){e('<div class="parent"><span></span></div>').on("click",">*",function(){y=!0}).find("span").trigger("click").end().off()}()}(e),l=a.extend({init:function(t,n){var i,l=this;a.fn.init.call(l,t,n),l._marquee=e("<div class='k-marquee'><div class='k-marquee-color'></div></div>"),l._lastActive=null,l.element.addClass(f),l.relatedTarget=l.options.relatedTarget,i=l.options.multiple,this.options.aria&&i&&l.element.attr("aria-multiselectable",!0),l.userEvents=new s.UserEvents(l.element,{global:!0,allowSelection:!0,filter:(y?"":"."+f+" ")+l.options.filter,tap:o(l._tap,l),touchAction:i?"none":"pan-x pan-y"}),i&&l.userEvents.bind("start",o(l._start,l)).bind("move",o(l._move,l)).bind("end",o(l._end,l)).bind("select",o(l._select,l))},events:[h,p],options:{name:"Selectable",filter:">*",inputSelectors:g,multiple:!1,relatedTarget:e.noop,ignoreOverlapped:!1,addIdToRanges:!1},_isElement:function(e){var t,n=this.element,i=n.length,l=!1;for(e=e[0],t=0;t<i;t++)if(n[t]===e){l=!0;break}return l},_tap:function(t){var n,i=e(t.target),l=this,s=t.event.ctrlKey||t.event.metaKey,a=l.options.multiple,o=a&&t.event.shiftKey,r=t.event.which,c=t.event.button;!l._isElement(i.closest("."+f))||r&&3==r||c&&2==c||this._allowSelection(t.event.target)&&(n=i.hasClass(u),a&&s||l.clear(),i=i.add(l.relatedTarget(i)),o?l.selectRange(l._firstSelectee(),i,t):(n&&s?(l._unselect(i),l._notify(h,t)):l.value(i,t),l._lastActive=l._downTarget=i))},_start:function(n){var i,l=this,s=e(n.target),a=s.hasClass(u),o=n.event.ctrlKey||n.event.metaKey;if(this._allowSelection(n.event.target)){if(l._downTarget=s,!l._isElement(s.closest("."+f)))return l.userEvents.cancel(),t;l.options.useAllItems?l._items=l.element.find(l.options.filter):(i=s.closest(l.element),l._items=i.find(l.options.filter)),n.sender.capture(),l._marquee.appendTo(document.body).css({left:n.x.client+1,top:n.y.client+1,width:0,height:0}),o||l.clear(),s=s.add(l.relatedTarget(s)),a&&(l._selectElement(s,!0),o&&s.addClass(m))}},_move:function(e){var t=this,n={left:e.x.startLocation>e.x.location?e.x.location:e.x.startLocation,top:e.y.startLocation>e.y.location?e.y.location:e.y.startLocation,width:r(e.x.initialDelta),height:r(e.y.initialDelta)};t._marquee.css(n),t._invalidateSelectables(n,e.event.ctrlKey||e.event.metaKey),e.preventDefault()},_end:function(t){var n,i,l=this,a=s.attr("range-selected"),o=s.guid();if(l._marquee.remove(),l._unselect(l.element.find(l.options.filter+"."+m)).removeClass(m),n=l.element.find(l.options.filter+"."+d),n=n.add(l.relatedTarget(n)),l.options.addIdToRanges)for(i=0;i<l._currentlyActive.length;i++)e(l._currentlyActive[i]).attr(a,o);l.value(n,t),l._lastActive=l._downTarget,l._items=null},_invalidateSelectables:function(e,t){var i,l,s,a,o=this._downTarget[0],r=this._items;for(this._currentlyActive=[],i=0,l=r.length;i<l;i++)a=r.eq(i),s=a.add(this.relatedTarget(a)),n(a,e)?(a.hasClass(u)?t&&o!==a[0]&&s.removeClass(u).addClass(m):a.hasClass(d)||a.hasClass(m)||this._collidesWithActiveElement(s,e)||s.addClass(d),this._currentlyActive.push(s[0])):a.hasClass(d)?s.removeClass(d):t&&a.hasClass(m)&&s.removeClass(m).addClass(u)},_collidesWithActiveElement:function(e,t){var n,l,a,o,r,c,u,d;if(!this.options.ignoreOverlapped)return!1;for(n=this._currentlyActive,l=e[0].getBoundingClientRect(),o=!1,r=s.support.isRtl(e),c=r?"right":"left",u={},t.right=t.left+t.width,t.bottom=t.top+t.height,d=0;d<n.length;d++)if(a=n[d].getBoundingClientRect(),i(l,a)){if(u[c]="left"===c?a.right:a.left,l=k({},l,u),l.left>l.right)return!0;o=!i(l,t)}return o},value:function(e,n){var i=this,l=o(i._selectElement,i);return e?(e.each(function(){l(this)}),i._notify(h,n),t):i.element.find(i.options.filter+"."+u)},selectedRanges:function(){var t=this,n=s.attr("range-selected"),i={};return t.element.find("["+n+"]").each(function(t,l){var s=e(l).attr(n),a=i[s];a||(a=i[s]=[]),a.push(e(l))}),i},selectedSingleItems:function(){var t=this,n=s.attr("range-selected");return t.element.find(t.options.filter+"."+u+":not(["+n+"])").toArray().map(function(t){return e(t)})},_firstSelectee:function(){var e,t=this;return null!==t._lastActive?t._lastActive:(e=t.value(),e.length>0?e[0]:t.element.find(t.options.filter)[0])},_selectElement:function(t,n){var i=e(t),l=!n&&this._notify("select",{element:t});i.removeClass(d),l||(i.addClass(u),this.options.aria&&i.attr(c,!0))},_notify:function(e,t){return t=t||{},this.trigger(e,t)},_unselect:function(e){if(!this.trigger(p,{element:e})){var t=s.attr("range-selected");return e.removeClass(u).removeAttr(t),this.options.aria&&e.attr(c,!1),e}},_select:function(t){this._allowSelection(t.event.target)&&(!_||_&&!e(s._activeElement()).is(this.options.inputSelectors))&&t.preventDefault()},_allowSelection:function(t){return!e(t).is(this.options.inputSelectors)||(this.userEvents.cancel(),this._downTarget=null,!1)},resetTouchEvents:function(){this.userEvents.cancel()},clear:function(){var e=this.element.find(this.options.filter+"."+u);this._unselect(e)},selectRange:function(t,n,i){var l,s,a,o=this;for(o.clear(),o.element.length>1&&(a=o.options.continuousItems()),a&&a.length||(a=o.element.find(o.options.filter)),t=e.inArray(e(t)[0],a),n=e.inArray(e(n)[0],a),t>n&&(s=t,t=n,n=s),o.options.useAllItems||(n+=o.element.length-1),l=t;l<=n;l++)o._selectElement(a[l]);o._notify(h,i)},destroy:function(){var e=this;a.fn.destroy.call(e),e.element.off(v),e.userEvents.destroy(),e._marquee=e._lastActive=e.element=e.userEvents=null}}),l.parseOptions=function(e){var t=e.mode||e,n="string"==typeof t&&t.toLowerCase();return{multiple:n&&n.indexOf("multiple")>-1,cell:n&&n.indexOf("cell")>-1}},s.ui.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(e,define){define("kendo.calendar.min",["kendo.core.min","kendo.selectable.min"],e)}(function(){return function(e,t){function a(e,t,a,n){var r,l=e.getFullYear(),i=t.getFullYear(),s=a.getFullYear();return l-=l%n,r=l+(n-1),l<i&&(l=i),r>s&&(r=s),l+"-"+r}function n(e){var t,a=0,n=e.min,r=e.max,l=e.start,i=e.setter,o=e.build,c=e.weekNumberBuild,u=e.cells||12,d=e.isWeekColumnVisible,f=e.perRow||4,g=e.otherMonth,_=e.lastDayOfMonth,h=e.weekNumber||q,m=e.content||I,p=e.empty||z,k=e.otherMonthCellTemplate||U,b=e.html||'<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><tbody><tr role="row">';for(d&&(b+=h(c(l)));a<u;a++)a>0&&a%f===0&&(b+='</tr><tr role="row">',d&&(b+=h(g||+l<=+_?c(l):{weekNumber:" "}))),l=v(l.getFullYear(),l.getMonth(),l.getDate()),V(l,0),t=o(l,a,e.disableDates),b+=t.cssClass.indexOf(se)===-1||g?s(l,n,r)?m(t):p(t):k(t),i(l,1);return b+"</tr></tbody></table>"}function r(e,t,a){var n=e.getFullYear(),r=t.getFullYear(),l=r,i=0;return a&&(r-=r%a,l=r-r%a+a-1),n>l?i=1:n<r&&(i=-1),i}function l(){var e=new Ye;return new Ye(e.getFullYear(),e.getMonth(),e.getDate())}function i(e,t,a){var n=l();return e&&(n=new Ye((+e))),t>n?n=new Ye((+t)):a<n&&(n=new Ye((+a))),n}function s(e,t,a){return+e>=+t&&+e<=+a}function o(e,t){return e.slice(t).concat(e.slice(0,t))}function c(e,t,a){t=t instanceof Ye?t.getFullYear():e.getFullYear()+a*t,e.setFullYear(t)}function u(e,t){var a,n,r;return+t<+e&&(a=+e,T.views[0].setDate(e,t),T.views[0].setDate(t,new Date(a))),n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),r=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),Math.ceil((+r-+n)/F.date.MS_PER_DAY)}function d(e,t,a,n){var r,l;for(r=0;r<=t;r++)l=new Date(a.getTime()),l=new Date(l.setDate(l.getDate()+r)),n(l)||e.push(l)}function f(t){var a=e(this).hasClass("k-state-disabled");a||e(this).toggleClass(re,pe.indexOf(t.type)>-1||t.type==he)}function g(e){e.preventDefault()}function v(e,t,a){var n=new Ye(e,t,a);return n.setFullYear(e,t,a),n}function _(e){return W(e).calendars.standard}function h(e){var a=Ae[e.start],n=Ae[e.depth],r=W(e.culture);e.format=H(e.format||r.calendars.standard.patterns.d),isNaN(a)&&(a=0,e.start=$),(n===t||n>a)&&(e.depth=$),null===e.dates&&(e.dates=[])}function m(e,t){e.addClass("k-"+t)}function p(e,t){for(var a=0,n=t.length;a<n;a++)if(e===+t[a])return!0;return!1}function k(e,t){return!!e&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function b(e,t){return!!e&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())}function w(t){return F.isFunction(t)?t:e.isArray(t)?y(t):e.noop}function D(e){var t,a=[];for(t=0;t<e.length;t++)a.push(e[t].setHours(0,0,0,0));return a}function y(t){var a,n,r,l,i,s=[],o=["su","mo","tu","we","th","fr","sa"],c="if (found) { return true } else {return false}";if(t[0]instanceof Ye)s=D(t),a="var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.setHours(0, 0, 0, 0),["+s+"]) > -1;"+c;else{for(r=0;r<t.length;r++)l=t[r].slice(0,2).toLowerCase(),i=e.inArray(l,o),i>-1&&s.push(i);a="var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.getDay(),["+s+"]) > -1;"+c}return n=Function("date",a)}function C(e,t){return e instanceof Date&&t instanceof Date&&(e=e.getTime(),t=t.getTime()),e===t}function S(t){var a=e(t).attr(F.attr(ne)).split("/");return a=v(a[0],a[1],a[2])}var T,F=window.kendo,x=F.support,M=F.ui,Y=M.Widget,A=F.keys,N=F.parseDate,V=F.date.adjustDST,O=F.date.weekInYear,B=F.ui.Selectable,H=F._extractFormat,E=F.template,W=F.getCulture,P=F.support.transitions,R=P?P.css+"transform-origin":"",I=E('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),z=E('<td role="gridcell" class="k-out-of-range"><a class="k-link"></a></td>',{useWithBlock:!1}),U=E('<td role="gridcell" class="k-out-of-range"> </td>',{useWithBlock:!1}),q=E('<td class="k-alt">#= data.weekNumber #</td>',{useWithBlock:!1}),j=F._outerWidth,G=".kendoCalendar",K="click"+G,L="keydown"+G,Q="id",J="min",X="left",Z="slideIn",$="month",ee="century",te="change",ae="navigate",ne="value",re="k-state-hover",le="k-state-disabled",ie="k-state-focused",se="k-other-month",oe=' class="'+se+'"',ce="k-out-of-range",ue="k-nav-today",de="td:has(.k-link)",fe="td:has(.k-link):not(."+le+"):not(."+ce+")",ge="td:not(:has(.k-link))",ve="k-state-selected",_e="blur"+G,he="focus",me=he+G,pe=x.touch?"touchstart":"mouseenter",ke=x.touch?"touchstart"+G:"mouseenter"+G,be=x.touch?"touchend"+G+" touchmove"+G:"mouseleave"+G,we=6e4,De=864e5,ye="_prevArrow",Ce="_nextArrow",Se="aria-disabled",Te="aria-selected",Fe="aria-label",xe=e.proxy,Me=e.extend,Ye=Date,Ae={month:0,year:1,decade:2,century:3},Ne=".k-header, .k-calendar-header",Ve='<div class="k-header"><a href="\\#" #=actionAttr#="prev" role="button" class="k-link k-nav-prev" '+Fe+'="Previous"><span class="k-icon k-i-arrow-60-left"></span></a><a href="\\#" #=actionAttr#="nav-up" role="button" aria-live="assertive" aria-atomic="true" class="k-link k-nav-fast"></a><a href="\\#" #=actionAttr#="next" role="button" class="k-link k-nav-next" '+Fe+'="Next"><span class="k-icon k-i-arrow-60-right"></span></a></div>',Oe='<div class="k-calendar-header"><a href="\\#" #=actionAttr#="nav-up" role="button" aria-live="assertive" aria-atomic="true" class="k-button k-title"></a><span class="k-calendar-nav"><a #=actionAttr#="prev" class="k-button k-button-icon k-prev-view"><span class="k-icon k-i-arrow-60-left"></span></a><a #=actionAttr#="today" class="k-today">#=messages.today#</a><a #=actionAttr#="next" class="k-button k-button-icon k-next-view"><span class="k-icon k-i-arrow-60-right"></span></a></span></div>',Be=Y.extend({init:function(t,a){var n,r,s=this;a=a||{},a.componentType=a.componentType||"classic",Y.fn.init.call(s,t,a),t=s.wrapper=s.element,a=s.options,a.url=F.unescape(a.url),s.options.disableDates=w(s.options.disableDates),s._templates(),s._selectable(),s._header(),s._viewWrapper(),s.options.hasFooter?s._footer(s.footer):(s._today=s.element.find("a.k-today"),s._toggle()),r=t.addClass("k-widget k-calendar "+(a.weekNumber?" k-week-number":"")).on(ke+" "+be,de,f).on(L,"table.k-content",xe(s._move,s)).on(K+" touchend",de,function(t){var n=t.currentTarget.firstChild,r=S(n);n.href.indexOf("#")!=-1&&t.preventDefault(),"month"==s._view.name&&s.options.disableDates(r)||"month"==s._view.name&&"single"!=a.selectable||s._click(e(n))}).on("mouseup"+G,"table.k-content, .k-footer",function(){s._focusView(s.options.focusOnNav!==!1)}).attr(Q),s._isMultipleSelection()&&s.options.weekNumber&&t.on(K,ge,function(t){var a=e(t.currentTarget).closest("tr").find(fe).first(),n=s.selectable._lastActive=e(t.currentTarget).closest("tr").find(fe).last();s.selectable.selectRange(a,n,{event:t}),s._current=s._value=S(n.find("a")),s._setCurrent(s._current)}),h(a),n=N(a.value,a.format,a.culture),s._selectDates=[],s._index=Ae[a.start],s._current=new Ye((+i(n,a.min,a.max))),s._addClassProxy=function(){if(s._active=!0,s._cell.hasClass(le)){var e=s._view.toDateString(l());s._cell=s._cellByDate(e)}s._cell.addClass(ie)},s._removeClassProxy=function(){s._active=!1,s._cell&&s._cell.removeClass(ie)},s.value(n),s._isMultipleSelection()&&a.selectDates.length>0&&s.selectDates(a.selectDates),F.notify(s)},options:{name:"Calendar",value:null,min:new Ye(1900,0,1),max:new Ye(2099,11,31),dates:[],disableDates:null,url:"",culture:"",footer:"",format:"",month:{},weekNumber:!1,selectable:"single",selectDates:[],start:$,depth:$,animation:{horizontal:{effects:Z,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}},messages:{weekColumnHeader:"",today:"Today"},componentType:"classic"},events:[te,ae],componentTypes:{classic:{header:{template:Ve},hasFooter:!0,linksSelector:".k-link",contentClasses:"k-content"},modern:{header:{template:Oe},hasFooter:!1,linksSelector:".k-button",contentClasses:"k-content k-calendar-content"}},setOptions:function(e){var t=this;h(e),e.disableDates=w(e.disableDates),t._destroySelectable(),Y.fn.setOptions.call(t,e),t._templates(),t._selectable(),t._viewWrapper(),t.options.hasFooter?t._footer(t.footer):(t.element.find(".k-footer").hide(),t._toggle()),t._index=Ae[t.options.start],t.navigate(),e.weekNumber&&t.element.addClass("k-week-number")},destroy:function(){var e=this,t=e._today;e.element.off(G),e._title.off(G),e[ye].off(G),e[Ce].off(G),e._destroySelectable(),F.destroy(e._table),t&&F.destroy(t.off(G)),Y.fn.destroy.call(e)},current:function(){return this._current},view:function(){return this._view},focus:function(e){e=e||this._table,this._bindTable(e),e.trigger("focus")},min:function(e){return this._option(J,e)},max:function(e){return this._option("max",e)},navigateToPast:function(){this._navigate(ye,-1)},navigateToFuture:function(){this._navigate(Ce,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(le)||e.navigate(e._current,++t)},navigateDown:function(e){var a=this,n=a._index,r=a.options.depth;if(e)return n===Ae[r]?(C(a._value,a._current)&&C(a._value,e)||(a.value(e),a.trigger(te)),t):(a.navigate(e,--n),t)},navigate:function(a,n){var r,l,s,o,c,u,d,f,g,v,_,h,p,k,b,w,D;n=isNaN(n)?Ae[n]:n,r=this,l=r.options,s=l.culture,o=l.min,c=l.max,u=r._title,d=r._table,f=r._oldTable,g=r._current,v=a&&+a>+g,_=n!==t&&n!==r._index,w=r.element.children(".k-calendar-view"),a||(a=g),r._current=a=new Ye((+i(a,o,c))),n===t?n=r._index:r._index=n,r._view=p=T.views[n],k=p.compare,b=n===Ae[ee],u.toggleClass(le,b).attr(Se,b),b=k(a,o)<1,r[ye].toggleClass(le,b).attr(Se,b),r[ye].hasClass(le)&&r[ye].removeClass(re),b=k(a,c)>-1,r[Ce].toggleClass(le,b).attr(Se,b),r[Ce].hasClass(le)&&r[Ce].removeClass(re),d&&f&&f.data("animating")&&(f.kendoStop(!0,!0),d.kendoStop(!0,!0)),r._oldTable=d,d&&!r._changeView||(u.html(p.title(a,o,c,s)),r._table=h=e(p.content(Me({min:o,max:c,date:a,url:l.url,dates:l.dates,format:l.format,otherMonth:!0,culture:s,disableDates:l.disableDates,isWeekColumnVisible:l.weekNumber,messages:l.messages,contentClasses:r.options.contentClasses},r[p.name]))),m(h,p.name),D=d&&d.data("start")===h.data("start"),r._animate({from:d,to:h,vertical:_,future:v,replace:D}),"modern"===r.options.componentType&&(w.removeClass("k-calendar-monthview k-calendar-yearview k-calendar-decadeview k-calendar-centuryview"),w.addClass("k-calendar-"+p.name+"view")),r.trigger(ae),r._focus(a)),n===Ae[l.depth]&&r._selectDates.length>0&&r._visualizeSelectedDatesInView(),"single"===r.options.selectable&&n===Ae[l.depth]&&r._value&&!r.options.disableDates(r._value)&&r._selectCell(r._value),r._setCurrent(a),!d&&r._cell&&r._cell.removeClass(ie),r._changeView=!0},selectDates:function(a){var n,r,l=this;return a===t?l._selectDates:(r=a.map(function(e){return e.getTime()}).filter(function(e,t,a){return a.indexOf(e)===t}).map(function(e){return new Date(e)}),n=e.grep(r,function(e){if(e)return+l._validateValue(new Date(e.setHours(0,0,0,0)))===+e}),l._selectDates=n.length>0?n:0===r.length?r:l._selectDates,l._visualizeSelectedDatesInView(),t)},value:function(e){var a,n=this,r=n._view,l=n._view;return e===t?n._value:(e=n._validateValue(e),e&&n._isMultipleSelection()&&(a=new Date((+e)),a.setHours(0,0,0,0),n._selectDates=[a],n.selectable._lastActive=null),r&&null===e&&n._cell?n._cell.removeClass(ve):(n._changeView=!e||l&&0!==l.compare(e,n._current),n.navigate(e)),t)},_validateValue:function(e){var a=this,n=a.options,r=n.min,l=n.max;return null===e&&(a._current=v(a._current.getFullYear(),a._current.getMonth(),a._current.getDate())),e=N(e,n.format,n.culture),null!==e&&(e=new Ye((+e)),s(e,r,l)||(e=null)),null!==e&&a.options.disableDates(new Date((+e)))?a._value===t&&(a._value=null):a._value=e,a._value},_visualizeSelectedDatesInView:function(){var t,a=this,n={};e.each(a._selectDates,function(e,t){n[F.calendar.views[0].toDateString(t)]=t}),a.selectable.clear(),t=a._table.find(de).filter(function(t,a){return n[e(a.firstChild).attr(F.attr(ne))]}),t.length>0&&a.selectable._selectElement(t,!0)},_isMultipleSelection:function(){var e=this;return"multiple"===e.options.selectable},_selectable:function(){var e,t,a=this;a._isMultipleSelection()&&(e=a.options.selectable,t=B.parseOptions(e),t.multiple&&a.element.attr("aria-multiselectable","true"),a.selectable=new B(a.wrapper,{aria:!0,inputSelectors:"input,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up",multiple:t.multiple,filter:"table.k-month:eq(0) "+fe,change:xe(a._onSelect,a),relatedTarget:xe(a._onRelatedTarget,a)}))},_onRelatedTarget:function(e){var t=this;t.selectable.options.multiple&&e.is(fe)&&(t._current=S(e.find("a")),t._setCurrent(t._current))},_onSelect:function(a){var n=this,r=a,l=B.parseOptions(n.options.selectable);return l.multiple?(r.event.ctrlKey||r.event.metaKey?e(r.event.currentTarget).is(fe)?n._toggleSelection(e(r.event.currentTarget)):(n._cellsBySelector(fe).each(function(t,a){var r=S(e(a).find("a"));n._deselect(r)}),n._addSelectedCellsToArray()):r.event.shiftKey?n._rangeSelection(n._cell):e(r.event.currentTarget).is(de)?n.value(S(e(r.event.currentTarget).find("a"))):(n._selectDates=[],n._addSelectedCellsToArray()),n.trigger(te),t):(e(r.event.currentTarget).is("td")&&!e(r.event.currentTarget).hasClass("k-state-selected")?e(r.event.currentTarget).addClass("k-state-selected"):n._click(e(r.event.currentTarget).find("a")),t)},_destroySelectable:function(){var e=this;e.selectable&&(e.selectable.destroy(),e.selectable=null)},_toggleSelection:function(e){var t=this,a=S(e.find("a"));e.hasClass("k-state-selected")?t._selectDates.push(a):t._deselect(a)},_rangeSelection:function(e,t){var a,n=this,r=t||S(n.selectable.value().first().find("a")),l=S(e.find("a"));n.selectable._lastActive||n._value?r=n.selectable._lastActive?S(n.selectable._lastActive.find("a")):new Date((+n._value)):n.selectable._lastActive=t?n._cellByDate(n._view.toDateString(t),fe):n.selectable.value().first(),n._selectDates=[],a=u(r,l),d(n._selectDates,a,r,n.options.disableDates),n._visualizeSelectedDatesInView()},_cellsBySelector:function(e){var t=this;return t._table.find(e)},_addSelectedCellsToArray:function(){var t=this;t.selectable.value().each(function(a,n){var r=S(e(n.firstChild));t.options.disableDates(r)||t._selectDates.push(r)})},_deselect:function(e){var t=this,a=t._selectDates.map(Number).indexOf(+e);a!=-1&&t._selectDates.splice(a,1)},_dateInView:function(e){var t=this,a=S(t._cellsBySelector(fe+":first").find("a")),n=S(t._cellsBySelector(fe+":last").find("a"));return+e<=+n&&+e>=+a},_isNavigatable:function(e,t){var a,n,r=this,l=r.options.disableDates;return"month"==r._view.name?!l(e):(n=r.wrapper.find("."+ie).index(),a=r.wrapper.find(".k-content td:eq("+(n+t)+")"),a.is(fe)||!l(e))},_move:function(a){var n,r,l,o,c,u=this,d=u.options,f=a.keyCode,g=u._view,_=u._index,h=u.options.min,m=u.options.max,p=new Ye((+u._current)),k=F.support.isRtl(u.wrapper),b=u.options.disableDates;return a.target===u._table[0]&&(u._active=!0),f==A.RIGHT&&!k||f==A.LEFT&&k?(n=1,r=!0):f==A.LEFT&&!k||f==A.RIGHT&&k?(n=-1,r=!0):f==A.UP?(n=0===_?-7:-4,r=!0):f==A.DOWN?(n=0===_?7:4,r=!0):f==A.SPACEBAR?(n=0,r=!0):f!=A.HOME&&f!=A.END||(l=f==A.HOME?"first":"last",o=g[l](p),p=new Ye(o.getFullYear(),o.getMonth(),o.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds()),p.setFullYear(o.getFullYear()),r=!0),a.ctrlKey||a.metaKey?f==A.RIGHT&&!k||f==A.LEFT&&k?(u.navigateToFuture(),r=!0):f==A.LEFT&&!k||f==A.RIGHT&&k?(u.navigateToPast(),r=!0):f==A.UP?(u.navigateUp(),r=!0):f==A.DOWN?(u._click(e(u._cell[0].firstChild)),r=!0):f!=A.ENTER&&f!=A.SPACEBAR||!u._isMultipleSelection()||(u._keyboardToggleSelection(a),c=S(e(u._cell[0]).find("a")),u._setCurrent(c)):a.shiftKey?(n!==t||l)&&(l||g.setDate(p,n),s(p,h,m)||(p=i(p,d.min,d.max)),b(p)&&(p=u._nextNavigatable(p,n)),h=v(h.getFullYear(),h.getMonth(),h.getDate()),u._isMultipleSelection()?u._keyboardRangeSelection(a,p):u._focus(p)):(f==A.ENTER||f==A.SPACEBAR?("month"==g.name&&u._isMultipleSelection()?(u.value(S(e(u._cell.find("a")))),u.selectable._lastActive=e(u._cell[0]),u.trigger(te)):u._click(e(u._cell[0].firstChild)),r=!0):f==A.PAGEUP?(r=!0,u.navigateToPast()):f==A.PAGEDOWN&&(r=!0,u.navigateToFuture()),(n||l)&&(l||g.setDate(p,n),h=v(h.getFullYear(),h.getMonth(),h.getDate()),s(p,h,m)||(p=i(p,d.min,d.max)),u._isNavigatable(p,n)||(p=u._nextNavigatable(p,n)),u._isMultipleSelection()?u._dateInView(p)?(u._current=p,u._setCurrent(p)):u.navigate(p):u._focus(p))),r&&a.preventDefault(),u._current},_keyboardRangeSelection:function(e,a){var n,r,l=this;return l._dateInView(a)?(l.selectable.options.filter=l.wrapper.find("table").length>1&&+a>+l._current?"table.k-month:eq(1) "+fe:"table.k-month:eq(0) "+fe,l._setCurrent(a),l._current=a,l._rangeSelection(l._cellByDate(l._view.toDateString(a),fe),a),l.trigger(te),l.selectable.options.filter="table.k-month:eq(0) "+fe,t):(l._selectDates=[],n=l.selectable._lastActive?S(l.selectable._lastActive.find("a")):a,r=u(n,new Date((+a))),d(l._selectDates,r,n,l.options.disableDates),l.navigate(a),l._current=a,l.selectable._lastActive=l.selectable._lastActive||l._cellByDate(l._view.toDateString(a),fe),l.trigger(te),t)},_keyboardToggleSelection:function(t){var a=this;t.currentTarget=a._cell[0],a.selectable._lastActive=e(a._cell[0]),e(a._cell[0]).hasClass(ve)?(a.selectable._unselect(e(a._cell[0])),a.selectable.trigger(te,{event:t})):a.selectable.value(e(a._cell[0]),{event:t})},_nextNavigatable:function(e,t){var a=this,n=!0,r=a._view,l=a.options.min,i=a.options.max,o=a.options.disableDates,c=new Date(e.getTime());for(r.setDate(c,-t);n;){if(r.setDate(e,t),!s(e,l,i)){e=c;break}n=o(e)}return e},_animate:function(e){var t=this,a=e.from,n=e.to,r=t._active,l=t.element.children(".k-calendar-view");a?a.parent().data("animating")?(a.off(G),a.parent().kendoStop(!0,!0).remove(),a.remove(),l.append(n),t._focusView(r)):!a.is(":visible")||t.options.animation===!1||e.replace?(n.insertAfter(a),a.off(G).remove(),t._focusView(r)):t[e.vertical?"_vertical":"_horizontal"](a,n,e.future):(l.append(n),t._bindTable(n))},_horizontal:function(e,t,a){var n=this,r=n._active,l=n.options.animation.horizontal,i=l.effects,s=j(e);i&&i.indexOf(Z)!=-1&&(e.add(t).css({width:s}),e.wrap("<div/>"),n._focusView(r,e),e.parent().css({position:"relative",width:2*s,"float":X,"margin-left":a?0:-s}),t[a?"insertAfter":"insertBefore"](e),Me(l,{effects:Z+":"+(a?"right":X),complete:function(){e.off(G).remove(),n._oldTable=null,t.unwrap(),n._focusView(r)}}),e.parent().kendoStop(!0,!0).kendoAnimate(l))},_vertical:function(e,t){var a,n,r=this,l=r.options.animation.vertical,i=l.effects,s=r._active;i&&i.indexOf("zoom")!=-1&&(t.insertBefore(e),e.css({position:"absolute",width:t.width()}),R&&(a=r._cellByDate(r._view.toDateString(r._current)),n=a.position(),n=n.left+parseInt(a.width()/2,10)+"px "+(n.top+parseInt(a.height()/2,10)+"px"),t.css(R,n)),e.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){e.off(G).remove(),r._oldTable=null,r._focusView(s)}}),t.kendoStop(!0,!0).kendoAnimate(l))},_cellByDate:function(t,a){return this._table.find(a?a:"td:not(."+se+")").filter(function(){return e(this.firstChild).attr(F.attr(ne))===t})},_selectCell:function(e){var t=this,a=t._selectedCell,n=t._view.toDateString(e);a&&a[0]&&(a[0].removeAttribute(Te),a.removeClass(ve)),a=t._cellByDate(n,"multiple"==t.options.selectable?de:"td:not(."+se+")"),t._selectedCell=a,a.addClass(ve).attr(Te,!0)},_setCurrent:function(e){var t=this,a=F.guid(),n=t._cell,r=t._view.toDateString(e);n&&n[0]&&(n.removeClass(ie),n[0].removeAttribute(Fe),n[0].removeAttribute(Q)),n=t._cellByDate(r,"multiple"==t.options.selectable?de:"td:not(."+se+")"),t._cell=n,n.attr(Q,a).addClass(ie),t._table[0]&&(t._table[0].removeAttribute("aria-activedescendant"),t._table.attr("aria-activedescendant",a))},_bindTable:function(e){e.on(me,this._addClassProxy).on(_e,this._removeClassProxy)},_click:function(e){var t=this,a=t.options,n=new Date((+t._current)),r=S(e);V(r,0),"month"==t._view.name&&t.options.disableDates(r)&&(r=t._value),t._view.setDate(n,r),t.navigateDown(i(n,a.min,a.max))},_focus:function(e){var t=this,a=t._view;0!==a.compare(e,t._current)?t.navigate(e):(t._current=e,t._setCurrent(e))},_focusView:function(e,t){e&&this.focus(t)},_viewWrapper:function(){var t=this,a=t.element,n=a.children(".k-calendar-view");n[0]||(n=e("<div class='k-calendar-view' />").insertAfter(a.find(Ne)))},_footer:function(a){var n=this,r=l(),i=n.element,s=i.find(".k-footer");return a?(s[0]||(s=e('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(i)),n._today=s.show().find(".k-link").html(a(r)).attr("title",F.toString(r,"D",n.options.culture)),n._toggle(),t):(n._toggle(!1),s.hide(),t)},_header:function(){var t=this,a=t.element,n=t.options.linksSelector;a.find(Ne)[0]||a.html(F.template(t.options.header.template)(e.extend(!0,{},t.options,{actionAttr:F.attr("action")}))),a.find(n).on(ke+" "+be+" "+me+" "+_e,f).on(K+" touchend"+G,function(){return!1}),t._title=a.find("["+F.attr("action")+'="nav-up"]').on(K+" touchend"+G,function(){t._active=t.options.focusOnNav!==!1,t.navigateUp()}),t[ye]=a.find("["+F.attr("action")+'="prev"]').on(K+" touchend"+G,function(){t._active=t.options.focusOnNav!==!1,t.navigateToPast()}),t[Ce]=a.find("["+F.attr("action")+'="next"]').on(K+" touchend"+G,function(){t._active=t.options.focusOnNav!==!1,t.navigateToFuture()}),a.find("["+F.attr("action")+'="today"]').on(K+" touchend"+G,xe(t._todayClick,t))},_navigate:function(e,t){var a,n=this,r=n._index+1,l=new Ye((+n._current));n._isMultipleSelection()&&(a=n._table.find("td:not(.k-other-month):not(.k-out-of-range)").has(".k-link").first(),l=S(a.find("a")),n._current=new Date((+l))),e=n[e],e.hasClass(le)||(r>3?l.setFullYear(l.getFullYear()+100*t):T.views[r].setDate(l,t),n.navigate(l))},_option:function(e,a){var n,r=this,l=r.options,i=r._value||r._current;return a===t?l[e]:(a=N(a,l.format,l.culture),a&&(l[e]=new Ye((+a)),n=e===J?a>i:i>a,(n||b(i,a))&&(n&&(r._value=null),r._changeView=!0),r._changeView||(r._changeView=!(!l.month.content&&!l.month.empty)),r.navigate(r._value),r._toggle()),t)},_toggle:function(e){var a=this,n=a.options,r=a.options.disableDates(l()),i=a._today,o=a._todayClass();e===t&&(e=s(l(),n.min,n.max)),i&&(i.off(K),e&&!r?i.addClass(o).removeClass(le).on(K,xe(a._todayClick,a)):i.removeClass(o).addClass(le).on(K,g))},_todayClass:function(){return"modern"===this.options.componentType?"k-today":ue},_todayClick:function(e){var t=this,a=Ae[t.options.depth],n=t.options.disableDates,r=l();e.preventDefault(),n(r)||(0===t._view.compare(t._current,r)&&t._index==a&&(t._changeView=!1),t._isMultipleSelection()&&(t._selectDates=[r],t.selectable._lastActive=null),t._value=r,t.navigate(r,a),t.trigger(te))},_templates:function(){var e=this,t=e.options,a=t.footer,n=t.month,r=n.content,l=n.weekNumber,i=n.empty,s='#= kendo.toString(data,"D","'+t.culture+'") #';e.month={content:E('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+F.attr(ne)+'="#=data.dateString#" title="#=data.title#">'+(r||"#=data.value#")+"</a></td>",{useWithBlock:!!r}),empty:E('<td role="gridcell">'+(i||" ")+"</td>",{useWithBlock:!!i}),weekNumber:E('<td class="k-alt">'+(l||"#= data.weekNumber #")+"</td>",{useWithBlock:!!l})},a&&a!==!0&&(s=a),e.footer=a!==!1?E(s,{useWithBlock:!1}):null},_updateAria:function(e,t){var a,n=this,r=n._cell,l=n.view().valueType(),i=t||n.current();return a="month"===l?F.toString(i,"MMMM"):"date"===l?F.toString(i,"D"):r.text(),r.attr("aria-label",e({current:i,valueType:l,text:a})),r.attr("id")}});M.plugin(Be),T={firstDayOfMonth:function(e){return v(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||F.culture().calendar;var a=t.firstDay,n=new Ye(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());for(n.setFullYear(e.getFullYear());n.getDay()!=a;)T.setTime(n,-1*De);return n},setTime:function(e,t){var a=e.getTimezoneOffset(),n=new Ye(e.getTime()+t),r=n.getTimezoneOffset()-a;e.setTime(n.getTime()+r*we)},views:[{name:$,title:function(e,t,a,n){return _(n).months.names[e.getMonth()]+" "+e.getFullYear()},content:function(e){var t=this,a=0,r=e.min,i=e.max,s=e.date,c=e.dates,u=e.format,d=e.culture,f=e.url,g=e.showHeader,h=e.otherMonth,m=e.isWeekColumnVisible,k=f&&c[0],b=_(d),w=b.firstDay,D=b.days,y=o(D.names,w),C=o(D.namesShort,w),S=T.firstVisibleDay(s,b),x=t.first(s),M=t.last(s),Y=t.toDateString,A=l(),N=e.contentClasses,B='<table tabindex="0" role="grid" class="'+N+'" cellspacing="0" data-start="'+Y(S)+'">';for(B+=g?'<caption class="k-month-header">'+this.title(s,r,i,d)+'</caption><thead><tr role="row">':'<thead><tr role="row">',m&&(B+='<th scope="col" class="k-alt">'+e.messages.weekColumnHeader+"</th>");a<7;a++)B+='<th scope="col" title="'+y[a]+'">'+C[a]+"</th>";return V(A,0),A=+A,n({cells:42,perRow:7,html:B+='</tr></thead><tbody><tr role="row">',start:S,isWeekColumnVisible:m,weekNumber:e.weekNumber,min:v(r.getFullYear(),r.getMonth(),r.getDate()),max:v(i.getFullYear(),i.getMonth(),i.getDate()),otherMonth:h,content:e.content,lastDayOfMonth:M,empty:e.empty,setter:t.setDate,disableDates:e.disableDates,build:function(e,t,a){var n=[],r=e.getDay(),l="",i="#";return(e<x||e>M)&&n.push(se),a(e)&&n.push(le),+e===A&&n.push("k-today"),0!==r&&6!==r||n.push("k-weekend"),k&&p(+e,c)&&(i=f.replace("{0}",F.toString(e,u,d)),l=" k-action-link"),{date:e,dates:c,ns:F.ns,title:F.toString(e,"D",d),value:e.getDate(),dateString:Y(e),cssClass:n[0]?' class="'+n.join(" ")+'"':"",linkClass:l,url:i}},weekNumberBuild:function(e){return{weekNumber:O(e,F.culture().calendar.firstDay),currentDate:e}}})},first:function(e){return T.firstDayOfMonth(e)},last:function(e){var t=v(e.getFullYear(),e.getMonth()+1,0),a=T.firstDayOfMonth(e),n=Math.abs(t.getTimezoneOffset()-a.getTimezoneOffset());return n&&t.setHours(a.getHours()+n/60),t},compare:function(e,t){var a,n=e.getMonth(),r=e.getFullYear(),l=t.getMonth(),i=t.getFullYear();return a=r>i?1:r<i?-1:n==l?0:n>l?1:-1},setDate:function(e,t){var a=e.getHours();t instanceof Ye?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):T.setTime(e,t*De),V(e,a)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/"+e.getDate()},valueType:function(){return"date"}},{name:"year",title:function(e){return e.getFullYear()},content:function(e){var t=_(e.culture).months.namesAbbr,a=this.toDateString,r=e.min,l=e.max,i="";return e.showHeader&&(i+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',i+=this.title(e.date),i+='</caption><tbody><tr role="row">'),n({min:v(r.getFullYear(),r.getMonth(),1),max:v(l.getFullYear(),l.getMonth(),1),start:v(e.date.getFullYear(),0,1),html:i,setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:F.ns,dateString:a(e),cssClass:""}}})},first:function(e){return v(e.getFullYear(),0,e.getDate())},last:function(e){return v(e.getFullYear(),11,e.getDate())},compare:function(e,t){return r(e,t)},setDate:function(e,t){var a,n=e.getHours();t instanceof Ye?(a=t.getMonth(),e.setFullYear(t.getFullYear(),a,e.getDate()),a!==e.getMonth()&&e.setDate(0)):(a=e.getMonth()+t,e.setMonth(a),a>11&&(a-=12),a>0&&e.getMonth()!=a&&e.setDate(0)),V(e,n)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/1"},valueType:function(){return"month"}},{name:"decade",title:function(e,t,n){return a(e,t,n,10)},content:function(e){var t=e.date.getFullYear(),a=this.toDateString,r="";return e.showHeader&&(r+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',r+=this.title(e.date,e.min,e.max),r+='</caption><tbody><tr role="row">'),n({start:v(t-t%10-1,0,1),min:v(e.min.getFullYear(),0,1),max:v(e.max.getFullYear(),0,1),otherMonth:e.otherMonth,html:r,setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:F.ns,dateString:a(e),cssClass:0===t||11==t?oe:""}}})},first:function(e){var t=e.getFullYear();return v(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return v(t-t%10+9,e.getMonth(),e.getDate())},compare:function(e,t){return r(e,t,10)},setDate:function(e,t){c(e,t,1)},toDateString:function(e){return e.getFullYear()+"/0/1"},valueType:function(){return"year"}},{name:ee,title:function(e,t,n){return a(e,t,n,100)},content:function(e){var t=e.date.getFullYear(),a=e.min.getFullYear(),r=e.max.getFullYear(),l=this.toDateString,i=a,s=r,o="";return i-=i%10,s-=s%10,s-i<10&&(s=i+9),e.showHeader&&(o+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',o+=this.title(e.date,e.min,e.max),o+='</caption><tbody><tr role="row">'),n({start:v(t-t%100-10,0,1),min:v(i,0,1),max:v(s,0,1),otherMonth:e.otherMonth,html:o,setter:this.setDate,build:function(e,t){var n=e.getFullYear(),i=n+9;return n<a&&(n=a),i>r&&(i=r),{ns:F.ns,value:n+" - "+i,dateString:l(e),cssClass:0===t||11==t?oe:""}}})},first:function(e){var t=e.getFullYear();return v(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return v(t-t%100+99,e.getMonth(),e.getDate())},compare:function(e,t){return r(e,t,100)},setDate:function(e,t){c(e,t,10)},toDateString:function(e){var t=e.getFullYear();return t-t%10+"/0/1"},valueType:function(){return"decade"}}]},T.isEqualDatePart=k,T.isEqualDate=C,T.restrictValue=i,T.isInRange=s,T.addClassToViewContainer=m,T.normalize=h,T.viewsEnum=Ae,T.disabled=w,T.toDateObject=S,T.getToday=l,T.createDate=v,F.calendar=T}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});;!function(e,define){define("kendo.datepicker.min",["kendo.calendar.min","kendo.popup.min","kendo.dateinput.min"],e)}(function(){return function(e,t){function a(t){var a=t.parseFormats,n=t.format;H.normalize(t),a=e.isArray(a)?a:[a],a.length||a.push("yyyy-MM-dd"),e.inArray(n,a)===-1&&a.splice(0,0,t.format),t.parseFormats=a}function n(e){e.preventDefault()}var i,o=window.kendo,r=o.ui,l=r.Widget,s=o.parseDate,u=o.keys,p=o.support,d=o.template,c=o._activeElement,m="<div />",_="<span />",f=".kendoDatePicker",v="click"+f,h=p.mouseAndTouchPresent?o.applyEventMap("up",f.slice(1)):v,g="open",y="close",w="change",b="disabled",k="readonly",D="k-state-default",x="k-state-focused",I="k-state-selected",A="k-state-disabled",T="k-state-hover",V="mouseenter"+f+" mouseleave"+f,C="mousedown"+f,O="id",P="min",R="max",E="month",N="aria-disabled",F="aria-readonly",W="aria-expanded",S="aria-hidden",H=o.calendar,M=H.isInRange,q=H.restrictValue,z=H.isEqualDatePart,K=e.extend,j=e.proxy,B=Date,Q=function(t){var a,n=this,i=document.body,l=e(m).attr(S,"true").addClass("k-calendar-container");n.options=t=t||{},a=t.id,t.omitPopup?l=t.dateDiv:(l.appendTo(i),n.popup=new r.Popup(l,K(t.popup,t,{name:"Popup",isRtl:o.support.isRtl(t.anchor)}))),a&&(a+="_dateview",l.attr(O,a),n._dateViewID=a),n.div=l,n.value(t.value)};Q.prototype={_calendar:function(){var t,a=this,i=a.calendar,l=a.options;i||(t=e(m).attr(O,o.guid()).appendTo(l.omitPopup?l.dateDiv:a.popup.element).on(C,n).on(v,"td:has(.k-link)",j(a._click,a)),a.calendar=i=new r.Calendar(t,{componentType:l.componentType}),a._setOptions(l),i.navigate(a._value||a._current,l.start),a.value(a._value))},_setOptions:function(e){this.calendar.setOptions({focusOnNav:!1,change:e.change,culture:e.culture,dates:e.dates,depth:e.depth,footer:e.footer,format:e.format,max:e.max,min:e.min,month:e.month,weekNumber:e.weekNumber,start:e.start,disableDates:e.disableDates})},setOptions:function(e){var t=this.options,a=e.disableDates;a&&(e.disableDates=H.disabled(a)),this.options=K(t,e,{change:t.change,close:t.close,open:t.open}),this.calendar&&this._setOptions(this.options)},destroy:function(){this.popup&&this.popup.destroy()},open:function(){var e,t=this;t._calendar(),e=t.popup._hovered,t.popup._hovered=!0,t.popup.open(),setTimeout(function(){t.popup._hovered=e},1)},close:function(){this.popup&&this.popup.close()},min:function(e){this._option(P,e)},max:function(e){this._option(R,e)},toggle:function(){var e=this;e[e.popup.visible()?y:g]()},move:function(e){var t=this,a=e.keyCode,n=t.calendar,i=e.ctrlKey&&a==u.DOWN||a==u.ENTER,o=!1;if(e.altKey)a==u.DOWN?(t.open(),e.preventDefault(),o=!0):a==u.UP&&(t.close(),e.preventDefault(),o=!0);else if(t.popup&&t.popup.visible()){if(a==u.ESC||i&&n._cell.hasClass(I))return t.close(),e.preventDefault(),!0;a!=u.SPACEBAR&&(t._current=n._move(e)),o=!0}return o},current:function(e){this._current=e,this.calendar&&this.calendar._focus(e)},value:function(e){var t=this,a=t.calendar,n=t.options,i=n.disableDates;i&&i(e)&&(e=null),t._value=e,t._current=new B((+q(e,n.min,n.max))),a&&a.value(e)},_click:function(e){e.currentTarget.className.indexOf(I)!==-1&&(this.calendar.trigger("change"),this.close())},_option:function(e,t){var a=this,n=a.calendar;a.options[e]=t,n&&n[e](t)}},Q.normalize=a,o.DateView=Q,i=l.extend({init:function(t,n){var i,r,u=this;l.fn.init.call(u,t,n),t=u.element,n=u.options,n.disableDates=o.calendar.disabled(n.disableDates),n.min=s(t.attr("min"))||s(n.min),n.max=s(t.attr("max"))||s(n.max),a(n),u._initialOptions=K({},n),u._wrapper(),u.dateView=new Q(K({},n,{id:t.attr(O),anchor:u.wrapper,change:function(){u._change(this.value()),u.close()},close:function(e){u.trigger(y)?e.preventDefault():(t.attr(W,!1),r.attr(S,!0))},open:function(e){var a,n=u.options;u.trigger(g)?e.preventDefault():(u.element.val()!==u._oldText&&(a=s(t.val(),n.parseFormats,n.culture),u.dateView[a?"current":"value"](a)),t.attr(W,!0),r.attr(S,!1),u._updateARIA(a))}})),r=u.dateView.div,u._icon();try{t[0].setAttribute("type","text")}catch(p){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-haspopup":"grid","aria-owns":u.dateView._dateViewID,autocomplete:"off"}),u._reset(),u._template(),i=t.is("[disabled]")||e(u.element).parents("fieldset").is(":disabled"),i?u.enable(!1):u.readonly(t.is("[readonly]")),u._createDateInput(n),u._old=u._update(n.value||u.element.val()),u._oldText=t.val(),o.notify(u)},events:[g,y,w],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:E,depth:E,animation:{},month:{},dates:[],disableDates:null,ARIATemplate:"Current focused #=data.valueType# is #=data.text#",dateInput:!1,weekNumber:!1,componentType:"classic"},setOptions:function(e){var t=this,n=t._value;l.fn.setOptions.call(t,e),e=t.options,e.min=s(e.min),e.max=s(e.max),a(e),t.dateView.setOptions(e),t._createDateInput(e),t._dateInput||t.element.val(o.toString(n,e.format,e.culture)),n&&t._updateARIA(n)},_editable:function(e){var t=this,a=t._dateIcon.off(f),i=t.element.off(f),o=t._inputWrapper.off(f),r=e.readonly,l=e.disable;r||l?(o.addClass(l?A:D).removeClass(l?D:A),i.attr(b,l).attr(k,r).attr(N,l).attr(F,r)):(o.addClass(D).removeClass(A).on(V,t._toggleHover),i&&i.length&&(i[0].removeAttribute(b),i[0].removeAttribute(k)),i.attr(N,!1).attr(F,!1).on("keydown"+f,j(t._keydown,t)).on("focusout"+f,j(t._blur,t)).on("focus"+f,function(){t._inputWrapper.addClass(x)}),a.on(h,j(t._click,t)).on(C,n))},readonly:function(e){this._editable({readonly:e===t||e,disable:!1}),this._dateInput&&this._dateInput._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)}),this._dateInput&&this._dateInput._editable({readonly:!1,disable:!(e=e===t||e)})},destroy:function(){var e=this;l.fn.destroy.call(e),e.dateView.destroy(),e.element.off(f),e._dateIcon.off(f),e._inputWrapper.off(f),e._form&&e._form.off("reset",e._resetHandler)},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(e){return this._option(P,e)},max:function(e){return this._option(R,e)},value:function(e){var a=this;return e===t?a._value:(a._old=a._update(e),null!==a._old||a._dateInput||a.element.val(""),a._oldText=a.element.val(),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(T,"mouseenter"===t.type)},_blur:function(){var e=this,t=e.element.val();e.close(),t!==e._oldText&&(e._change(t),t||e.dateView.current(o.calendar.getToday())),e._inputWrapper.removeClass(x)},_click:function(e){var t=this;t.dateView.toggle(),t._focusElement(e.type)},_focusElement:function(e){var t=this.element;p.touch&&(!p.mouseAndTouchPresent||(e||"").match(/touch/i))||t[0]===c()||t.trigger("focus")},_change:function(e){var t,a,n,i=this,r=i.element.val();e=i._update(e),t=!o.calendar.isEqualDate(i._old,e),a=t&&!i._typing,n=r!==i.element.val(),(a||n)&&i.element.trigger(w),t&&(i._old=e,i._oldText=i.element.val(),i.trigger(w)),i._typing=!1},_keydown:function(e){var t=this,a=t.dateView,n=t.element.val(),i=!1;a.popup.visible()||e.keyCode!=u.ENTER||n===t._oldText?(i=a.move(e),t._updateARIA(a._current),i?t._dateInput&&e.stopImmediatePropagation&&e.stopImmediatePropagation():t._typing=!0):t._change(n)},_icon:function(){var t,a=this,n=a.element;t=n.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-calendar"></span></span>').insertAfter(n)),a._dateIcon=t.attr({role:"button","aria-controls":a.dateView._dateViewID})},_option:function(e,a){var n=this,i=n.options;return a===t?i[e]:(a=s(a,i.parseFormats,i.culture),a&&(i[e]=new B((+a)),n.dateView[e](a)),t)},_update:function(e){var t,a=this,n=a.options,i=n.min,r=n.max,l=a._value,u=s(e,n.parseFormats,n.culture),p=null===u&&null===l||u instanceof Date&&l instanceof Date;return n.disableDates(u)&&(u=null,a._old||a.element.val()||(e=null)),+u===+l&&p?(t=o.toString(u,n.format,n.culture),t===e||a._dateInput&&!u||a.element.val(null===u?e:t),u):(null!==u&&z(u,i)?u=q(u,i,r):M(u,i,r)||(u=null),a._value=u,a.dateView.value(u),a._dateInput&&u?a._dateInput.value(u||e):a.element.val(o.toString(u||e,n.format,n.culture)),a._updateARIA(u),u)},_wrapper:function(){var t,a=this,n=a.element;t=n.parents(".k-datepicker"),t[0]||(t=n.wrap(_).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(_).parent()),t[0].style.cssText=n[0].style.cssText,n.css({width:"100%",height:n[0].style.height}),a.wrapper=t.addClass("k-widget k-datepicker").addClass(n[0].className).removeClass("input-validation-error"),a._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,a=t.element,n=a.attr("form"),i=t.options,r=i.disableDates,l=i.parseFormats.length?i.parseFormats:null,s=t._initialOptions.value,u=n?e("#"+n):a.closest("form"),p=a[0].defaultValue;s&&r&&r(s)&&(s=null),p&&o.parseDate(p,l,i.culture)||!s||a.attr("value",o.toString(s,i.format,i.culture)),u[0]&&(t._resetHandler=function(){t.value(s||a[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=u.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=j(d(this.options.ARIATemplate),this)},_createDateInput:function(e){this._dateInput&&(this._dateInput.destroy(),this._dateInput=null),e.dateInput&&(this._dateInput=new r.DateInput(this.element,{culture:e.culture,format:e.format,min:e.min,max:e.max}))},_updateARIA:function(e){var t=this,a=t.dateView.calendar;t.element&&t.element.length&&t.element[0].removeAttribute("aria-activedescendant"),a&&t.element.attr("aria-activedescendant",a._updateAria(t._ariaTemplate,e))}}),r.plugin(i)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});;!function(e,define){define("kendo.floatinglabel.min",["kendo.core.min"],e)}(function(){return function(e,n){var o=window.kendo,t=o.ui.Widget,i=o.ui,s=".kendoFloatingLabel",l="k-floating-label-container",a="k-state-empty",d="k-state-focused",r="k-state-disabled",f="k-no-click",u="k-state-readonly",c=e.proxy,y=t.extend({init:function(i,s){var a=this;t.fn.init.call(a,i,s),s=e.extend(!0,{},s),a.refresh(),a._editable({readonly:a.options.widget.options.readonly!==n&&a.options.widget.options.readonly,disable:a.options.widget.options.enable!==n&&!a.options.widget.options.enable}),a.element.addClass(l),o.notify(a)},options:{name:"FloatingLabel",widget:null,useReadOnlyClass:!1},readonly:function(e){this._editable({readonly:e===n||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===n||e)})},refresh:function(){var e=this,n=e.element;n.removeClass(a).removeClass(d),e.options.widget.element.val()||n.addClass(a),document.activeElement===e.options.widget.element[0]&&n.addClass(d)},destroy:function(){var e=this;e.element.off(s),t.fn.destroy.call(e)},_editable:function(e){var n=this,o=n.element,t=e.disable,i=e.readonly;o.off(s),i||t?o.toggleClass(r,t).toggleClass(n.options.useReadOnlyClass?u:f,i):(o.removeClass(r).removeClass(n.options.useReadOnlyClass?u:f),o.on("focusin"+s,c(n.refresh,n)),o.on("focusout"+s,c(n.refresh,n)))}});i.plugin(y)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,n,o){(o||n)()});;!function(e,define){define("kendo.numerictextbox.min",["kendo.core.min","kendo.userevents.min","kendo.floatinglabel.min"],e)}(function(){return function(e,t){function a(e,t){var a="k-i-arrow-"+("increase"===e?"60-up":"60-down");return'<span role="button" unselectable="on" class="k-link k-link-'+e+'" aria-label="'+t+'" title="'+t+'"><span unselectable="on" class="'+F+" "+a+'"></span></span>'}function n(e,t){var a=(""+parseFloat(e,10)).split(L);return a[1]&&(a[1]=a[1].substring(0,t)),a.join(L)}var r=window.kendo,i=r.caret,o=r.keys,l=r.ui,s=l.Widget,u=r._activeElement,p=r._extractFormat,d=r.parseFloat,c=r.support.placeholder,_=r.getCulture,f="change",m="disabled",v="readonly",h="k-input",b="spin",g=".kendoNumericTextBox",x="touchend",w="mouseleave"+g,y="mouseenter"+g+" "+w,k="k-state-default",T="k-state-focused",C="k-state-hover",A="focus",L=".",E="symbol",F="k-icon",H="k-label k-input-label",O="k-state-selected",I="k-state-disabled",S="k-state-invalid",W="aria-disabled",D=/^(-)?(\d*)$/,P=null,R=e.proxy,j=e.isPlainObject,N=e.extend,V=s.extend({init:function(a,n){var i,o,l,u,d,c,_=this,f=n&&n.step!==t;s.fn.init.call(_,a,n),n=_.options,a=_.element.on("focusout"+g,R(_._focusout,_)).attr("role","spinbutton"),n.placeholder=n.placeholder||a.attr("placeholder"),i=_.min(a.attr("min")),o=_.max(a.attr("max")),l=_._parse(a.attr("step")),n.min===P&&i!==P&&(n.min=i),n.max===P&&o!==P&&(n.max=o),f||l===P||(n.step=l),_._initialOptions=N({},n),c=a.attr("type"),_._reset(),_._wrapper(),_._arrows(),_._validation(),_._input(),r.support.mobileOS?_._text.on(x+g+" "+A+g,function(){r.support.browser.edge?_._text.one(A+g,function(){_._focusin()}):_._focusin(),_.selectValue()}):_._text.on(A+g,R(_._click,_)),a.attr("aria-valuemin",n.min!==P?n.min*n.factor:n.min).attr("aria-valuemax",n.max!==P?n.max*n.factor:n.max),n.format=p(n.format),u=n.value,u==P&&(u="number"==c?parseFloat(a.val()):a.val()),_.value(u),d=!n.enable||a.is("[disabled]")||e(_.element).parents("fieldset").is(":disabled"),d?_.enable(!1):_.readonly(a.is("[readonly]")),_.angular("compile",function(){return{elements:_._text.get()}}),_._label(),_._ariaLabel(),r.notify(_)},options:{name:"NumericTextBox",decimals:P,enable:!0,restrictDecimals:!1,min:P,max:P,value:P,step:1,round:!0,culture:"",format:"n",spinners:!0,placeholder:"",selectOnFocus:!1,factor:1,upArrowText:"Increase value",downArrowText:"Decrease value",label:null},events:[f,b],_editable:function(e){var t=this,a=t.element,n=e.disable,r=e.readonly,i=t._text.add(a),o=t._inputWrapper.off(y);t._toggleText(!0),t._upArrowEventHandler.unbind("press"),t._downArrowEventHandler.unbind("press"),a.off("keydown"+g).off("keyup"+g).off("input"+g).off("paste"+g),t._inputLabel&&t._inputLabel.off(g),r||n?(o.addClass(n?I:k).removeClass(n?k:I),i.attr(m,n).attr(v,r).attr(W,n)):(o.addClass(k).removeClass(I).on(y,t._toggleHover),i.removeAttr(m).removeAttr(v).attr(W,!1),t._upArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(1),t._upArrow.addClass(O)}),t._downArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(-1),t._downArrow.addClass(O)}),t.element.on("keydown"+g,R(t._keydown,t)).on("keyup"+g,R(t._keyup,t)).on("paste"+g,R(t._paste,t)).on("input"+g,R(t._inputHandler,t)),t._inputLabel&&t._inputLabel.on("click"+g,R(t.focus,t)))},readonly:function(e){var a=this;this._editable({readonly:e===t||e,disable:!1}),a.floatingLabel&&a.floatingLabel.readonly(e===t||e)},enable:function(e){var a=this;this._editable({readonly:!1,disable:!(e=e===t||e)}),a.floatingLabel&&a.floatingLabel.enable(e=e===t||e)},setOptions:function(e){var a=this;s.fn.setOptions.call(a,e),a._arrowsWrap.toggle(a.options.spinners),a._inputWrapper.toggleClass("k-expand-padding",!a.options.spinners),a._text.prop("placeholder",a.options.placeholder),a._placeholder(a.options.placeholder),a.element.attr({"aria-valuemin":a.options.min!==P?a.options.min*a.options.factor:a.options.min,"aria-valuemax":a.options.max!==P?a.options.max*a.options.factor:a.options.max}),a.options.format=p(a.options.format),e.value!==t&&a.value(e.value)},destroy:function(){var e=this;e._inputLabel&&(e._inputLabel.off(g),e.floatingLabel&&e.floatingLabel.destroy()),e.element.add(e._text).add(e._upArrow).add(e._downArrow).add(e._inputWrapper).off(g),e._upArrowEventHandler.destroy(),e._downArrowEventHandler.destroy(),e._form&&e._form.off("reset",e._resetHandler),s.fn.destroy.call(e)},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},step:function(e){return this._option("step",e)},value:function(e){var a,n=this;return e===t?n._value:(e=n._parse(e),a=n._adjust(e),e===a&&(n._update(e),n._old=n._value),t)},focus:function(){this._focusin()},_adjust:function(e){var t=this,a=t.options,n=a.min,r=a.max;return e===P?e:(n!==P&&e<n?e=n:r!==P&&e>r&&(e=r),e)},_arrows:function(){var t,n=this,i=function(){clearTimeout(n._spinning),t.removeClass(O)},o=n.options,l=o.spinners,s=n.element;t=s.siblings("."+F),t[0]||(t=e(a("increase",o.upArrowText)+a("decrease",o.downArrowText)).insertAfter(s),n._arrowsWrap=t.wrapAll('<span class="k-select"/>').parent()),l||(t.parent().toggle(l),n._inputWrapper.addClass("k-expand-padding")),n._upArrow=t.eq(0),n._upArrowEventHandler=new r.UserEvents(n._upArrow,{release:i}),n._downArrow=t.eq(1),n._downArrowEventHandler=new r.UserEvents(n._downArrow,{release:i})},_validation:function(){var t=this,a=t.element;t._validationIcon=e("<span class='"+F+" k-i-warning'></span>").hide().insertAfter(a)},_blur:function(){var e=this;e._toggleText(!0),e._change(e.element.val())},_click:function(e){var t=this;clearTimeout(t._focusing),t._focusing=setTimeout(function(){var a,n,r,o=e.target,l=i(o)[0],s=o.value.substring(0,l),u=t._format(t.options.format),p=u[","],d=0;p&&(n=RegExp("\\"+p,"g"),r=RegExp("(-)?("+u[E]+")?([\\d\\"+p+"]+)(\\"+u[L]+")?(\\d+)?")),r&&(a=r.exec(s)),a&&(d=a[0].replace(n,"").length,s.indexOf("(")!=-1&&t._value<0&&d++),t._focusin(),i(t.element[0],d),t.selectValue()})},selectValue:function(){this.options.selectOnFocus&&this.element[0].select()},_getFactorValue:function(e){var t=this,a=t.options.factor;return a&&1!==a&&(e=r.parseFloat(e),null!==e&&(e/=a)),e},_change:function(e){var t=this;e=t._getFactorValue(e),t._update(e),e=t._value,t._old!=e&&(t._old=e,t._typing||t.element.trigger(f),t.trigger(f)),t._typing=!1},_culture:function(e){return e||_(this.options.culture)},_focusin:function(){var e=this;e._inputWrapper.addClass(T),e._toggleText(!1),e.element[0].focus()},_focusout:function(){var e=this;clearTimeout(e._focusing),e._inputWrapper.removeClass(T).removeClass(C),e._blur(),e._removeInvalidState()},_format:function(e,t){var a=this._culture(t).numberFormat;return e=e.toLowerCase(),e.indexOf("c")>-1?a=a.currency:e.indexOf("p")>-1&&(a=a.percent),a},_input:function(){var t,a=this,n=a.options,r="k-formatted-value",i=a.element.addClass(h).show()[0],o=i.accessKey,l=a.wrapper;t=l.find(L+r),t[0]||(t=e('<input type="text"/>').insertBefore(i).addClass(r));try{i.setAttribute("type","text")}catch(s){i.type="text"}t[0].title=i.title,t[0].tabIndex=i.tabIndex,t[0].style.cssText=i.style.cssText,t.prop("placeholder",n.placeholder),o&&(t.attr("accesskey",o),i.accessKey=""),a._text=t.addClass(i.className).attr({role:"spinbutton","aria-valuemin":n.min!==P?n.min*n.factor:n.min,"aria-valuemax":n.max!==P?n.max*n.factor:n.max,autocomplete:"off"})},_keydown:function(e){var a=this,n=e.keyCode;return n===o.NUMPAD_DOT&&(a._numPadDot=!0),n==o.DOWN?(a._step(-1),t):n==o.UP?(a._step(1),t):n==o.ENTER?(a._change(a.element.val()),t):(n!=o.TAB&&(a._typing=!0),a._cachedCaret=i(a.element),t)},_keyup:function(){this._removeInvalidState()},_inputHandler:function(){var e=this.element,t=e.val(),a=this.options.min,n=this._format(this.options.format),r=n[L],o=null!==a&&a>=0&&"-"===t.charAt(0);this._numPadDot&&r!==L&&(t=t.replace(L,r),this.element.val(t),this._numPadDot=!1),this._isPasted&&(t=(""+this._parse(t)).replace(L,n[L])),this._numericRegex(n).test(t)&&!o?this._oldText=t:(this._blinkInvalidState(),this.element.val(this._oldText),this._cachedCaret&&(i(e,this._cachedCaret[0]),this._cachedCaret=null)),this._isPasted=!1},_blinkInvalidState:function(){var e=this;e._addInvalidState(),clearTimeout(e._invalidStateTimeout),e._invalidStateTimeout=setTimeout(R(e._removeInvalidState,e),100)},_addInvalidState:function(){var e=this;e._inputWrapper.addClass(S),e._validationIcon.show()},_removeInvalidState:function(){var e=this;e._inputWrapper.removeClass(S),e._validationIcon.hide(),e._invalidStateTimeout=null},_numericRegex:function(e){var t=this,a=e[L],n=t.options.decimals,r="*";return a===L&&(a="\\"+a),n===P&&(n=e.decimals),0===n&&t.options.restrictDecimals?D:(t.options.restrictDecimals&&(r="{0,"+n+"}"),t._separator!==a&&(t._separator=a,t._floatRegExp=RegExp("^(-)?(((\\d+("+a+"\\d"+r+")?)|("+a+"\\d"+r+")))?$")),t._floatRegExp)},_paste:function(e){var t=this,a=e.target,n=a.value,r=t._format(t.options.format);t._isPasted=!0,setTimeout(function(){var e=t._parse(a.value);e===P?t._update(n):(a.value=(""+e).replace(L,r[L]),t._adjust(e)===e&&t._numericRegex(r).test(a.value)||(n=t._getFactorValue(a.value),t._update(n)))})},_option:function(e,a){var n=this,r=n.element,i=n.options;return a===t?i[e]:(a=n._parse(a),(a||"step"!==e)&&(i[e]=a,r.add(n._text).attr("aria-value"+e,a),r.attr(e,a)),t)},_ariaLabel:function(){var t,a=this,n=a._text,i=a.element,o=i.attr("id"),l=e("label[for='"+o+"']"),s=i.attr("aria-label"),u=i.attr("aria-labelledby");s?n.attr("aria-label",s):u?n.attr("aria-labelledby",u):l.length&&(t=l.attr("id"),t?n.attr("aria-labelledby",t):(t=r.guid(),l.attr("id",t),n.attr("aria-labelledby",t)))},_spin:function(e,t){var a=this;t=t||500,clearTimeout(a._spinning),a._spinning=setTimeout(function(){a._spin(e,50)},t),a._step(e)},_step:function(e){var t=this,a=t.element,n=t._value,r=t._parse(a.val())||0,i=t.options.decimals||2;u()!=a[0]&&t._focusin(),t.options.factor&&r&&(r/=t.options.factor),r=+(r+t.options.step*e).toFixed(i),r=t._adjust(r),t._update(r),t._typing=!1,n!==r&&t.trigger(b)},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_toggleText:function(e){var t=this;t._text.toggle(e),e?t._text.removeAttr("aria-hidden"):t._text.attr("aria-hidden","true"),t.element.toggle(!e)},_parse:function(e,t){return d(e,this._culture(t),this.options.format)},_round:function(e,t){var a=this.options.round?r._round:n;return a(e,t)},_update:function(e){var t,a=this,n=a.options,i=n.factor,o=n.format,l=n.decimals,s=a._culture(),u=a._format(o,s);l===P&&(l=u.decimals),e=a._parse(e,s),t=e!==P,t&&(e=parseFloat(a._round(e,l),10)),a._value=e=a._adjust(e),a._placeholder(r.toString(e,o,s)),t?(i&&(e=parseFloat(a._round(e*i,l),10)),e=""+e,e.indexOf("e")!==-1&&(e=a._round(+e,l)),e=e.replace(L,u[L])):e=null,a.element.val(e),a._oldText=e,a.element.add(a._text).attr("aria-valuenow",e)},_placeholder:function(e){var t=this._text;t.val(e),c||e||t.val(this.options.placeholder),t.attr("title",this.element.attr("title")||t.val())},_label:function(){var a,n,i=this,o=i.element,l=i.options,s=o.attr("id");null!==l.label&&(a=!!j(l.label)&&l.label.floating,n=j(l.label)?l.label.content:l.label,a&&(i._floatingLabelContainer=i.wrapper.wrap("<span></span>").parent(),i.floatingLabel=new r.ui.FloatingLabel(i._floatingLabelContainer,{widget:i})),r.isFunction(n)&&(n=n.call(i)),n||(n=""),s||(s=l.name+"_"+r.guid(),o.attr("id",s)),i._inputLabel=e("<label class='"+H+"' for='"+s+"'>"+n+"</label>'").insertBefore(i.wrapper),i.element.attr("disabled")===t&&i.element.attr("readonly")===t&&i._inputLabel.on("click"+g,R(i.focus,i)))},_wrapper:function(){var t,a=this,n=a.element,r=n[0];t=n.parents(".k-numerictextbox"),t.is("span.k-numerictextbox")||(t=n.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),t=t.wrap("<span/>").parent()),t[0].style.cssText=r.style.cssText,r.style.width="",a.wrapper=t.addClass("k-widget k-numerictextbox").addClass(r.className).removeClass("input-validation-error").css("display",""),a._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,a=t.element,n=a.attr("form"),r=n?e("#"+n):a.closest("form");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(a[0].value),t.max(t._initialOptions.max),t.min(t._initialOptions.min)})},t._form=r.on("reset",t._resetHandler))}});l.plugin(V)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});;!function(t,define){define("kendo.validator.min",["kendo.core.min"],t)}(function(){return function(t,e){function a(e){var a,r=d.ui.validator.ruleResolvers||{},i={};for(a in r)t.extend(!0,i,r[a].resolve(e));return i}function r(t){return t.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function i(t){return t=(t+"").split("."),t.length>1?t[1].length:0}function n(e){return t(t.parseHTML?t.parseHTML(e):e)}function s(e,a){var r,i,n,s,l=t();for(n=0,s=e.length;n<s;n++)r=e[n],F.test(r.className)&&(i=r.getAttribute(d.attr("for")),i===a&&(l=l.add(r)));return l}function l(t,e){return!!t&&("string"==typeof t.nodeName&&"LABEL"===t.nodeName&&("string"==typeof t.getAttribute("for")&&"string"==typeof e.getAttribute("id")&&t.getAttribute("for")===e.getAttribute("id")))}var o,u,d=window.kendo,m=d.ui.Widget,c=".kendoValidator",h="k-invalid-msg",F=RegExp(h,"i"),f="k-invalid",p="k-valid",g="k-validation-summary",v="k-text-error",y="k-messagebox k-messagebox-error",_="aria-invalid",k="aria-describedby",C=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/i,D=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,b=":input:not(:button,[type=submit],[type=reset],[disabled],[readonly])",A=":checkbox:not([disabled],[readonly])",E="[type=number],[type=range]",x="blur",S="name",w="form",z="novalidate",M="validate",I="change",V="validateInput",B=t.proxy,L=function(t,e){return"string"==typeof e&&(e=RegExp("^(?:"+e+")$")),e.test(t)},q=function(t,e,a){var r=t.val();return!t.filter(e).length||""===r||L(r,a)},N=function(t,e){return!!t.length&&null!=t[0].attributes[e]};d.ui.validator||(d.ui.validator={rules:{},messages:{},allowSubmit:t.noop,validateOnInit:t.noop}),o='<ul>#for(var i = 0; i < errors.length; i += 1){#<li><a data-field="#=errors[i].field#" href="\\#">#= errors[i].message #</a></li># } #</ul>',u=m.extend({init:function(e,r){var i=this,n=a(e),s="["+d.attr("validate")+"!=false]";r=r||{},r.rules=t.extend({},d.ui.validator.rules,n.rules,r.rules),r.messages=t.extend({},d.ui.validator.messages,n.messages,r.messages),m.fn.init.call(i,e,r),i._errorTemplate=d.template(i.options.errorTemplate),i._summaryTemplate=d.template(i.options.validationSummary.template||o),i.element.is(w)&&i.element.attr(z,z),i._inputSelector=b+s,i._checkboxSelector=A+s,i._errors={},i._attachEvents(),i._isValidated=!1,i._validateOnInit()&&i.validate()},events:[M,I,V],options:{name:"Validator",errorTemplate:'<span class="k-form-error">#= message #</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date",dateCompare:"End date should be greater than or equal to the start date"},rules:{required:function(t){var e=!t.attr("name")&&!t.is(":checked"),a=t.attr("name")&&!this.element.find("input[name='"+t.attr("name")+"']:checked").length,r=t.filter("[type=checkbox]").length&&(e||a),i=t.filter("[type=radio]").length&&!this.element.find("input[name='"+t.attr("name")+"']:checked").length,n=t.val();return!(N(t,"required")&&(!n||""===n||0===n.length||r||i))},pattern:function(t){return!t.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length||""===t.val()||L(t.val(),t.attr("pattern"))},min:function(t){if(t.filter(E+",["+d.attr("type")+"=number]").filter("[min]").length&&""!==t.val()){var e=parseFloat(t.attr("min"))||0,a=d.parseFloat(t.val());return e<=a}return!0},max:function(t){if(t.filter(E+",["+d.attr("type")+"=number]").filter("[max]").length&&""!==t.val()){var e=parseFloat(t.attr("max"))||0,a=d.parseFloat(t.val());return e>=a}return!0},step:function(t){if(t.filter(E+",["+d.attr("type")+"=number]").filter("[step]").length&&""!==t.val()){var e,a=parseFloat(t.attr("min"))||0,r=parseFloat(t.attr("step"))||1,n=parseFloat(t.val()),s=i(r);return s?(e=Math.pow(10,s),Math.floor((n-a)*e)%(r*e)/Math.pow(100,s)===0):(n-a)%r===0}return!0},email:function(t){return q(t,"[type=email],["+d.attr("type")+"=email]",C)},url:function(t){return q(t,"[type=url],["+d.attr("type")+"=url]",D)},date:function(t){return!t.filter("[type^=date],["+d.attr("type")+"=date]").length||""===t.val()||null!==d.parseDate(t.val(),t.attr(d.attr("format")))}},validateOnBlur:!0,validationSummary:!1},_allowSubmit:function(){return d.ui.validator.allowSubmit(this.element,this.errors())},_validateOnInit:function(){return d.ui.validator.validateOnInit(this.element)},destroy:function(){m.fn.destroy.call(this),this.element.off(c),this.validationSummary&&(this.validationSummary.off(c),this.validationSummary=null)},value:function(){return!!this._isValidated&&0===this.errors().length},_submit:function(t){return!(!this.validate()&&!this._allowSubmit())||(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),!1)},_checkElement:function(t){var e=this.value();this.validateInput(t),this.value()!==e&&this.trigger(I)},_attachEvents:function(){var e=this;e.element.is(w)&&e.element.on("submit"+c,B(e._submit,e)),e.options.validateOnBlur&&(e.element.is(b)?(e.element.on(x+c,function(){e._checkElement(e.element)}),e.element.is(A)&&e.element.on("click"+c,function(){e._checkElement(e.element)})):(e.element.on(x+c,e._inputSelector,function(){e._checkElement(t(this))}),e.element.on("click"+c,e._checkboxSelector,function(){e._checkElement(t(this))})))},validate:function(){var t,e,a,r,i=!1,n=this.value();if(this._errors={},this.element.is(b))i=this.validateInput(this.element);else{for(r=!1,t=this.element.find(this._inputSelector),e=0,a=t.length;e<a;e++)this.validateInput(t.eq(e))||(r=!0);i=!r}return this.options.validationSummary&&!n&&this.showValidationSummary(),this.trigger(M,{valid:i,errors:this.errors()}),n!==i&&this.trigger(I),i},validateInput:function(e){var a,i,s,o,u,m,c,F,g,y,k,C,D,b,A,E,x,w;return e=t(e),this._isValidated=!0,a=this,i=a._errorTemplate,s=a._checkValidity(e),o=s.valid,u="."+h,m=e.attr(S)||"",c=a._findMessageContainer(m).add(e.next(u).filter(function(){var e=t(this);return!e.filter("["+d.attr("for")+"]").length||e.attr(d.attr("for"))===m})).addClass("k-hidden"),F=o?"":a._extractMessage(e,s.key),g=o?"":n(i({message:r(F),field:m})),y=!e.attr(_),e.removeAttr(_),o?delete a._errors[m]:(a._errors[m]=F,k=c.attr("id"),a._decorateMessageContainer(g,m),k&&g.attr("id",k),0!==c.length?c.replaceWith(g):(C=d.widgetInstance(e),D=e.parent().get(0),b=e.next().get(0),A=e.prev().get(0),!C&&e.is("[type=radio]")&&(C=d.widgetInstance(e.closest(".k-radio-list"))),!C&&e.is("[type=checkbox]")&&(C=d.widgetInstance(e.closest(".k-checkbox-list"))),g.insertAfter(C&&C.wrapper?C.wrapper:D&&"LABEL"===D.nodeName?D:b&&l(b,e[0])?b:A&&l(A,e[0])?e:e)),g.removeClass("k-hidden"),e.attr(_,!0)),y!==o&&this.trigger(V,{valid:o,input:e,error:F,field:m}),e.toggleClass(f,!o),e.toggleClass(p,o),d.widgetInstance(e)&&(E=d.widgetInstance(e)._inputWrapper,x=d.widgetInstance(e)._inputLabel,E&&(E.toggleClass(f,!o),E.toggleClass(p,o)),x&&x.toggleClass(v,!o)),y!==o&&(w=g?g.attr("id"):c.attr("id"),a._associateMessageContainer(e,w),this.options.validationSummary&&this.options.validateOnBlur&&this.showValidationSummary()),o},hideMessages:function(){var t=this,e="."+h,a=t.element;t._disassociateMessageContainers(),a.is(b)?a.next(e).addClass("k-hidden"):a.find(e).addClass("k-hidden")},reset:function(){var t=this,e=t.element.find("."+f),a=t.element.find("."+v);t._errors=[],t.hideMessages(),t.hideValidationSummary(),e.removeAttr(_),e.removeClass(f),a.removeClass(v)},_findMessageContainer:function(e){var a,r,i,n=d.ui.validator.messageLocators,l=t();for(r=0,i=this.element.length;r<i;r++)l=l.add(s(this.element[r].getElementsByTagName("*"),e));for(a in n)l=l.add(n[a].locate(this.element,e));return l},_decorateMessageContainer:function(t,e){var a,r=d.ui.validator.messageLocators;t.addClass(h).attr(d.attr("for"),e||""),t.attr("id")||t.attr("id",e+"-error");for(a in r)r[a].decorate(t,e)},_extractMessage:function(t,e){var a,r=this,i=r.options.messages[e],n=t.attr(S);return d.ui.Validator.prototype.options.messages[e]||(a=d.isFunction(i)?i(t):i),i=d.isFunction(i)?i(t):i,d.format(t.attr(d.attr(e+"-msg"))||t.attr("validationMessage")||a||i||t.attr("title")||"",n,t.attr(e)||t.attr(d.attr(e)))},_checkValidity:function(t){var e,a=this.options.rules;for(e in a)if(!a[e].call(this,t))return{valid:!1,key:e};return{valid:!0}},errors:function(){var t,e=[],a=this._errors;for(t in a)e.push(a[t]);return e},setOptions:function(t){t.validationSummary&&this.hideValidationSummary(),d.deepExtend(this.options,t),this.destroy(),this.init(this.element,this.options),this._setEvents(this.options)},_getInputNames:function(){var e,a,r,i=this,n=i.element.find(i._inputSelector),s=[];for(e=0,a=n.length;e<a;e++)r=t(n[e]),N(r,S)&&(s.indexOf(r.attr(S))===-1||0===r.closest(".k-checkbox-list").length&&0===r.closest(".k-radio-list").length)&&s.push(r.attr(S));return s},_associateMessageContainer:function(t,e){var a=d.getWidgetFocusableElement(t);a&&e&&d.toggleAttribute(a,k,e)},_disassociateMessageContainers:function(){var e,a,r,i=this,n=i.element.find("."+f).addBack();for(r=0;r<n.length;r+=1)e=t(n[r]),e.is("input")&&(a=i._findMessageContainer(e.attr(S)).add(e.next("."+h)).attr("id"),i._associateMessageContainer(e,a))},_errorsByName:function(){var t,e,a=this,r=a._getInputNames(),i=[];for(t=0;t<r.length;t+=1)e=r[t],a._errors[e]&&i.push({field:e,message:a._errors[e]});return i},_renderSummary:function(){var e,a=this,r=this.options.validationSummary,i=this.element,n=i.prev();return e=r.container?t(r.container):n&&n.hasClass(g)?n:t("<div />").insertBefore(a.element),e.addClass([g,y].join(" ")),e.attr("role","alert"),e.on("click"+c,B(a._summaryClick,a)),e},_summaryClick:function(e){e.preventDefault();var a,r=this,i=t(e.target),n=r.element.find("[name='"+i.data("field")+"']");n.length&&(a=d.getWidgetFocusableElement(n),a&&a.focus())},showValidationSummary:function(){var t,e=this,a=e.validationSummary,r=e._errorsByName();a||(a=e.validationSummary=e._renderSummary()),t=n(e._summaryTemplate({errors:r})),a.html(t),a.toggleClass("k-hidden",!r.length)},hideValidationSummary:function(){var t=this,e=t.validationSummary;e&&e.addClass("k-hidden")}}),d.ui.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,a){(a||e)()});;!function(t,define){define("kendo.editable.min",["kendo.dropdownlist.min","kendo.datepicker.min","kendo.numerictextbox.min","kendo.validator.min","kendo.binder.min"],t)}(function(){return function(t,e){function n(e){return e=null!=e?e:"",e.type||t.type(e)||"string"}function a(e){e.find(":input:not(:button, .k-combobox .k-input, .k-checkbox-list .k-checkbox, .k-radio-list .k-radio, ["+s.attr("role")+"=listbox], ["+s.attr("role")+"=upload], ["+s.attr("skip")+"], [type=file])").each(function(){var e=s.attr("bind"),n=this.getAttribute(e)||"",a="checkbox"===this.type||"radio"===this.type?"checked:":"value:",i=this.name;n.indexOf(a)===-1&&i&&(n+=(n.length?",":"")+a+i,t(this).attr(e,n))})}function i(t){var e,a,i,o,r,l,d=(t.model.fields||t.model)[t.field],u=n(d),p=d?d.validation:{},c=d?d.attributes:{},f=s.attr("type"),g=s.attr("bind"),h={id:t.id||t.field,name:t.field,title:t.title?t.title:t.field};for(e in p)a=p[e],k(e,P)>=0?h[f]=e:v(a)||(i=s.getCulture(),"number"==typeof a&&i.name.length?(o=i.numberFormat,r=(""+a).replace(b,o[b]),h[e]=r):h[e]=m(a)?a.value||e:a),h[s.attr(e+"-msg")]=a.message,h.autocomplete=x;for(l in c)h[l]=c[l];return k(u,P)>=0&&(h[f]=u),h[g]=("boolean"===u?"checked:":"value:")+t.field,h}function o(t,e){var n=t.attr("id");return n&&(e.id=n,t.removeAttr("id")),e}function r(t){var e,n,a,i,o,r;if(t&&t.length)for(r=[],e=0,n=t.length;e<n;e++)a=t[e],o=a.text||a.value||a,i=null==a.value?a.text||a:a.value,r[e]={text:o,value:i};return r}function l(t,e){var n;if(t.length)return n="DropDownTree"===t&&e&&e.checkboxes||"MultiSelect"===t?"<select />":"RadioGroup"===t||"CheckBoxGroup"===t?"<ul />":"Editor"===t?"<textarea />":"<input />"}function d(t,e){var n,a,i=t?t.validation||{}:{};for(n in i)a=i[n],m(a)&&a.value&&(a=a.value),v(a)&&(e[n]=a)}function u(e,n,a){var i=!!a&&(a.shouldRenderHidden||!1);i&&(e.val(!0),n.append(t("<input type='hidden' name='"+a.field+"' value='false' data-skip='true' data-validate='false'/>")))}var s=window.kendo,p=s.ui,c=p.Widget,f=t.extend,v=s.isFunction,m=t.isPlainObject,k=t.inArray,b=".",x="off",g=/("|\%|'|\[|\]|\$|\.|\,|\:|\;|\+|\*|\&|\!|\#|\(|\)|<|>|\=|\?|\@|\^|\{|\}|\~|\/|\||`)/g,h='<div class="k-tooltip k-tooltip-error k-validator-tooltip"><span class="k-tooltip-icon k-icon k-i-warning"></span><span class="k-tooltip-content">#= message #</span><span class="k-callout k-callout-n"></span></div>',y="change",T="equalSet",P=["url","email","number","date","boolean"],_=["AutoComplete","CheckBoxGroup","ColorPicker","ComboBox","DateInput","DatePicker","DateTimePicker","DropDownTree","Editor","MaskedTextBox","MultiColumnComboBox","MultiSelect","NumericTextBox","RadioGroup","Rating","Slider","Switch","TimePicker","DropDownList"],w={number:function(e,n){var a=i(n);t('<input type="text"/>').attr(a).appendTo(e).kendoNumericTextBox({format:n.format}),t("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg k-hidden"/>').appendTo(e)},date:function(e,n){var a=i(n),o=n.format;o&&(o=s._extractFormat(o)),a[s.attr("format")]=o,t('<input type="text"/>').attr(a).appendTo(e).kendoDatePicker({format:n.format}),t("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg k-hidden"/>').appendTo(e)},string:function(e,n){var a=i(n);t('<input type="text" />').attr(a).addClass("k-textbox").appendTo(e)},"boolean":function(e,n){var a=i(n),o=t('<input type="checkbox" />').attr(a).addClass("k-checkbox").appendTo(e);u(o,e,n)},values:function(e,n){var a=i(n),o=s.stringify(r(n.values));t("<select "+s.attr("text-field")+'="text"'+s.attr("value-field")+'="value"'+s.attr("source")+"='"+(o?o.replace(/\'/g,"'"):o)+"'"+s.attr("role")+'="dropdownlist"/>').attr(a).appendTo(e),t("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg k-hidden"/>').appendTo(e)},kendoEditor:function(e,n){var a=i(n),o=n.editor,r="kendo"+o,d=n.editorOptions,s=l(o,d),p=t(s).attr(a).appendTo(e)[r](d);u(p,e,n)}},C={number:function(e,n){var a=i(n);a=o(e,a),t('<input type="number"/>').attr(a).appendTo(e)},date:function(e,n){var a=i(n);a=o(e,a),t('<input type="date"/>').attr(a).appendTo(e)},string:function(e,n){var a=i(n);a=o(e,a),t('<input type="text" />').attr(a).appendTo(e)},"boolean":function(e,n){var a=i(n);a=o(e,a),t('<input type="checkbox" />').attr(a).appendTo(e)},values:function(e,n){var a,r=i(n),l=n.values,d=t("<select />");r=o(e,r);for(a in l)t('<option value="'+l[a].value+'">'+l[a].text+"</option>").appendTo(d);d.attr(r).appendTo(e)}},D=c.extend({init:function(e,n){var a=this;n.target&&(n.$angular=n.target.options.$angular,n.target.pane&&(a._isMobile=!0)),c.fn.init.call(a,e,n),a._validateProxy=t.proxy(a._validate,a),a.refresh()},events:[y],options:{name:"Editable",editors:w,mobileEditors:C,clearContainer:!0,validateOnBlur:!0,validationSummary:!1,errorTemplate:h,skipFocus:!1},editor:function(e,a){var i=this,o=i._isMobile?C:i.options.editors,r=m(e),l=r?e.field:e,d=i.options.model||{},u=r&&e.values,p=u?"values":n(a),c=r&&e.editor,v=r&&t.inArray(e.editor,_)!==-1,k=c?e.editor:o[p],b=i.element.find("["+s.attr("container-for")+"="+l.replace(g,"\\$1")+"]");k=k?k:o.string,v?k=o.kendoEditor:c&&"string"==typeof e.editor&&(k=function(t){t.append(e.editor)}),b=b.length?b:i.element,k(b,f(!0,{},r?e:{field:l},{model:d}))},_validate:function(e){var n,a=this,i=e.value,o=a._validationEventInProgress,r={},l=s.attr("bind"),d=e.field.replace(g,"\\$1"),u=RegExp("(value|checked)\\s*:\\s*"+d+"\\s*(,|$)");r[e.field]=e.value,n=t(":input["+l+'*="'+d+'"]',a.element).filter("["+s.attr("validate")+"!='false']").filter(function(){return u.test(t(this).attr(l))}),n.length>1&&(n=n.filter(function(){var e=t(this);return!e.is(":radio")||e.val()==i}));try{a._validationEventInProgress=!0,(!a.validatable.validateInput(n)||!o&&a.trigger(y,{values:r}))&&e.preventDefault()}finally{a._validationEventInProgress=!1}},end:function(){return this.validatable.validate()},destroy:function(){var t=this;t.angular("cleanup",function(){return{elements:t.element}}),c.fn.destroy.call(t),t.options.model.unbind("set",t._validateProxy),t.options.model.unbind(T,t._validateProxy),s.unbind(t.element),t.validatable&&t.validatable.destroy(),s.destroy(t.element),t.element.removeData("kendoValidator"),t.element.is("["+s.attr("role")+"=editable]")&&t.element.removeAttr(s.attr("role"))},refresh:function(){var n,i,o,r,l,u,p,c=this,f=c.options.fields||[],v=c.options.clearContainer?c.element.empty():c.element,k=c.options.model||{},b={};for(t.isArray(f)||(f=[f]),n=0,i=f.length;n<i;n++)o=f[n],r=m(o),l=r?o.field:o,u=(k.fields||k)[l],d(u,b),c.editor(o,u);if(c.options.target&&c.angular("compile",function(){return{elements:v,data:v.map(function(){return{dataItem:k}})}}),!i){p=k.fields||k;for(l in p)d(p[l],b)}a(v),c.validatable&&c.validatable.destroy(),s.bind(v,c.options.model),c.options.validateOnBlur&&(c.options.model.unbind("set",c._validateProxy).bind("set",c._validateProxy),c.options.model.unbind(T,c._validateProxy).bind(T,c._validateProxy)),c.validatable=new s.ui.Validator(v,{validateOnBlur:c.options.validateOnBlur,validationSummary:c.options.validationSummary,errorTemplate:c.options.errorTemplate||e,rules:b}),c.options.skipFocus||v.find(":kendoFocusable").eq(0).focus()}});p.plugin(D)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});;!function(e,define){define("kendo.multiselect.min",["kendo.list.min","kendo.mobile.scroller.min","kendo.virtuallist.min"],e)}(function(){return function(e,t){function i(e,t){var i;if(null===e&&null!==t||null!==e&&null===t)return!1;if(i=e.length,i!==t.length)return!1;for(;i--;)if(e[i]!==t[i])return!1;return!0}var a=window.kendo,s=a.ui,n=s.List,l=e.extend({A:65},a.keys),o=a._activeElement,r=a.data.ObservableArray,u=e.proxy,c="id",d="li",p="accept",h="filter",_="rebind",f="open",g="close",m="change",v="progress",T="select",w="deselect",I="aria-disabled",b="aria-readonly",y="k-state-focused",S="k-state-selected",V="k-hidden",x="k-state-hover",k="k-state-disabled",L="k-no-click",C="disabled",D="readonly",O="off",E=".kendoMultiSelect",F="click"+E,A="keydown"+E,B="mouseenter"+E,M="mouseleave"+E,H=B+" "+M,P=/"/g,K=e.isArray,R=["font-family","font-size","font-stretch","font-style","font-weight","letter-spacing","text-transform","line-height"],N=n.extend({init:function(t,i){var s,l,o=this;o.ns=E,n.fn.init.call(o,t,i),o._optionsMap={},o._customOptions={},o._wrapper(),o._tagList(),o._input(),o._textContainer(),o._loader(),o._clearButton(),o._tabindex(o.input),t=o.element.attr("multiple","multiple").hide(),i=o.options,i.placeholder||(i.placeholder=t.data("placeholder")),s=t.attr(c),s&&(o._tagID=s+"_tag_active",s+="_taglist",o.tagList.attr(c,s),o.input.attr("aria-describedby",s)),o._initialOpen=!0,o._aria(),o._ariaSetLive(),o._dataSource(),o._ignoreCase(),o._popup(),o._tagTemplate(),o.requireValueMapper(o.options),o._initList(),o._reset(),o._enable(),o._placeholder(),i.autoBind?o.dataSource.fetch():i.value&&o._preselect(i.value),l=e(o.element).parents("fieldset").is(":disabled"),l&&o.enable(!1),o._ariaSetSize(o.value().length),a.notify(o),o._toggleCloseVisibility()},options:{name:"MultiSelect",tagMode:"multiple",enabled:!0,autoBind:!0,autoClose:!0,highlightFirst:!0,dataTextField:"",dataValueField:"",filter:"startswith",ignoreCase:!0,minLength:1,messages:{singleTag:"item(s) selected",clear:"clear",deleteTag:"delete",noData:"No data found."},enforceMinLength:!1,delay:100,value:null,maxSelectedItems:null,placeholder:"",height:200,animation:{},virtual:!1,itemTemplate:"",tagTemplate:"",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",clearButton:!0,autoWidth:!1,popup:null},events:[f,g,m,T,w,"filtering","dataBinding","dataBound"],setDataSource:function(e){this.options.dataSource=e,this._state="",this._dataSource(),this.persistTagList=!1,this.listView.setDataSource(this.dataSource),this.options.autoBind&&this.dataSource.fetch()},setOptions:function(e){var t=this._listOptions(e);n.fn.setOptions.call(this,e),this.listView.setOptions(t),this._accessors(),this._aria(),this._tagTemplate(),this._placeholder(),this._clearButton()},currentTag:function(e){var i=this;return e===t?i._currentTag:(i._currentTag&&(i._currentTag.removeClass(y).removeAttr(c),i._currentTag.find(".k-select").attr("aria-hidden",!0),i.input.removeAttr("aria-activedescendant")),e&&(e.addClass(y).attr(c,i._tagID),e.find(".k-select").removeAttr("aria-hidden"),i.input.attr("aria-activedescendant",i._tagID)),i._currentTag=e,t)},dataItems:function(){return this.listView.selectedDataItems()},destroy:function(){var e=this,t=e.ns;clearTimeout(e._busy),clearTimeout(e._typingTimeout),e.wrapper.off(t),e.tagList.off(t),e.input.off(t),e._clear.off(t),n.fn.destroy.call(e)},_aria:function(){var e=this,t=e.wrapper.find(".k-multiselect-wrap"),i=e.ul[0].id;t.attr({"aria-owns":i,"aria-controls":i}),e.ul.attr({"aria-live":e._isFilterEnabled()?"polite":"off","aria-multiselectable":!0}),e.input.attr("aria-controls",i),e._ariaLabel()},_activateItem:function(){this.popup.visible()&&n.fn._activateItem.call(this),this.currentTag(null)},_listOptions:function(t){var i=this,s=n.fn._listOptions.call(i,e.extend(t,{selectedItemChange:u(i._selectedItemChange,i),selectable:"multiple"})),l=this.options.itemTemplate||this.options.template,o=s.itemTemplate||l||s.template;return o||(o="#:"+a.expr(s.dataTextField,"data")+"#"),s.template=o,s},_setListValue:function(){n.fn._setListValue.call(this,this._initialValues.slice(0))},_listChange:function(e){var i,a=this.dataSource.flatView(),s=this._optionsMap,n=this._value;for(this._state===_&&(this._state=""),i=0;i<e.added.length;i++)if(s[n(e.added[i].dataItem)]===t){this._render(a);break}this._selectValue(e.added,e.removed)},_selectedItemChange:function(e){var t,i,a=e.items;for(i=0;i<a.length;i++)t=a[i],this.tagList.children().eq(t.index).children("span:first").html(this.tagTextTemplate(t.item))},_wrapperMousedown:function(t){var i=this,s="input"!==t.target.nodeName.toLowerCase(),n=e(t.target),l=n.hasClass("k-select")||n.hasClass("k-icon");l&&(l=!n.closest(".k-select").children(".k-i-arrow-60-down").length),!s||l&&a.support.mobileOS||!t.cancelable||t.preventDefault(),l||(i.input[0]!==o()&&s&&i.input.focus(),1!==i.options.minLength||i.popup.visible()||i.open())},_inputFocus:function(){this._placeholder(!1,!0),this.wrapper.addClass(y)},_inputFocusout:function(){var e=this;clearTimeout(e._typingTimeout),e.wrapper.removeClass(y),e._placeholder(!e.listView.selectedDataItems()[0],!0),e.close(),e._state===h&&(e._state=p,e.listView.skipUpdate(!0)),e.listView.bound()&&e.listView.isFiltered()&&(e.persistTagList=!0,e._clearFilter()),e.element.blur()},_removeTag:function(e,i){var a,s,n,l=this,o=l._state,r=e.index(),u=l.listView,c=u.value()[r],d=l.listView.selectedDataItems()[r],_=l._customOptions[c],f=u.element[0].children;return l.trigger(w,{dataItem:d,item:e})?(l._close(),t):(_!==t||o!==p&&o!==h||(_=l._optionsMap[c]),n=function(){l.currentTag(null),i&&l._change(),l._close()},_===t&&u.select().length?(l.persistTagList=!1,u.select(u.select()[r]).done(n)):(a=l.element[0].children[_],a&&(a.selected=!1),u.removeAt(r),u._removedAddedIndexes&&u._removedAddedIndexes.splice(r,1),s=f[_],s&&f[_].classList.remove("k-state-selected"),"single"!==l.options.tagMode?e.remove():l._updateTagListHTML(),n()),t)},_tagListClick:function(t){t.preventDefault(),t.stopPropagation();var i=e(t.currentTarget);i.children(".k-i-arrow-60-down").length||this._removeTag(i.closest(d),!0)},_clearValue:function(){var t=this;"single"===t.options.tagMode?t._clearSingleTagValue():t.tagList.children().each(function(i,a){t._removeTag(e(a),!1)}),t.input.val(""),t._search(),t._change(),t.focus(),t._hideClear(),t._state===h&&(t._state=p)},_clearSingleTagValue:function(){var e,i=this,a=i.dataItems(),s=i.tagList.children(),n=i.persistTagList;for(e=0;e<a.length;e+=1)if(i.trigger(w,{dataItem:a[e],item:s.first()}))return i._close(),t;n&&(i.persistTagList=!1),i.listView.value([]),i.persistTagList=n},_focusHandler:function(){var e=this.input,t=o(),i=e[0]===t;i||this.input.focus()},_editable:function(t){var i=this,a=t.disable,s=t.readonly,n=i.wrapper.off(E),l=i.tagList.off(E),o=i.element.add(i.input.off(E));s||a?(n.toggleClass(k,a).toggleClass(L,s),o.attr(C,a).attr(D,s).attr(I,a).attr(b,s)):(n.removeClass(k).removeClass(L).on(H,i._toggleHover).on("mousedown"+E+" touchend"+E,u(i._wrapperMousedown,i)).on(F,u(i._focusHandler,i)),i.input.on(A,u(i._keydown,i)).on("paste"+E,u(i._search,i)).on("input"+E,u(i._search,i)).on("focus"+E,u(i._inputFocus,i)).on("focusout"+E,u(i._inputFocusout,i)),i._clear.on(F+" touchend"+E,u(i._clearValue,i)),o.removeAttr(C).removeAttr(D).attr(I,!1).attr(b,!1),l.on(B,d,function(){e(this).addClass(x)}).on(M,d,function(){e(this).removeClass(x)}).on(F+" touchend"+E,"li.k-button .k-select",u(i._tagListClick,i)))},_close:function(){var e=this;e.options.autoClose?e.close():e.popup.position()},_filterSource:function(e,t){t||(t=this._retrieveData),this._retrieveData=!1,n.fn._filterSource.call(this,e,t)},close:function(){this._activeItem=null,this.input.removeAttr("aria-activedescendant"),this.popup.close()},open:function(){var t,i=this,a=i.input.val().toLowerCase(),s=i.listView.dataSource.filter();s&&s.filters.length>0&&(t=(""+s.filters[0].value).toLowerCase()),i._request&&(i._retrieveData=!1),i._retrieveData||!i.listView.bound()||i._state===p&&a!==t?(i._open=!0,i._state=_,i.listView.skipUpdate(!0),i.persistTagList=!(i._initialOpen&&!i.listView.bound()),i._filterSource(),i._focusItem()):i._allowOpening()&&(!i._initialOpen||i.options.autoBind||i.options.virtual||!i.options.value||e.isPlainObject(i.options.value[0])||i.value(i.value()||i._initialValues),i.popup._hovered=!0,i._initialOpen=!1,i.popup.open(),i._focusItem())},toggle:function(e){e=e!==t?e:!this.popup.visible(),this[e?f:g]()},refresh:function(){this.listView.refresh()},_listBound:function(){var e=this,t=e.dataSource.flatView();e._render(t),e._renderFooter(),e._renderNoData(),e._toggleNoData(!t.length),e._resizePopup(),e._open&&(e._open=!1,e.toggle(e._allowOpening())),e.popup.position(),e._updateItemFocus(),e._touchScroller&&e._touchScroller.reset(),e._hideBusy(),e.trigger("dataBound")},_updateItemFocus:function(){var e=this,i=e.dataSource.flatView(),a=e.listView.skip(),s=a===t||0===a;i.length&&s&&(e.options.highlightFirst?e.listView.focusFirst():e.listView.focus(-1))},_inputValue:function(){var e=this,t=e.input.val();return e.options.placeholder===t&&(t=""),t},value:function(e){var i=this,a=i.listView,s=a.value().slice(),n=i.options.maxSelectedItems,l=a.bound()&&a.isFiltered();return e===t?s:(i.persistTagList=!1,i.requireValueMapper(i.options,e),e=i._normalizeValues(e),null!==n&&e.length>n&&(e=e.slice(0,n)),l&&i._clearFilter(),a.value(e),i._old=i._valueBeforeCascade=e.slice(),l||i._fetchData(),i._ariaSetSize(i.value().length),i._toggleCloseVisibility(),t)},_preselect:function(t,i){var s=this;K(t)||t instanceof a.data.ObservableArray||(t=[t]),(e.isPlainObject(t[0])||t[0]instanceof a.data.ObservableObject||!s.options.dataValueField)&&(s.dataSource.data(t),s.value(i||s._initialValues),s._retrieveData=!0)},_setOption:function(e,t){var i=this.element[0].children[this._optionsMap[e]];i&&(i.selected=t)},_fetchData:function(){var e=this,t=!!e.dataSource.view().length,i=0===e.listView.value().length;i||e._request||(e._retrieveData||!e._fetch&&!t)&&(e._fetch=!0,e._retrieveData=!1,e.dataSource.read().done(function(){e._fetch=!1}))},_isBound:function(){return this.listView.bound()&&!this._retrieveData},_dataSource:function(){var e=this,t=e.element,i=e.options,s=i.dataSource||{};s=K(s)?{data:s}:s,s.select=t,s.fields=[{field:i.dataTextField},{field:i.dataValueField}],e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._progressHandler=u(e._showBusy,e),e._errorHandler=u(e._hideBusy,e)),e.dataSource=a.data.DataSource.create(s).bind(v,e._progressHandler).bind("error",e._errorHandler)},_reset:function(){var t=this,i=t.element,a=i.attr("form"),s=a?e("#"+a):i.closest("form");s[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initialValues),t._placeholder()})},t._form=s.on("reset",t._resetHandler))},_initValue:function(){var e=this.options.value||this.element.val();this._old=this._initialValues=this._normalizeValues(e)},_normalizeValues:function(t){var i=this;return null===t?t=[]:t&&e.isPlainObject(t)?t=[i._value(t)]:t&&e.isPlainObject(t[0])?t=e.map(t,function(e){return i._value(e)}):K(t)||t instanceof r?K(t)&&(t=t.slice()):t=[t],t},_change:function(){var e=this,t=e.value();i(t,e._old)||(e._old=t.slice(),e.trigger(m),e.element.trigger(m)),e.popup.position(),e._ariaSetSize(t.length),e._toggleCloseVisibility()},_click:function(e){var t=this,i=e.item;e.preventDefault(),t._select(i).done(function(){t._activeItem=i,t._change(),t._close()})},_getActiveItem:function(){return this._activeItem||e(this.listView.items()[this._getSelectedIndices().length-1])||this.listView.focus()},_getSelectedIndices:function(){return this.listView._selectedIndices||this.listView._selectedIndexes},_keydown:function(i){var s,n,o,r,u=this,c=i.keyCode,d=u._currentTag,h=u.listView,_=u.input.val(),f=a.support.isRtl(u.wrapper),g=u.popup.visible(),m=0;if(c!==l.ENTER&&(this._multipleSelection=!1),c===l.DOWN){if(i.preventDefault(),!g)return u.open(),h.focus()||h.focusFirst(),t;h.focus()?(!u._activeItem&&i.shiftKey&&(u._activeItem=h.focus(),m=-1),s=h.getElementIndex(u._getActiveItem().first()),h.focusNext(),h.focus()?i.shiftKey&&(this._multipleSelection=!0,u._selectRange(s,h.getElementIndex(h.focus().first())+m)):h.focusLast()):h.focusFirst()}else if(c===l.UP)g&&(!u._activeItem&&i.shiftKey&&(u._activeItem=h.focus(),m=1),s=h.getElementIndex(u._getActiveItem().first()),h.focusPrev(),h.focus()?i.shiftKey&&(this._multipleSelection=!0,u._selectRange(s,h.getElementIndex(h.focus().first())+m)):u.close()),i.preventDefault();else if(c===l.LEFT&&!f||c===l.RIGHT&&f)_||(d=d?d.prev():e(u.tagList[0].lastChild),d[0]&&u.currentTag(d));else if(c===l.RIGHT&&!f||c===l.LEFT&&f)!_&&d&&(d=d.next(),u.currentTag(d[0]?d:null));else if(i.ctrlKey&&!i.altKey&&c===l.A&&g&&!u.options.virtual)this._multipleSelection=!0,this._getSelectedIndices().length===h.items().length&&(u._activeItem=null),h.items().length&&u._selectRange(0,h.items().length-1);else if(c===l.ENTER&&g){if(!h.focus())return;if(i.preventDefault(),this._multipleSelection&&(this._multipleSelection=!1,h.focus().hasClass(S)))return u._close(),t;u._select(h.focus()).done(function(){u._change(),u._close()})}else if(c===l.SPACEBAR&&i.ctrlKey&&g)u._activeItem&&h.focus()&&h.focus()[0]===u._activeItem[0]&&(u._activeItem=null),e(h.focus()).hasClass(S)||(u._activeItem=h.focus()),u._select(h.focus()).done(function(){u._change()}),i.preventDefault();else if(c===l.SPACEBAR&&i.shiftKey&&g)n=h.getElementIndex(u._getActiveItem()),o=h.getElementIndex(h.focus()),n!==t&&o!==t&&u._selectRange(n,o),i.preventDefault();else if(c===l.ESC)g?i.preventDefault():(u.tagList.children().each(function(t,i){u._removeTag(e(i),!1)}),u._change()),u.close();else if(c===l.HOME)g?h.focus()?(i.ctrlKey&&i.shiftKey&&!u.options.virtual&&u._selectRange(h.getElementIndex(h.focus()[0]),0),h.focusFirst()):u.close():_||(d=u.tagList[0].firstChild,d&&u.currentTag(e(d)));else if(c===l.END)g?h.focus()?(i.ctrlKey&&i.shiftKey&&!u.options.virtual&&u._selectRange(h.getElementIndex(h.focus()[0]),h.element.children().length-1),h.focusLast()):u.close():_||(d=u.tagList[0].lastChild,d&&u.currentTag(e(d)));else if(c!==l.DELETE&&c!==l.BACKSPACE||_)!u.popup.visible()||c!==l.PAGEDOWN&&c!==l.PAGEUP?(clearTimeout(u._typingTimeout),setTimeout(function(){u._scale()}),u._search()):(i.preventDefault(),r=c===l.PAGEDOWN?1:-1,h.scrollWith(r*h.screenHeight()));else{if(u._state=p,"single"===u.options.tagMode)return u._clearSingleTagValue(),u._change(),u._close(),t;c!==l.BACKSPACE||d||(d=e(u.tagList[0].lastChild)),d&&d[0]&&u._removeTag(d,!0)}},_hideBusy:function(){var e=this;clearTimeout(e._busy),e.input.attr("aria-busy",!1),e._loading.addClass(V),e._request=!1,e._busy=null,e._toggleCloseVisibility()},_showBusyHandler:function(){this.input.attr("aria-busy",!0),this._loading.removeClass(V),this._hideClear()},_showBusy:function(){var e=this;e._request=!0,e._busy||(e._busy=setTimeout(u(e._showBusyHandler,e),100))},_placeholder:function(e,i){var s=this,n=s.input,l=o(),r=s.options.placeholder,u=n.val(),c=n[0]===l,d=u.length;c&&!s.options.autoClose&&u!==r||(d=0,u=""),e===t&&(e=!1,n[0]!==l&&(e=!s.listView.selectedDataItems()[0])),s._prev=u,n.toggleClass("k-readonly",e).val(e?r:u),c&&!i&&a.caret(n[0],d,d),s._scale()},_scale:function(){var e,t=this,i=t.wrapper.find(".k-multiselect-wrap"),a=i.width(),s=t._span.text(t.input.val());i.is(":visible")?e=s.width()+25:(s.appendTo(document.documentElement),a=e=s.width()+25,s.appendTo(i)),t.input.width(e>a?a:e)},_option:function(e,i,s){var n="<option";return e!==t&&(e+="",e.indexOf('"')!==-1&&(e=e.replace(P,""")),n+=' value="'+e+'"'),s&&(n+=" selected"),n+=">",i!==t&&(n+=a.htmlEncode(i)),n+="</option>"},_render:function(e){var t,i,a,s,n,l,o=this.listView.selectedDataItems(),r=this.listView.value(),u=e.length,c="";for(r.length!==o.length&&(o=this._buildSelectedItems(r)),n={},l={},s=0;s<u;s++)i=e[s],a=this._value(i),t=this._selectedItemIndex(a,o),t!==-1&&o.splice(t,1),l[a]=s,c+=this._option(a,this._text(i),t!==-1);if(o.length)for(s=0;s<o.length;s++)i=o[s],a=this._value(i),n[a]=u,l[a]=u,u+=1,c+=this._option(a,this._text(i),!0);this._customOptions=n,this._optionsMap=l,this.element.html(c)},_buildSelectedItems:function(e){var t,i,a=this.options.dataValueField,s=this.options.dataTextField,n=[];for(i=0;i<e.length;i++)t={},t[a]=e[i],t[s]=e[i],n.push(t);return n},_selectedItemIndex:function(e,t){for(var i=this._value,a=0;a<t.length;a++)if(e===i(t[a]))return a;return-1},_search:function(){var e=this;clearTimeout(e._typingTimeout),e._typingTimeout=setTimeout(function(){var t=e._inputValue();e._prev!==t&&(e._prev=t,e.search(t),e._toggleCloseVisibility())},e.options.delay)},_toggleCloseVisibility:function(){this.value().length||this.input.val()&&this.input.val()!==this.options.placeholder?this._showClear():this._hideClear()},_allowOpening:function(){return this._allowSelection()&&n.fn._allowOpening.call(this)},_allowSelection:function(){var e=this.options.maxSelectedItems;return null===e||e>this.listView.value().length},_angularTagItems:function(t){var i=this;i.angular(t,function(){return{elements:i.tagList[0].children,data:e.map(i.dataItems(),function(e){return{dataItem:e}})}})},updatePersistTagList:function(e,t){this.persistTagList.added&&this.persistTagList.added.length===t.length&&this.persistTagList.removed&&this.persistTagList.removed.length===e.length?this.persistTagList=!1:(this.listView._removedAddedIndexes=this._old.slice(),this.persistTagList={added:e,removed:t})},_selectValue:function(e,i){var a,s,n,l=this,o=l.dataSource.total(),r=l.tagList,u=l._value;if(this.persistTagList)return this.updatePersistTagList(e,i),t;if(l._angularTagItems("cleanup"),"multiple"===l.options.tagMode){for(n=i.length-1;n>-1;n--)a=i[n],r.children().length&&(r[0].removeChild(r[0].children[a.position]),l._setOption(u(a.dataItem),!1));for(n=0;n<e.length;n++)s=e[n],r.append(l.tagTemplate(s.dataItem)),l._setOption(u(s.dataItem),!0)}else{for((!l._maxTotal||l._maxTotal<o)&&(l._maxTotal=o),this._updateTagListHTML(),n=i.length-1;n>-1;n--)l._setOption(u(i[n].dataItem),!1);for(n=0;n<e.length;n++)l._setOption(u(e[n].dataItem),!0)}l._angularTagItems("compile"),l._placeholder()},_updateTagListHTML:function(){var e=this,t=e.value(),i=e.dataSource.total(),a=e.tagList;a.html(""),t.length&&a.append(e.tagTemplate({values:t,dataItems:e.dataItems(),maxTotal:e._maxTotal,currentTotal:i}))},_select:function(t){var i,a,s,n,l=e.Deferred().resolve();return t?(i=this,a=i.listView,s=a.dataItemByIndex(a.getElementIndex(t)),n=t.hasClass("k-state-selected"),i._state===_&&(i._state=""),i._allowSelection()||n?i.trigger(n?w:T,{dataItem:s,item:t})?(i._close(),l):(i.persistTagList=!1,a.select(t).done(function(){i._placeholder(),i._state===h&&(i._state=p,a.skipUpdate(!0))})):l):l},_selectRange:function(i,a){var s,n,l=this,o=this.listView,r=this.options.maxSelectedItems,u=this._getSelectedIndices().slice(),c=[],d=function(t){o.select(t).done(function(){t.forEach(function(t){var i=o.dataItemByIndex(t),a=o.element.children()[t],s=e(a).hasClass("k-state-selected");l.trigger(s?T:w,{dataItem:i,item:e(a)})}),l._change()})};if(u.length-1===a-i)return d(u);if(i<a)for(s=i;s<=a;s++)c.push(s);else for(s=i;s>=a;s--)c.push(s);for(null!==r&&c.length>r&&(c=c.slice(0,r)),s=0;s<c.length;s++)n=c[s],this._getSelectedIndices().indexOf(n)==-1?u.push(n):u.splice(u.indexOf(n),1);return u.length?(l.persistTagList=!1,d(u)):t},_input:function(){var t=this,i=t.element,a=i[0].accessKey,s=t._inputWrapper.children("input.k-input"),n="none"===this.options.filter?"none":"list";s[0]||(s=e('<input class="k-input" style="width: 25px" />').appendTo(t._inputWrapper)),i.removeAttr("accesskey"),t._focused=t.input=s.attr({autocomplete:O,role:"textbox",title:i[0].title,"aria-autocomplete":n}),a&&t._focused.attr("accesskey",a)},_tagList:function(){var t=this,i=t._inputWrapper.children("ul");i[0]||(i=e('<ul unselectable="on" class="k-reset"/>').appendTo(t._inputWrapper)),t.tagList=i},_tagTemplate:function(){var e,t=this,i=t.options,s=i.tagTemplate,n=i.dataSource,l="multiple"===i.tagMode,o=i.messages.singleTag;t.element[0].length&&!n&&(i.dataTextField=i.dataTextField||"text",i.dataValueField=i.dataValueField||"value"),e=l?a.template("#:"+a.expr(i.dataTextField,"data")+"#",{useWithBlock:!1}):a.template("#:values.length# "+o),t.tagTextTemplate=s=s?a.template(s):e,t.tagTemplate=function(e){return'<li class="k-button" unselectable="on"><span unselectable="on">'+s(e)+'</span><span aria-hidden="true" unselectable="on" aria-label="'+(l?'delete" title="'+t.options.messages.deleteTag+'" aria-label="'+t.options.messages.deleteTag:"open")+'" class="k-select"><span class="k-icon '+(l?"k-i-close":"k-i-arrow-60-down")+'"></span></span></li>'}},_loader:function(){this._loading=e('<span class="k-icon k-i-loading '+V+'"></span>').insertAfter(this.input)},_clearButton:function(){n.fn._clearButton.call(this),this.options.clearButton&&(this._clear.insertAfter(this.input),this.wrapper.addClass("k-multiselect-clearable"))},_textContainer:function(){var t=a.getComputedStyles(this.input[0],R);t.position="absolute",t.visibility="hidden",t.top=-3333,t.left=-3333,this._span=e("<span/>").css(t).appendTo(this.wrapper)},_wrapper:function(){var t=this,i=t.element,a=i.parent("span.k-multiselect");a[0]||(a=i.wrap('<div class="k-widget k-multiselect" unselectable="on" />').parent(),a[0].style.cssText=i[0].style.cssText,a[0].title=i[0].title,e('<div class="k-multiselect-wrap k-floatwrap" unselectable="on" role="combobox"/>').attr({"aria-expanded":!1}).insertBefore(i)),t.wrapper=a.addClass(i[0].className).removeClass("input-validation-error").css("display",""),t._inputWrapper=e(a[0].firstChild)},_ariaSetSize:function(e){var t=this,i=t.tagList.children();e&&i.length&&i.attr("aria-setsize",e)},_ariaSetLive:function(){var e=this;e.ul.attr("aria-live",e._isFilterEnabled()?"polite":"off")},_closeHandler:function(e){this.trigger(g)?e.preventDefault():(this.wrapper.find(".k-multiselect-wrap").attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_openHandler:function(e){this._adjustListWidth(),this.trigger(f)?e.preventDefault():(this.wrapper.find(".k-multiselect-wrap").attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))}});s.plugin(N)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()});;!function(t,define){define("kendo.draganddrop.min",["kendo.core.min","kendo.userevents.min"],t)}(function(){return function(t,e){function n(e,n){try{return t.contains(e,n)||e==n}catch(r){return!1}}function r(t,e){return parseInt(t.css(e),10)||0}function i(t,e){return Math.min(Math.max(t,e.min),e.max)}function o(t,e){var n=D(t),i=_._outerWidth,o=_._outerHeight,a=n.left+r(t,"borderLeftWidth")+r(t,"paddingLeft"),s=n.top+r(t,"borderTopWidth")+r(t,"paddingTop"),l=a+t.width()-i(e,!0),c=s+t.height()-o(e,!0);return{x:{min:a,max:l},y:{min:s,max:c}}}function a(n,r,i){for(var o,a,s=0,l=r&&r.length,c=i&&i.length;n&&n.parentNode;){for(s=0;s<l;s++)if(o=r[s],o.element[0]===n)return{target:o,targetElement:n};for(s=0;s<c;s++)if(a=i[s],t.contains(a.element[0],n)&&x.matchesSelector.call(n,a.options.filter))return{target:a,targetElement:n};n=n.parentNode}return e}function s(t,e){var n,r=e.options.group,i=t[r];if(T.fn.destroy.call(e),i.length>1){for(n=0;n<i.length;n++)if(i[n]==e){i.splice(n,1);break}}else i.length=0,delete t[r]}function l(t){var e,n,r,i=c()[0];return t[0]===i?(n=i.scrollTop,r=i.scrollLeft,{top:n,left:r,bottom:n+b.height(),right:r+b.width()}):(e=t.offset(),e.bottom=e.top+t.height(),e.right=e.left+t.width(),e)}function c(){return t(_.support.browser.edge||_.support.browser.safari?y.body:y.documentElement)}function u(e){var n,r=c();if(!e||e===y.body||e===y.documentElement)return r;for(n=t(e)[0];n&&!_.isScrollable(n)&&n!==y.body;)n=n.parentNode;return n===y.body?r:t(n)}function h(t,e,n){var r={x:0,y:0},i=50;return t-n.left<i?r.x=-(i-(t-n.left)):n.right-t<i&&(r.x=i-(n.right-t)),e-n.top<i?r.y=-(i-(e-n.top)):n.bottom-e<i&&(r.y=i-(n.bottom-e)),r}var d,f,p,g,v,m,_=window.kendo,x=_.support,y=window.document,b=t(window),E=_.Class,T=_.ui.Widget,S=_.Observable,w=_.UserEvents,M=t.proxy,C=t.extend,D=_.getOffset,I={},O={},k={},H=_.elementUnderCursor,W="keyup",z="change",P="dragstart",L="hold",U="drag",A="dragend",N="dragcancel",V="hintDestroyed",B="dragenter",$="dragleave",F="drop",j=S.extend({init:function(e,n){var r=this,i=e[0];r.capture=!1,i.addEventListener?(t.each(_.eventMap.down.split(" "),function(){i.addEventListener(this,M(r._press,r),!0)}),t.each(_.eventMap.up.split(" "),function(){i.addEventListener(this,M(r._release,r),!0)})):(t.each(_.eventMap.down.split(" "),function(){i.attachEvent(this,M(r._press,r))}),t.each(_.eventMap.up.split(" "),function(){i.attachEvent(this,M(r._release,r))})),S.fn.init.call(r),r.bind(["press","release"],n||{})},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1},_press:function(t){var e=this;e.trigger("press"),e.capture&&t.preventDefault()},_release:function(t){var e=this;e.trigger("release"),e.capture&&(t.preventDefault(),e.cancelCapture())}}),G=S.extend({init:function(e){var n=this;S.fn.init.call(n),n.forcedEnabled=!1,t.extend(n,e),n.scale=1,n.horizontal?(n.measure="offsetWidth",n.scrollSize="scrollWidth",n.axis="x"):(n.measure="offsetHeight",n.scrollSize="scrollHeight",n.axis="y")},makeVirtual:function(){t.extend(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},virtualSize:function(t,e){this._virtualMin===t&&this._virtualMax===e||(this._virtualMin=t,this._virtualMax=e,this.update())},outOfBounds:function(t){return t>this.max||t<this.min},forceEnabled:function(){this.forcedEnabled=!0},getSize:function(){return this.container[0][this.measure]},getTotal:function(){return this.element[0][this.scrollSize]},rescale:function(t){this.scale=t},update:function(t){var e=this,n=e.virtual?e._virtualMax:e.getTotal(),r=n*e.scale,i=e.getSize();(0!==n||e.forcedEnabled)&&(e.max=e.virtual?-e._virtualMin:0,e.size=i,e.total=r,e.min=Math.min(e.max,i-r),e.minScale=i/n,e.centerOffset=(r-i)/2,e.enabled=e.forcedEnabled||r>i,t||e.trigger(z,e))}}),Q=S.extend({init:function(t){var e=this;S.fn.init.call(e),e.x=new G(C({horizontal:!0},t)),e.y=new G(C({horizontal:!1},t)),e.container=t.container,e.forcedMinScale=t.minScale,e.maxScale=t.maxScale||100,e.bind(z,t)},rescale:function(t){this.x.rescale(t),this.y.rescale(t),this.refresh()},centerCoordinates:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},refresh:function(){var t=this;t.x.update(),t.y.update(),t.enabled=t.x.enabled||t.y.enabled,t.minScale=t.forcedMinScale||Math.min(t.x.minScale,t.y.minScale),t.fitScale=Math.max(t.x.minScale,t.y.minScale),t.trigger(z)}}),q=S.extend({init:function(t){var e=this;C(e,t),S.fn.init.call(e)},outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},dragMove:function(t){var e=this,n=e.dimension,r=e.axis,i=e.movable,o=i[r]+t;n.enabled&&((o<n.min&&t<0||o>n.max&&t>0)&&(t*=e.resistance),i.translateAxis(r,t),e.trigger(z,e))}}),J=E.extend({init:function(e){var n,r,i,o,a=this;C(a,{elastic:!0},e),i=a.elastic?.5:0,o=a.movable,a.x=n=new q({axis:"x",dimension:a.dimensions.x,resistance:i,movable:o}),a.y=r=new q({axis:"y",dimension:a.dimensions.y,resistance:i,movable:o}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(t){a.gesture=t,a.offset=a.dimensions.container.offset()},press:function(e){t(e.event.target).closest("a").is("[data-navigate-on-press=true]")&&e.sender.cancel()},gesturechange:function(t){var e,i,s,l=a.gesture,c=l.center,u=t.center,h=t.distance/l.distance,d=a.dimensions.minScale,f=a.dimensions.maxScale;o.scale<=d&&h<1&&(h+=.8*(1-h)),o.scale*h>=f&&(h=f/o.scale),i=o.x+a.offset.left,s=o.y+a.offset.top,e={x:(i-c.x)*h+u.x-i,y:(s-c.y)*h+u.y-s},o.scaleWith(h),n.dragMove(e.x),r.dragMove(e.y),a.dimensions.rescale(o.scale),a.gesture=t,t.preventDefault()},move:function(t){t.event.target.tagName.match(/textarea|input/i)||(n.dimension.enabled||r.dimension.enabled?(n.dragMove(t.x.delta),r.dragMove(t.y.delta),t.preventDefault()):t.touch.skip())},end:function(t){t.preventDefault()}})}}),K=x.transitions.prefix+"Transform";f=x.hasHW3D?function(t,e,n){return"translate3d("+t+"px,"+e+"px,0) scale("+n+")"}:function(t,e,n){return"translate("+t+"px,"+e+"px) scale("+n+")"},p=S.extend({init:function(e){var n=this;S.fn.init.call(n),n.element=t(e),n.element[0].style.webkitTransformOrigin="left top",n.x=0,n.y=0,n.scale=1,n._saveCoordinates(f(n.x,n.y,n.scale))},translateAxis:function(t,e){this[t]+=e,this.refresh()},scaleTo:function(t){this.scale=t,this.refresh()},scaleWith:function(t){this.scale*=t,this.refresh()},translate:function(t){this.x+=t.x,this.y+=t.y,this.refresh()},moveAxis:function(t,e){this[t]=e,this.refresh()},moveTo:function(t){C(this,t),this.refresh()},refresh:function(){var t,e=this,n=e.x,r=e.y;e.round&&(n=Math.round(n),r=Math.round(r)),t=f(n,r,e.scale),t!=e.coordinates&&(_.support.browser.msie&&_.support.browser.version<10?(e.element[0].style.position="absolute",e.element[0].style.left=e.x+"px",e.element[0].style.top=e.y+"px"):e.element[0].style[K]=t,e._saveCoordinates(t),e.trigger(z))},_saveCoordinates:function(t){this.coordinates=t}}),g=T.extend({init:function(t,e){var n,r=this;T.fn.init.call(r,t,e),n=r.options.group,n in O?O[n].push(r):O[n]=[r]},events:[B,$,F],options:{name:"DropTarget",group:"default"},destroy:function(){s(O,this)},_trigger:function(t,e){var n=this,r=I[n.options.group];if(r)return n.trigger(t,C({},e.event,{draggable:r,dropTarget:e.dropTarget}))},_over:function(t){this._trigger(B,t)},_out:function(t){this._trigger($,t)},_drop:function(t){var e=this,n=I[e.options.group];n&&(n.dropped=!e._trigger(F,t))}}),g.destroyGroup=function(t){var e,n=O[t]||k[t];if(n){for(e=0;e<n.length;e++)T.fn.destroy.call(n[e]);n.length=0,delete O[t],delete k[t]}},g._cache=O,v=g.extend({init:function(t,e){var n,r=this;T.fn.init.call(r,t,e),n=r.options.group,n in k?k[n].push(r):k[n]=[r]},destroy:function(){s(k,this)},options:{name:"DropTargetArea",group:"default",filter:null}}),m=T.extend({init:function(t,e){var n=this;T.fn.init.call(n,t,e),n._activated=!1,n.userEvents=new w(n.element,{global:!0,allowSelection:!0,filter:n.options.filter,threshold:n.options.distance,start:M(n._start,n),hold:M(n._hold,n),move:M(n._drag,n),end:M(n._end,n),cancel:M(n._cancel,n),select:M(n._select,n)}),_.support.touch&&n.element.find(n.options.filter).css("touch-action","none"),n._afterEndHandler=M(n._afterEnd,n),n._captureEscape=M(n._captureEscape,n)},events:[L,P,U,A,N,V],options:{name:"Draggable",distance:_.support.touch?0:5,group:"default",cursorOffset:null,axis:null,container:null,filter:null,ignore:null,holdToDrag:!1,autoScroll:!1,dropped:!1},cancelHold:function(){this._activated=!1},_captureEscape:function(t){var e=this;t.keyCode===_.keys.ESC&&(e._trigger(N,{event:t}),e.userEvents.cancel())},_updateHint:function(e){var n,r=this,o=r.options,a=r.boundaries,s=o.axis,l=r.options.cursorOffset;l?n={left:e.x.location+l.left,top:e.y.location+l.top}:(r.hintOffset.left+=e.x.delta,r.hintOffset.top+=e.y.delta,n=t.extend({},r.hintOffset)),a&&(n.top=i(n.top,a.y),n.left=i(n.left,a.x)),"x"===s?delete n.top:"y"===s&&delete n.left,r.hint.css(n)},_shouldIgnoreTarget:function(e){var n=this.options.ignore;return n&&t(e).is(n)},_select:function(t){this._shouldIgnoreTarget(t.event.target)||t.preventDefault()},_start:function(n){var r,i=this,a=i.options,s=a.container?t(a.container):null,l=a.hint;return this._shouldIgnoreTarget(n.touch.initialTouch)||a.holdToDrag&&!i._activated?(i.userEvents.cancel(),e):(i.currentTarget=n.target,i.currentTargetOffset=D(i.currentTarget),l&&(i.hint&&i.hint.stop(!0,!0).remove(),i.hint=_.isFunction(l)?t(l.call(i,i.currentTarget)):l,r=D(i.currentTarget),i.hintOffset=r,i.hint.css({position:"absolute",zIndex:2e4,left:r.left,top:r.top}).appendTo(y.body),i.angular("compile",function(){i.hint.removeAttr("ng-repeat");for(var e=t(n.target);!e.data("$$kendoScope")&&e.length;)e=e.parent();return{elements:i.hint.get(),scopeFrom:e.data("$$kendoScope")}})),I[a.group]=i,i.dropped=!1,s&&(i.boundaries=o(s,i.hint)),t(y).on(W,i._captureEscape),i._trigger(P,n)&&(i.userEvents.cancel(),i._afterEnd()),i.userEvents.capture(),e)},_hold:function(t){this.currentTarget=t.target,this._trigger(L,t)?this.userEvents.cancel():this._activated=!0},_drag:function(e){var n,r;e.preventDefault(),n=this._elementUnderCursor(e),this.options.autoScroll&&this._cursorElement!==n&&(this._scrollableParent=u(n),this._cursorElement=n),this._lastEvent=e,this._processMovement(e,n),this.options.autoScroll&&this._scrollableParent[0]&&(r=h(e.x.location,e.y.location,l(this._scrollableParent)),this._scrollCompenstation=t.extend({},this.hintOffset),this._scrollVelocity=r,0===r.y&&0===r.x?(clearInterval(this._scrollInterval),this._scrollInterval=null):this._scrollInterval||(this._scrollInterval=setInterval(t.proxy(this,"_autoScroll"),50))),this.hint&&this._updateHint(e)},_processMovement:function(n,r){this._withDropTarget(r,function(r,i){if(!r)return d&&(d._trigger($,C(n,{dropTarget:t(d.targetElement)})),d=null),e;if(d){if(i===d.targetElement)return;d._trigger($,C(n,{dropTarget:t(d.targetElement)}))}r._trigger(B,C(n,{dropTarget:t(i)})),d=C(r,{targetElement:i})}),this._trigger(U,C(n,{dropTarget:d,elementUnderCursor:r}))},_autoScroll:function(){var t,e,n,r,i,o,a,s,l=this._scrollableParent[0],u=this._scrollVelocity,h=this._scrollCompenstation;l&&(t=this._elementUnderCursor(this._lastEvent),this._processMovement(this._lastEvent,t),r=l===c()[0],r?(e=y.body.scrollHeight>b.height(),n=y.body.scrollWidth>b.width()):(e=l.offsetHeight<=l.scrollHeight,n=l.offsetWidth<=l.scrollWidth),i=l.scrollTop+u.y,o=e&&i>0&&i<l.scrollHeight,a=l.scrollLeft+u.x,s=n&&a>0&&a<l.scrollWidth,o?l.scrollTop+=u.y:e&&i<0&&(l.scrollTop=0),s?l.scrollLeft+=u.x:n&&a<0&&(l.scrollLeft=0),this.hint&&r&&(s||o)&&(o&&(h.top+=u.y),s&&(h.left+=u.x),this.hint.css(h)))},_end:function(e){this._withDropTarget(this._elementUnderCursor(e),function(n,r){n&&(n._drop(C({},e,{dropTarget:t(r)})),d=null)}),clearInterval(this._scrollInterval),this._scrollInterval=null,this._cancel(this._trigger(A,e))},_cancel:function(t){var e=this;e._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),e._activated=!1,e.hint&&!e.dropped?setTimeout(function(){e.hint.stop(!0,!0),t?e._afterEndHandler():e.hint.animate(e.currentTargetOffset,"fast",e._afterEndHandler)},0):e._afterEnd()},_trigger:function(t,e){var n=this;return n.trigger(t,C({},e.event,{x:e.x,y:e.y,currentTarget:n.currentTarget,initialTarget:e.touch?e.touch.initialTouch:null,dropTarget:e.dropTarget,elementUnderCursor:e.elementUnderCursor}))},_elementUnderCursor:function(t){var e=H(t),r=this.hint;return r&&n(r[0],e)&&(r.hide(),e=H(t),e||(e=H(t)),r.show()),e},_withDropTarget:function(t,e){var n,r=this.options.group,i=O[r],o=k[r];(i&&i.length||o&&o.length)&&(n=a(t,i,o),n?e(n.target,n.targetElement):e())},destroy:function(){var t=this;T.fn.destroy.call(t),t._afterEnd(),t.userEvents.destroy(),this._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),t.currentTarget=null},_afterEnd:function(){var e=this;e.hint&&e.hint.remove(),delete I[e.options.group],e.trigger("destroy"),e.trigger(V),t(y).off(W,e._captureEscape)}}),_.ui.plugin(g),_.ui.plugin(v),_.ui.plugin(m),_.TapCapture=j,_.containerBoundaries=o,C(_.ui,{Pane:J,PaneDimensions:Q,Movable:p}),_.ui.Draggable.utils={autoScrollVelocity:h,scrollableViewPort:l,findScrollableParent:u}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});;!function(t,define){define("kendo.window.min",["kendo.draganddrop.min","kendo.popup.min"],t)}(function(){return function(t,i){function e(t){return i!==t}function n(t,i){return parseInt(t.css(i),10)||0}function o(t,i,e){var n;return n=t&&isNaN(t)&&(""+t).indexOf("px")<0?t:Math.max(Math.min(parseInt(t,10),e===1/0?e:parseInt(e,10)),i===-(1/0)?i:parseInt(i,10))}function s(){return!this.type||this.type.toLowerCase().indexOf("script")>=0}function r(i){for(var e,n,o={top:i.offsetTop,left:i.offsetLeft},s=i.offsetParent;s;)o.top+=s.offsetTop,o.left+=s.offsetLeft,e=t(s).css("overflowX"),n=t(s).css("overflowY"),"auto"!==n&&"scroll"!==n||(o.top-=s.scrollTop),"auto"!==e&&"scroll"!==e||(o.left-=s.scrollLeft),s=s.offsetParent;return o}function a(t){var i=this;i.owner=t,i._preventDragging=!1,i._draggable=new h(t.wrapper,{filter:">"+P,group:t.wrapper.id+"-resizing",dragstart:w(i.dragstart,i),drag:w(i.drag,i),dragend:w(i.dragend,i)}),i._draggable.userEvents.bind("press",w(i.addOverlay,i)),i._draggable.userEvents.bind("release",w(i.removeOverlay,i))}function l(t,i){var e=this;e.owner=t,e._preventDragging=!1,e._draggable=new h(t.wrapper,{filter:i,group:t.wrapper.id+"-moving",dragstart:w(e.dragstart,e),drag:w(e.drag,e),dragend:w(e.dragend,e),dragcancel:w(e.dragcancel,e)}),e._draggable.userEvents.stopPropagation=!1}var d=window.kendo,p=d.ui.Widget,c=d.ui.Popup.TabKeyTrap,h=d.ui.Draggable,f=t.isPlainObject,m=d._activeElement,u=d._outerWidth,g=d._outerHeight,w=t.proxy,_=t.extend,v=t.each,x=d.template,b="body",k=".kendoWindow",z=".kendoWindowModal",T=".k-window",y=".k-window-title",L=y+"bar",W=".k-window-content",O=".k-dialog-content",P=".k-resize-handle",H=".k-overlay",M="k-content-frame",S="k-i-loading",C="k-state-hover",I="k-state-focused",D="k-window-maximized",E="k-display-inline-flex",F=":visible",R="hidden",j="cursor",N="open",A="activate",K="deactivate",B="close",q="refresh",U="minimize",G="maximize",J="resizeStart",V="resize",Q="resizeEnd",X="dragstart",Y="dragend",$="restore",Z="kendoKeydown",tt="error",it="overflow",et="original-overflow-rule",nt="zIndex",ot=".k-window-actions .k-i-window-minimize,.k-window-actions .k-i-window-maximize",st=".k-i-pin",rt=".k-i-unpin",at=st+","+rt,lt=".k-window-titlebar .k-window-action",dt=".k-window-titlebar .k-i-refresh",pt="WindowEventsHandled",ct=/^0[a-z]*$/i,ht=d.isLocalUrl,ft={small:"k-window-sm",medium:"k-window-md",large:"k-window-lg"},mt=p.extend({init:function(n,o){var r,a,l,h,m,u,g,_,v,x=this,b={},z=!1,P=o&&o.actions&&!o.actions.length;p.fn.init.call(x,n,o),o=x.options,h=o.position,n=x.element,m=o.content,_=t(window),P&&(o.actions=[]),x.appendTo=t(o.appendTo),x.containment=o.draggable.containment?t(o.draggable.containment).first():null,m&&!f(m)&&(m=o.content={url:m}),n.find("script").filter(s).remove(),n.parent().is(x.appendTo)||x.containment||h.top!==i&&h.left!==i||(n.is(F)?(b=n.offset(),z=!0):(a=n.css("visibility"),l=n.css("display"),n.css({visibility:R,display:""}),b=n.offset(),n.css({visibility:a,display:l})),h.top===i&&(h.top=b.top),h.left===i&&(h.left=b.left)),e(o.visible)&&null!==o.visible||(o.visible=n.is(F)),r=x.wrapper=n.closest(T),n.is(".k-window-content")&&r[0]||(n.addClass("k-window-content"),x._createWindow(n,o),r=x.wrapper=n.closest(T),x.title(x.options.title),x._dimensions()),x.minTop=x.minLeft=-(1/0),x.maxTop=x.maxLeft=1/0,x._position(),m&&x.refresh(m),o.visible&&x.toFront(),u=r.children(W),o.visible&&o.modal&&x._overlay(r.is(F)).css({opacity:.5}),r.on("mouseenter"+k,lt,w(x._buttonEnter,x)).on("mouseleave"+k,lt,w(x._buttonLeave,x)).on("click"+k,"> "+lt,w(x._windowActionHandler,x)).on("keydown"+k,x,w(x._keydown,x)).on("focus"+k,w(x._focus,x)).on("blur"+k,w(x._blur,x)),u.on("keydown"+k,x,w(x._keydownContent,x)),g=u.find("."+M)[0],g&&!_.data(pt)&&(_.on("blur"+k,function(){var i,e=t(document.activeElement).parent(W);e.length&&(i=d.widgetInstance(e),i._focus())}),_.on("focus"+k,function(){t(W).not(O).each(function(i,e){d.widgetInstance(t(e))._blur()})}),_.data(pt,!0)),this._resizable(),this._draggable(),o.pinned&&this.wrapper.is(":visible")&&x.pin(),v=n.attr("id"),v&&(v+="_wnd_title",r.children(L).children(y).attr("id",v),u.attr({role:"dialog","aria-labelledby":v})),r.add(r.children(".k-resize-handle,"+L)).on(d.support.mousedown+k,w(x.toFront,x)),x.touchScroller=d.touchScroller(n),x._resizeHandler=w(x._onDocumentResize,x),x._marker=d.guid().substring(0,8),t(window).on("resize"+k+x._marker,x._resizeHandler),o.visible&&(x.trigger(N),x.trigger(A)),d.notify(x),this.options.modal&&(this._tabKeyTrap=new c(r),this._tabKeyTrap.trap(),this._tabKeyTrap.shouldTrap=function(){return r.data("isFront")})},_buttonEnter:function(i){t(i.currentTarget).addClass(C)},_buttonLeave:function(i){t(i.currentTarget).removeClass(C)},_focus:function(){this.wrapper.addClass(I)},_blur:function(){this.wrapper.removeClass(I)},_dimensions:function(){var t,i,e=this.wrapper,s=this.options,r=s.width,a=s.height,l=s.maxHeight,d=s.size,p=["minWidth","minHeight","maxWidth","maxHeight"],c="content-box"==e.css("box-sizing"),h=c?n(e,"border-left-width")+n(e,"border-right-width"):0,f=c?n(e,"border-top-width")+n(e,"border-bottom-width"):0,m=c?n(e,"padding-top"):0;for(this.containment&&!this._isPinned&&(this._updateBoundaries(),s.maxHeight=Math.min(this.containment.height-(f+m),l),s.maxWidth=Math.min(this.containment.width-h,s.maxWidth)),t=0;t<p.length;t++)i=s[p[t]]||"",i!=1/0&&e.css(p[t],i);l!=1/0&&this.element.css("maxHeight",l),e.outerWidth(r?o(r,s.minWidth,s.maxWidth):""),e.outerHeight(a?o(a,s.minHeight,s.maxHeight):""),s.visible||e.removeClass(E).hide(),d&&ft[d]&&e.addClass(ft[d])},_position:function(){var t,i,e=this.wrapper,n=this.options.position;this._updateBoundaries(),this.containment&&(n.top=n.top||0,n.left=n.left||0,t=(""+n.top).indexOf("%")>0?parseInt(this.containment.height*(parseFloat(n.top)/100),10):n.top,i=(""+n.left).indexOf("%")>0?parseInt(this.containment.width*(parseFloat(n.left)/100),10):n.left,n.top=o(t,this.minTop,this.maxTop),n.left=o(i,this.minLeft,this.maxLeft)),0===n.top&&(n.top=""+n.top),0===n.left&&(n.left=""+n.left),e.css({top:n.top||"",left:n.left||""})},_updateBoundaries:function(){var t=this.containment;return t?(t.width=t.innerWidth(),t.height=t.innerHeight(),parseInt(t.width,10)>t[0].clientWidth&&(t.width-=d.support.scrollbar()),parseInt(t.height,10)>t[0].clientHeight&&(t.height-=d.support.scrollbar()),t.position=r(t[0]),this._isPinned?(this.minTop=this.minLeft=-(1/0),this.maxTop=this.maxLeft=1/0):(this.minTop=t.scrollTop(),this.minLeft=t.scrollLeft(),this.maxLeft=this.minLeft+t.width-u(this.wrapper,!0),this.maxTop=this.minTop+t.height-g(this.wrapper,!0)),i):null},_animationOptions:function(t){var i=this.options.animation,e={open:{effects:{}},close:{hide:!0,effects:{}}};return i&&i[t]||e[t]},_resize:function(){d.resize(this.element.children())},_resizable:function(){var i=this.options.resizable,e=this.wrapper;this.resizing&&(e.off("dblclick"+k).children(P).remove(),this.resizing.destroy(),this.resizing=null),i&&(e.on("dblclick"+k,L,w(function(i){t(i.target).closest(".k-window-action").length||this.toggleMaximization()},this)),v("n e s w se sw ne nw".split(" "),function(t,i){e.append(ut.resizeHandle(i))}),this.resizing=new a(this)),e=null},_draggable:function(){var t=this.options.draggable;this.dragging&&(this.dragging.destroy(),this.dragging=null),t&&(this.dragging=new l(this,t.dragHandle||L))},_actions:function(){var i=this.options,e=i.actions,n=i.pinned,o=this.wrapper.children(L),s=o.find(".k-window-actions"),r=["maximize","minimize"];e=t.map(e,function(t){return t=n&&"pin"===t.toLowerCase()?"unpin":t,{name:r.indexOf(t.toLowerCase())>-1?"window-"+t:t}}),s.html(d.render(ut.action,e))},setOptions:function(e){var n,o,s=this,r=s.options.size,a=this.containment&&!s._isPinned?this.containment:t(document),l=JSON.parse(JSON.stringify(e));_(e.position,s.options.position),_(e.position,l.position),s._containerScrollTop=a.scrollTop(),s._containerScrollLeft=a.scrollLeft(),p.fn.setOptions.call(s,e),n=s.options.scrollable!==!1,s.restore(),i!==e.title&&s.title(e.title),s.wrapper.removeClass(ft[r]),s._dimensions(),s._position(),s._resizable(),s._draggable(),s._actions(),i!==e.modal&&(o=s.options.visible!==!1,s._enableDocumentScrolling(),s._overlay(e.modal&&o)),s.element.css(it,n?"":"hidden")},events:[N,A,K,B,U,G,q,$,J,V,Q,X,Y,Z,tt],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],autoFocus:!0,modal:!1,size:"auto",resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:1/0,maxHeight:1/0,pinned:!1,scrollable:!0,position:{},content:null,visible:null,height:null,width:null,appendTo:"body",isMaximized:!1,isMinimized:!1},_closable:function(){return t.inArray("close",t.map(this.options.actions,function(t){return t.toLowerCase()}))>-1},_keydownContent:function(t){var i=this,e=d.keys,n=t.keyCode;n==e.ESC&&i._closable()&&(t.stopPropagation(),i._close(!1))},_keydown:function(t){var i,e,s,r,a,l,p=this,c=p.options,h=d.keys,f=t.keyCode,m=p.wrapper,u=10,g=c.isMaximized,w=c.isMinimized;f==h.ESC&&p._closable()&&(t.stopPropagation(),p._close(!1)),t.target!=t.currentTarget||p._closing||(t.altKey&&82==f&&p.refresh(),t.altKey&&80==f&&(p.options.pinned?p.unpin():p.pin()),t.altKey&&f==h.UP?w?(p.restore(),p.wrapper.focus()):g||(p.maximize(),p.wrapper.focus()):t.altKey&&f==h.DOWN&&(w||g?g&&p.restore():(p.minimize(),p.wrapper.focus())),i=d.getOffset(m),p.containment&&!p._isPinned&&(i=p.options.position),!c.draggable||t.ctrlKey||t.altKey||g||(p._updateBoundaries(),f==h.UP?(i.top=o(i.top-u,p.minTop,p.maxTop),e=m.css("top",i.top)):f==h.DOWN?(i.top=o(i.top+u,p.minTop,p.maxTop),e=m.css("top",i.top)):f==h.LEFT?(i.left=o(i.left-u,p.minLeft,p.maxLeft),e=m.css("left",i.left)):f==h.RIGHT&&(i.left=o(i.left+u,p.minLeft,p.maxLeft),e=m.css("left",i.left))),c.resizable&&t.ctrlKey&&!g&&!w&&(f==h.UP?(e=!0,r=m.outerHeight()-u):f==h.DOWN&&(e=!0,r=p.containment&&!p._isPinned?Math.min(m.outerHeight()+u,p.containment.height-i.top-n(m,"padding-top")-n(m,"borderBottomWidth")-n(m,"borderTopWidth")):m.outerHeight()+u),f==h.LEFT?(e=!0,s=m.outerWidth()-u):f==h.RIGHT&&(e=!0,s=p.containment&&!p._isPinned?Math.min(m.outerWidth()+u,p.containment.width-i.left-n(m,"borderLeftWidth")-n(m,"borderRightWidth")):m.outerWidth()+u),e&&(a=o(s,c.minWidth,c.maxWidth),l=o(r,c.minHeight,c.maxHeight),isNaN(a)||(m.outerWidth(a),p.options.width=a+"px"),isNaN(l)||(m.outerHeight(l),p.options.height=l+"px"),p.resize())),e&&t.preventDefault())},_overlay:function(i){var e=this.containment?this.containment.children(H):this.appendTo.children(H),n=this.wrapper,o=i?"block":"none",s=parseInt(n.css(nt),10)-1;return e.length||(e=t("<div class='k-overlay' />")),e.insertBefore(n[0]).css({zIndex:s,display:o}),this.options.modal.preventScroll&&!this.containment&&this._stopDocumentScrolling(),e},_actionForIcon:function(t){var i=/\bk-i(-\w+)+\b/.exec(t[0].className)[0];return{"k-i-close":"_close","k-i-window-maximize":"maximize","k-i-window-minimize":"minimize","k-i-window-restore":"restore","k-i-refresh":"refresh","k-i-pin":"pin","k-i-unpin":"unpin"}[i]},_windowActionHandler:function(e){var n,o;if(!this._closing)return n=t(e.target).closest(".k-window-action").find(".k-icon"),o=this._actionForIcon(n),o?(e.preventDefault(),this[o](),!1):i},_modals:function(){var i,e,n=this,o=t(T+F),s=[];for(e=0;e<o.length;e+=1)i=n._object(t(o[e])),i&&i.options&&i.options.modal&&i.options.visible&&i.options.appendTo===n.options.appendTo&&!i.containment&&s.push(i.wrapper[0]);return s.sort(function(t,i){return t.style.zIndex-i.style.zIndex}),n=null,t(s)},_object:function(t){var e=t.children(W),n=d.widgetInstance(e);return n?n:i},center:function(){var i,e,o=this,s=o.options.position,r=o.wrapper,a=t(window),l=0,d=0;return o.options.isMaximized?o:(o.options.pinned&&!o._isPinned&&o.pin(),o.options.pinned||(l=a.scrollTop(),d=a.scrollLeft()),this.containment&&!o.options.pinned?(i=this.minTop+(this.maxTop-this.minTop)/2,e=this.minLeft+(this.maxLeft-this.minLeft)/2):(o._scrollIsAppended=!0,e=d+Math.max(0,(a.width()-r.outerWidth())/2),i=l+Math.max(0,(a.height()-r.outerHeight()-n(r,"paddingTop"))/2)),r.css({left:e,top:i}),s.top=i,s.left=e,o)},title:function(e){var n,o=this,s=!0,r=o.wrapper,a=r.children(L),l=a.children(y);return arguments.length?(t.isPlainObject(e)?(n=i!==e.text?e.text:"",s=e.encoded!==!1):n=e,n===!1?(r.addClass("k-window-titleless"),r.css("padding-top",0),a.remove()):a.length?l.html(s?d.htmlEncode(n):n):(r.prepend(ut.titlebar({title:s?d.htmlEncode(n):n})),o._actions(),a=r.children(L)),o.options.title=n,o):l.html()},content:function(t,i){var n=this.wrapper.children(W),o=n.children(".km-scroll-container");return n=o[0]?o:n,e(t)?(this.angular("cleanup",function(){return{elements:n.children()}}),d.destroy(this.element.children()),n.empty().html(t),this.angular("compile",function(){var t,e=[];for(t=n.length;--t>=0;)e.push({dataItem:i});return{elements:n.children(),data:e}}),this):n.html()},open:function(){var i,e,n,o=this,s=o.wrapper,r=o.options,a=this._animationOptions("open"),l=s.children(W),p=this.containment&&!o._isPinned,c=p?this.containment:t(document);return o.trigger(N)||(o._closing&&s.kendoStop(!0,!0),o._closing=!1,o.toFront(),r.autoFocus&&o.wrapper.focus(),r.visible=!0,r.modal&&(e=!!o._modals().length,i=o._overlay(e),i.kendoStop(!0,!0),a.duration&&d.effects.Fade&&!e?(n=d.fx(i).fadeIn(),n.duration(a.duration||0),n.endValue(.5),n.play()):i.css("opacity",.5),i.show(),t(window).on("focus"+z,function(){s.data("isFront")&&!t(document.activeElement).closest(s).length&&o.wrapper.focus()})),s.is(F)||(l.css(it,R),o.wrapper.find(lt).addClass("k-flat"),s.addClass(E).kendoStop().kendoAnimate({effects:a.effects,duration:a.duration,complete:w(this._activate,this)}))),r.isMaximized&&(o._containerScrollTop=c.scrollTop(),o._containerScrollLeft=c.scrollLeft(),o._stopDocumentScrolling()),this.options.pinned&&!this._isPinned&&this.pin(),o},_activate:function(){var t=this.options.scrollable!==!1;this.options.autoFocus&&this.wrapper.focus(),this.element.css(it,t?"":"hidden"),d.resize(this.element.children()),this.trigger(A)},_removeOverlay:function(e){var n,o=this._modals(),s=this.options,r=s.modal&&!o.length,a=this._animationOptions("close");r?(!e&&a.duration&&d.effects.Fade?(n=d.fx(s.modal?this._overlay(!0):t(i)).fadeOut(),n.duration(a.duration||0),n.startValue(.5),n.play()):this._overlay(!1).remove(),s.modal.preventScroll&&this._enableDocumentScrolling()):o.length&&(this._object(o.last())._overlay(!0),s.modal.preventScroll&&this._stopDocumentScrolling())},_close:function(i){var e,n=this,o=n.wrapper,s=n.options,r=this._animationOptions("open"),a=this._animationOptions("close"),l=this.containment&&!n._isPinned,d=l?this.containment:t(document);n._closing||(e=n.trigger(B,{userTriggered:!i}),n._closing=!e,o.is(F)&&!e&&(s.visible=!1,t(T).each(function(i,e){var n=t(e).children(W);e!=o&&n.find("> ."+M).length>0&&n.children(H).remove()}),this._removeOverlay(),n.wrapper.find(lt).removeClass("k-flat"),o.kendoStop().kendoAnimate({effects:a.effects||r.effects,reverse:a.reverse===!0,duration:a.duration,complete:w(this._deactivate,this)}),t(window).off(z)),n.options.isMaximized&&(n._enableDocumentScrolling(),n._containerScrollTop&&n._containerScrollTop>0&&d.scrollTop(n._containerScrollTop),n._containerScrollLeft&&n._containerScrollLeft>0&&d.scrollLeft(n._containerScrollLeft)),n.options.iframe&&n.wrapper.blur())},_deactivate:function(){var t,i=this;i.wrapper.removeClass(E).hide().css("opacity",""),i.trigger(K),i.options.modal&&(t=i._object(i._modals().last()),t&&t.toFront())},close:function(){return this._close(!0),this},_actionable:function(i){return t(i).is(lt+","+lt+" .k-icon, :input, a, .k-input, .k-icon, [role='gridcell']")},_shouldFocus:function(i){var e=m(),n=this.wrapper;return this.options.autoFocus&&!t(e).is(n)&&!this._actionable(i)&&(!n.find(e).length||!n.find(i).length)},toFront:function(i){var e,n,o=this,s=o.wrapper,r=s[0],a=o.containment&&!o._isPinned,l=this._animationOptions("open"),d=+s.css(nt),p=d,c=i&&i.target||null;return t(T).each(function(i,e){var n=t(e),o=n.css(nt),a=n.children(W);isNaN(o)||(d=Math.max(+o,d)),s.data("isFront",e==r),e!=r&&a.find("."+M).length&&!a.find(H).length&&a.append(ut.overlay)}),(!s[0].style.zIndex||p<d)&&s.css(nt,d+2),o.element.find("> .k-overlay").remove(),o._shouldFocus(c)&&(setTimeout(function(){o.wrapper.focus()},l?l.duration:0),e=a?o.containment.scrollTop():t(window).scrollTop(),n=parseInt(s.position().top,10),!o.options.pinned&&n>0&&n<e&&(e>0?t(window).scrollTop(n):s.css("top",e))),s=null,o},toggleMaximization:function(){return this._closing?this:this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var i,e=this,n=e.options,s=n.minHeight,r=e.restoreOptions,a=e.containment&&!e._isPinned?e.containment:t(document);return n.isMaximized||n.isMinimized?(s&&s!=1/0&&e.wrapper.css("min-height",s),r&&!n.isMaximized&&(r.height=o(r.height,e.options.minHeight,e.options.maxHeight),i=n.position.top+parseInt(r.height,10)>e.maxTop,i&&(n.position.top=o(n.position.top,e.minTop,e.maxTop-parseInt(r.height,10)),_(r,{left:n.position.left,top:n.position.top}))),e.wrapper.css({position:n.pinned?"fixed":"absolute",left:r.left,top:r.top,width:r.width,height:r.height}).removeClass(D).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-window-restore").parent().remove().end().end().find(ot).parent().show().end().end().find(at).parent().show(),n.isMaximized?e.wrapper.find(".k-i-window-maximize").parent().focus():n.isMinimized&&e.wrapper.find(".k-i-window-minimize").parent().focus(),e.options.width=r.width,e.options.height=r.height,e.options.modal.preventScroll||e._enableDocumentScrolling(),e._containerScrollTop&&e._containerScrollTop>0&&a.scrollTop(e._containerScrollTop),e._containerScrollLeft&&e._containerScrollLeft>0&&a.scrollLeft(e._containerScrollLeft),n.isMaximized=n.isMinimized=!1,e.wrapper.removeAttr("aria-labelled-by"),e.resize(),e.trigger($),e):e},_sizingAction:function(t,i){var e=this,n=e.wrapper,o=n[0].style,s=e.options;return s.isMaximized||s.isMinimized?e:(e.restoreOptions={width:o.width,height:o.height},n.children(P).hide().end().children(L).find(ot).parent().hide().eq(0).before(ut.action({name:"window-restore"})),i.call(e),e.wrapper.children(L).find(at).parent().toggle("maximize"!==t),e.trigger(t),n.find(".k-i-window-restore").parent().focus(),e)},maximize:function(){return this._sizingAction("maximize",function(){var i=this,e=i.wrapper,n=this.containment&&!i._isPinned,o=e.position(),s=t(document);_(i.restoreOptions,{left:o.left+(n?this.containment.scrollLeft():0),top:o.top+(n?this.containment.scrollTop():0)}),this._containerScrollTop=n?this.containment.scrollTop():s.scrollTop(),this._containerScrollLeft=n?this.containment.scrollLeft():s.scrollLeft(),i._stopDocumentScrolling(),e.css({top:n?this.containment.scrollTop():0,left:n?this.containment.scrollLeft():0,position:n?"absolute":"fixed"}).addClass(D),i.options.isMaximized=!0,i._onDocumentResize()}),this},_stopDocumentScrolling:function(){var e,n,o=this,s=o.containment;return s&&!o._isPinned?(o._storeOverflowRule(s),s.css(it,R),o.wrapper.css({maxWidth:s.innerWidth(),maxHeight:s.innerHeight()}),i):(e=t("body"),o._storeOverflowRule(e),e.css(it,R),n=t("html"),o._storeOverflowRule(n),n.css(it,R),i)},_enableDocumentScrolling:function(){var e=this,n=e.containment;return n&&!e._isPinned?(e._restoreOverflowRule(n),e.wrapper.css({maxWidth:n.width,maxHeight:n.height}),i):(e._restoreOverflowRule(t(document.body)),e._restoreOverflowRule(t("html")),i)},_storeOverflowRule:function(t){if(!this._isOverflowStored(t)){var i=t.get(0).style.overflow;"string"==typeof i&&t.data(et,i)}},_isOverflowStored:function(t){return"string"==typeof t.data(et)},_restoreOverflowRule:function(t){var e=t.data(et);null!==e&&e!==i?(t.css(it,e),t.removeData(et)):t.css(it,"")},isMaximized:function(){return this.options.isMaximized},minimize:function(){return this._sizingAction("minimize",function(){var t=this;t.wrapper.css({height:"",minHeight:""}),t.element.hide(),t.options.isMinimized=!0}),this.wrapper.attr("aria-labelled-by",this.element.attr("aria-labelled-by")),this._updateBoundaries(),this},isMinimized:function(){return this.options.isMinimized},pin:function(){var i=this,e=t(window),o=i.wrapper,s=i.options,a=s.position,l=this.containment?r(o[0]).top+n(this.containment,"borderTopWidth"):n(o,"top"),d=this.containment?r(o[0]).left+n(this.containment,"borderLeftWidth"):n(o,"left");i.options.isMaximized||(a.top=l,a.left=d,!i._scrollIsAppended||this.containment&&"fixed"===this.containment.css("position")||(a.top-=e.scrollTop(),a.left-=e.scrollLeft(),i._scrollIsAppended=!1),o.css(_(a,{position:"fixed"})),o.children(L).find(st).addClass("k-i-unpin").removeClass("k-i-pin"),i._isPinned=!0,i.options.pinned=!0,this.containment&&(s.maxWidth=s.maxHeight=1/0,o.css({maxWidth:"",maxHeight:""})))},unpin:function(){var i=this,e=t(window),s=i.wrapper,r=i.options,a=i.options.position,l=i.containment,d=parseInt(s.css("top"),10)+e.scrollTop(),p=parseInt(s.css("left"),10)+e.scrollLeft();i.options.isMaximized||(i._isPinned=!1,i._scrollIsAppended=!0,i.options.pinned=!1,l&&(i._updateBoundaries(),r.maxWidth=Math.min(l.width,r.maxWidth),r.maxHeight=Math.min(l.height-n(s,"padding-top"),r.maxHeight),s.css({maxWidth:r.maxWidth,maxHeight:r.maxHeight}),d=d<l.position.top?i.minTop:d>l.position.top+l.height?i.maxTop:d+l.scrollTop()-(l.position.top+n(l,"border-top-width")),p=p<l.position.left?i.minLeft:p>l.position.left+l.width?i.maxLeft:p+l.scrollLeft()-(l.position.left+n(l,"border-left-width"))),a.top=o(d,i.minTop,i.maxTop),a.left=o(p,i.minLeft,i.maxLeft),s.css(_(a,{position:""})),s.children(L).find(rt).addClass("k-i-pin").removeClass("k-i-unpin"))},_onDocumentResize:function(){var i,e,o,s,r,a=this,l=a.wrapper,p=t(window),c=d.support.zoomLevel(),h="content-box"==l.css("box-sizing");a.options.isMaximized&&(o=h?n(l,"border-left-width")+n(l,"border-right-width"):0,s=h?n(l,"border-top-width")+n(l,"border-bottom-width"):0,r=h?n(l,"padding-top"):0,a.containment&&!a._isPinned?(i=a.containment.innerWidth()-o,e=a.containment.innerHeight()-(s+r)):(i=p.width()/c-o,e=p.height()/c-(s+r)),l.css({width:i,height:e}),a.options.width=i,a.options.height=e,a.resize())},refresh:function(i){var n,o,s,r=this,a=r.options,l=t(r.element);return f(i)||(i={url:i}),i=_(a.content,i),o=e(a.iframe)?a.iframe:i.iframe,s=i.url,s?(e(o)||(o=!ht(s)),o?(n=l.find("."+M)[0],n?n.src=s||n.src:l.html(ut.contentFrame(_({},a,{content:i}))),l.find("."+M).unbind("load"+k).on("load"+k,w(this._triggerRefresh,this))):r._ajaxRequest(i)):(i.template&&r.content(x(i.template)({})),r.trigger(q)),l.toggleClass("k-window-iframecontent",!!o),r},_triggerRefresh:function(){this.trigger(q)},_ajaxComplete:function(){clearTimeout(this._loadingIconTimeout),this.wrapper.find(dt).removeClass(S)},_ajaxError:function(t,i){this.trigger(tt,{status:i,xhr:t})},_ajaxSuccess:function(t){return function(i){var e=i;t&&(e=x(t)(i||{})),this.content(e,i),this.element.prop("scrollTop",0),this.trigger(q)}},_showLoading:function(){this.wrapper.find(dt).addClass(S)},_ajaxRequest:function(i){this._loadingIconTimeout=setTimeout(w(this._showLoading,this),100),t.ajax(_({type:"GET",dataType:"html",cache:!1,error:w(this._ajaxError,this),complete:w(this._ajaxComplete,this),success:w(this._ajaxSuccess(i.template),this)},i))},_destroy:function(){this.resizing&&this.resizing.destroy(),this.dragging&&this.dragging.destroy(),this.wrapper.off(k).children(W).off(k).end().find(".k-resize-handle,.k-window-titlebar").off(k),t(window).off("resize"+k+this._marker),t(window).off(z),t(window).off(k),clearTimeout(this._loadingIconTimeout),p.fn.destroy.call(this),this.unbind(i),d.destroy(this.wrapper)},destroy:function(){this._destroy(),this.options.modal&&this._removeOverlay(!0),this.wrapper.empty().remove(),this.wrapper=this.appendTo=this.element=t()},_createWindow:function(){var i,e,n=this.element,o=this.options,s=d.support.isRtl(n);o.scrollable===!1&&n.css("overflow","hidden"),e=t(ut.wrapper(o)),i=n.find("iframe:not(.k-content-frame)").map(function(){var t=this.getAttribute("src");return this.src="",t}),e.toggleClass("k-rtl",s).attr("tabindex",0).append(n).find("iframe:not(.k-content-frame)").each(function(t){this.src=i[t]}),this.containment?this.containment.prepend(e):this.appendTo&&e.appendTo(this.appendTo),e.find(".k-window-title").css(s?"left":"right",u(e.find(".k-window-actions"))+10),n.css("visibility","").show(),n.find("[data-role=editor]").each(function(){var i=t(this).data("kendoEditor");i&&i.refresh()}),e=n=null}}),ut={wrapper:x("<div class='k-widget k-window'></div>"),action:x("<a role='button' href='\\#' class='k-button k-flat k-button-icon k-window-action' aria-label='#= name #'><span class='k-icon k-i-#= name.toLowerCase() #'></span></a>"),titlebar:x("<div class='k-window-titlebar'><span class='k-window-title'>#= title #</span><div class='k-window-actions'></div></div>"),overlay:"<div class='k-overlay'></div>",contentFrame:x("<iframe frameborder='0' title='#= title #' class='"+M+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),resizeHandle:x("<div class='k-resize-handle k-resize-#= data #'></div>")};a.prototype={addOverlay:function(){this.owner.wrapper.append(ut.overlay)},removeOverlay:function(){this.owner.wrapper.find(H).remove()},dragstart:function(i){var e,n,o,s,a,l,p,c=this,h=c.owner,f=h.wrapper;c._preventDragging=h.trigger(J),c._preventDragging||(c.elementPadding=parseInt(f.css("padding-top"),10),c.initialPosition=d.getOffset(f,"position"),c.resizeDirection=i.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),c.initialSize={width:f.outerWidth(),height:f.outerHeight()},h._updateBoundaries(),c.containerOffset=h.containment?h.containment.position:d.getOffset(h.appendTo),e=f.offsetParent(),e.is("html")?c.containerOffset.top=c.containerOffset.left=0:(n=e.css("margin-top"),o=e.css("margin-left"),s=!ct.test(n)||!ct.test(o),s&&(a=r(f[0]),l=a.left-c.containerOffset.left-c.initialPosition.left,p=a.top-c.containerOffset.top-c.initialPosition.top,c._relativeElMarginLeft=l>1?l:0,c._relativeElMarginTop=p>1?p:0,c.initialPosition.left+=c._relativeElMarginLeft,c.initialPosition.top+=c._relativeElMarginTop)),f.children(P).not(i.currentTarget).hide(),t(b).css(j,i.currentTarget.css(j)))},drag:function(i){var e,n,s,r,a,l,p,c,h,f,m,u,g,w,_,v,x,b,k,z;this._preventDragging||(e=this,n=e.owner,s=n.wrapper,r=n.options,a=r.position,l=e.resizeDirection,p=e.containerOffset,c=e.initialPosition,h=e.initialSize,f=n.containment&&!n._isPinned,m=d.support.isRtl(n.containment),u=f&&m&&n.containment.innerWidth()>n.containment.width?d.support.scrollbar():0,g=f?{top:n.containment.scrollTop(),left:n.containment.scrollLeft()}:{top:0,left:0},b=Math.max(i.x.location,0),k=Math.max(i.y.location,0),l.indexOf("e")>=0?(w=n.containment&&b-h.width>=n.maxLeft-g.left+p.left+u?n.maxLeft+u-c.left+h.width-g.left:b-c.left-p.left,s.outerWidth(o(w,r.minWidth,r.maxWidth))):l.indexOf("w")>=0&&(x=c.left+h.width+p.left,w=o(x-b,r.minWidth,r.maxWidth),a.left=x-w-p.left-u-(e._relativeElMarginLeft||0)+g.left,n.containment&&a.left<=n.minLeft&&(a.left=n.minLeft,w=o(x-u-a.left-p.left+g.left,r.minWidth,r.maxWidth)),s.css({left:a.left,width:w})),z=k,n.options.pinned&&(z-=t(window).scrollTop()),l.indexOf("s")>=0?(_=z-c.top-e.elementPadding-p.top,z-h.height-e.elementPadding>=n.maxTop+p.top-g.top&&(_=n.maxTop-c.top+h.height-g.top),s.outerHeight(o(_,r.minHeight,r.maxHeight))):l.indexOf("n")>=0&&(v=c.top+h.height+p.top,_=o(v-z,r.minHeight,r.maxHeight),a.top=v-_-p.top-(e._relativeElMarginTop||0)+g.top,a.top<=n.minTop&&n.containment&&(a.top=n.minTop,_=o(v-a.top-p.top+g.top,r.minHeight,r.maxHeight)),s.css({top:a.top,height:_})),w&&(n.options.width=w+"px"),_&&(n.options.height=_+"px"),n.resize())},dragend:function(i){if(!this._preventDragging){var e=this,n=e.owner,o=n.wrapper;return o.children(P).not(i.currentTarget).show(),t(b).css(j,""),n.touchScroller&&n.touchScroller.reset(),27==i.keyCode&&o.css(e.initialPosition).css(e.initialSize),n.trigger(Q),!1}},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},l.prototype={dragstart:function(i){var e=this.owner,n=e.options.draggable,o=e.element,s=o.find(".k-window-actions"),r=d.getOffset(e.appendTo);this._preventDragging=e.trigger(X)||!n,this._preventDragging||e.isMaximized()||(e.initialWindowPosition=d.getOffset(e.wrapper,"position"),e.initialPointerPosition={left:e.options.position.left,top:e.options.position.top},e.startPosition={left:i.x.client-e.initialWindowPosition.left,top:i.y.client-e.initialWindowPosition.top},e._updateBoundaries(),e.containment||(e.minLeft=s.length>0?u(s)+parseInt(s.css("right"),10)-u(o):20-u(o),e.minLeft-=r.left,e.minTop=-r.top),t(ut.overlay).appendTo(e.wrapper).css({opacity:0}),e.wrapper.children(P).hide(),t(b).css(j,i.currentTarget.css(j)))},drag:function(i){var e,n,s=this.owner,r=s.options.position,a=s.options.draggable.axis;this._preventDragging||s.isMaximized()||(a&&"x"!==a.toLowerCase()||(e=i.x.client-s.startPosition.left,s.containment&&!s._isPinned&&(e+=s.containment.scrollLeft()),r.left=o(e,s.minLeft,s.maxLeft)),a&&"y"!==a.toLowerCase()||(n=i.y.client-s.startPosition.top,s.containment&&!s._isPinned&&(n+=s.containment.scrollTop()),r.top=o(n,s.minTop,s.maxTop)),d.support.transforms?t(s.wrapper).css("transform","translate("+(r.left-s.initialPointerPosition.left)+"px, "+(r.top-s.initialPointerPosition.top)+"px)"):t(s.wrapper).css(r))},_finishDrag:function(){var i=this.owner;i.wrapper.children(P).toggle(!i.options.isMinimized).end().find(H).remove(),t(b).css(j,"")},dragcancel:function(t){this._preventDragging||(this._finishDrag(),t.currentTarget.closest(T).css(this.owner.initialWindowPosition))},dragend:function(){var i=this.owner;if(!this._preventDragging&&!i.isMaximized())return t(i.wrapper).css(i.options.position).css("transform",""),this._finishDrag(),i.trigger(Y),!1},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},d.ui.plugin(mt)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,i,e){(e||i)()});;!function(t,define){define("kendo.timepicker.min",["kendo.popup.min","kendo.dateinput.min"],t)}(function(){return function(t,e){function i(){var t=new st,e=new st(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),i=new st(t.getFullYear(),t.getMonth(),t.getDate(),12,0,0);return-1*(e.getTimezoneOffset()-i.getTimezoneOffset())}function n(t){return 60*t.getHours()*z+t.getMinutes()*z+1e3*t.getSeconds()+t.getMilliseconds()}function a(t){var e=new Date(2100,0,1);return e.setMinutes(-t),e}function s(t,e,i){var a,s=n(e),o=n(i);return!t||s==o||(a=n(t),s>a&&(a+=G),o<s&&(o+=G),a>=s&&a<=o)}function o(t){var e=t.parseFormats;t.format=M(t.format||x.getCulture(t.culture).calendars.standard.patterns.t),e=it(e)?e:[e],e.splice(0,0,t.format),t.parseFormats=e}function l(t){t.preventDefault()}function r(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function u(t,e){var i,n=e.calendar;return"string"==typeof t&&(i=n.patterns[t]?n.patterns[t]:t),i||(i=n.patterns.d),i}function c(t,e){var i=t[t.length-1];i&&"LITERAL"===i.type?i.pattern+=e:t.push({type:lt,pattern:e})}function d(t){return"h"===t||"K"===t}function h(t){var e;return t<=3?e="abbreviated":4===t?e="wide":5===t?e="narrow":6===t&&(e="short"),e}function p(t,e,i){return i=i||0,t.indexOf(e,i)===i}function f(t,e){var i=!1;return t.indexOf(e)!==-1&&(i=!0),i}function m(t){for(var e,i,n,a,s,o,l,r=x.culture(),f=u(t,r),m=[],_=ot.lastIndex=0,g=ot.exec(f);g;)l=g[0],_<g.index&&c(m,f.substring(_,g.index)),p(l,'"')||p(l,"'")?c(m,l):(e=l[0],i=pt[e],n={type:i,pattern:l},"hour"===i&&(n.hour12=d(l)),a=ft[i],a&&(s="number"==typeof a.minLength?a.minLength:a.minLength[e],o=l.length,o>=s&&(n.names={type:a.type,nameType:h(o),standAlone:a.standAlone===e})),m.push(n)),_=ot.lastIndex,g=ot.exec(f);return _<f.length&&c(m,f.substring(_)),m}function _(t,e){for(var i=t+"";i.length<(e||2);)i="0"+i;return i}function g(t,e){return Math.max(Math.round(t/e),0)}function v(t){return t.length&&t[0].getBoundingClientRect().height}function w(t,e){function i(t,e){return{start:t,length:e,end:t+e}}function n(t,i){return!1===e||i.start<t.end&&t.start<i.end?Math.min(t.start,Math.max(i.start,t.end-i.length)):(t.start+t.end-i.length)/2}function a(t,e){return{x:t,y:e,translate:function(i,n){return a(t+i,e+n)}}}function s(t,e){for(;t;)e=e.translate(t.offsetLeft,t.offsetTop),t=t.offsetParent;return e}for(var o,l=s(t,a(0,0)),r=a(t.offsetWidth,t.offsetHeight),u=t.parentNode;u instanceof HTMLElement;)o=s(u,a(u.clientLeft,u.clientTop)),u.scrollLeft=n(i(l.x-o.x,r.x),i(u.scrollLeft,u.clientWidth)),u.scrollTop=n(i(l.y-o.y,r.y),i(u.scrollTop,u.clientHeight)),l=l.translate(-u.scrollLeft,-u.scrollTop),u=u.parentNode}var k,y,x=window.kendo,b=x.keys,T=x.parseDate,S=x._activeElement,M=x._extractFormat,V=x.support,D=V.browser,C=x.ui,H=C.Widget,L="open",I="close",R="change",A=".kendoTimePicker",P="click"+A,F="k-state-default",O="disabled",E="readonly",q="li",W="<span></span>",N="k-state-focused",B="k-state-hover",Y="mouseenter"+A+" mouseleave"+A,K="mousedown"+A,z=6e4,G=864e5,j="k-state-selected",Q="k-state-disabled",U="aria-selected",X="aria-expanded",Z="aria-hidden",J="aria-disabled",$="aria-readonly",tt="aria-activedescendant",et="id",it=t.isArray,nt=t.extend,at=t.proxy,st=Date,ot=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g,lt="literal",rt="month",ut="hour",ct="zone",dt="weekday",ht="quarter",pt={G:"era",y:"year",q:ht,Q:ht,M:rt,L:rt,d:"day",E:dt,c:dt,e:dt,h:ut,H:ut,k:ut,K:ut,m:"minute",s:"second",a:"dayperiod",x:ct,X:ct,z:ct,Z:ct},ft={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},mt=new st,_t='<div tabindex="0" class="k-timeselector"><div class="k-time-header"><span class="k-title"></span><button class="k-button k-flat k-time-now" title="Select now" aria-label="Select now">#=messages.now#</button></div><div class="k-time-list-container"><span class="k-time-highlight"></span></div></div>',gt='<div class="k-time-footer k-action-buttons"><button class="k-button k-time-cancel" title="Cancel changes" aria-label="Cancel changes">#=messages.cancel#</button><button class="k-time-accept k-button k-primary" title="Set time" aria-label="Set time">#=messages.set#</button></div>',vt='<span class="k-time-highlight"></span>';mt=new Date(mt.getFullYear(),mt.getMonth(),mt.getDate(),0,0,0),k=function(t){var e=this,i=t.id;e.options=t,e._dates=[],e._createList(t.timeView&&"scroll"===t.timeView.list),i&&(e._timeViewID=i+"_timeview",e._optionID=i+"_option_selected",e.ul.attr(et,e._timeViewID)),e._heightHandler=at(e._height,e),e._popup()},k.prototype={_createList:function(t){t?this._createScrollList():this._createClassicRenderingList()},_createScrollList:function(){this.list=t(x.template(_t)(this.options)).on(K,l),this.options.omitPopup||this.list.append(x.template(gt)(this.options)),this.ul=this.list.find(".k-time-list-container"),this.list.on("click"+A,".k-time-header button.k-time-now",at(this._nowClickHandler,this)),this.list.on("click"+A,".k-time-footer button.k-time-cancel",at(this._cancelClickHandler,this)),this.list.on("click"+A,".k-time-footer button.k-time-accept",at(this._setClickHandler,this)),this.list.on("mouseover"+A,".k-time-list-wrapper",at(this._mouseOverHandler,this)),this.list.on("keydown"+A,at(this._scrollerKeyDownHandler,this))},_scrollerKeyDownHandler:function(e){var i=this,n=e.keyCode,a=t(e.currentTarget).find(".k-time-list-wrapper.k-state-focused"),s=i.list.find(".k-time-list-wrapper"),o=s.length,l=s.index(a),r=x.support.isRtl(i.wrapper),u=v(a.find(".k-item:visible:eq(0)")),c=a.find(".k-time-container.k-content.k-scrollable");a.length&&(n==b.RIGHT&&!r||n==b.LEFT&&r?l+1<o&&i._focusList(s.eq(l+1)):n==b.LEFT&&!r||n==b.RIGHT&&r?l-1>=0&&i._focusList(s.eq(l-1)):n==b.UP?(c.scrollTop(c.scrollTop()-u),e.preventDefault()):n==b.DOWN?(c.scrollTop(c.scrollTop()+u),e.preventDefault()):n===b.ENTER?i._setClickHandler():n===b.ESC&&i._cancelClickHandler())},_mouseOverHandler:function(e){this._focusList(t(e.currentTarget))},_focusList:function(t){this.list.find(".k-time-list-wrapper").removeClass(N),t.addClass(N),this.list.focus(),this._scrollTop=t.find(".k-scrollable").scrollTop()},_createClassicRenderingList:function(){var e=this;e.ul=t('<ul tabindex="-1" role="listbox" aria-hidden="true" unselectable="on" class="k-list k-reset"/>').css({overflow:V.kineticScrollNeeded?"":"auto"}).on(P,q,at(e._click,e)).on("mouseenter"+A,q,function(){t(this).addClass(B)}).on("mouseleave"+A,q,function(){t(this).removeClass(B)}),e.list=t("<div class='k-list-container k-list-scroller' unselectable='on'/>").append(e.ul).on(K,l),e.template=x.template('<li tabindex="-1" role="option" class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})},current:function(i){var n=this,a=n.options.active;return i===e?n._current:(n._current&&(n._current.removeClass(j),n._current&&n._current.length&&(n._current[0].removeAttribute(et),n._current[0].removeAttribute(U))),i&&(i=t(i).addClass(j).attr(et,n._optionID).attr(U,!0),n.scroll(i[0])),n._current=i,a&&a(i),e)},_updateTitle:function(){this.list.find(".k-time-header > .k-title").html(x.toString(this._value,this.options.format,this.options.culture))},applyValue:function(t){var e,i,n,a,s,o,l,r,u,c;t&&(e=f(this.options.format.toLowerCase(),"t"),i=t.getHours(),n=t.getMinutes(),a=t.getSeconds(),o=x.attr("index"),l=this.ul.find("["+o+'="1"]'),r=this.ul.find("["+o+'="2"]'),u=this.ul.find("["+o+'="3"]'),c=this.ul.find("["+o+'="4"]'),e&&(i>=12?(s="PM",i>12&&(i-=12)):(s="AM",0===i&&(i=12))),this._internalScroll=!0,l.length&&this._scrollListToPosition(l,i),r.length&&this._scrollListToPosition(r,n),u.length&&this._scrollListToPosition(u,a),c.length&&this._scrollListToPosition(c,s),this._internalScroll=!1)},_scrollListToPosition:function(t,e){var i=t.find('.k-item[data-value="'+_(e)+'"]'),n=v(i);t.scrollTop(t.find(".k-item:visible").index(i)*n)},close:function(){this.popup.close()},destroy:function(){var t=this;t.ul.off(A),t.list.off(A),this.popup&&t.popup.destroy()},open:function(){var t,e=this;(!e.ul[0].firstChild||e.ul.find("li").length<1)&&e.bind(),t=e.popup._hovered,e.popup._hovered=!0,e.popup.open(),setTimeout(function(){e.popup._hovered=t},1),e._current&&e.scroll(e._current[0])},dataBind:function(t){for(var e,i=this,n=i.options,a=n.format,o=x.toString,l=i.template,r=t.length,u=0,c="";u<r;u++)e=t[u],s(e,n.min,n.max)&&(c+=l(o(e,a,n.culture)));i._html(c)},refresh:function(){var t,e,s=this,o=s.options,l=o.format,u=i(),c=u<0,d=x.parseDate(s._value),h=d?r(d,o.min):r(new Date,o.min),p=o.min,f=o.max,_=n(p),g=n(f),v=n(a(o.interval)),w=o.interval*z,k=x.toString,y=s.template,b=o.useValueToRender?h:new Date((+o.min)),T=new st(b),S="";e=c?(G+u*z)/w:G/w,_==g&&v!==g||(_>g&&(g+=G),e=(g-_)/w+1),o.timeView&&"scroll"===o.timeView.list?S=s._createListContent(m(l)):s.getDatesInRange(t,g,T,f,w,b).forEach(function(t){S+=y(k(t,l,o.culture))}),s._html(S)},_showAllHiddenItems:function(){var e,i,n=this.list.find(".k-time-container"),a=n.length;for(i=0;i<a;i++)e=t(n[i]),e.find(".k-item:hidden").show(),this._updateListBottomOffset(e)},_updateListBottomOffset:function(t){var e=v(t.find(".k-item:visible:eq(0)")),i=t.outerHeight(),n=i-e;t.find(".k-scrollable-placeholder").css({height:t.find("ul").height()+n})},_updateHoursRange:function(){var e,i,n=this,a=x.attr("index"),s=this.ul.find("["+a+'="1"]'),o=this._minHours,l=this._maxHours,r=f(this.options.format.toLowerCase(),"t"),u=this._findSelectedValue(this.ul.find("["+a+'="4"]'));s.length&&(r&&u?("AM"===u?(o<12&&(i=!0),l<12&&(e=!0)):"PM"===u&&(o>12&&(i=!0,o-=12),l>12&&(e=!0,l-=12)),s.find(".k-item").each(function(a,s){s=t(s);var r=+s.attr("data-value");n._validateMin&&i&&r<o||n._validateMax&&e&&r>l?s.hide():s.show()})):s.find(".k-item").each(function(e,i){i=t(i);var a=+i.attr("data-value");n._validateMin&&a<o||n._validateMax&&a>l?i.hide():i.show()}),this._updateListBottomOffset(s))},_updateMinutesRange:function(){var e=this,i=x.attr("index"),n=this.ul.find("["+i+'="2"]'),a=this._minHours,s=this._maxHours,o=this._minMinutes,l=this._maxMinutes,r=+this._findSelectedValue(this.ul.find("["+i+'="1"]')),u=f(this.options.format.toLowerCase(),"t"),c=this._findSelectedValue(this.ul.find("["+i+'="4"]'));u&&"PM"===c&&(r+=12),n.length&&(n.find(".k-item").each(function(i,n){n=t(n);var u=+n.attr("data-value");e._validateMin&&u<o&&a&&r===a||e._validateMax&&u>l&&s&&r===s?n.hide():n.show()}),this._updateListBottomOffset(n))},_updateSecondsRange:function(){var e=this,i=x.attr("index"),n=this.ul.find("["+i+'="3"]'),a=this._minSeconds,s=this._minSeconds,o=this._minMinutes,l=this._maxMinutes,r=+this._findSelectedValue(this.ul.find("["+i+'="2"]'));n.length&&(n.find(".k-item").each(function(i,n){n=t(n);var u=+n.attr("data-value");e._validateMin&&u<a&&o&&r===o||e._validateMax&&u>s&&l&&r===l?n.hide():n.show()}),this._updateListBottomOffset(n))},_updateDesignatorRange:function(){var t=this._minHours,e=this._maxHours,i=x.attr("index"),n=this.ul.find("["+i+'="4"]');n.length&&(this._validateMin&&t>=12?n.find('.k-item[data-value="AM"]').hide():n.find('.k-item[data-value="AM"]').show(),this._validateMax&&e<12?n.find('.k-item[data-value="PM"]').hide():n.find('.k-item[data-value="PM"]').show())},_updateRanges:function(){var t,i;if(this.options.specifiedRange){if(this._currentlySelected||(this._currentlySelected=new Date),t=this.options.max,i=this.options.min,this.options.validateDate){if(this._validateMax=t.getFullYear()===this._currentlySelected.getFullYear()&&t.getMonth()===this._currentlySelected.getMonth()&&t.getDate()===this._currentlySelected.getDate(),this._validateMin=i.getFullYear()===this._currentlySelected.getFullYear()&&i.getMonth()===this._currentlySelected.getMonth()&&i.getDate()===this._currentlySelected.getDate(),!this._validateMax&&!this._validateMin)return this._showAllHiddenItems(),e}else this._validateMax=!0,this._validateMin=!0;this._minMinutes=i.getMinutes(),this._maxMinutes=t.getMinutes(),this._minHours=i.getHours(),this._maxHours=t.getHours(),this._minSeconds=i.getSeconds(),this._maxSeconds=t.getSeconds(),this._updateDesignatorRange(),this._updateHoursRange(),this._updateMinutesRange(),this._updateSecondsRange()}},addTranslate:function(){var t,e,i,n,a,s,o,l=this.ul.find(".k-time-container.k-content.k-scrollable"),r=l.length;for(o=0;o<r;o++)t=l.eq(o),e=v(t.find(".k-item:visible:eq(0)")),i=t.outerHeight(),n=(i-e)/2,a="translateY("+n+"px)",s=i-e,t.find("ul").css({transform:a,"-ms-transform":a}),t.find(".k-scrollable-placeholder").css({height:t.find("ul").height()+s}),t.off(A).on("click"+A,".k-item",at(this._itemClickHandler,this)).on("scroll"+A,at(this._listScrollHandler,this))},_nowClickHandler:function(){var t=new Date;this.value(t),this.options.change(x.toString(t,this.options.format,this.options.culture))},_cancelClickHandler:function(){this.value(this._value),this.popup.close()},_setClickHandler:function(){this._value=new Date(this._currentlySelected),this.options.change(x.toString(this._currentlySelected,this.options.format,this.options.culture),!0),this.popup.close()},_listScrollHandler:function(e){var i=this,n=v(t(e.currentTarget).find(".k-item:visible:eq(0)"));i._internalScroll||(i._scrollingTimeout&&clearTimeout(i._scrollingTimeout),i._scrollingTimeout=setTimeout(function(){e.currentTarget.scrollTop%n>1&&(e.currentTarget.scrollTop+=n-e.currentTarget.scrollTop%n),i._scrollTop=e.currentTarget.scrollTop,i._updateCurrentlySelected(),i._updateRanges()},100))},_updateCurrentlySelected:function(){var t,i,n,a,s=f(this.options.format.toLowerCase(),"t"),o=x.attr("index"),l=this.ul.find("["+o+'="1"]'),r=this.ul.find("["+o+'="2"]'),u=this.ul.find("["+o+'="3"]'),c=this.ul.find("["+o+'="4"]');this.ul.is(":visible")&&(this._currentlySelected||(this._currentlySelected=this._value?new Date(this._value):new Date),l.length&&(t=+this._findSelectedValue(l)),r.length&&(i=+this._findSelectedValue(r)),u.length&&(n=+this._findSelectedValue(u)),c.length&&(a=this._findSelectedValue(c)),s&&("PM"==a&&(t+=12,24==t&&(t=12)),"AM"===a&&12===t&&(t=0)),t!==e&&this._currentlySelected.setHours(t),i!==e&&this._currentlySelected.setMinutes(i),n!==e&&this._currentlySelected.setSeconds(n))},_findSelectedValue:function(t){var e=g(t.scrollTop(),v(t.find(".k-item:visible:eq(0)")));return t.find(".k-item:visible").eq(e).attr("data-value")},_itemClickHandler:function(e){var i=t(e.originalEvent.currentTarget),n=i.find(".k-item:visible").index(t(e.currentTarget)),a=v(i.find(".k-item:visible:eq(0)"));i.scrollTop(n*a)},getDatesInRange:function(t,e,i,a,s,o){for(var l=[];;){if(e&&(n(o)>=e||i.getDate()!=o.getDate())){t=n(o),i<o&&(t+=G),t>e&&(o=new st((+a))),n(o)>0&&l.push(new Date(o));break}if(i.getDate()!=o.getDate())break;if(l.push(new Date(o)),o.setTime(o.getTime()+s),!e&&this.options.maxSet)break}return l},_createListContent:function(t){var e,i,n,a=t.length,s="";for(n=0;n<a;n++)e=t[n],"literal"===e.type?s+=this._literalTemplate(e):(i=this._getValues(e,!0),s+=this._itemTemplate(i.values,e,this.options.messages[e.type],i.index));return s},_itemTemplate:function(t,e,i,n){var a,s="",o=t.length,l=x.attr("index");for(s+='<div class="k-time-list-wrapper" role="presentation"><span class="k-title">'+(i||e.type)+'</span><div class="k-time-list"><div class="k-time-container k-content k-scrollable" role="presentation" '+l+'="'+n+'"><ul class="k-reset">',a=0;a<o;a++)s+='<li class="k-item" data-value="'+t[a]+'"><span>'+t[a]+"</span></li>";return s+='</ul><div class="k-scrollable-placeholder"></div></div></div></div>'},_getValues:function(t,e){var i,n,a=[],s=0;for("hour"===t.type?(s=t.hour12?1:0,i=1,n=t.hour12?12:23):"minute"===t.type?(i=2,n=59):"second"===t.type&&(i=3,n=59);s<=n;s++)a.push(e?_(s):s);return{values:a,index:i}},_literalTemplate:function(t){var e='<div class="k-time-separator">'+(" tt"===t.pattern?":":t.pattern)+"</div>";return" tt"===t.pattern&&(e+=this._itemTemplate(["AM","PM"],t,"AM/PM",4)),e},bind:function(){var t=this,e=t.options.dates;e&&e[0]?t.dataBind(e):t.refresh()},_html:function(t){var e=this;e.options.timeView&&"scroll"===e.options.timeView.list?(t=vt+t,e.ul.html(t)):(e.ul[0].innerHTML=t,e.popup.unbind(L,e._heightHandler),e.popup.one(L,e._heightHandler),e.current(null),e.select(e._value))},scroll:function(t){t&&(t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():w(t))},select:function(e){var i,n=this,a=n.options,s=n._current;e instanceof Date&&(e=x.toString(e,a.format,a.culture)),"string"==typeof e&&(s&&s.text()===e?e=s:(e=t.grep(n.ul[0].childNodes,function(t){return(t.textContent||t.innerText)==e}),e=e[0]?e:null)),i=n._distinctSelection(e),n.current(i)},_distinctSelection:function(e){var i,a,s=this;return e&&e.length>1&&(i=n(s._value),a=t.inArray(i,s._dates),e=s.ul.children()[a]),e},setOptions:function(t){var e=this.options;t.min=T(t.min),t.max=T(t.max),this.options=nt(e,t,{active:e.active,change:e.change,close:e.close,open:e.open}),this.bind()},toggle:function(){var t=this;t.popup.visible()?t.close():t.open()},value:function(t){var e=this;e._value=t,e.ul[0].firstChild&&(e.options.timeView&&"scroll"===e.options.timeView.list?e.applyValue(t):e.select(t))},_click:function(e){var i=this,n=t(e.currentTarget),a=n.text(),s=i.options.dates;s&&s.length>0&&(a=s[n.index()]),e.isDefaultPrevented()||(i.select(n),i.options.change(a,!0),i.close())},_height:function(){var t=this,e=t.list,i=e.parent(".k-animation-container"),n=t.options.height;t.ul[0].children.length&&e.add(i).show().height(t.ul[0].scrollHeight>n?n:"auto").hide()},_parse:function(t){var e=this,i=e.options,a=n(i.min)!=n(mt)?i.min:null,s=n(i.max)!=n(mt)?i.max:null,o=e._value||a||s||mt;return t instanceof st?t:(t=T(t,i.parseFormats,i.culture),t&&(t=new st(o.getFullYear(),o.getMonth(),o.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())),t)},_adjustListWidth:function(){var t,e,i=this.list,n=i[0].style.width,a=this.options.anchor,s=x._outerWidth;!i.data("width")&&n||(t=window.getComputedStyle?window.getComputedStyle(a[0],null):0,e=t?parseFloat(t.width):s(a),t&&(D.mozilla||D.msie)&&(e+=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth)),n=e-(s(i)-i.width()),i.css({fontFamily:a.css("font-family"),width:n}).data("width",n))},_popup:function(){var t=this,e=t.list,i=t.options,n=i.anchor;this.options.omitPopup?e.appendTo(i.timeDiv):t.popup=new C.Popup(e,nt(i.popup,{anchor:n,open:i.open,close:i.close,animation:i.animation,isRtl:V.isRtl(i.anchor),activate:function(){t.options.timeView&&"scroll"===t.options.timeView.list&&(t.addTranslate(),t._value?t.applyValue(t._value):t._updateCurrentlySelected(),t._updateRanges(),t._focusList(t.list.find(".k-time-list-wrapper:eq(0)")))}}))},move:function(t){var i=this,n=t.keyCode,a=i.ul[0],s=i._current,o=n===b.DOWN;if(n===b.UP||o){if(t.altKey)return i.toggle(o),e;s=o?s?s[0].nextSibling:a.firstChild:s?s[0].previousSibling:a.lastChild,s&&i.select(s),i.options.change(i._current.text()),t.preventDefault()}else n!==b.ENTER&&n!==b.TAB&&n!==b.ESC||(t.preventDefault(),s&&i.options.change(s.text(),!0),i.close())}},k.getMilliseconds=n,x.TimeView=k,y=H.extend({init:function(e,i){var a,s,l,r,u,c,d=this;i=i||{},i.componentType=i.componentType||"classic",H.fn.init.call(d,e,i),e=d.element,i=d.options,i.min=T(e.attr("min"))||T(i.min),i.max=T(e.attr("max"))||T(i.max),+i.max==+mt&&+i.min==+mt||(this._specifiedRange=!0),o(i),d._initialOptions=nt({},i),d._wrapper(),d.options.timeView&&"scroll"===d.options.timeView.list&&(d.options.height=null),d.timeView=s=new k(nt({},i,{id:e.attr(et),anchor:d.wrapper,format:i.format,change:function(t,i){i?d._change(t):e.val(t)},open:function(t){d.options.timeView&&"scroll"!==d.options.timeView.list?d.timeView._adjustListWidth():d.timeView._updateTitle(),d.trigger(L)?t.preventDefault():(e.attr(X,!0),a.attr(Z,!1))},close:function(t){d.trigger(I)?t.preventDefault():(e.attr(X,!1),a.attr(Z,!0))},active:function(t){e&&e.length&&e[0].removeAttribute(tt),t&&e.attr(tt,s._optionID)},specifiedRange:d._specifiedRange,maxSet:+i.max!=+mt})),a=s.ul,d._icon(),d._reset();try{e[0].setAttribute("type","text")}catch(h){e[0].type="text"}e.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-owns":s._timeViewID,autocomplete:"off"}),l=e.is("[disabled]")||t(d.element).parents("fieldset").is(":disabled"),l?d.enable(!1):d.readonly(e.is("[readonly]")),i.dateInput&&(r=i.min,u=i.max,c=new st,n(r)==n(u)&&(r=new st(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0),u=new st(c.getFullYear(),c.getMonth(),c.getDate(),24,0,0)),d._dateInput=new C.DateInput(e,{culture:i.culture,format:i.format,min:r,max:u,value:i.value,interval:i.interval})),d._old=d._update(i.value||d.element.val()),d._oldText=e.val(),x.notify(d)},options:{name:"TimePicker",min:mt,max:mt,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{},dateInput:!1,messages:{set:"Set",cancel:"Cancel",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",now:"Now"},componentType:"classic"},events:[L,I,R],componentTypes:{classic:{timeView:{list:"list"}},modern:{timeView:{list:"scroll"}}},setOptions:function(t){var e=this,i=e._value;H.fn.setOptions.call(e,t),t=e.options,+t.max==+mt&&+t.min==+mt||(this._specifiedRange=!0),o(t),e.timeView.setOptions(t),i&&e.element.val(x.toString(i,t.format,t.culture))},dataBind:function(t){it(t)&&this.timeView.dataBind(t)},_editable:function(t){var e=this,i=t.disable,n=t.readonly,a=e._arrow.off(A),s=e.element.off(A),o=e._inputWrapper.off(A);e._dateInput&&e._dateInput._unbindInput(),n||i?(o.addClass(i?Q:F).removeClass(i?F:Q),s.attr(O,i).attr(E,n).attr(J,i).attr($,n)):(o.addClass(F).removeClass(Q).on(Y,e._toggleHover),s&&s.length&&(s[0].removeAttribute(O),s[0].removeAttribute(E)),s.attr(J,!1).attr($,!1).on("keydown"+A,at(e._keydown,e)).on("focusout"+A,at(e._blur,e)).on("focus"+A,function(){e._inputWrapper.addClass(N)}),e._dateInput&&e._dateInput._bindInput(),a.on(P,at(e._click,e)).on(K,l))},readonly:function(t){this._editable({readonly:t===e||t,disable:!1})},enable:function(t){this._editable({readonly:!1,disable:!(t=t===e||t)})},destroy:function(){var t=this;H.fn.destroy.call(t),t.timeView.destroy(),t.element.off(A),t._arrow.off(A),t._inputWrapper.off(A),t._form&&t._form.off("reset",t._resetHandler)},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(t){return t&&(this._specifiedRange=!0),this._option("min",t)},max:function(t){return t&&this.timeView?(this._specifiedRange=!0,this.timeView.options.maxSet=!0):this.timeView&&(this.timeView.options.maxSet=!1),this._option("max",t)},value:function(t){var i=this;return t===e?i._value:(i._old=i._update(t),null===i._old&&i.element.val(""),i._oldText=i.element.val(),e)},_blur:function(){var t=this,e=t.element.val();t.options.timeView&&"scroll"===t.options.timeView.list||t.close(),e!==t._oldText&&t._change(e),t._inputWrapper.removeClass(N)},_click:function(){var t=this,e=t.element;t.timeView.toggle(),V.touch||e[0]===S()||e.trigger("focus")},_change:function(t){var e,i,n,a=this,s=a.element.val();t=a._update(t),e=!x.calendar.isEqualDate(a._old,t),i=e&&!a._typing,n=s!==a.element.val(),(i||n)&&a.element.trigger(R),e&&(a._old=t,a._oldText=a.element.val(),a.trigger(R)),a._typing=!1},_icon:function(){var e,i=this,n=i.element;e=n.next("span.k-select"),e[0]||(e=t('<span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-clock"></span></span>').insertAfter(n)),i._arrow=e.attr({role:"button","aria-controls":i.timeView._timeViewID})},_keydown:function(t){var e=this,i=t.keyCode,n=e.timeView,a=e.element.val();n.popup.visible()||t.altKey?(n.move(t),e._dateInput&&t.stopImmediatePropagation&&t.stopImmediatePropagation()):i===b.ENTER&&a!==e._oldText?e._change(a):e._typing=!0},_option:function(t,i){var n=this,a=n.options;return i===e?a[t]:(i=n.timeView._parse(i),i&&(i=new st((+i)),a[t]=i,n.timeView.options[t]=i,n.timeView.bind()),e)},_toggleHover:function(e){t(e.currentTarget).toggleClass(B,"mouseenter"===e.type)},_update:function(t){var e=this,i=e.options,n=e.timeView,a=n._parse(t);return s(a,i.min,i.max)||(a=null),e._value=a,e._currentlySelected=a,e._dateInput&&a?e._dateInput.value(a||t):e.element.val(x.toString(a||t,i.format,i.culture)),n.value(a),a},_wrapper:function(){var e,i=this,n=i.element;e=n.parents(".k-timepicker"),e[0]||(e=n.wrap(W).parent().addClass("k-picker-wrap k-state-default"),e=e.wrap(W).parent()),e[0].style.cssText=n[0].style.cssText,i.wrapper=e.addClass("k-widget k-timepicker").addClass(n[0].className),n.css({width:"100%",height:n[0].style.height}),i._inputWrapper=t(e[0].firstChild)},_reset:function(){var e=this,i=e.element,n=i.attr("form"),a=n?t("#"+n):i.closest("form");a[0]&&(e._resetHandler=function(){e.value(i[0].defaultValue),e.max(e._initialOptions.max),e.min(e._initialOptions.min)},e._form=a.on("reset",e._resetHandler))}}),C.plugin(y)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()});;!function(e,define){define("kendo.datetimepicker.min",["kendo.datepicker.min","kendo.timepicker.min"],e)}(function(){return function(e,t){function a(e){var t=new Date(2100,0,1);return t.setMinutes(-e),t}function i(e){e.preventDefault()}function n(t){var a,i=o.getCulture(t.culture).calendars.standard.patterns,n=!t.parseFormats.length;t.format=u(t.format||i.g),t.timeFormat=a=u(t.timeFormat||i.t),o.DateView.normalize(t),n&&t.parseFormats.unshift("yyyy-MM-ddTHH:mm:ss"),e.inArray(a,t.parseFormats)===-1&&t.parseFormats.push(a)}var o=window.kendo,s=o.TimeView,l=o.parseDate,r=o.support,p=o._activeElement,u=o._extractFormat,m=o.calendar,d=m.isInRange,c=m.restrictValue,_=m.isEqualDatePart,v=s.getMilliseconds,g=o.ui,f=g.Widget,h="open",w="close",k="change",b=".kendoDateTimePicker",y="click"+b,V=r.mouseAndTouchPresent?o.applyEventMap("up",b.slice(1)):y,x="disabled",T="readonly",D="k-state-default",I="k-state-focused",C="k-state-hover",A="k-state-disabled",P="mouseenter"+b+" mouseleave"+b,F="mousedown"+b,S="month",R="<span/>",H="aria-activedescendant",M="aria-expanded",O="aria-hidden",E="aria-owns",W="aria-disabled",B="aria-readonly",q=Date,N=new q(1800,0,1),Y=new q(2099,11,31),j={view:"date"},z={view:"time"},K=e.extend,L='<div class="k-date-tab k-datetime-wrap"><div class="k-datetime-buttongroup"><div class="k-button-group k-button-group-stretched"><button class="k-button k-state-active k-group-start">#=messages.date#</button><button class="k-button k-group-end">#=messages.time#</button></div></div><div class="k-datetime-selector"><div class="k-datetime-calendar-wrap"></div><div class="k-datetime-time-wrap"></div></div><div class="k-datetime-footer k-action-buttons"><button class="k-button k-time-cancel" title="Cancel" aria-label="Cancel">#=messages.cancel#</button><button class="k-time-accept k-button k-primary" title="Set" aria-label="Set">#=messages.set#</button></div></div>',Q="k-state-active",G=f.extend({init:function(t,a){var i,s=this;a=a||{},a.componentType=a.componentType||"classic",f.fn.init.call(s,t,a),t=s.element,a=s.options,a.disableDates=o.calendar.disabled(a.disableDates),a.min=l(t.attr("min"))||l(a.min),a.max=l(t.attr("max"))||l(a.max),+a.max==+Y&&+a.min==+N||(this._specifiedRange=!0),n(a),s._initialOptions=K({},a),s._wrapper(),a.singlePopup&&s._popup(),s._views(),s._icons(),s._reset(),s._template();try{t[0].setAttribute("type","text")}catch(r){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,autocomplete:"off"}),s._midnight=s._calculateMidnight(a.min,a.max),i=t.is("[disabled]")||e(s.element).parents("fieldset").is(":disabled"),i?s.enable(!1):s.readonly(t.is("[readonly]")),s._createDateInput(a),s._old=s._update(a.value||s.element.val()),s._oldText=t.val(),o.notify(s)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],disableDates:null,min:new q(N),max:new q(Y),interval:30,height:200,footer:"",start:S,depth:S,animation:{},month:{},ARIATemplate:"Current focused #=data.valueType# is #=data.text#",dateButtonText:"Open the date view",timeButtonText:"Open the time view",dateInput:!1,weekNumber:!1,messages:{set:"Set",cancel:"Cancel",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",now:"Now",date:"Date",time:"Time",today:"Today"},componentType:"classic"},events:[h,w,k],componentTypes:{classic:{singlePopup:!1,timeView:{list:"list"}},modern:{singlePopup:!0,timeView:{list:"scroll"}}},setOptions:function(e){var t,a,i,s=this,r=s._value;f.fn.setOptions.call(s,e),e=s.options,e.min=t=l(e.min),e.max=a=l(e.max),n(e),s._midnight=s._calculateMidnight(e.min,e.max),i=e.value||s._value||s.dateView._current,t&&!_(t,i)&&(t=new q(N)),a&&!_(a,i)&&(a=new q(Y)),s.dateView.setOptions(e),s.timeView.setOptions(K({},e,{format:e.timeFormat,min:t,max:a})),s._createDateInput(e),s._dateInput||s.element.val(o.toString(r,e.format,e.culture)),r&&s._updateARIA(r)},_editable:function(t){var a=this,n=a.element.off(b),s=a._dateIcon.off(b),l=a._timeIcon.off(b),r=a._inputWrapper.off(b),p=t.readonly,u=t.disable;p||u?(r.addClass(u?A:D).removeClass(u?D:A),n.attr(x,u).attr(T,p).attr(W,u).attr(B,p)):(r.addClass(D).removeClass(A).on(P,a._toggleHover),n&&n.length&&(n[0].removeAttribute(x),n[0].removeAttribute(T,!1),n[0].removeAttribute(W,!1),n[0].removeAttribute(B,!1)),n.on("keydown"+b,e.proxy(a._keydown,a)).on("focus"+b,function(){a._inputWrapper.addClass(I)}).on("focusout"+b,function(){a._inputWrapper.removeClass(I),n.val()!==a._oldText&&(a._change(n.val()),n.val()||a.dateView.current(o.calendar.getToday())),a.options.singlePopup||(a.close("date"),a.close("time"))}),s.on(F,i).on(V,function(e){a.toggle("date"),a._focusElement(e.type)}),l.on(F,i).on(V,function(e){a.toggle("time"),a._focusElement(e.type)}))},_focusElement:function(e){var t=this.element;r.touch&&(!r.mouseAndTouchPresent||(e||"").match(/touch/i))||t[0]===p()||t.trigger("focus")},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},destroy:function(){var e=this;f.fn.destroy.call(e),e.dateView.destroy(),e.timeView.destroy(),e.options.singlePopup&&(e.popup.element.off(b),e.popup.destroy()),e.element.off(b),e._dateIcon.off(b),e._timeIcon.off(b),e._inputWrapper.off(b),e._form&&e._form.off("reset",e._resetHandler)},close:function(e){this.options.singlePopup?this.popup.close():("time"!==e&&(e="date"),this[e+"View"].close())},open:function(e){var t,a=this;a.options.singlePopup?(a.dateView._calendar(),a.timeView.ul.find("li").length<1&&a.timeView.bind(),t=a.popup._hovered,a.popup._hovered=!0,a.popup.open(),"time"===e?a._switchToTimeView():a._switchToDateView(),this._dateIcon.toggle("time"!==e),this._timeIcon.toggle("time"===e),setTimeout(function(){a.popup._hovered=t},1)):("time"!==e&&(e="date"),this[e+"View"].open())},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},toggle:function(e){if(this.options.singlePopup)this.popup.visible()?this.close():this.open(e);else{var t="timeView";"time"!==e?e="date":t="dateView",this[e+"View"].toggle(),this[t].close()}},value:function(e){var a=this;return e===t?a._value:(a._old=a._update(e),null===a._old&&a.element.val(""),a._oldText=a.element.val(),t)},_change:function(e){var t,a,i,n=this,o=n.element.val();e=n._update(e),t=+n._old!=+e,a=t&&!n._typing,i=o!==n.element.val(),(a||i)&&n.element.trigger(k),t&&(n._old=e,n._oldText=n.element.val(),n.trigger(k)),n._typing=!1},_option:function(e,i){var n,o,s=this,r=s.options,p=s.timeView,u=p.options,m=s._value||s._old;if(i===t)return r[e];if(i=l(i,r.parseFormats,r.culture),u.maxSet=!1,i){if(r.min.getTime()===r.max.getTime()&&(u.dates=[]),r[e]=new q(i.getTime()),s.dateView[e](i),s._midnight=s._calculateMidnight(r.min,r.max),m&&(n=_(r.min,m),o=_(r.max,m)),n||o){if(u[e]=i,n&&!o&&(u.max=a(r.interval)),o){if(s._midnight)return p.dataBind([Y]),t;n||(u.min=N,u.maxSet=!0)}}else u.max=Y,u.min=N;p.bind()}},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_update:function(t){var i,n,s,r,p,u=this,m=u.options,v=m.min,g=m.max,f=m.dates,h=u.timeView,w=u._value,b=l(t,m.parseFormats,m.culture),y=null===b&&null===w||b instanceof Date&&w instanceof Date;return m.disableDates&&m.disableDates(b)&&(b=null,u._old||u.element.val()||(t=null)),+b===+w&&y?(p=o.toString(b,m.format,m.culture),p!==t&&(u.element.val(null===b?t:p),t instanceof String&&u.element.trigger(k)),b):(null!==b&&_(b,v)?b=c(b,v,g):d(b,v,g)||(b=null),u._value=b,h.value(b),u.dateView.value(b),b&&(s=u._old,n=h.options,n.maxSet=!1,f[0]&&(f=e.grep(f,function(e){return _(b,e)}),f[0]&&(h.dataBind(f),r=!0)),r||(_(b,v)&&(n.min=v,n.max=a(m.interval),i=!0),_(b,g)&&(u._midnight?(h.dataBind([Y]),r=!0):(n.max=g,n.maxSet=!0,i||(n.min=N),i=!0))),!r&&(!s&&i||s&&!_(s,b))&&(i||(n.max=Y,n.min=N),h.bind())),u._dateInput&&b?u._dateInput.value(b||t):u.element.val(o.toString(b||t,m.format,m.culture)),u._updateARIA(b),b)},_keydown:function(e){var t=this,a=t.dateView,i=t.timeView,n=t.element.val(),s=t.options.singlePopup?t.popup.visible():a.popup.visible(),l=t._dateInput&&e.stopImmediatePropagation;e.altKey&&e.keyCode===o.keys.DOWN?t.toggle(s?"time":"date"):s?(a.move(e),t._updateARIA(a._current)):!t.options.singlePopup&&i.popup.visible()?i.move(e):e.keyCode===o.keys.ENTER&&n!==t._oldText?t._change(n):(t._typing=!0,l=!1),l&&e.stopImmediatePropagation()},_views:function(){var e,t,a,i,n,r,p,u,m,d=this,c=d.element,_=d.options,v=c.attr("id");_.singlePopup&&(_.dateDiv=d.popup.element.find(".k-datetime-calendar-wrap"),p=d.popup.element.find(".k-datetime-time-wrap"),_.omitPopup=u=!0,m=_.timeView),d.dateView=e=new o.DateView(K({},_,{id:v,anchor:d.wrapper,change:function(){var e=d._applyDateValue();_.singlePopup?(d.timeView._currentlySelected||(d.timeView._currentlySelected=new Date),d.timeView._currentlySelected.setFullYear(e.getFullYear()),d.timeView._currentlySelected.setMonth(e.getMonth()),d.timeView._currentlySelected.setDate(e.getDate()),d._switchToTimeView(),d._toggleIcons()):(d._change(e),d.close("date"))},close:function(e){d.trigger(w,j)?e.preventDefault():(c.attr(M,!1),a.attr(O,!0),d.options.singlePopup||t.popup.visible()||c&&c.length&&c[0].removeAttribute(E))},open:function(t){d.trigger(h,j)?t.preventDefault():(c.val()!==d._oldText&&(r=l(c.val(),_.parseFormats,_.culture),d.dateView[r?"current":"value"](r)),a.attr(O,!1),c.attr(M,!0).attr(E,e._dateViewID),d._updateARIA(r))}})),a=e.div,n=_.min.getTime(),d.timeView=t=new s({id:v,value:_.value,anchor:d.wrapper,animation:_.animation,format:_.timeFormat,culture:_.culture,height:"modern"===_.componentType?null:_.height,interval:_.interval,min:"modern"===_.componentType?_.min:new q(N),max:"modern"===_.componentType?_.max:new q(Y),dates:n===_.max.getTime()?[new Date(n)]:[],parseFormats:_.parseFormats,validateDate:!0,change:function(t,a){t=d._applyTimeValue(t),a?(d._timeSelected=!0,d._change(t)):(c.val(o.toString(t,_.format,_.culture)),e.value(t),d._updateARIA(t))},close:function(t){d.trigger(w,z)?t.preventDefault():(i.attr(O,!0),c.attr(M,!1),e.popup.visible()||c&&c.length&&c[0].removeAttribute(E))},open:function(e){"modern"!==d.options.componentType?t._adjustListWidth():d.timeView._updateTitle(),d.trigger(h,z)?e.preventDefault():(c.val()!==d._oldText&&(r=l(c.val(),_.parseFormats,_.culture),d.timeView.value(r)),i.attr(O,!1),c.attr(M,!0).attr(E,t._timeViewID),t.options.active(t.current()))},active:function(e){c&&c.length&&c[0].removeAttribute(H),e&&c.attr(H,t._optionID)},popup:_.popup,useValueToRender:!0,specifiedRange:d._specifiedRange,omitPopup:u,timeDiv:p,timeView:m,messages:d.options.messages}),i=t.ul},_applyDateValue:function(){var e,t,a=this,i=a.options,n=a.dateView,s=n.calendar.value(),l=+s,r=+i.min,p=+i.max;return l!==r&&l!==p||(e=l===r?r:p,e=new q(a._value||e),e.setFullYear(s.getFullYear(),s.getMonth(),s.getDate()),d(e,r,p)&&(s=e)),a._value&&(t=o.date.setHours(new Date(s),a._value),d(t,r,p)&&(s=t)),s},_applyTimeValue:function(e){var t=this.timeView,a=this.options;return e=t._parse(e),e<a.min?(e=new q((+a.min)),t.options.min=e):e>a.max&&(e=new q((+a.max)),t.options.max=e),e},_icons:function(){var t=this,a=t.element,i=t.options,n=a.next("span.k-select");n[0]||(n=e('<span unselectable="on" class="k-select"><span class="k-link k-link-date" role="button" aria-label="'+i.dateButtonText+'"><span unselectable="on" class="k-icon k-i-calendar"></span></span><span class="k-link k-link-time" role="button" aria-label="'+i.timeButtonText+'"><span unselectable="on" class="k-icon k-i-clock"></span></span></span>').insertAfter(a)),n=n.children(),t._dateIcon=n.eq(0).attr("aria-controls",t.dateView._dateViewID),t._timeIcon=n.eq(1).attr("aria-controls",t.timeView._timeViewID),i.singlePopup&&t._timeIcon.hide()},_wrapper:function(){var t,a=this,i=a.element;t=i.parents(".k-datetimepicker"),t[0]||(t=i.wrap(R).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(R).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),a.wrapper=t.addClass("k-widget k-datetimepicker").addClass(i[0].className).removeClass("input-validation-error"),a._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,a=t.element,i=a.attr("form"),n=i?e("#"+i):a.closest("form"),s=t.options,l=s.disableDates,r=s.parseFormats.length?s.parseFormats:null,p=t._initialOptions.value,u=a[0].defaultValue;p&&l&&l(p)&&(p=null),u&&o.parseDate(u,r,s.culture)||!p||a.attr("value",o.toString(p,s.format,s.culture)),n[0]&&(t._resetHandler=function(){t.value(p||a[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=n.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=e.proxy(o.template(this.options.ARIATemplate),this)},_createDateInput:function(e){this._dateInput&&(this._dateInput.destroy(),this._dateInput=null),e.dateInput&&(this._dateInput=new g.DateInput(this.element,{culture:e.culture,format:e.format,min:e.min,max:e.max,interval:e.interval}))},_calculateMidnight:function(e,t){return v(e)+v(t)===0},_updateARIA:function(e){var t=this,a=t.dateView.calendar;t.element&&t.element.length&&t.element[0].removeAttribute(H),a&&t.element.attr(H,a._updateAria(t._ariaTemplate,e))},_popup:function(){var t=this,a=t.options,i=e("<div></div>").attr(O,"true").addClass("k-datetime-container k-group k-reset").appendTo(document.body);i.append(o.template(L)(t.options)),t.popup=new g.Popup(i,K(a.popup,a,{name:"Popup",isRtl:o.support.isRtl(t.wrapper),anchor:t.wrapper,activate:function(){t.options.timeView&&"scroll"===t.options.timeView.list&&(t.timeView.addTranslate(),t.timeView.applyValue(t._value),t.timeView._updateRanges())},open:function(e){t.trigger(h,{view:this.element.find(".k-date-tab").length?"date":"time",sender:t})&&e.preventDefault(),t.timeView._updateTitle()}})),i.on(y+b,".k-datetime-buttongroup .k-button",e.proxy(t._groupChangeClick,t)),i.on(y+b,".k-datetime-footer button.k-time-cancel",e.proxy(t._cancelClickHandler,t)),i.on(y+b,".k-datetime-footer button.k-time-accept",e.proxy(t._setClickHandler,t))},_groupChangeClick:function(t){var a,n;i(t),a=e(t.currentTarget),n=a.index(),n?this._switchToTimeView():this._switchToDateView(),this._toggleIcons()},_switchToDateView:function(){this.popup.element.find(".k-group-start, .k-group-end").removeClass(Q).eq(0).addClass(Q),this.popup.element.find(".k-datetime-wrap").removeClass("k-time-tab").addClass("k-date-tab")},_switchToTimeView:function(){this.timeView.addTranslate(),this.timeView.applyValue(this._value),this.timeView._updateRanges(),this.popup.element.find(".k-group-start, .k-group-end").removeClass(Q).eq(1).addClass(Q),this.popup.element.find(".k-datetime-wrap").removeClass("k-date-tab").addClass("k-time-tab")},_toggleIcons:function(){this._dateIcon.toggle(),this._timeIcon.toggle()},_cancelClickHandler:function(){this._value&&(this.value(this._value),this.dateView.value(this._value)),this.popup.close()},_setClickHandler:function(){var e,t=this._applyDateValue();t=t||new Date,e=this.timeView._currentlySelected||t,this.timeView._updateCurrentlySelected(),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()),t.setSeconds(e.getSeconds()),t=this._applyTimeValue(t),this._change(t),this.popup.close()}});g.plugin(G)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});;!function(e,define){define("kendo.badge.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n.ui,s="k-hidden",a="<span class='k-badge-icon k-icon k-i-#= icon #'></span>",l="<span class='k-badge-icon k-svg-icon'>#= icon #</span>",p=i.extend({init:function(e,t){var o=this;i.fn.init.call(o,e,t),o._content(),o._appearance(),n.notify(o)},destroy:function(){var e=this;i.fn.destroy.call(e)},options:{name:"Badge",cutoutBorder:!1,data:{},fill:"solid",icon:"",max:1/0,position:"inline",align:"",sizes:{small:"sm",medium:"md",large:"lg"},size:"medium",shape:"rounded",template:null,text:"",themeColor:"secondary",visible:!0,_classNames:[]},_content:function(){var e=this,i=e.options.text,o=e.options.template,s=e.options.data,a=e.options.icon;return null!==o?(e._text=i,e._template=n.template(o).bind(e),e.element.html(e._template(s)),t):""!==a?(e.icon(a),t):""!==i?(e.text(i),t):(e.text(e.element.html()),t)},_appearance:function(){var e=this;e._themeColor=e.options.themeColor,e._shape=e.options.shape,e._sizes=e.options.sizes,e._size=e.options.size,e._fill=e.options.fill,e._cutoutBorder=e.options.cutoutBorder,e._align=e.options.align,e._position=e.options.position,e._visible=e.options.visible,e._updateClassNames()},_updateClassNames:function(){var e=this,n=["k-badge"],i=e.options._classNames,o=e._themeColor,a=e._shape,l=e._sizes,p=e._size,r=l[p]===t?p:l[p],u=e._fill,m=e._cutoutBorder,d=e._align,c=e._position,h=e._visible;e.element.removeClass(function(t,n){0===n.indexOf("k-")&&i.indexOf(n)===-1&&e.element.removeClass(n)}),"string"==typeof u&&""!==u&&n.push("k-badge-"+u),"string"==typeof o&&""!==o&&n.push("k-badge-"+o),"string"==typeof p&&""!==p&&n.push("k-badge-"+r),"string"==typeof a&&""!==a&&n.push("k-badge-"+a),"boolean"==typeof m&&m===!0&&n.push("k-badge-border-cutout"),"string"==typeof c&&""!==c&&n.push("k-badge-"+c),"string"==typeof c&&""!==c&&"inline"!==c&&"string"==typeof d&&2==d.split(" ").length&&n.push("k-"+d.replace(" ","-")),h===!1&&n.push(s),e.element.addClass(n.join(" "))},setOptions:function(e){var t=this;t.element.removeClass(function(e,n){n.indexOf("k-")>=0&&t.element.removeClass(n)}),i.fn.setOptions.call(t,e),t._content(),t._appearance()},text:function(e){var n=this,i=n.options.max;return 0===arguments.length||e===t?n._text:(n._text=e,e===!0||e===!1||null===e?(n.element.html(""),t):"string"==typeof e?(n.element.html(e),t):"number"==typeof e?(n.element.html(e>i?i+"+":e),t):"object"==typeof e&&"toString"in e?(n.element.html(""+e),t):t)},icon:function(e){var i,o=this;return 0===arguments.length||e===t?o._icon:(o._icon=e,0===e.indexOf("<svg")?(i=n.template(l),o.element.html(i({icon:e})),t):(i=n.template(a),o.element.html(i({icon:e})),t))},themeColor:function(e){var n=this;return 0===arguments.length||e===t?n._themeColor:(n._themeColor=e,n._updateClassNames(),t)},shape:function(e){var n=this;return 0===arguments.length||e===t?n._shape:(n._shape=e,n._updateClassNames(),t)},hide:function(){var e=this;e._visible=!1,e._updateClassNames()},show:function(){var e=this;e._visible=!0,e._updateClassNames()}});o.plugin(p)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(e,define){define("kendo.buttongroup.min",["kendo.core.min","kendo.badge.min"],e)}(function(){return function(e,t){function n(n,i){var o;null!==n&&n!==t&&(n.constructor!==Object&&(n={text:n}),n.position!==t&&""!==n.position||(n.position="edge",n.align!==t&&""!==n.align||(n.align="top end")),n._classNames=["k-button-badge"],i.addClass("k-badge-container"),o=e("<span />").appendTo(i),i.badge=new s.Badge(o,n))}var i=window.kendo,s=i.ui,o=s.Widget,a=i.keys,d=e.proxy,l=i.template,c=".kendoButtonGroup",r="k-widget",u="k-button-group",f="k-button",p="k-button-icontext",m="k-button-icon",h="k-state-active",b="k-state-disabled",g="select",k="click",v="keydown",C="focus",x="focusout",y="mousedown",_=i.support.browser.msie,w={item:l('<span #= item.enabled === false ? "disabled" : "" # >#= icon(iconClass) ##= image(item) ##= text #</span>'),image:l('<img alt="icon" src="#=data.imageUrl#" />'),icon:l('<span class="#=data#"></span>'),empty:l("")},E=o.extend({init:function(t,n){var i=this;o.fn.init.call(i,t,n),i.wrapper=i.element,i.options.items&&i._renderItems(i.options.items),i.selectedIndices=[],i.element.addClass(r+" "+u).attr("role","group").attr("tabindex",i.element.attr("tabindex")||"0").children().each(function(){var t=e(this);i._updateClasses.bind(i)(t)}),i._enable=!0,i.options.enable&&i.options.enabled||(i._enable=!1,i.element.attr("aria-disabled",!0).addClass(b)),i.select(i.options.index),i._attachEvents()},events:[g],options:{name:"ButtonGroup",selection:"single",index:-1,enable:!0,enabled:!0},current:function(){return this.element.find("."+h)},_attachEvents:function(){var e=this;e.element.on(k+c,"."+f,d(e._click,e)).on(C+c,d(e._focus,e)).on(x+c,d(e._focusout,e)).on(v+c,d(e._keyDown,e)).on(y+c,d(e._mouseDown,e))},_renderItems:function(t){var s=this;t.forEach(function(t){var o=e(w.item({image:t.imageUrl?w.image:w.empty,icon:t.imageUrl||!t.iconClass&&!t.icon?w.empty:w.icon,iconClass:t.iconClass||"k-icon k-i-"+t.icon,item:t,text:t.text?t.encoded===!1?t.text:i.htmlEncode(t.text):""}));t.attributes&&o.attr(t.attributes),t.selected&&o.addClass(h),(t.iconClass||t.icon||t.imageUrl)&&o.addClass(t.text?"k-button-icontext":"k-button-icon"),t.badge&&n(t.badge,o),o.appendTo(s.element)})},_mouseDown:function(e){var t=e.clientX,n=e.clientY,i=document.elementFromPoint(t,n);i!==this.element[0]&&(this.preventFocus=!0,this.preventFocusOut=!0),_&&this._focus()},_focus:function(){var n=e(this.element);return n.removeAttr("tabindex"),n.find("[role='button']").attr("tabindex","0"),this.preventFocus?(this.preventFocus=!1,t):(n.find("."+h).length?n.find("."+h).first().focus():n.children().first().focus(),t)},_focusout:function(){var e=this,n=e.wrapper;return this.preventFocusOut?(this.preventFocusOut=!1,t):(setTimeout(function(){n[0].contains(document.activeElement)||(n.attr("tabindex","0"),n.find("[role='button']").removeAttr("tabindex"))}),t)},_keyDown:function(t){var n,s=this,o=e(s.element),d=o.find("."+f),l=o.find(":focus"),c=d.index(l),r=i.support.isRtl(s.element);t.keyCode===a.LEFT&&!r||t.keyCode===a.RIGHT&&r?(n=0===c?d.eq(d.length-1):e(d[c-1]),n.focus(),t.preventDefault()):t.keyCode===a.LEFT&&r||t.keyCode===a.RIGHT&&!r?(n=c+1===d.length?d.eq(0):e(d[c+1]),n.focus(),t.preventDefault()):t.keyCode!==a.ENTER&&t.keyCode!==a.SPACEBAR||(s._select(l),t.preventDefault())},select:function(n){var i,s=this,o=-1;n!==t&&n!==-1&&("number"==typeof n?(o=n,n=s.element.children().eq(n)):n.nodeType&&(n=e(n),o=n.index()),"multiple"===s.options.selection?(i="true"===n.attr("aria-pressed"),n.attr("aria-pressed",!i).toggleClass(h),s.selectedIndices.indexOf(o)===-1?s.selectedIndices.push(o):s.selectedIndices.splice(s.selectedIndices.indexOf(o),1)):(s.selectedIndices=[],s.current().attr("aria-pressed",!1).removeClass(h),n.attr("aria-pressed",!0).addClass(h),s.selectedIndices.push(o)))},badge:function(e,s){var o,a=this.element,d=isNaN(e)?a.find(e):a.children().eq(e),l=s||0===s;if(d.length){if(o=d.children(".k-badge").eq(0).data("kendoBadge"),!o&&l)return n({text:i.htmlEncode(s)},d),i.htmlEncode(s);if(l)o.text(i.htmlEncode(s));else if(s===!1)return o.element.empty().remove(),o.destroy(),t;return o?o.text():null}},enable:function(e){t===e&&(e=!0),this.element.attr("aria-disabled",!e).toggleClass(b,!e),this._enable=this.options.enable=e},destroy:function(){var t=this;t.element.off(c),t.element.find(".k-badge").each(function(){e(this).data("kendoBadge").destroy()}),o.fn.destroy.call(t)},_updateClasses:function(t){var s=i.attrValue(t,"icon"),o=i.attrValue(t,"badge"),a=t.find("img").addClass("k-image"),d=!0;t.attr("aria-pressed",!1).attr("role","button").addClass(f),(t.is("[disabled]")||t.hasClass(b))&&t.addClass(b).attr("aria-disabled",!0).removeAttr("disabled"),t.is("."+h)&&(t.removeClass(h),(!t.hasClass(b)&&"single"===this.options.selection||"multiple"===this.options.selection)&&this.select(t[0])),!a[0]&&s&&t.prepend(e(w.icon("k-icon k-i-"+s))),t.contents().filter(function(){return!e(this).hasClass("k-icon")&&!e(this).hasClass("k-image")}).each(function(){(1==this.nodeType||3==this.nodeType&&i.trim(this.nodeValue).length>0)&&(d=!1)}),(a[0]||s)&&t.addClass(d?m:p),(o||0===o)&&n(o,t)},_click:function(t){var n=e(t.target).closest("."+f);t.isDefaultPrevented()||(t.target.focus(),this._select(n))},_select:function(e){var t=e;this._enable&&!t.is("."+b)&&(this.select(e[0]),this.trigger(g,{indices:this.selectedIndices}))}});s.plugin(E)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});;!function(e,define){define("kendo.scheduler.recurrence.min",["kendo.dropdownlist.min","kendo.datepicker.min","kendo.numerictextbox.min","kendo.buttongroup.min"],e)}(function(){return function(e,t){function a(e,t){var a;return 0!==e&&e<t?a=t-e:(a=e%t,a&&(a=t-a)),a}function n(e){var t=e.getMonth(),a=v(e)?ne[t]:se[t];return a+e.getDate()}function s(e,a){var n,s;return e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),ee(e,0),n=e.getFullYear(),a!==t?($(e,a,-1),e.setDate(e.getDate()+4)):e.setDate(e.getDate()+(4-(e.getDay()||7))),ee(e,0),s=Math.floor((e.getTime()-new Date(n,0,1,(-6)))/864e5),1+Math.floor(s/7)}function r(e,t){var a=te(e).getDay(),n=7-(a+7-(t||7))||7;return n<0&&(n+=7),Math.ceil((e.getDate()-n)/7)+1}function i(e,t){return e+(e<t?7:0)}function l(e,t,a){var n,s,l,o,u,d=t.offset;return d?(n=new Date(e.getFullYear(),e.getMonth()+1,0),s=r(n,a),l=i(t.day,a),o=l<i(new Date(e.getFullYear(),e.getMonth(),1).getDay(),a),u=l>i(n.getDay(),a),d<0?d=s+(d+1-(u?1:0)):o&&(d+=1),s-=u?1:0,d<(o?1:0)||d>s?null:d):r(e,a)}function o(e,t){return r(new Date(e.getFullYear(),e.getMonth()+1,0),t)}function u(e,t,a){return r(e,a)===l(e,t,a)}function d(e,t,a){for(var n,s,o,u,d=i(t.getDay(),a),c=e.length,f=[],y=0;y<c;y++)if(s=e[y],u=r(t,a),n=l(t,s,a),null!==n)if(u<n)f.push(s);else if(u===n)if(o=i(s.day,a),d<o)f.push(s);else if(d===o)return null;return f}function c(e,t,a){for(var n,s=0,r=e.length,i=[];s<r;s++){if(n=e[s],a&&(n=a(n)),t===n)return null;t<n&&i.push(n)}return i}function f(e,t){for(var a,n=0,s=e.length;n<s;n++){if(a=parseInt(e[n],10),isNaN(a)||a<t.start||a>t.end||0===a&&t.start<0)return null;e[n]=a}return e.sort(k)}function y(e){for(var a,n,s,r=0,i=e.length;r<i;r++){if(a=e[r],n=a.length,s=a.substring(n-2).toUpperCase(),s=le[s],s===t)return null;e[r]={offset:parseInt(a.substring(0,n-2),10)||0,day:s}}return e}function p(e){for(var t,a,n=0,s=e.length,r=[];n<s;n++)t=e[n],"string"==typeof t?a=t:(a=""+ie[t.day],t.offset&&(a=t.offset+a)),r.push(a);return""+r}function m(e){var t=e.getMonth();return 1===t?1===new Date(e.getFullYear(),1,29).getMonth()?29:28:re[t]}function v(e){return e=e.getFullYear(),e%4===0&&e%100!==0||e%400===0}function k(e,t){return e-t}function g(e,t){var a,n,s=0,r=[];if(e)for(e=e.split(e.indexOf(";")!==-1?";":","),a=e.length;s<a;s++)n=O(e[s],t),n&&r.push(n);return r}function h(t,a,n){for(var s=e.isArray(t)?t:g(t,n),r=a.getTime()-a.getMilliseconds(),i=0,l=s.length;i<l;i++)if(s[i].getTime()===r)return!0;return!1}function _(e,t){var a,n,s=0,r=[].concat(e);for(a=r.length;s<a;s++)n=r[s],n=C.timezone.convert(n,t||n.getTimezoneOffset(),"Etc/UTC"),r[s]=C.toString(n,ce);return r.join(",")}function w(e,t){var a=new Date(e);switch(t.freq){case"yearly":a.setFullYear(a.getFullYear(),0,1);break;case"monthly":a.setFullYear(a.getFullYear(),a.getMonth(),1);break;case"weekly":$(a,t.weekStart,-1)}return t.hours&&a.setHours(0),t.minutes&&a.setMinutes(0),t.seconds&&a.setSeconds(0),a}function D(e,t){var a=new Date(e);switch(t.freq){case"yearly":a.setFullYear(a.getFullYear(),11,31);break;case"monthly":a.setFullYear(a.getFullYear(),a.getMonth()+1,0);break;case"weekly":$(a,t.weekStart,-1),a.setDate(a.getDate()+6)}return t.hours&&a.setHours(23),t.minutes&&a.setMinutes(59),t.seconds&&a.setSeconds(59),a}function b(e,t,a,n){var s,r,i,l,o,u=e.length,d=[];for(l=0,o=a.length;l<o;l++)s=a[l],s<0?s=u+s:s-=1,r=e[s],i=!n||r.start<n,r&&r.start>=t&&i&&d.push(r);return d}function T(e,t,a){var n,s,r=[];for(s=0;s<e.length;s++)n=e[s],h(t,n.start,a)||r.push(n);return r}function M(e,a,n,s){var r,i,l,o,u,d,c,f,y,p,m,v,k,M,O,H,S,R,q,F,B,z,V,N,W,P,U,A,I,L,G,j,Z,K,Q,$,ee,te,ne=[],se=Y(e.recurrenceRule,s,{start:(E(e.start,s)-E(e.start,e.startTimezone))*C.date.MS_PER_MINUTE,end:(E(e.end,s)-E(e.end,e.endTimezone))*C.date.MS_PER_MINUTE});if(!se)return[e];for(F=se.positions,B=F?0:1,p=se.start,m=se.end,(p||m)&&(e=e.clone({start:p?new Date(p.value[0]):t,end:m?new Date(m.value[0]):t})),S=e.start,H=S.getTime(),O=ae(S),M=g(e.recurrenceException,s),!M[0]&&se.exdates&&(M=se.exdates.value,e.set("recurrenceException",_(M,s))),f=a=new Date(a),n=new Date(n),k=se.freq,q=he[k],R=se.count,se.until&&se.until<n&&(n=new Date(se.until)),v="yearly"===k||"monthly"===k||"weekly"===k,a<H||R||se.interval>1||v||("daily"===k||"hourly"===k)&&!se.seconds?a=new Date(H):(o=a.getHours(),u=a.getMinutes(),d=a.getSeconds(),se.hours||(o=S.getHours()),se.minutes||(u=S.getMinutes()),se.seconds||(d=S.getSeconds()),a.setHours(o,u,d,S.getMilliseconds())),se._startPeriod=new Date(a),F&&(a=w(a,se),n=D(n,se),U=ae(n)-ae(a),U<0&&(o=a.getHours(),n.setHours(o,a.getMinutes(),a.getSeconds(),a.getMilliseconds()),X.adjustDST(n,o)),se._startPeriod=new Date(a),se._endPeriod=D(a,se)),c=e.duration(),A=e.isAllDay?864e5:0,se._startTime=r=X.toInvariantTime(a),q.setup&&q.setup(se,S,a),q.limit(a,n,se);a<=n;)if(l=new Date(a),J(l,c),I=new Date(a),J(I,c+A),y=a>=f||I>f,(y&&!h(M,a,s)||F)&&(r=X.toUtcTime(X.getDate(a))+ae(se._startTime),i=r+c,H!==a.getTime()||O!==ae(se._startTime)?(L=e.startTimezone||e.endTimezone,G=e.endTimezone||e.startTimezone,e.isAllDay||(s&&L||!s&&!L)&&(j=E(a,s)-E(e.start,s),Z=E(l,s)-E(e.end,s),K=E(a,L)-E(e.start,L),Q=E(l,G)-E(e.end,G),j!==K&&($=6e4*(j-K),V=new Date(a.getTime()-$),W=r-$),Z!==Q&&(ee=6e4*(Z-Q),N=new Date(l.getTime()-ee),P=i-ee)),ne.push(e.toOccurrence({start:V||new Date(a),end:N||l,_startTime:W||r,_endTime:P||i})),V=N=W=P=null):(e._startTime=r,e._endTime=i,ne.push(e))),F){if(q.next(a,se),q.limit(a,n,se),a>se._endPeriod&&(z=b(ne.slice(B),S,F,se.until),z=T(z,M,s),ne=ne.slice(0,B).concat(z),se._endPeriod=D(a,se),B=ne.length),R&&R===B)break}else{if(R&&R===B)break;B+=1,te=x(a),q.next(a,se),te&&"hourly"!==se.freq&&X.toInvariantTime(e.start).getTime()!==X.toInvariantTime(a).getTime()&&(se._startTime=r=new Date(a.getTime()-36e5)),q.limit(a,n,se)}return ne}function x(e){var t=e.getTimezoneOffset(),a=new Date(e.getTime()-36e5),n=a.getTimezoneOffset();return t<n}function E(e,t){return t?C.timezone.offset(e,t):e.getTimezoneOffset()}function O(e,t){return e=C.parseDate(e,oe),e&&t&&(e=L.apply(e,t)),e}function H(e,t){var a,n,s,r,i,l,o,u,d=e.split(";");for(o=0,u=d.length;o<u;o++)if(a=d[o].split(":"),n=a[0],s=a[1],n.indexOf("TZID")!==-1&&(r=n.substring(n.indexOf("TZID")).split("=")[1]),s)for(s=s.split(","),i=0,l=s.length;i<l;i++)s[i]=O(s[i],r||t);if(s)return{value:s,tzid:r}}function Y(e,a,n){var s,r,i,l,o,u,d,c,p,m={},v=0,k=!1,g=function(e,t){var a=e.day,n=t.day;return a<c&&(a+=7),n<c&&(n+=7),a-n};if(!e)return null;for(u=e.split("\n"),u[1]||e.indexOf("DTSTART")===-1&&e.indexOf("DTEND")===-1&&e.indexOf("EXDATE")===-1||(u=e.split(" ")),v=0,i=u.length;v<i;v++)o=C.trim(u[v]),o.indexOf("DTSTART")!==-1?m.start=H(o,a):o.indexOf("DTEND")!==-1?m.end=H(o,a):o.indexOf("EXDATE")!==-1?m.exdates=H(o,a):o.indexOf("RRULE")!==-1?l=o.substring(6):C.trim(o)&&(l=o);for(l=l.split(";"),v=0,i=l.length;v<i;v++)switch(d=l[v],s=d.split("="),r=C.trim(s[1]).split(","),C.trim(s[0]).toUpperCase()){case"FREQ":m.freq=r[0].toLowerCase();break;case"UNTIL":m.until=O(r[0],a);break;case"COUNT":m.count=parseInt(r[0],10);break;case"INTERVAL":m.interval=parseInt(r[0],10);break;case"BYSECOND":m.seconds=f(r,{start:0,end:60}),k=!0;break;case"BYMINUTE":m.minutes=f(r,{start:0,end:59}),k=!0;break;case"BYHOUR":m.hours=f(r,{start:0,end:23}),k=!0;break;case"BYMONTHDAY":m.monthDays=f(r,{start:-31,end:31}),k=!0;break;case"BYYEARDAY":m.yearDays=f(r,{start:-366,end:366}),k=!0;break;case"BYMONTH":m.months=f(r,{start:1,end:12}),k=!0;break;case"BYDAY":m.weekDays=p=y(r),k=!0;break;case"BYWEEKNO":m.weeks=f(r,{start:-53,end:53}),k=!0;break;case"BYSETPOS":m.positions=f(r,{start:-366,end:366});break;case"WKST":m.weekStart=c=le[r[0]]}return m.freq===t||m.count!==t&&m.until?null:(m.interval||(m.interval=1),c===t&&(m.weekStart=c=C.culture().calendar.firstDay),p&&(m.weekDays=p.sort(g)),m.positions&&!k&&(m.positions=null),m._hasRuleValue=k,m.offsets=n,m)}function S(e,t){for(var a,n=e.value,s=e.tzid||"",r=n.length,i=0;i<r;i++)a=n[i],a=L.convert(a,s||t||a.getTimezoneOffset(),"Etc/UTC"),n[i]=C.toString(a,"yyyyMMddTHHmmssZ");return s&&(s=";TZID="+s),s+":"+n.join(",")+" "}function R(e,a){var n=e.weekStart,s="FREQ="+e.freq.toUpperCase(),r=e.exdates||"",i=e.start||"",l=e.end||"",o=e.until;return n===t&&(n=C.culture().calendar.firstDay),e.interval>1&&(s+=";INTERVAL="+e.interval),e.count&&(s+=";COUNT="+e.count),o&&(o=L.convert(o,a||o.getTimezoneOffset(),"Etc/UTC"),s+=";UNTIL="+C.toString(o,"yyyyMMddTHHmmssZ")),e.months&&(s+=";BYMONTH="+e.months),e.weeks&&(s+=";BYWEEKNO="+e.weeks),e.yearDays&&(s+=";BYYEARDAY="+e.yearDays),e.monthDays&&(s+=";BYMONTHDAY="+e.monthDays),e.weekDays&&(s+=";BYDAY="+p(e.weekDays)),e.hours&&(s+=";BYHOUR="+e.hours),e.minutes&&(s+=";BYMINUTE="+e.minutes),e.seconds&&(s+=";BYSECOND="+e.seconds),e.positions&&(s+=";BYSETPOS="+e.positions),n!==t&&(s+=";WKST="+ie[n]),i&&(i="DTSTART"+S(i,a)),l&&(l="DTEND"+S(l,a)),r&&(r="EXDATE"+S(r,a)),(i||l||r)&&(s=i+l+r+"RRULE:"+s),s}var q,F,B,z,V,N,W,P,U,A,I,C=window.kendo,L=C.timezone,G=C.Class,j=C.ui,Z=j.Widget,K=j.DropDownList,Q=j.ButtonGroup,X=C.date,J=X.setTime,$=X.setDayOfWeek,ee=X.adjustDST,te=X.firstDayOfMonth,ae=X.getMilliseconds,ne=[0,31,60,91,121,152,182,213,244,274,305,335,366],se=[0,31,59,90,120,151,181,212,243,273,304,334,365],re=[31,28,31,30,31,30,31,31,30,31,30,31],ie={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},le={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},oe=["yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-ddTHH","yyyy-MM-dd","yyyyMMddTHHmmssfffzzz","yyyyMMddTHHmmsszzz","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"],ue=["months","weeks","yearDays","monthDays","weekDays","hours","minutes","seconds"],de=ue.length,ce="yyyyMMddTHHmmssZ",fe={months:function(e,t,a){var n=a.months,s=c(n,e.getMonth()+1),r=!1;return null!==s&&(s.length?e.setMonth(s[0]-1,1):e.setFullYear(e.getFullYear()+1,n[0]-1,1),r=!0),r},monthDays:function(e,t,a){for(var n,s,r,i=!1,l=e.getHours(),o=function(e){return e<0&&(e=n+e+1),e};e<=t;){if(s=e.getMonth(),n=m(e),r=c(a.monthDays,e.getDate(),o),null===r)return i;if(i=!0,r.length){if(e.setMonth(s,r.sort(k)[0]),ee(e,l),s===e.getMonth())break}else e.setMonth(s+1,1)}return i},yearDays:function(e,t,a){for(var s,r,i=!1,l=e.getHours(),o=function(e){return e<0&&(e=s+e),e};e<t;){if(s=v(e)?366:365,r=c(a.yearDays,n(e),o),null===r)return i;if(i=!0,s=e.getFullYear(),r.length){e.setFullYear(s,0,r.sort(k)[0]),ee(e,l);break}e.setFullYear(s+1,0,1)}return i},weeks:function(e,t,a){for(var n,r,i,l=a.weekStart,o=!1,u=e.getHours(),d=function(e){return e<0&&(e=53+e),e};e<t;){if(r=c(a.weeks,s(e,l),d),null===r)return o;if(o=!0,n=e.getFullYear(),r.length){i=7*r.sort(k)[0]-1,e.setFullYear(n,0,i),$(e,l,-1),ee(e,u);break}e.setFullYear(n+1,0,1)}return o},weekDays:function(e,t,a){var n,s,l=new Date(e.getTime()+a.offsets.start),c=l.getDay()-e.getDay(),f=a.weekDays,y=a.weekStart,p=d(f,l,y),m=e.getHours(),v=function(t){var a=new Date(e.getFullYear(),e.getMonth()+1,1),s=i(t.day,y);a.getDay()<=s&&(!n||i(n.day,y)>s)&&(n=t)};if(null===p)return!1;if(n=p[0],n||(("monthly"===a.freq&&!a.positions||a.position>0)&&f.forEach(v),n||(n=f[0]),$(e,y)),s=n.day,s-=c,n.offset)for(;e<=t&&!u(e,n,y);)r(e,y)===o(e,y)?(e.setMonth(e.getMonth()+1,1),ee(e,m)):(e.setDate(e.getDate()+7),ee(e,m),$(e,y,-1));return e.getDay()!==s&&$(e,s),!0},hours:function(e,t,a){var n=a.hours,s=a._startTime,r=s.getHours(),i=c(n,r),l=!1;return null!==i&&(l=!0,e.setHours(r),ee(e,r),i.length?(i=i[0],e.setHours(i)):(i=e.getHours(),e.setDate(e.getDate()+1),ee(e,i),i=n[0],e.setHours(i),ee(e,i)),a.minutes&&e.setMinutes(0),s.setHours(i,e.getMinutes())),l},minutes:function(e,t,a){var n=a.minutes,s=e.getMinutes(),r=c(n,s),i=a._startTime.getHours(),l=!1;return null!==r&&(l=!0,r.length?r=r[0]:(i+=1,r=n[0]),a.seconds&&e.setSeconds(0),e.setHours(i,r),i%=24,ee(e,i),a._startTime.setHours(i,r,e.getSeconds())),l},seconds:function(e,t,a){var n=a.seconds,s=a._startTime.getHours(),r=c(n,e.getSeconds()),i=e.getMinutes(),l=!1;return null!==r&&(l=!0,r.length?e.setSeconds(r[0]):(i+=1,e.setMinutes(i,n[0]),i>59&&(i%=60,s=(s+1)%24)),a._startTime.setHours(s,i,e.getSeconds())),l}},ye=G.extend({next:function(e,t){var a,n,s=t._startTime,r=s.getDate();if(t.seconds)n=e.getSeconds()+1,e.setSeconds(n),s.setSeconds(n),s.setDate(r);else{if(!t.minutes)return!1;a=e.getMinutes()+1,e.setMinutes(a),s.setMinutes(a),s.setDate(r)}return!0},normalize:function(e){var t=e.rule;4===e.idx&&t.hours&&(t._startTime.setHours(0),this._hour(e.date,t))},limit:function(e,a,n){for(var s,r,i,l,o,u=n.interval;e<=a;){for(i=r=t,o=e.getDate(),l=0;l<de;l++){if(s=ue[l],n[s]){if(i=fe[s](e,a,n),r!==t&&i)break;r=i}i&&this.normalize({date:e,rule:n,day:o,idx:l})}if((1===u||!this.interval(n,e))&&l===de)break}},interval:function(e,t){var n,s,r,l,o=new Date(e._startPeriod),u=new Date(t),d=t.getHours(),c=e.weekStart,f=e.interval,y=e.freq,p=!1,m=0,v=0,k=1;return"hourly"===y?(n=u.getTimezoneOffset()-o.getTimezoneOffset(),s=e._startTime.getHours(),u=u.getTime(),d!==s&&(u+=(s-d)*X.MS_PER_HOUR),u-=o,n&&(u-=n*X.MS_PER_MINUTE),n=Math.floor(u/X.MS_PER_HOUR),m=a(n,f),0!==m&&(this._hour(t,e,m),p=!0)):"daily"===y?(X.setTime(u,-o,!0),n=Math.round(u/X.MS_PER_DAY),m=a(n,f),0!==m&&(this._date(t,e,m),p=!0)):"weekly"===y?(m=this._getNumberOfWeeksBetweenDates(o,t),r=i(t.getDay(),c),l=i(o.getDay(),c),r<l&&(m+=1),m=a(m,f),0!==m&&(X.setDayOfWeek(t,e.weekStart,-1),t.setDate(t.getDate()+7*m),ee(t,d),p=!0)):"monthly"===y?(n=t.getFullYear()-o.getFullYear(),n=t.getMonth()-o.getMonth()+12*n,m=a(n,f),0!==m&&(k=e._hasRuleValue?1:t.getDate(),t.setFullYear(t.getFullYear(),t.getMonth()+m,k),ee(t,d),p=!0)):"yearly"===y&&(n=t.getFullYear()-o.getFullYear(),m=a(n,f),e.months||(v=t.getMonth()),e.yearDays||e.monthDays||e.weekDays||(k=t.getDate()),0!==m&&(t.setFullYear(t.getFullYear()+m,v,k),ee(t,d),p=!0)),p},_getNumberOfWeeksBetweenDates:function(e,t){var a=(t-e)/6048e5,n=Math.floor(a);return a-n>.99&&(n=Math.round(a)),n},_hour:function(e,t,a){var n=t._startTime,s=n.getHours();a&&(s+=a),e.setHours(s),s%=24,n.setHours(s),ee(e,s)},_date:function(e,t,a){var n=e.getHours();e.setDate(e.getDate()+a),ee(e,n)||this._hour(e,t)}}),pe=ye.extend({next:function(e,t){ye.fn.next(e,t)||this._hour(e,t,1)},normalize:function(e){var t=e.rule;4===e.idx&&(t._startTime.setHours(0),this._hour(e.date,t))}}),me=ye.extend({next:function(e,t){ye.fn.next(e,t)||this[t.hours?"_hour":"_date"](e,t,1)}}),ve=me.extend({setup:function(e,t){e.weekDays||(e.weekDays=[{day:t.getDay(),offset:0}])}}),ke=ye.extend({next:function(e,t){var a,n;if(!ye.fn.next(e,t))if(t.hours)this._hour(e,t,1);else if(t.monthDays||t.weekDays||t.yearDays||t.weeks)this._date(e,t,1);else{for(a=e.getDate(),n=e.getHours(),e.setMonth(e.getMonth()+1),ee(e,n);e.getDate()!==a;)e.setDate(a),ee(e,n);this._hour(e,t)}},normalize:function(e){var t=e.rule,a=e.date,n=a.getHours();0!==e.idx||t.monthDays||t.weekDays?ye.fn.normalize(e):(a.setDate(e.day),ee(a,n))},setup:function(e,t,a){e.monthDays||e.weekDays||a.setDate(t.getDate())}}),ge=ke.extend({next:function(e,t){var a,n=e.getHours();if(!ye.fn.next(e,t))if(t.hours)this._hour(e,t,1);else if(t.monthDays||t.weekDays||t.yearDays||t.weeks)this._date(e,t,1);else if(t.months){for(a=e.getDate(),e.setMonth(e.getMonth()+1),ee(e,n);e.getDate()!==a;)e.setDate(a),ee(e,n);this._hour(e,t)}else e.setFullYear(e.getFullYear()+1),ee(e,n),this._hour(e,t)},setup:function(){}}),he={hourly:new pe,daily:new me,weekly:new ve,monthly:new ke,yearly:new ge},_e="click",we="change";C.recurrence={rule:{parse:Y,serialize:R},expand:M,dayInYear:n,weekInYear:s,weekInMonth:r,numberOfWeeks:o,isException:h,toExceptionString:_},q=C.template('# if (frequency !== "never") { #<div class="k-edit-label"><label>#:messages.repeatEvery#</label></div><div class="k-edit-field"><input class="k-recur-interval" title="#:messages.repeatEvery# #:messages.interval#"/>#:messages.interval#</div># } ## if (frequency === "weekly") { #<div class="k-edit-label"><label>#:messages.repeatOn#</label></div><div class="k-edit-field"><div class="k-button-group-stretched k-recur-weekday-buttons" title="#:messages.repeatOn#"></div></div># } else if (frequency === "monthly") { #<div class="k-edit-label"><label>#:messages.repeatOn#</label></div><div class="k-edit-field"><ul class="k-reset"><li><label class="k-radio-label"><input class="k-recur-month-radio k-radio" type="radio" name="month" value="monthday" title="#:messages.repeatOn#" />#:messages.date#:</label><input class="k-recur-monthday" title="#:messages.date#" /></li><li><input class="k-recur-month-radio k-radio" type="radio" name="month" value="weekday" title="#:messages.repeatOn# #:messages.day#" /><input class="k-recur-weekday-offset" title="#:messages.repeatOn#" /><input class="k-recur-weekday" title="#:messages.day#" /></li></ul></div># } else if (frequency === "yearly") { #<div class="k-edit-label"><label>#:messages.repeatOn#</label></div><div class="k-edit-field"><ul class="k-reset"><li><input class="k-recur-year-radio k-radio" type="radio" name="year" value="monthday" title="#:messages.repeatOn# #:messages.month#" /><input class="k-recur-month" title="#:messages.month#" /><input class="k-recur-monthday" title="#:messages.date#" /></li><li><input class="k-recur-year-radio k-radio" type="radio" name="year" value="weekday" title="#:messages.repeatOn# #:messages.day#" /><input class="k-recur-weekday-offset" title="#:messages.repeatOn#" /><input class="k-recur-weekday" title="#:messages.day#" />#:messages.of#<input class="k-recur-month" title="#:messages.of + messages.month#"/></li></ul></div># } ## if (frequency !== "never") { #<div class="k-edit-label"><label>#:end.label#</label></div><div class="k-edit-field"><ul class="k-reset"><li><label class="k-radio-label"><input class="k-recur-end-never k-radio" type="radio" name="end" value="never" title="#:end.label#" />#:end.never#</label></li><li><label class="k-radio-label"><input class="k-recur-end-count k-radio" type="radio" name="end" value="count" title="#:end.label#" />#:end.after#</label><input class="k-recur-count" title="#:end.occurrence#" />#:end.occurrence#</li><li><label class="k-radio-label"><input class="k-recur-end-until k-radio" type="radio" name="end" value="until" title="#:end.label#" />#:end.on#</label><input class="k-recur-until" title="#:end.on#" name="recur-until" /></li></ul></div># } #'),F=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],B=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],z=[{day:0,offset:0},{day:6,offset:0}],V=Z.extend({init:function(e,t){var a,n=this,s=t&&t.frequencies;Z.fn.init.call(n,e,t),n.wrapper=n.element,t=n.options,t.start=a=t.start||X.today(),s&&(t.frequencies=s),"string"==typeof a&&(t.start=C.parseDate(a,"yyyyMMddTHHmmss")),null===t.firstWeekDay&&(t.firstWeekDay=C.culture().calendar.firstDay),n._namespace="."+t.name},options:{value:"",start:"",timezone:"",spinners:!0,firstWeekDay:null,frequencies:["never","daily","weekly","monthly","yearly"],mobile:!1,messages:{repeat:"Repeat",recurrenceEditorTitle:"Recurrence editor",frequencies:{never:"Never",hourly:"Hourly",daily:"Daily",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly"},hourly:{repeatEvery:"Repeat every: ",interval:" hour(s)"},daily:{repeatEvery:"Repeat every: ",interval:" day(s)"},weekly:{interval:" week(s)",repeatEvery:"Repeat every: ",repeatOn:"Repeat on: "},monthly:{repeatEvery:"Repeat every: ",repeatOn:"Repeat on: ",interval:" month(s)",day:"Day ",date:"Date"},yearly:{repeatEvery:"Repeat every: ",repeatOn:"Repeat on: ",interval:" year(s)",of:" of ",month:"month",day:"day",date:"Date"},end:{label:"End:",mobileLabel:"Ends",never:"Never",after:"After ",occurrence:" occurrence(s)",on:"On "},offsetPositions:{first:"first",second:"second",third:"third",fourth:"fourth",last:"last"},weekdays:{day:"day",weekday:"weekday",weekend:"weekend day"}}},events:["change"],_initInterval:function(){var e=this,t=e._value;e._container.find(".k-recur-interval").kendoNumericTextBox({spinners:e.options.spinners,value:t.interval||1,decimals:0,format:"#",min:1,change:function(){t.interval=this.value(),e._trigger()}})},_weekDayButtons:function(e){for(var t=this,a=C.culture().calendar.days.names,n=C.culture().calendar.days.namesAbbr,s=t.options.messages.weekly.repeatOn,r=a.length,i=0,l=[],o=[];i<r;i++)l.push(i);for(a=a.slice(e).concat(a.slice(0,e)),n=n.slice(e).concat(n.slice(0,e)),l=l.slice(e).concat(l.slice(0,e)),i=0;i<r;i++)o.push({text:n[i],attributes:{"data-value":l[i],"aria-label":s+" "+a[i]}});t._weekDayButtonGroup=new Q(t._container.find(".k-recur-weekday-buttons"),{items:o,selection:"multiple",select:function(){var e=t._value,a=t._weekDayButtonGroup.current();e.weekDays=a.map(function(e,t){return{day:+t.getAttribute("data-value"),offset:0}}),t.options.mobile||t._trigger()}})},_weekDayRule:function(e){var t=this,a=(t._weekDay.element||t._weekDay).val(),n=+(t._weekDayOffset.element||t._weekDayOffset).val(),s=null,r=null;e||("day"===a?(s=F,r=n):"weekday"===a?(s=B,r=n):"weekend"===a?(s=z,r=n):s=[{offset:n,day:+a}]),t._value.weekDays=s,t._value.positions=r},_weekDayView:function(){var e,t,a,n,s=this,r=s._value.weekDays,i=s._value.positions,l=s._weekDayOffset;r&&(a=r.length,i&&(7===a?(t="day",e=i):5===a?(t="weekday",e=i):2===a&&(t="weekend",e=i)),t||(r=r[0],t=r.day,e=r.offset||""),n=l.value?"value":"val",l[n](e),s._weekDay[n](t))},_initWeekDay:function(){var t,a=this,n=a.options.messages.weekdays,s=a.options.messages.offsetPositions,r=a._container.find(".k-recur-weekday"),i=function(){a._weekDayRule(),a._trigger()};r[0]&&(a._weekDayOffset=new K(a._container.find(".k-recur-weekday-offset"),{change:i,dataTextField:"text",dataValueField:"value",dataSource:[{text:s.first,value:"1"},{text:s.second,value:"2"},{text:s.third,value:"3"},{text:s.fourth,value:"4"},{text:s.last,value:"-1"}]}),t=[{text:n.day,value:"day"},{text:n.weekday,value:"weekday"},{text:n.weekend,value:"weekend"}],a._weekDay=new K(r,{value:a.options.start.getDay(),change:i,dataTextField:"text",dataValueField:"value",dataSource:t.concat(e.map(C.culture().calendar.days.names,function(e,t){return{text:e,value:t}}))}),a._weekDayView())},_initWeekDays:function(){var e,t,a,n,s,r=this,i=r._value,l=r._weekDayButtonGroup;if(l&&i.weekDays&&i.weekDays.length){for(e=i.weekDays,t=e.length,a=[],n=0;n<t;n++)a.push("[data-value='"+e[n].day+"']");s=l.element.find(a.join(",")),l.select(s)}},_initMonthDay:function(){var e=this,t=e._value,a=e._container.find(".k-recur-monthday");a[0]&&(e._monthDay=new C.ui.NumericTextBox(a,{spinners:e.options.spinners,min:1,max:31,decimals:0,format:"#",value:t.monthDays?t.monthDays[0]:e.options.start.getDate(),change:function(){var a=this.value();t.monthDays=a?[a]:a,e._trigger()}}))},_initCount:function(){var e=this,t=e._container.find(".k-recur-count"),a=e._value;e._count=t.kendoNumericTextBox({spinners:e.options.spinners,value:a.count||1,decimals:0,format:"#",min:1,change:function(){a.count=this.value(),e._trigger()}}).data("kendoNumericTextBox")},_initUntil:function(){var e=this,t=e._container.find(".k-recur-until"),a=e.options.start,n=e._value,s=n.until,r=s&&s<a?s:a,i=e.wrapper.closest(".k-scheduler-edit-form").find("[name=start]:visible"),l=C.format(C.ui.Validator.prototype.options.messages.date,e.options.messages.end.on),o=C.ui.Validator.prototype.options.messages.dateCompare,u=new Date(a.getFullYear(),a.getMonth(),a.getDate(),23,59,59);t.attr("data-validDate-msg",l),t.attr("data-untilDateCompare-msg",o),0===i.length&&(i=e.wrapper.closest(".k-scheduler-edit-form").find("[name=start]")),i.length>0&&i.val()&&(r=C.parseDate(i.val()),u<r&&(u=r)),e._until=t.kendoDatePicker({min:r,value:s||u,change:function(){var t=this.value();t&&(n.until=new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59)),e._trigger()}}).data("kendoDatePicker"),i&&i.on("change",function(){e._until.setOptions({min:i.val()})})},_trigger:function(){this.options.mobile||this.trigger("change")}}),N=V.extend({init:function(e,t){var a=this;V.fn.init.call(a,e,t),a._initFrequency(),a._initContainer(),a.value(a.options.value)},options:{name:"RecurrenceEditor"},events:["change"],destroy:function(){var e=this;e._frequency.destroy(),this._weekDayButtonGroup&&this._weekDayButtonGroup.destroy(),e._container.find("input[type=radio],input[type=checkbox]").off(_e+e._namespace),C.destroy(e._container),V.fn.destroy.call(e)},value:function(e){var a,n,s=this,r=s.options.timezone;return e===t?s._value.freq?R(s._value,r):"":(s._value=Y(e,r)||{},a=s._value.freq,a?(n=s._frequency.element.find("[data-value='"+a+"']"),s._frequency.select(n)):s._frequency.select(0),s._initView(s._frequency.current().data("value")),t)},_initContainer:function(){var t=this.element,a=e('<div class="k-recur-view" />'),n=t.parent(".k-edit-field");n[0]?a.insertAfter(n):t.append(a),this._container=a},_initFrequency:function(){var t,a=this,n=a.options,s=n.frequencies,r=n.messages.frequencies,i=e('<div class="k-button-group-stretched" />').attr({title:n.messages.recurrenceEditorTitle});s=e.map(s,function(e){return{text:r[e],attributes:{"data-value":e,"aria-label":n.messages.repeat+r[e]}}}),t=s[0],t&&t.attributes&&"never"===t.attributes["data-value"]&&(t.attributes["data-value"]=""),a.element.append(i),a._frequency=new Q(i,{items:s,select:function(){a._value={},a._initView(a._frequency.current().data("value")),a.trigger("change")}})},_initView:function(e){var a=this,n=a._value,s=a.options,r={frequency:e||"never",firstWeekDay:s.firstWeekDay,messages:s.messages[e],end:s.messages.end};return C.destroy(a._container),a._container.html(q(r)),e?(n.freq=e,"weekly"!==e||n.weekDays||(n.weekDays=[{day:s.start.getDay(),offset:0}]),a._weekDayButtons(s.firstWeekDay),a._initInterval(),a._initWeekDays(),a._initMonthDay(),a._initWeekDay(),a._initMonth(),a._initCount(),a._initUntil(),a._period(),a._end(),t):(a._value={},t)},_initMonth:function(){var t,a=this,n=a._value,s=n.months||[a.options.start.getMonth()+1],r=a._container.find(".k-recur-month");r[0]&&(t={change:function(){n.months=[+this.value()],a.trigger("change")},dataTextField:"text",dataValueField:"value",dataSource:e.map(C.culture().calendar.months.names,function(e,t){return{text:e,value:t+1}})},a._month1=new K(r[0],t),a._month2=new K(r[1],t),s&&(s=s[0],a._month1.value(s),a._month2.value(s)))},_end:function(){var e,t=this,a=t._value,n=t._container,s=t._namespace,r=function(e){t._toggleEnd(e.currentTarget.value),t.trigger("change")};t._buttonNever=n.find(".k-recur-end-never").on(_e+s,r),t._buttonCount=n.find(".k-recur-end-count").on(_e+s,r),t._buttonUntil=n.find(".k-recur-end-until").on(_e+s,r),a.count?e="count":a.until&&(e="until"),t._toggleEnd(e)},_period:function(){var e=this,t=e._value,a="monthly"===t.freq,n=a?e._toggleMonthDay:e._toggleYear,s=".k-recur-"+(a?"month":"year")+"-radio",r=e._container.find(s);(a||"yearly"===t.freq)&&(r.on(_e+e._namespace,function(t){n.call(e,t.currentTarget.value),e.trigger("change")}),e._buttonMonthDay=r.eq(0),e._buttonWeekDay=r.eq(1),n.call(e,t.weekDays?"weekday":"monthday"))},_toggleEnd:function(e){var t,a,n,s,r=this;"count"===e?(r._buttonCount.prop("checked",!0),n=!0,s=!1,t=r._count.value(),a=null):"until"===e?(r._buttonUntil.prop("checked",!0),n=!1,s=!0,t=null,a=r._until.value()):(r._buttonNever.prop("checked",!0),n=s=!1,t=a=null),r._count&&r._count.enable(n),r._until&&r._until.enable(s),r._value.count=t,r._value.until=a},_toggleMonthDay:function(e){var t,a=this,n=!1,s=!0,r=!1;"monthday"===e?(a._buttonMonthDay.prop("checked",!0),t=[a._monthDay.value()],n=!0,s=!1,r=!0):(a._buttonWeekDay.prop("checked",!0),t=null),a._weekDay.enable(s),a._weekDayOffset.enable(s),a._monthDay.enable(n),a._value.monthDays=t,a._weekDayRule(r)},_toggleYear:function(e){var t,a=this,n=!1,s=!0;"monthday"===e?(n=!0,s=!1,t=a._month1.value()):t=a._month2.value(),a._month1.enable(n),a._month2.enable(s),a._value.months=[t],a._toggleMonthDay(e)}}),j.plugin(N),W=C.template('<div data-role="content"><ul class="k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:headerTitle#</span><div class="k-recur-pattern k-listgroup-form-field-wrapper"></div></label></li><li class="k-item k-listgroup-item k-recur-view"></li></ul></div>'),P=C.template('# if (frequency !== "never") { #<label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.repeatEvery#</span><div class="k-recur-editor-wrap k-listgroup-form-field-wrapper"><input class="k-recur-interval" type="number" pattern="\\\\d*"/># if (messages.interval.length) { #<span class="k-recur-editor-text">#:messages.interval#</span># } #</div></label># } ## if (frequency === "weekly") { #<ul class="k-recur-items-wrap k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item k-no-click"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.repeatOn#</span></label></li><div class="k-button-group-stretched k-recur-weekday-buttons" title="#:messages.repeatOn#"></ul># } else if (frequency === "monthly") { #<ul class="k-recur-items-wrap k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.repeatBy#</span><div class="k-repeat-rule k-listgroup-form-field-wrapper"></div></label></li><li class="k-monthday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.day#</span><div class="k-listgroup-form-field-wrapper"><input class="k-recur-monthday" type="number" title="#:messages.day#" pattern="\\\\d*"/></div></label></li><li class="k-weekday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.every#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-weekday-offset" title="#:messages.every#"></select></div></label></li><li class="k-weekday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.day#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-weekday" title="#:messages.day#"></select></div></label></li></ul># } else if (frequency === "yearly") { #<ul class="k-recur-items-wrap k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.repeatBy#</span><div class="k-repeat-rule k-listgroup-form-field-wrapper"></div></label></li><li class="k-monthday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.day#</span><div class="k-listgroup-form-field-wrapper"><input class="k-recur-monthday" type="number" title="#:messages.day#" pattern="\\\\d*"/></div></label></li><li class="k-weekday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.every#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-weekday-offset" title="#:messages.every#"></select></div></label></li><li class="k-weekday-view k-item k-listgroup-item" style="display:none"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.day#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-weekday" title="#:messages.day#"></select></div></label></li><li class="k-item k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.month#</span><div class="k-listgroup-form-field-wrapper"><select class="k-recur-month" title="#:messages.month#"></select></div></label></li></ul># } #'),U=C.template('# if (endPattern === "count") { #<label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.after#</span><div class="k-listgroup-form-field-wrapper"><input class="k-recur-count" type="number" pattern="\\\\d*" /></div></label># } else if (endPattern === "until") { #<label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">#:messages.on#</span><div class="k-listgroup-form-field-wrapper"><input type="date" class="k-recur-until" name="recur-until"/></div></label># } #'), A=C.template('<select class="k-scheduler-select">#for (var i = 0, length = dataSource.length; i < length; i++) {#<option value="#=dataSource[i].value#" #= value === dataSource[i].value ? "selected" : "" #>#:dataSource[i].text#</option>#}#</select>'),I=V.extend({init:function(e,t){var a=this;V.fn.init.call(a,e,t),t=a.options,a._optionTemplate=C.template('<option value="#:value#">#:text#</option>'),a.value(t.value),a._pane=t.pane||a.wrapper.closest("[data-role=pane]").data("kendoPane"),a._initRepeatButton(),a._initParentRepeatEnd(),a._defaultValue=a._value},options:{name:"MobileRecurrenceEditor",animations:{left:"slide",right:"slide:right"},mobile:!0,messages:{cancel:"Cancel",update:"Save",endTitle:"Repeat ends",repeatTitle:"Repeat pattern",headerTitle:"Repeat event",end:{patterns:{never:"Never",after:"After...",on:"On..."},never:"Never",after:"End repeat after",on:"End repeat on"},daily:{interval:""},hourly:{interval:""},weekly:{interval:""},monthly:{interval:"",repeatBy:"Repeat by: ",dayOfMonth:"Day of the month",dayOfWeek:"Day of the week",repeatEvery:"Repeat every",every:"Every",day:"Day "},yearly:{interval:"",repeatBy:"Repeat by: ",dayOfMonth:"Day of the month",dayOfWeek:"Day of the week",repeatEvery:"Repeat every: ",every:"Every",month:"Month",day:"Day"}}},events:["change"],value:function(e){var a=this,n=a.options.timezone;return e===t?a._value.freq?R(a._value,n):"":(a._value=Y(e,n)||{},t)},destroy:function(){this._destroyView(),C.destroy(this._endFields),this._weekDayButtonGroup&&this._weekDayButtonGroup.destroy(),this.element.off(_e+this._namespace),V.fn.destroy.call(this)},_initInterval:function(){var e=this,t=e._value;e._container.find(".k-recur-interval").val(e._value.interval||1).on(we+e._namespace,function(a){t.interval=a.target.value,e._trigger()})},_initRepeatButton:function(){var t=this,a=t.options.messages.frequencies[this._value.freq||"never"];t._chevronButton=e('<span class="k-icon k-i-arrow-chevron-right"></span>'),t._repeatValue=e('<span class="">'+a+"</span>"),t.element.append(t._repeatValue).append(t._chevronButton),t.element.parents("li.k-item").on(_e+t._namespace,function(e){e.preventDefault(),t._createView("repeat"),t._pane.navigate(t._view,t.options.animations.left)})},_endLiItem:function(){var e=this;return'<li class="k-item k-listgroup-item"><label class="k-label k-listgroup-form-row"><span class="k-item-title k-listgroup-form-field-label">'+e.options.messages.end.mobileLabel+"</span></label></li>"},_initParentRepeatEnd:function(){var t=this,a=e(t._endLiItem()).insertAfter(t.element.parents("li.k-item")),n=e('<div class="k-scheduler-recur-end-wrap k-listgroup-form-field-wrapper"><span class="k-scheduler-recur-end"></span></div>').appendTo(a.find(".k-label"));a.on(_e+t._namespace,function(e){e.preventDefault(),t._navigateToView("repeat")}),t._endParentLabelField=a.toggle(!!t._value.freq),t._endParentEndButton=n.find(".k-scheduler-recur-end").text(t._endText())},_initRepeatEnd:function(){var t=this,a=e(t._endLiItem()).insertAfter(t._container),n=e('<div class="k-scheduler-recur-end-wrap k-listgroup-form-field-wrapper"><span class="k-scheduler-recur-end"></span><span class="k-icon k-i-arrow-chevron-right"></span></div>').appendTo(a.find(".k-label"));a.on(_e+t._namespace,function(e){e.preventDefault(),t._navigateToView("end")}),t._endLabelField=a.toggleClass("k-state-disabled",!t._value.freq),t._endButton=n.find(".k-scheduler-recur-end").text(t._endText())},_navigateToView:function(e){var t=this;t._createView(e),t._pane.navigate(t._view,t.options.animations.left)},_endText:function(){var e=this._value,t=this.options.messages.end,a=t.never;return e.count?a=C.format("{0} {1}",t.after,e.count):e.until&&(a=C.format("{0} {1:d}",t.on,e.until)),a},_initFrequency:function(){var t=this,a=t.options.messages.frequencies,n=A({dataSource:e.map(this.options.frequencies,function(e){return{text:a[e],value:"never"!==e?e:""}}),value:t._value.freq||"",ns:C.ns});t._view.element.find(".k-recur-pattern").append(n),t._view.element.find(".k-scheduler-select").on(we+t._namespace,function(a){var n=a.target.value;t._value={freq:n},t._defaultValue=e.extend({},t._value),t._initRepeatView(),t._endButton.text(t._endText()),t._endParentEndButton.text(t._endText())})},_initEndNavigation:function(){var e,t=this,a=t.options.messages.end.patterns,n=t._value,s="";n.count?s="count":n.until&&(s="until"),e=A({dataSource:[{text:a.never,value:""},{text:a.after,value:"count"},{text:a.on,value:"until"}],value:s,ns:C.ns}),t._view.element.find(".k-recur-pattern").append(e),t._view.element.find(".k-scheduler-select").on(we+t._namespace,function(e){var a=e.target.value,s=null,r=null;t._initEndView(a),t._count.length?(s=t._count.val(),r=null):t._until.length&&(s=null,r=t._until.val?C.parseDate(t._until.val(),"yyyy-MM-dd"):t._until.value()),n.count=s,n.until=r})},_createView:function(t){var a=this,n=a.options,s=n.messages,r=s["repeat"===t?"repeatTitle":"endTitle"],i='<div data-role="view" class="k-popup-edit-form k-scheduler-edit-form" id="recurrence"><div data-role="header" class="k-header"><a href="#" class="k-header-cancel k-scheduler-cancel k-link" title="'+s.cancel+'"aria-label="'+s.cancel+'"><span class="k-icon k-i-arrow-chevron-left"></span></a>'+s.headerTitle+'<a href="#" class="k-header-done k-scheduler-update k-link" title="'+s.update+'" aria-label="'+s.update+'"><span class="k-icon k-i-check"></span></a></div>',l=a._pane.view().id;a._view=a._pane.append(i+W({headerTitle:r})),a._view.element.on(_e+a._namespace,"a.k-scheduler-cancel, a.k-scheduler-update",function(t){t.preventDefault(),t.stopPropagation(),e(this).hasClass("k-scheduler-update")?(a.trigger("change"),a._defaultValue=e.extend({},a._value)):a._value=a._defaultValue;var n=a._value.freq;a._endParentEndButton.text(a._endText()),a._endParentLabelField.toggle(!!n&&"never"!==n),a._endButton.text(a._endText()),a._repeatValue.text(s.frequencies[n||"never"]),a._pane.one("viewShow",function(){a._destroyView()}),a._pane.navigate(l,a.options.animations.right)}),a._container=a._view.element.find(".k-recur-view"),"repeat"===t?(a._initFrequency(),a._initRepeatView(),a._initRepeatEnd()):(a._initEndNavigation(),a._initEndView())},_destroyView:function(){this._view&&(this._view.destroy(),this._view.element.remove(),this._container=null),this._view=null},_initRepeatView:function(){var e=this,a=e._value.freq||"never",n={frequency:a,firstWeekDay:e.options.firstWeekDay,messages:e.options.messages[a]},s=P(n),r=e._container=e._container||this._pane.view().content.find("li.k-recur-view"),i=e._value;return e._endLabelField&&e._endLabelField.toggleClass("k-state-disabled","never"===a),C.destroy(r),r.html(s),s?(r.show(),"weekly"!==a||i.weekDays||(i.weekDays=[{day:e.options.start.getDay(),offset:0}]),e._weekDayButtons(e.options.firstWeekDay),e._initInterval(),e._initMonthDay(),e._initWeekDays(),e._initWeekDay(),e._initMonth(),e._period(),t):(e._value={},r.hide(),t)},_initMonthDay:function(){var e=this,t=e._value,a=e._monthDay=e._container.find(".k-recur-monthday");a.attr({min:1,max:31}).val(t.monthDays?t.monthDays[0]:e.options.start.getDate()).on(we+e._namespace,function(a){t.count=a.target.value,e._trigger()})},_initCount:function(){var e=this,t=e._count=e._container.find(".k-recur-count"),a=e._value;t.val(a.count||1).on(we+e._namespace,function(t){a.count=t.target.value,e._trigger()})},_initEndView:function(e){var a,n=this,s=n._value;e===t&&(s.count?e="count":s.until&&(e="until")),a={endPattern:e,messages:n.options.messages.end},C.destroy(n._container),n._container.html(U(a)),n._initCount(),n._initUntil()},_initWeekDay:function(){var t,a=this,n=a.options.messages.weekdays,s=a.options.messages.offsetPositions,r=a._container.find(".k-recur-weekday"),i=function(){a._weekDayRule(),a.trigger("change")};r[0]&&(a._weekDayOffset=a._container.find(".k-recur-weekday-offset").html(a._options([{text:s.first,value:"1"},{text:s.second,value:"2"},{text:s.third,value:"3"},{text:s.fourth,value:"4"},{text:s.last,value:"-1"}])).change(i),t=[{text:n.day,value:"day"},{text:n.weekday,value:"weekday"},{text:n.weekend,value:"weekend"}],t=t.concat(e.map(C.culture().calendar.days.names,function(e,t){return{text:e,value:t}})),a._weekDay=r.html(a._options(t)).change(i).val(a.options.start.getDay()),a._weekDayView())},_initMonth:function(){var t,a=this,n=a._value,s=a.options.start,r=n.months||[s.getMonth()+1],i=a._container.find(".k-recur-month"),l=C.culture().calendar.months.names;i[0]&&(t=e.map(l,function(e,t){return{text:e,value:t+1}}),i.html(a._options(t)).change(function(){n.months=[+this.value]}),a._monthSelect=i,r&&i.val(r[0]))},_period:function(){var e,t,a,n=this,s=n._value,r=n._container,i=n.options.messages[s.freq],l=r.find(".k-repeat-rule"),o=r.find(".k-weekday-view"),u=r.find(".k-monthday-view");l[0]&&(e=s.weekDays?"weekday":"monthday",t=A({value:e,dataSource:[{text:i.dayOfMonth,value:"monthday"},{text:i.dayOfWeek,value:"weekday"}],ns:C.ns}),a=function(e){var t=n._weekDay.val(),a=n._weekDayOffset.val(),r=n._monthDay.val(),i=n._monthSelect?n._monthSelect.val():null;"monthday"===e?(s.weekDays=null,s.monthDays=r?[r]:r,s.months=i?[+i]:i,o.hide(),u.show()):(s.monthDays=null,s.months=i?[+i]:i,s.weekDays=[{offset:+a,day:+t}],o.show(),u.hide())},l.append(t),l.find(".k-scheduler-select").on(we+n._namespace,function(e){a(e.target.value)}),a(e))},_initUntil:function(){var e=this,t=e._container.find(".k-recur-until"),a=e.options.start,n=e._value,s=n.until,r=s&&s<a?s:a,i=C.format(C.ui.Validator.prototype.options.messages.date,e.options.messages.end.on),l=C.ui.Validator.prototype.options.messages.dateCompare;t.attr("data-validDate-msg",i),t.attr("data-untilDateCompare-msg",l),e._until=C.support.input.date?t.attr("min",C.toString(r,"yyyy-MM-dd")).val(C.toString(s||a,"yyyy-MM-dd")).on("change",function(){var t=C.parseDate(this.value,"yyyy-MM-dd");t&&(n.until=t),e._trigger()}):t.kendoDatePicker({min:r,value:s||a,change:function(){var t=this.value();t&&(n.until=t),e._trigger()}}).data("kendoDatePicker")},_options:function(e,t){var a=0,n="",s=e.length,r=this._optionTemplate;for(t&&(n+=r({value:"",text:t}));a<s;a++)n+=r(e[a]);return n}}),j.plugin(I)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});;!function(e,define){define("util/text-metrics.min",["kendo.core.min"],e)}(function(){!function(e){function t(e){return(e+"").replace(s,l)}function i(e){var t,i=[];for(t in e)i.push(t+e[t]);return i.sort().join("")}function n(e){var t,i=2166136261;for(t=0;t<e.length;++t)i+=(i<<1)+(i<<4)+(i<<7)+(i<<8)+(i<<24),i^=e.charCodeAt(t);return i>>>0}function a(){return{width:0,height:0,baseline:0}}function o(e,t,i){return u.current.measure(e,t,i)}var r,s,l,d,c,u;window.kendo.util=window.kendo.util||{},r=kendo.Class.extend({init:function(e){this._size=e,this._length=0,this._map={}},put:function(e,t){var i=this._map,n={key:e,value:t};i[e]=n,this._head?(this._tail.newer=n,n.older=this._tail,this._tail=n):this._head=this._tail=n,this._length>=this._size?(i[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},get:function(e){var t=this._map[e];if(t)return t===this._head&&t!==this._tail&&(this._head=t.newer,this._head.older=null),t!==this._tail&&(t.older&&(t.older.newer=t.newer,t.newer.older=t.older),t.older=this._tail,t.newer=null,this._tail.newer=t,this._tail=t),t.value}}),s=/\r?\n|\r|\t/g,l=" ",d={baselineMarkerSize:1},"undefined"!=typeof document&&(c=document.createElement("div"),c.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;"),u=kendo.Class.extend({init:function(t){this._cache=new r(1e3),this.options=e.extend({},d,t)},measure:function(e,o,r){var s,l,d,u,p,h,f,v,m;if(void 0===r&&(r={}),void 0===e||null===e)return a();if(s=i(o),l=n(e+s),d=this._cache.get(l))return d;u=a(),p=r.box||c,h=this._baselineMarker().cloneNode(!1);for(f in o)v=o[f],void 0!==v&&(p.style[f]=v);return m=r.normalizeText!==!1?t(e):e+"",p.textContent=m,p.appendChild(h),document.body.appendChild(p),m.length&&(u.width=p.offsetWidth-this.options.baselineMarkerSize,u.height=p.offsetHeight,u.baseline=h.offsetTop+this.options.baselineMarkerSize),u.width>0&&u.height>0&&this._cache.put(l,u),p.parentNode.removeChild(p),u},_baselineMarker:function(){var e=document.createElement("div");return e.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",e}}),u.current=new u,kendo.deepExtend(kendo.util,{LRUCache:r,TextMetrics:u,measureText:o,objectKey:i,hashKey:n,normalizeText:t})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()}),function(e,define){define("kendo.scheduler.min",["kendo.dropdownlist.min","kendo.editable.min","kendo.multiselect.min","kendo.window.min","kendo.datetimepicker.min","kendo.scheduler.recurrence.min","kendo.scheduler.view.min","kendo.scheduler.dayview.min","kendo.scheduler.agendaview.min","kendo.scheduler.monthview.min","kendo.scheduler.timelineview.min","kendo.scheduler.yearview.min","kendo.dialog.min","kendo.pane.min","kendo.pdf.min","kendo.switch.min"],e)}(function(){return function(e,t){function i(e,t){return t=t||"",e.startTimezone&&(t=e.startTimezone,e.endTimezone&&(t+=" | "+e.endTimezone)),t}function n(e,t){var i=t.timezone;i&&(e[F.attr("timezone")]=i)}function a(e,t){var i,n=t.model.fields[t.field].validation;n&&(i=n.validDateValidator,i&&Z(i)&&i.message&&(e[F.attr("validDate-msg")]=i.message))}function o(e,t){var i,n=t.model.fields[t.field].validation;n&&(i=n.dateCompare,i&&Z(i)&&i.message&&(e[F.attr("dateCompare-msg")]=i.message))}function r(e,t){return function(i){return i=e(i),l(i,"apply",t),i||[]}}function s(e,t){return function(i){return i&&("[object Array]"===te.call(i)||i instanceof F.data.ObservableArray||(i=[i])),l(i,"remove",t,!0),i=e(i),i||[]}}function l(e,t,i,n){var a,o,r,s,l;for(e=e||[],o=0,r=e.length;o<r;o++)a=e[o],s=a.start?a.start.getTimezoneOffset():null,l=a.start?a.end.getTimezoneOffset():null,n?a.startTimezone||a.endTimezone?i?(a.start=F.timezone.convert(a.start,a.startTimezone||a.endTimezone,i),a.end=F.timezone.convert(a.end,a.endTimezone||a.startTimezone,i),a.start=F.timezone[t](a.start,i),a.end=F.timezone[t](a.end,i)):(a.start=F.timezone[t](a.start,a.startTimezone||a.endTimezone),a.end=F.timezone[t](a.end,a.endTimezone||a.startTimezone)):i&&(a.start=F.timezone[t](a.start,i),a.end=F.timezone[t](a.end,i)):a.startTimezone||a.endTimezone?(a.start=F.timezone[t](a.start,a.startTimezone||a.endTimezone),a.end=F.timezone[t](a.end,a.endTimezone||a.startTimezone),i&&(a.start=F.timezone.convert(a.start,a.startTimezone||a.endTimezone,i),a.end=F.timezone.convert(a.end,a.endTimezone||a.startTimezone,i))):i&&(a.start=F.timezone[t](a.start,i),a.end=F.timezone[t](a.end,i)),n&&delete a.uid,"remove"===t&&a.start&&s&&s!==a.start.getTimezoneOffset()&&(a.start=new Date(a.start.getTime()+6e4*(s-a.start.getTimezoneOffset()))),"remove"===t&&a.end&&l&&l!==a.end.getTimezoneOffset()&&(a.end=new Date(a.end.getTime()+6e4*(l-a.end.getTimezoneOffset())));return e}function d(e,t){for(var i,n=e.length,a=0;a<n;a++)if(i=e[a],i.uid===t)return i}function c(e,t,i){return e=i?F.timezone.convert(e,t,i):F.timezone.remove(e,t)}function u(e){var t,i;return!(e.filter("[name=start]").length&&e.filter("[title=Start]").length||e.filter("[name=end]").length&&e.filter("[title=End]").length||e.filter(".k-recur-until").length)||(i=F.widgetInstance(e,F.ui),i?(t=F.parseDate(e.val(),i.options.format),!!t&&i.value()):(t=F.parseDate(e.val()),!!t))}function p(e){var t,i,n,a,o,r,s,l,d,u,p,h;return!(e.filter("[name=end]").length&&(t=e.closest(".k-scheduler-edit-form"),i=t.find("[name=start]:visible"),n=t.find("[name=end]:visible"),n[0]&&i[0]&&(r=F.widgetInstance(i,F.ui),s=F.widgetInstance(n,F.ui),l=t.data("kendoEditable"),d=l?l.options.model:null,r&&s?(a=r.value(),o=s.value()):(a=F.parseDate(i.val()),o=F.parseDate(n.val())),a&&o)))||(d&&(u=i.attr(F.attr("timezone")),p=d.startTimezone,h=d.endTimezone,p=p||h,h=h||p,p&&(a=c(a,p,u),o=c(o,h,u))),a<=o)}function h(e){var t,i,n,a,o,r;return!(e.filter(".k-recur-until").length&&(t=F.widgetInstance(e,F.ui),i=t.value(),n=e.closest(".k-scheduler-edit-form"),a=n.find("[name=start]:visible"),a[0]&&(r=F.widgetInstance(a,F.ui),o=r?r.value():F.parseDate(a.val()),o&&i)))||o<=i}function f(e,t,i,n){for(var a=e.length,o=[],r=0;r<a;r++)o=o.concat(e[r].expand(t,i,n));return o}function v(e,t){delete e.name,delete e.prefix,delete e.remove,delete e.edit,delete e.add,delete e.navigate;for(var i in t)e[i]=t[i];return e}function m(t){var i=g(t.model,t.field);return function(t,n){e('<textarea name="description" class="k-textarea" title="'+n.title+'"/>').attr(i).appendTo(t)}}function g(t,i){var n,a,o=(t.fields||t)[i],r=["url","email","number","date","boolean"],s=o?o.validation:{},l=F.attr("type"),d=e.inArray,c={};for(n in s)a=s[n],d(n,r)>=0?c[l]=n:F.isFunction(a)||(c[n]=Z(a)?a.value||n:a),c[F.attr(n+"-msg")]=a.message;return c}function _(e,i,n,a){var o,r=e.value(),s=Array.isArray(r);o=s?JSON.parse(JSON.stringify(r)):[""+r],e.dataSource.data().forEach(function(r){if(null===r[n]||r[n]===t||r[n]==i)r.set(ke,!1);else{var l=r.get(a);r.set(ke,!0),(o.indexOf(l)>=0||o.indexOf(""+l)>=0)&&(s?o.splice(o.indexOf(l),1):(e.value(null),e.trigger(ce)))}}),s&&o.length<r.length&&(e.value(o),e.trigger(ce))}function k(e,t,i,n){var a=e.closest(".k-edit-form-container").find("[data-"+F.ns+"bind='value:"+n+"']"),o=a.getKendoDropDownList();o?o.bind(ce,function(e){var n=e.sender.value();_(t,n,i.dataParentValueField,i.dataValueField)}):a.on(ce,function(e){var n=e.target.value;_(t,n,i.dataParentValueField,i.dataValueField)})}function b(e,i,n){var a,o=i.find(be),r=i.val(),s=Array.isArray(r);a=s?JSON.parse(JSON.stringify(r)):[r],e.dataSource.view().forEach(function(r,l){var d,c=F.getter(e.dataParentValueField)(r),u=null===c||c===t||c==n;u?o[l].removeAttribute(ke):(o[l].setAttribute(ke,ke),d=""+r.get(e.dataValueField),a.indexOf(d)>=0&&(s?a.splice(a.indexOf(d),1):(i.val(null),i.trigger(ce))))}),s&&a.length<r.length&&(i.val(a),i.trigger(ce))}function w(t,i,n){var a=g(i,t.field);return function(o){var r;n&&setTimeout(function(){_(r,i[n],t.dataParentValueField,t.dataValueField),k(o,r,t,n)}),r=e(F.format('<select data-{0}bind="value:{1}" title="'+i.title+'">',F.ns,t.field)).appendTo(o).attr(a).kendoDropDownList({dataTextField:t.dataTextField,dataValueField:t.dataValueField,dataSource:t.dataSource.data(),valuePrimitive:t.valuePrimitive,optionLabel:"None",template:F.format('<span #= data.disabled ? "data-disabled": ""#><span class="k-scheduler-mark" style="background-color:#= data.{0}?{0}:"none" #"></span>#={1}#</span>',t.dataColorField,t.dataTextField),select:function(e){e.dataItem.disabled&&e.preventDefault()},dataBound:function(t){var i=t.sender.list.find("li");i.each(function(t,i){var n=e(i);n.find("[data-disabled]").length>0&&n.addClass("k-state-disabled")})}}).data("kendoDropDownList")}}function y(t,i,n){var a=g(i,t.field);return function(o){var r,s,l,d="",c=t.dataSource.view();for(r=0,s=c.length;r<s;r++)d+=F.format('<option value="{0}">{1}</option>',F.getter(t.dataValueField)(c[r]),F.getter(t.dataTextField)(c[r]));l=e(F.format('<select data-{0}bind="value:{1}">{2}</select>',F.ns,t.field,d)).appendTo(o).attr(a),n&&setTimeout(function(){var e=o.closest(".k-stretched-view").find("[data-"+F.ns+"bind='value:"+n+"']"),a=i[n];b(t,l,a),e.on(ce,function(e){var i=e.target.value;b(t,l,i)})})}}function z(t,i,n){var a=g(i,t.field);return function(o){var r;n&&setTimeout(function(){_(r,i[n],t.dataParentValueField,t.dataValueField),k(o,r,t,n)}),r=e(F.format('<select data-{0}bind="value:{1}">',F.ns,t.field)).appendTo(o).attr(a).kendoMultiSelect({dataTextField:t.dataTextField,dataValueField:t.dataValueField,dataSource:t.dataSource.data(),valuePrimitive:t.valuePrimitive,itemTemplate:F.format('<span #= data.disabled ? "data-disabled": "" #><span class="k-scheduler-mark" style="background-color:#= data.{0}?{0}:"none" #"></span>#={1}#</span>',t.dataColorField,t.dataTextField),tagTemplate:F.format('<span class="k-scheduler-mark" style="background-color:#= data.{0}?{0}:"none" #"></span>#={1}#',t.dataColorField,t.dataTextField),select:function(e){e.dataItem.disabled&&e.preventDefault()},dataBound:function(t){var i=t.sender.list.find("li");i.each(function(t,i){var n=e(i);n.find("[data-disabled]").length>0&&n.addClass("k-state-disabled")})}}).data("kendoMultiSelect")}}function T(t,i,n){var a=g(i,t.field);return function(o){var r,s,l,d="",c=t.dataSource.view();for(r=0,s=c.length;r<s;r++)d+=F.format('<option value="{0}">{1}</option>',F.getter(t.dataValueField)(c[r]),F.getter(t.dataTextField)(c[r]));l=e(F.format('<select data-{0}bind="value:{1}" multiple="multiple">{2}</select>',F.ns,t.field,d)).appendTo(o).attr(a),n&&setTimeout(function(){var e=o.closest(".k-stretched-view").find("[data-"+F.ns+"bind='value:"+n+"']"),a=i[n];b(t,l,a),e.on(ce,function(e){var i=e.target.value;b(t,l,i)})})}}function D(e,t){var i,n=e.end.getTime()-e.start.getTime(),a=new Date(e.start.getTime());return F.date.setTime(a,t),i=new Date(a.getTime()),F.date.setTime(i,n,!0),{start:a,end:i}}var S,x,E,R,C,V,P,M,O,A,I,B,F=window.kendo,H=F.date,W=H.MS_PER_DAY,N=H.getDate,L=F.date.getMilliseconds,K=F.recurrence,U=e.extend({F10:121},F.keys),q=F.ui,Y=q.Widget,$=q.DataBoundWidget,j="string",Q=q.Popup,J=q.Calendar,X=F.data.DataSource,Z=e.isPlainObject,G=e.extend,ee=e.proxy,te=Object.prototype.toString,ie=e.isArray,ne=".kendoScheduler",ae="click",oe="mousedown",re=F.support.pointers?"pointerdown":"touchstart",se=F.support.pointers?"pointermove":"touchmove",le=F.support.pointers?"pointerup":"touchend",de=F.support.mousemove,ce="change",ue="progress",pe="error",he="cancel",fe="remove",ve="resetSeries",me="save",ge="add",_e="edit",ke="disabled",be="option",we="k-state-focused",ye="k-state-expanded",ze=".k-scheduler-views",Te="k-event-inverse",De=/(?:value:start|value:end)(?:,|$)/,Se=N(new Date),xe=",",Ee=/\;/g,Re="recurrenceException",Ce="Are you sure you want to delete this event?",Ve="Do you want to delete only this event occurrence or the whole series?",Pe="Do you want to edit only this event occurrence or the whole series?",Me="Are you sure you want to delete this event occurrence?",Oe="Are you sure you want to reset the whole series?",Ae="Are you sure you want to delete the whole series?",Ie='<button type="button" class="k-button #=className#" #=attr#><span class="k-button-text">#=text#</span></button>',Be=F.template('<select class="k-dropdown k-views-dropdown">#for (var view in views) {#<option value="#= view #">${views[view].title}</option>#}#</select>'),Fe=F.template('<div class="k-scheduler-toolbar k-toolbar"># if (pdf) { #<button class="k-button k-pdf"><span class="k-icon k-i-file-pdf"></span><span class="k-button-text">${messages.pdf}</span></button># } #<span class="k-scheduler-navigation k-button-group"><button class="k-button k-nav-today" title="${messages.today}"><span class="k-button-text">${messages.today}</span></button><button class="k-button k-button-icon k-icon-button k-nav-prev" title="${messages.previous}" aria-label="${messages.previous}"><span class="k-icon k-i-arrow-60-left"></span></button><button class="k-button k-button-icon k-icon-button k-nav-next" title="${messages.next}" aria-label="${messages.next}"><span class="k-icon k-i-arrow-60-right"></span></button></span><a role="button" href="\\#" class="k-nav-current"><span class="k-icon k-i-calendar"></span><span class="k-sm-date-format" data-#=ns#bind="text: formattedShortDate"></span><span class="k-lg-date-format" data-#=ns#bind="text: formattedDate"></span></a><span class="k-spacer k-toolbar-spacer"></span># if (search) { #<span class="k-scheduler-search k-textbox"><input autocomplete="off" placeholder="${messages.search}" title="${messages.search}" class="k-input k-scheduler-search-input" /><span class="k-input-icon"><span class="k-icon k-i-search"></span></span></span># } ## if (viewsCount === 1) { #<a role="button" data-#=ns#name="#=view#" href="\\#" class="k-button k-button-icon k-icon-button k-scheduler-refresh"><span class="k-icon k-i-reload"></span></a># } else { #<span class="k-scheduler-views-wrapper"><span class="k-scheduler-views k-button-group"># for (var view in views) { #<button type="button" class="k-button k-view-#= view.toLowerCase() #" data-#=ns#name="#=view#">${views[view].title}</button># } #</span></span># } #</div>'),He=F.template('<div class="k-scheduler-toolbar k-toolbar"><span class="k-scheduler-tools k-button-group"># if (pdf) { #<button type="button" class="k-button k-icon-button k-button-icon k-pdf"><span class="k-icon k-i-file-pdf"></span></button># } #<button type="button" class="k-button k-icon-button k-button-icon k-nav-calendar"><span class="k-icon k-i-calendar"></span></button># if (editable) { #<button type="button" class="k-button k-icon-button k-button-icon k-create-event"><span class="k-icon k-i-plus"></span></button># } #</span><span class="k-spacer k-toolbar-spacer"></span># if (search) { #<span class="k-scheduler-search k-textbox"><input autocomplete="off" placeholder="${messages.search}" title="${messages.search}" class="k-scheduler-search-input" /><span class="k-input-icon"><span class="k-icon k-i-search"></span></span></span># } ##if(viewsCount === 1){#<a role="button" data-#=ns#name="#=view#" href="\\#" class="k-button k-button-icon k-icon-button k-scheduler-refresh"><span class="k-icon k-i-reload"></span></a>#} else {#<select class="k-dropdown k-scheduler-mobile-views">#for(var view in views){#<option class="k-view-#= view.toLowerCase() #" value="#=view#">${views[view].title}</option>#}#</select>#}#</div><div class="k-scheduler-toolbar k-toolbar"><span class="k-scheduler-navigation"><button class="k-button k-button-icon k-icon-button k-nav-prev"><span class="k-icon k-i-arrow-chevron-left"></span></button><span class="k-state-default k-nav-current"><span class="k-m-date-format" data-#=ns#bind="text: formattedMobileDate"></span><span class="k-y-date-format" data-#=ns#bind="text: formattedYear"></span></span><button class="k-button k-button-icon k-icon-button k-nav-next"><span class="k-icon k-i-arrow-chevron-right"></span></button></span></div>'),We=function(t,i){var r={name:i.field,title:i.title},s=i.model.isAllDay,l=F.attr("validate")+"='"+!s+"'",d=F.attr("validate")+"='"+s+"'";n(r,i),a(r,i),o(r,i),e('<input type="datetime-local" required '+F.attr("type")+'="datetime-local" '+F.attr("bind")+'="value:'+i.field+', invisible:isAllDay" '+l+"/>").attr(r).appendTo(t),e('<input type="date" required '+F.attr("type")+'="date" '+F.attr("bind")+'="value:'+i.field+',visible:isAllDay" '+d+"/>").attr(r).appendTo(t),e("<span "+F.attr("for")+'="'+i.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},Ne=function(t,i){var r={name:i.field,title:i.title},s=i.model.isAllDay,l=F.attr("validate")+"='"+!s+"' ",d=F.attr("validate")+"='"+s+"' ";n(r,i),a(r,i),o(r,i),e('<input type="text" required '+F.attr("type")+'="date" '+F.attr("role")+'="datetimepicker" '+F.attr("bind")+'="value:'+i.field+',invisible:isAllDay" '+l+"/>").attr(r).appendTo(t),e('<input type="text" required '+F.attr("type")+'="date" '+F.attr("role")+'="datepicker" '+F.attr("bind")+'="value:'+i.field+',visible:isAllDay" '+d+"/>").attr(r).appendTo(t),e("<span "+F.attr("bind")+'="text: '+i.field+'Timezone"></span>').appendTo(t),"end"===i.field&&e("<span "+F.attr("bind")+'="text: startTimezone, invisible: endTimezone"></span>').appendTo(t),e("<span "+F.attr("for")+'="'+i.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},Le=function(t,i){e("<div "+F.attr("bind")+'="value:'+i.field+'" />').attr({name:i.field}).appendTo(t).kendoRecurrenceEditor({start:i.model.start,timezone:i.timezone,messages:i.messages})},Ke=function(t,i){e("<div "+F.attr("bind")+'="value:'+i.field+'" />').attr({name:i.field}).appendTo(t).kendoMobileRecurrenceEditor({start:i.model.start,timezone:i.timezone,messages:i.messages,pane:i.pane,value:i.model[i.field]})},Ue=function(t,i){e('<input type="checkbox" data-role="switch"'+F.attr("bind")+'="value:'+i.field+'" />').appendTo(t)},qe=function(t,n){var a=i(n.model,n.messages.noTimezone);e('<span class="k-timezone-label"></span>').text(a).appendTo(t),e('<span class="k-icon k-i-arrow-chevron-right"></span>').appendTo(t),t.closest("li.k-item label").click(n.click)},Ye=function(t,i){e('<a href="#" class="k-button" data-bind="invisible:isAllDay">'+i.messages.timezoneEditorButton+"</a>").click(i.click).appendTo(t)},$e=function(t,i){e('<div class="k-mobiletimezoneeditor" '+F.attr("bind")+'="value:'+i.field+'" />').attr({name:i.field}).appendTo(t).kendoMobileTimezoneEditor({optionLabel:i.noTimezone})},je=function(i,n){var a=n.visible||n.visible===t;e("<div "+F.attr("bind")+'="value:'+n.field+'" />').attr({name:n.field}).toggle(a).appendTo(i).kendoTimezoneEditor({optionLabel:n.noTimezone,title:n.title})},Qe=F.Class.extend({init:function(t,i){var n=t.timezone;this.reader=i,i.model&&(this.model=i.model),this.timezone=n,this.data=r(e.proxy(this.data,this),n),this.serialize=s(e.proxy(this.serialize,this),n)},errors:function(e){return this.reader.errors(e)},parse:function(e){return this.reader.parse(e)},data:function(e){return this.reader.data(e)},total:function(e){return this.reader.total(e)},groups:function(e){return this.reader.groups(e)},aggregates:function(e){return this.reader.aggregates(e)},serialize:function(e){return this.reader.serialize(e)}}),Je=F.data.Model.define({init:function(e){var t=this;F.data.Model.fn.init.call(t,e),t._defaultId=t.defaults[t.idField]},_time:function(e){var t=this[e],i="_"+e+"Time";return this[i]?this[i]-F.date.toUtcTime(F.date.getDate(t)):L(t)},_date:function(e){var t="_"+e+"Time";return this[t]?this[t]-this._time(e):F.date.getDate(this[e])},clone:function(t,i){var n=this.uid,a=new this.constructor(e.extend({},this.toJSON(),t));return i||(a.uid=n),a},duration:function(){var e=this.end,t=this.start,i=(e.getTimezoneOffset()-t.getTimezoneOffset())*F.date.MS_PER_MINUTE;return e-t-i},expand:function(e,t,i){return K?K.expand(this,e,t,i):[this]},update:function(e){for(var t in e)this.set(t,e[t]);this._startTime&&this.set("_startTime",F.date.toUtcTime(this.start)),this._endTime&&this.set("_endTime",F.date.toUtcTime(this.end))},isMultiDay:function(){return this.isAllDay||this.duration()>=F.date.MS_PER_DAY},isException:function(){return!this.isNew()&&this.recurrenceId},isOccurrence:function(){return this.isNew()&&this.recurrenceId},isRecurring:function(){return!(!this.recurrenceRule&&!this.recurrenceId)},isRecurrenceHead:function(){return!(!this.id||!this.recurrenceRule)},toOccurrence:function(t){return t=e.extend(t,{recurrenceException:null,recurrenceRule:null,recurrenceId:this.id||this.recurrenceId}),t[this.idField]=this.defaults[this.idField],this.clone(t,!0)},toJSON:function(){var e=F.data.Model.fn.toJSON.call(this);return e.uid=this.uid,delete e._startTime,delete e._endTime,e},shouldSerialize:function(e){return F.data.Model.fn.shouldSerialize.call(this,e)&&"_defaultId"!==e},set:function(e,t){var i,n,a,o=this.isAllDay||!1;F.data.Model.fn.set.call(this,e,t),"isAllDay"==e&&t!=o&&(i=F.date.getDate(this.start),n=new Date(this.end),a=F.date.getMilliseconds(n),0===a&&t&&(a=W),this.set("start",i),t===!0?(F.date.setTime(n,-a),n<i&&(n=i)):F.date.setTime(n,W-a),this.set("end",n))},id:"id",fields:{id:{type:"number"},title:{defaultValue:"",type:"string"},start:{type:"date",validation:{required:!0,validDate:{value:u}}},startTimezone:{type:"string"},end:{type:"date",validation:{required:!0,validDate:{value:u},dateCompare:{value:p}}},endTimezone:{type:"string"},recurrenceRule:{defaultValue:"",type:"string",validation:{validDate:{value:u},untilDateCompare:{value:h}}},recurrenceException:{defaultValue:"",type:"string"},isAllDay:{type:"boolean",defaultValue:!1},description:{type:"string"}}}),Xe=X.extend({init:function(e){X.fn.init.call(this,G(!0,{},{schema:{modelBase:Je,model:Je}},e)),this.reader=new Qe(this.options.schema,this.reader)},expand:function(e,t){var i,n=this.view(),a={};return e&&t&&(i=t.getTimezoneOffset(),t=new Date(t.getTime()+W-1),t.getTimezoneOffset()!==i&&(t=F.timezone.apply(t,i)),a={logic:"or",filters:[{logic:"and",filters:[{field:"start",operator:"gte",value:e},{field:"end",operator:"gte",value:e},{field:"start",operator:"lte",value:t}]},{logic:"and",filters:[{field:"start",operator:"lte",value:new Date(e.getTime()+W-1)},{field:"end",operator:"gte",value:e}]}]},n=new F.data.Query(f(n,e,t,this.reader.timezone)).filter(a).toArray()),n},cancelChanges:function(e){e&&e.isOccurrence()&&this._removeExceptionDate(e),X.fn.cancelChanges.call(this,e)},insert:function(e,t){if(t){if(!(t instanceof Je)){var i=t;t=this._createNewModel(),t.accept(i)}return(!this._pushCreated&&t.isRecurrenceHead()||t.recurrenceId)&&(t=t.recurrenceId?t:t.toOccurrence(),this._addExceptionDate(t)),X.fn.insert.call(this,e,t)}},pushCreate:function(e){this._pushCreated=!0,X.fn.pushCreate.call(this,e),this._pushCreated=!1},remove:function(e){return e.isRecurrenceHead()?this._removeExceptions(e):e.isRecurring()&&this._addExceptionDate(e),X.fn.remove.call(this,e)},_removeExceptions:function(e){for(var t=this.data().slice(0),i=t.shift(),n=e.id;i;)i.recurrenceId===n&&X.fn.remove.call(this,i),i=t.shift();e.set(Re,"")},_removeExceptionDate:function(e){var t,i,n,a;e.recurrenceId&&(t=this.get(e.recurrenceId),t&&(i=e.defaults.start,n=RegExp("(\\"+xe+"?)"+K.toExceptionString(i,this.reader.timezone)),a=(t.recurrenceException||"").replace(Ee,xe).replace(/\,$/,""),n.test(a)?t.set(Re,a.replace(n,"")):(i=e.start,n=RegExp("(\\"+xe+"?)"+K.toExceptionString(i,this.reader.timezone)),t.set(Re,a.replace(n,"")))))},_addExceptionDate:function(e){var t,i=e.start,n=this.reader.timezone,a=this.get(e.recurrenceId),o=(a.recurrenceException||"").replace(Ee,xe).replace(/\,$/,"");K.isException(o,i,n)||(t=K.toExceptionString(i,n),e.defaults.start=i,a.set(Re,o+(o&&t?xe:"")+t))}});Xe.create=function(e){(ie(e)||e instanceof F.data.ObservableArray)&&(e={data:e});var t=e||{},i=t.data;if(t.data=i,!(t instanceof Xe)&&t instanceof F.data.DataSource)throw Error("Incorrect DataSource type. Only SchedulerDataSource instances are supported");return t instanceof Xe?t:new Xe(t)},G(!0,F.data,{SchedulerDataSource:Xe,SchedulerDataReader:Qe,SchedulerEvent:Je}),S={update:{text:"Save",className:"k-primary k-scheduler-update"},canceledit:{text:"Cancel",className:"k-scheduler-cancel"},destroy:{text:"Delete",imageClass:"k-i-close",className:"k-primary k-scheduler-delete",iconClass:"k-icon"}},x={mobile:{dateRange:We,timezonePopUp:qe,timezone:$e,recurrence:Ke,description:m,multipleResources:T,resources:y,isAllDay:Ue},desktop:{dateRange:Ne,timezonePopUp:Ye,timezone:je,recurrence:Le,description:m,multipleResources:z,resources:w}},E=F.Observable.extend({init:function(e,t){F.Observable.fn.init.call(this),this.element=e,this.options=G(!0,{},this.options,t),this.createButton=this.options.createButton,this.toggleDateValidationHandler=ee(this._toggleDateValidation,this)},_toggleDateValidation:function(t){if("isAllDay"==t.field){var i,n,a,o=this.container,r=this.editable.options.model.isAllDay,s=F.attr("bind");o.find("["+s+"*=end],["+s+"*=start]").each(function(){i=e(this),De.test(i.attr(s))&&(n=i.is("["+F.attr("role")+"=datetimepicker],[type*=datetime]"),a=r!==n,i.attr(F.attr("validate"),a))})}},fields:function(e,t){var i,n,a,o,r,s,l=this,d=l.options.messages,c=l.options.timezone,u=function(e){e.preventDefault(),l._initTimezoneEditor(t,this)},p=[{field:"title",title:d.editor.title},{field:"start",title:d.editor.start,editor:e.dateRange,timezone:c},{field:"end",title:d.editor.end,editor:e.dateRange,timezone:c},{field:"isAllDay",title:d.editor.allDayEvent,editor:e.isAllDay}],h=function(e){return!!e[n.dataParentValueField]};F.timezone.windows_zones&&(p.push({field:"timezone",title:d.editor.timezone,editor:e.timezonePopUp,click:u,messages:d.editor,model:t}),p.push({field:"startTimezone",title:d.editor.startTimezone,editor:e.timezone,noTimezone:d.editor.noTimezone}),p.push({field:"endTimezone",title:d.editor.endTimezone,editor:e.timezone,noTimezone:d.editor.noTimezone})),t.recurrenceId||p.push({field:"recurrenceRule",title:d.editor.repeat,editor:e.recurrence,timezone:c,messages:d.recurrenceEditor,pane:this.pane}),"description"in t&&p.push({field:"description",title:d.editor.description,editor:e.description({model:t,field:"description"})});for(i=0;i<this.options.resources.length;i++)n=this.options.resources[i],a=n.dataSource.view(),o=a.some(h),o&&(r=this.options.resources[i-1],r&&(s=r.field)),p.push({field:n.field,title:n.title,editor:n.multiple?e.multipleResources(n,t,s):e.resources(n,t,s)});return p},end:function(){return this.editable.end()},_buildDesktopEditTemplate:function(e,t,i){var n,a,o,r,s=this.options.messages,l=G({},F.Template,this.options.templateSettings),d=l.paramName,c="";for(n=0,a=t.length;n<a;n++)o=t[n],"startTimezone"===o.field&&(c+='<div class="k-popup-edit-form k-scheduler-edit-form k-scheduler-timezones" style="display:none">',c+='<div class="k-edit-form-container">',c+='<div class="k-edit-label"></div>',c+='<div class="k-edit-field"><label class="k-check"><input class="k-timezone-toggle" type="checkbox" />'+s.editor.separateTimezones+"</label></div>"),c+='<div class="k-edit-label"><label for="'+o.field+'">'+(o.title||o.field||"")+"</label></div>",!e.editable||e.editable(o.field)?(i.push(o),c+="<div "+F.attr("container-for")+'="'+o.field+'" class="k-edit-field"></div>'):(r="#:",o.field?(o=F.expr(o.field,d),r+=o+"==null?'':"+o):r+="''",r+="#",r=F.template(r,l),c+='<div class="k-edit-field">'+r(e)+"</div>"),"endTimezone"===o.field&&(c+=this._createEndTimezoneButton());return c},_buildMobileEditTemplate:function(e,t,i){var n,a,o,r,s=this.options.messages,l=G({},F.Template,this.options.templateSettings),d=l.paramName,c="";for(c+='<ul class="k-listgroup k-listgroup-flush">',n=0,a=t.length;n<a;n++)o=t[n],"timezone"!==o.field&&"recurrenceRule"!==o.field||(c+='</ul><ul class="k-listgroup k-listgroup-flush">'),"startTimezone"===o.field&&(c+='<div class="k-popup-edit-form k-scheduler-edit-form k-scheduler-timezones" style="display:none">',c+='<ul class="k-listgroup k-listgroup-flush">',c+='<li class="k-item k-listgroup-item">',c+='<label class="k-label k-listgroup-form-row">',c+='<span class="k-item-title k-listgroup-form-row">'+s.editor.separateTimezones+"</span>",c+='<span class="k-listgroup-form-field-wrapper">',c+='<input class="k-timezone-toggle" data-role="switch" type="checkbox" />',c+="</span>",c+="</label>",c+="</li>"),!e.editable||e.editable(o.field)?(c+='<li class="k-item k-listgroup-item">',c+="timezone"===o.field?'<label class="k-label k-listgroup-form-row" data-bind="css: { k-state-disabled: isAllDay }">':'<label class="k-label k-listgroup-form-row">',c+='<span class="k-item-title k-listgroup-form-field-label">'+(o.title||o.field||"")+"</span>",i.push(o),c+='<div class="k-listgroup-form-field-wrapper" '+F.attr("container-for")+'="'+o.field+'"></div>',c+="</label></li>"):(r="#:",c+='<li class="k-item k-listgroup-item">',c+='<label class="k-label k-no-click k-listgroup-form-row">',c+='<span class="k-item-title k-listgroup-form-field-label">'+(o.title||o.field||"")+"</span>",o.field?(o=F.expr(o.field,d),r+=o+"==null?'':"+o):r+="''",r+="#",r=F.template(r,l),c+='<span class="k-no-editor k-listgroup-form-field-wrapper">'+r(e)+"</span>",c+="</label></li>"),"recurrenceRule"===o.field&&(c+='</ul><ul class="k-listgroup k-listgroup-flush">'),"endTimezone"===o.field&&(c+="</ul></div>");return c+="</ul>"},_buildEditTemplate:function(e,t,i,n){var a=G({},F.Template,this.options.templateSettings),o=this.options.editable.template,r="";return o?(typeof o===j&&(o=F.unescape(o)),r+=F.template(o,a)(e)):r+=n?'<div data-role="content">'+this._buildMobileEditTemplate(e,t,i)+"</div>":this._buildDesktopEditTemplate(e,t,i),r},_createEndTimezoneButton:function(){return"</ul></div>"},_revertTimezones:function(e){e.set("startTimezone",this._startTimezone),e.set("endTimezone",this._endTimezone),delete this._startTimezone,delete this._endTimezone}}),R=E.extend({init:function(){E.fn.init.apply(this,arguments),this.pane=F.Pane.wrap(this.element,{viewEngine:{viewOptions:{renderOnInit:!0,wrap:!1,wrapInSections:!0,detachOnHide:!1,detachOnDestroy:!1}}}),this.pane.element.parent().css("height",this.options.height),this.view=this.pane.view()},options:{animations:{left:"slide",right:"slide:right"}},destroy:function(){this.close(),this.unbind(),this.pane.destroy()},_initTimezoneEditor:function(t){var n,a=this,o=a.pane,r=a.options.messages,s=a.timezoneView,l=s?s.content.find(".k-scheduler-timezones"):a.container.find(".k-scheduler-timezones"),d=l.find("input.k-timezone-toggle").data("kendoSwitch"),c=l.find("li.k-item:not(.k-zonepicker):last"),u=function(e){if("startTimezone"===e.field){var i=t.startTimezone;d.enable(i),i||(c.hide(),t.set("endTimezone",""),d.value(!1))}};a._startTimezone=t.startTimezone||"",a._endTimezone=t.endTimezone||"",s||(n='<div data-role="view" class="k-popup-edit-form k-scheduler-edit-form"><div data-role="header" class="k-header"><a href="\\#" class="k-header-cancel k-scheduler-cancel k-link" title="'+r.cancel+'"aria-label="'+r.cancel+'"><span class="k-icon k-i-arrow-chevron-left"></span></a>'+r.editor.timezoneTitle+'<a href="\\#" class="k-header-done k-scheduler-update k-link" title="'+r.save+'" aria-label="'+r.save+'"><span class="k-icon k-i-check"></span></a></div><div data-role="content"></div>',this.timezoneView=s=o.append(n),s.contentElement.append(l.show()),s.element.on(ae+ne,".k-scheduler-cancel, .k-scheduler-update",function(n){var s,l;n.preventDefault(),n.stopPropagation(),e(this).hasClass("k-scheduler-cancel")&&a._revertTimezones(t),s=a._editPane,l=i(t,r.editor.noTimezone),s.content.find(".k-timezone-label").text(l),o.navigate(s,a.options.animations.right)}),d.bind(ce,function(e){c.toggle(e.checked),t.set("endTimezone","")}),t.bind(ce,u)),d.value(!!t.endTimezone),d.enable(!!t.startTimezone),t.endTimezone?c.show():c.hide(),o.navigate(s,a.options.animations.left)},showDialog:function(t){var i=t.buttons.map(function(e){return{text:e.text,action:e.click}});i.push({text:this.options.messages.cancel, primary:!0}),e("<div />").appendTo(document.body).kendoDialog({close:function(){this.destroy()},modal:{preventScroll:!0},closable:!1,title:!1,content:t.text,actions:i})},editEvent:function(t){var i,n,a,o,r,s,l,d=this.pane,c="",u=this.options.messages,p=u.save,h=u.destroy,f=u.cancel,v=u.editor.editorTitle,m=u.resetSeries;return c+='<div data-role="view" class="k-popup-edit-form k-scheduler-edit-form"'+F.attr("uid")+'="'+t.uid+'"><div data-role="header" class="k-header"><a href="\\#" class="k-header-cancel k-scheduler-cancel k-link" title="'+f+'"aria-label="'+f+'"><span class="k-icon k-i-arrow-chevron-left"></span></a>'+v+'<a href="\\#" class="k-header-done k-scheduler-update k-link" title="'+p+'" aria-label="'+p+'"><span class="k-icon k-i-check"></span></a></div>',i=this.fields(x.mobile,t),n=this,a=[],c+=this._buildEditTemplate(t,i,a,!0),c+="</div>",o=d.append(c),!t.isNew()&&this.options.editable&&this.options.editable.destroy!==!1&&t.isRecurrenceHead()&&t.recurrenceException&&(r='<ul class="k-edit-buttons k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><span class="k-scheduler-resetSeries k-link k-label" aria-label="'+m+'">'+m+"</span></li></ul>",o.contentElement.append(r)),!t.isNew()&&this.options.editable&&this.options.editable.destroy!==!1&&(s='<ul class="k-edit-buttons k-listgroup k-listgroup-flush"><li class="k-item k-listgroup-item"><span class="k-scheduler-delete k-link k-label" aria-label="'+h+'">'+h+"</span></li></ul>",o.contentElement.append(s)),this._editPane=o,l=this.container=o.element,this.editable=l.kendoEditable({fields:a,model:t,clearContainer:!1,target:n.options.target,validateOnBlur:!0}).data("kendoEditable"),this.trigger("edit",{container:l,model:t})?this.trigger("cancel",{container:l,model:t}):(l.on(ae+ne,"a.k-scheduler-edit, a.k-scheduler-cancel, a.k-scheduler-update, span.k-scheduler-delete, span.k-scheduler-resetSeries",function(i){var a,o;i.preventDefault(),i.stopPropagation(),a=e(this),a.hasClass("k-scheduler-edit")?d.navigate(this._editPane,n.options.animations.right):(o="cancel",a.hasClass("k-scheduler-update")?o="save":a.hasClass("k-scheduler-delete")?o="remove":a.hasClass("k-scheduler-resetSeries")&&(o=ve),n.trigger(o,{container:l,model:t}))}),d.navigate(o,n.options.animations.left),t.bind(ce,n.toggleDateValidationHandler)),this.editable},_views:function(){return this.pane.element.find(F.roleSelector("view")).not(this.view.element)},close:function(){var e,t,i,n;if(this.container){for(this.pane.navigate("",this.options.animations.right),e=this._views(),i=0,n=e.length;i<n;i++)t=e.eq(i).data("kendoView"),t&&t.purge();e.remove(),this.container=null,this.editable&&(this.editable.options.model.unbind(ce,this.toggleDateValidationHandler),this.editable.destroy(),this.editable=null),this.timezoneView=null}}}),C=E.extend({destroy:function(){this.close(),this.unbind()},editEvent:function(t){var i,n,a,o=this,r=o.options.editable,s="<div "+F.attr("uid")+'="'+t.uid+'" class="k-popup-edit-form k-scheduler-edit-form"><div class="k-edit-form-container">',l=o.options.messages,d=l.save,c=l.cancel,u=l.destroy,p=l.resetSeries,h=this.fields(x.desktop,t),f=[];return s+=this._buildEditTemplate(t,h,f,!1),n=Z(r)?r.window:{},s+='<div class="k-edit-buttons k-state-default">',s+=this.createButton({name:"update",text:d,attr:i})+this.createButton({name:"canceledit",text:c,attr:i}),!t.isNew()&&r.destroy!==!1&&t.isRecurrenceHead()&&t.recurrenceException&&(s+=this.createButton({name:"resetSeries",text:p,attr:i})),t.isNew()&&!t.isRecurring()||r.destroy===!1||(s+=this.createButton({name:"delete",text:u,attr:i})),s+="</div></div></div>",a=this.container=e(s).appendTo(o.element).eq(0).kendoWindow(G({modal:!0,resizable:!1,draggable:!0,title:l.editor.editorTitle,visible:!1,close:function(e){e.userTriggered&&o.trigger(he,{container:a,model:t})&&e.preventDefault()}},n)),o.editable=a.kendoEditable({fields:f,model:t,clearContainer:!1,validateOnBlur:!0,target:o.options.target}).data("kendoEditable"),o.trigger(_e,{container:a,model:t})?o.trigger(he,{container:a,model:t}):(a.data("kendoWindow").center().open(),a.on(ae+ne,"button.k-scheduler-cancel",function(e){e.preventDefault(),e.stopPropagation(),o.trigger(he,{container:a,model:t})}),a.on(ae+ne,"button.k-scheduler-update",function(e){e.preventDefault(),e.stopPropagation(),o.trigger("save",{container:a,model:t})}),a.on(ae+ne,"button.k-scheduler-delete",function(e){e.preventDefault(),e.stopPropagation(),o.trigger(fe,{container:a,model:t})}),a.on(ae+ne,"button.k-scheduler-resetSeries",function(e){e.preventDefault(),e.stopPropagation(),o.trigger(ve,{container:a,model:t})}),F.cycleForm(a),t.bind(ce,o.toggleDateValidationHandler)),o.editable},close:function(){var e=this,t=function(){e.editable&&(e.editable.options.model.unbind(ce,e.toggleDateValidationHandler),e.editable.destroy(),e.editable=null,e.container=null),e.popup&&(e.popup.destroy(),e.popup=null)};e.editable?(e._timezonePopup&&e._timezonePopup.data("kendoWindow")&&(e._timezonePopup.data("kendoWindow").destroy(),e._timezonePopup=null),e.container.is(":visible")?e.container.data("kendoWindow").bind("deactivate",t).close():t()):t()},_createEndTimezoneButton:function(){var e=this.options.messages,t="";return t+='<div class="k-edit-buttons k-state-default">',t+=this.createButton({name:"savetimezone",text:e.save})+this.createButton({name:"canceltimezone",text:e.cancel}),t+="</div></div></div>"},showDialog:function(t){var i,n,a,o=F.format("<div class='k-popup-edit-form'><div class='k-edit-form-container'><p class='k-popup-message'>{0}</p>",t.text);for(o+='<div class="k-edit-buttons k-state-default">',i=0;i<t.buttons.length;i++)o+=this.createButton(t.buttons[i]);o+="</div></div></div>",n=this.element,this.popup&&this.popup.destroy(),a=this.popup=e(o).appendTo(n).eq(0).on(ae,".k-button",function(i){i.preventDefault(),a.close();var n=e(i.currentTarget).index();t.buttons[n].click()}).kendoWindow({modal:!0,resizable:!1,draggable:!1,title:t.title,visible:!1,close:function(){this.destroy(),n.focus()}}).getKendoWindow(),a.center().open()},_initTimezoneEditor:function(e,t){var i,n=this,a=n.container.find(".k-scheduler-timezones"),o=a.find("input.k-timezone-toggle"),r=a.find(".k-edit-label:last").add(a.find(".k-edit-field:last")),s=a.find(".k-scheduler-savetimezone"),l=a.find(".k-scheduler-canceltimezone"),d=n._timezonePopup,c=function(t){if("startTimezone"===t.field){var i=e.startTimezone;o.prop(ke,!i),i||(r.hide(),e.set("endTimezone",""),o.prop("checked",!1))}};n._startTimezone=e.startTimezone,n._endTimezone=e.endTimezone,d||(n._timezonePopup=d=a.kendoWindow({modal:!0,resizable:!1,draggable:!0,title:n.options.messages.editor.timezoneEditorTitle,visible:!1,close:function(i){e.unbind(ce,c),i.userTriggered&&n._revertTimezones(e),t&&t.focus()}}),o.click(function(){r.toggle(o.prop("checked")),e.set("endTimezone","")}),s.click(function(e){e.preventDefault(),i.close()}),l.click(function(t){t.preventDefault(),n._revertTimezones(e),i.close()}),e.bind(ce,c)),o.prop("checked",e.endTimezone).prop(ke,!e.startTimezone),e.endTimezone?r.show():r.hide(),i=d.data("kendoWindow"),i.center().open()}}),V=$.extend({init:function(t,i){var n=this;Y.fn.init.call(n,t,i),n.options.views&&n.options.views.length||(n.options.views=["day","week"]),n.resources=[],n._initModel(),n._wrapper(),n._views(),n._toolbar(),n._dataSource(),n._resources(),n._resizeHandler=function(){n.resize()},n.wrapper.on(oe+ne+" selectstart"+ne,function(t){e(t.target).is(":kendoFocusable")||t.preventDefault()}),n.options.editable&&n.options.editable.resize!==!1&&n._resizable(),n._movable(),n._bindResize(),n.options.messages&&n.options.messages.recurrence&&(K.options=n.options.messages.recurrence),n._selectable(),n._touchHandlers(),n._ariaId=F.guid(),n._createEditor()},_bindResize:function(){e(window).on("resize"+ne,this._resizeHandler)},_unbindResize:function(){e(window).off("resize"+ne,this._resizeHandler)},dataItems:function(){var i,n,a,o,r,s=this,l=s.items(),d=s._data,c=e.map(l,function(t){return e(t).attr("data-uid")}),u={},p=c.length;for(i=0;i<p;i++)u[c[i]]=null;for(a=d.length,i=0;i<a;i++)o=d[i],u[o.uid]!==t&&(u[o.uid]=o);r=[];for(n in u)r.push(u[n]);return r},_isMobile:function(){var e=this.options;return e.mobile===!0&&F.support.mobileOS||"phone"===e.mobile||"tablet"===e.mobile},_isTouch:function(e){return/touch/.test(e.type)||e.originalEvent&&/touch/.test(e.originalEvent.pointerType)},_isInverseColor:function(e){return e.hasClass(Te)},_groupsByResource:function(e,t,i,n,a){var o,r,s,l,d,c,u;if(i||(i=[]),o=e[0]){for(s=o.dataSource.view(),l=0,d=0;d<s.length;d++)c=F.getter(o.dataValueField)(s[d]),u=t+l+d,r=this._groupsByResource(e.slice(1),u,i,c,o.field),r[o.field]=c,l=r.groupIndex,a&&n&&(r[a]=n),1===e.length&&(r.groupIndex=t+d,i.push(r));return r}return{}},data:function(){return this._data},select:function(i){var n,a,o,r,s,l,d,c,u,p,h=this,f=h.view(),v=h._selection,m=f.groups;if(i===t)return o=f._selectedSlots,v?(v&&v.events&&(a=h._selectedEvents()),{start:v.start,end:v.end,events:a,slots:o,resources:f._resourceBySlot(v)}):[];if(!i)return h._selection=null,h._old=null,f.clearSelection(),t;if(e.isArray(i)&&(i={events:i.splice(0)}),i.resources){s=[],l=[],f.groupedResources&&h._groupsByResource(f.groupedResources,0,l);for(r in i.resources)s.push({field:r,operator:"eq",value:i.resources[r]});n=new F.data.Query(l).filter(s).toArray()}return i.events&&i.events.length?(h._selectEvents(i.events,n),h._select(),t):(m&&i.start&&i.end&&(d=N(f._startDate),c=F.date.addDays(N(f._endDate),1),i.start<c&&d<=i.end&&(u=n&&n.length?m[n[0].groupIndex]:m[0],u.timeSlotCollectionCount()||(i.isAllDay=!0),p=u.ranges(i.start,i.end,i.isAllDay,!1),p.length&&(h._selection={start:F.timezone.toLocalDate(p[0].start.start),end:F.timezone.toLocalDate(p[p.length-1].end.end),groupIndex:p[0].start.groupIndex,index:p[0].start.index,isAllDay:p[0].start.isDaySlot,events:[]},h._select()))),t)},_selectEvents:function(e,t){var i,n,a,o,r,s,l,d,c=this,u=c.view(),p=u.groups,h=e.length,f=t&&t.length,v=c._ctrlKey;for(c._ctrlKey=!0,i=0;i<h;i++)if(p&&f){for(n=p[t[0].groupIndex],a=[],o=n.timeSlotCollectionCount(),r=n.daySlotCollectionCount(),s=0;s<o;s++)a=a.concat(n.getTimeSlotCollection(s).events());for(l=0;l<r;l++)a=a.concat(n.getDaySlotCollection(l).events());a=new F.data.Query(a).filter({field:"element[0].getAttribute('data-uid')",operator:"eq",value:e[i]}).toArray(),a[0]&&c._createSelection(a[0].element)}else d=u.element.find(F.format(".k-event[data-uid={0}], .k-task[data-uid={0}]",e[i])),d.length&&c._createSelection(d[0]);c._ctrlKey=v},_touchHandlers:function(){var t,i,n,a,o,r=this,s=r.wrapper,l=e.proxy(r._touchMove,r);s.on(re+ne,".k-scheduler-header-all-day td, .k-scheduler-content td, .k-event",function(e){var n=r.wrapper.find(".k-scheduler-content");r._isTouch(e)&&(n.stop(!0,!1),r._touchPosX=t=r._tapPosition(e,"X"),r._touchPosY=i=r._tapPosition(e,"Y"),r._userTouched=!0,r.view()._scrolling=!1,o=Date.now(),s.on(se+ne,".k-scheduler-header-all-day td, .k-scheduler-content td, .k-event",l))}),s.on(le+ne,".k-scheduler-header-all-day td, .k-scheduler-content td, .k-event",function(e){var d,c,u;r._isTouch(e)&&(d=Date.now()-o,c=r.wrapper.find(".k-scheduler-content"),u=-r._amplitude*(3e3/d),n=r._tapPosition(e,"X"),a=r._tapPosition(e,"Y"),r._dragging||(r.options.selectable&&(Math.abs(n-t)<=10||Math.abs(a-i)<=10)&&r._mouseDownSelection(e),!F.support.kineticScrollNeeded&&d<200&&Math.abs(n-t)>10&&c.animate({scrollTop:c[0].scrollTop+u}),s.off(se+ne,".k-scheduler-header-all-day td, .k-scheduler-content td",l)))})},_selectable:function(){var t,i=this,n=i.wrapper;i.options.selectable&&(i._tabindex(),n.on(oe+ne,".k-scheduler-header-all-day td, .k-scheduler-content td, .k-event, .k-scheduler-body td .k-link",function(e){i._isTouch(e)||i._mouseDownSelection(e)}),t=e.proxy(i._mouseMove,i),n.on(oe+ne,".k-scheduler-header-all-day td, .k-scheduler-content td",function(e){var a=e.which,o=e.button,r=a&&3===a||o&&2==o;i._isTouch(e)||r||n.on(de+ne,".k-scheduler-header-all-day td, .k-scheduler-content td",t)}),n.on("mouseup"+ne+" mousecancel"+ne,function(){n.off(de+ne,".k-scheduler-header-all-day td, .k-scheduler-content td",t)}),n.on("focus"+ne,function(){i._selection||i._userTouched||i._selectFirstSlot(),i._select()}),n.on("focusout"+ne,function(t){i._ctrlKey=i._shiftKey=!1,e(t.relatedTarget).closest(ze).length||i.toolbar.find(ze).removeClass(ye)}),n.on("keydown"+ne,ee(i._keydown,i)),n.on("keyup"+ne,function(e){i._ctrlKey=e.ctrlKey,i._shiftKey=e.shiftKey}))},_mouseDownSelection:function(e){var t=e.which,i=e.button,n=t&&3===t||i&&2==i;n||(e.ctrlKey&&(this._ctrlKey=e.ctrlKey),e.shiftKey&&(this._shiftKey=e.shiftKey),this._createSelection(e.currentTarget)),F._activeElement()!==this.wrapper.get(0)?F.focusElement(this.wrapper):this._select(),this.toolbar&&this.toolbar.find("."+we).removeClass(we)},_selectFirstSlot:function(){var e=this.wrapper.find(".k-scheduler-content").find("td:first")||this.wrapper.find(".k-scheduler-body").find(".k-link:first");this._createSelection(e)},_select:function(){var t,i,n,a,o,r=this,s=r.view(),l=r.wrapper,d=s.current(),c=r._selection,u=r._old?r._old.selection:null,p=r._old?r._old.eventsLength:null;if(c&&(d&&(d.removeAttribute("id"),d.removeAttribute("aria-label"),l.removeAttr("aria-activedescendant")),s.select(c),d=s.current(),d&&(u!==d||c.events&&p!==c.events.length))){if(t=e(d).data("uid"),r._old&&t&&t===e(r._old.selection).data("uid")&&c.events&&r._old.eventsLength===c.events.length)return;n=c,a=r._selectedEvents(),o=s._selectedSlots,a[0]?(n=a[0]||c,i=F.format(r.options.messages.ariaEventLabel,n.title,n.start,n.start)):i=F.format(r.options.messages.ariaSlotLabel,n.start,n.end),d.setAttribute("id",r._ariaId),d.setAttribute("aria-label",i),l.attr("aria-activedescendant",r._ariaId),r._old={selection:d,eventsLength:a.length},r.trigger(ce,{start:c.start,end:c.end,events:a,slots:o,resources:s._resourceBySlot(c)})}},_selectedEvents:function(){for(var e,t=this._selection.events,i=t.length,n=0,a=[];n<i;n++)e=this.occurrenceByUid(t[n]),e&&a.push(e);return a},_tapPosition:function(e,t){return/touch/.test(e.type)?(e.originalEvent||e).changedTouches[0]["page"+t]:e["page"+t]},_touchMove:function(e){var t=this,i=t.wrapper.find(".k-scheduler-content"),n=i[0].scrollHeight>i[0].clientHeight,a=i[0].scrollWidth>i[0].clientWidth,o=t._tapPosition(e,"Y"),r=t._tapPosition(e,"X"),s=i[0].scrollTop-Math.round(o-t._touchPosY),l=i[0].scrollLeft-Math.round(r-t._touchPosX),d=n&&Math.abs(o-t._touchPosY)>10,c=a&&Math.abs(o-t._touchPosY)>10;t._dragging||F.support.kineticScrollNeeded||!t._isTouch(e)||(d||c)&&(t._amplitude=Math.round(o-t._touchPosY),t._touchPosY=o,t._touchPosX=r,i.animate({scrollTop:s,scrollLeft:l},0),t.view()._scrolling=!0)},_mouseMove:function(t){var i=this;clearTimeout(i._moveTimer),i._isTouch(t)||(i._moveTimer=setTimeout(function(){var n,a,o,r=i.view(),s=i._selection;s&&(n=r.selectionByElement(e(t.currentTarget)),n&&s.groupIndex===n.groupIndex&&(a=n.startDate(),o=n.endDate(),a>=s.end?s.backward=!1:o<=s.start&&(s.backward=!0),s.backward?s.start=a:s.end=o,i._select()))},5))},_viewByIndex:function(e){var t,i=this.views;for(t in i){if(!e)return t;e--}},_keydown:function(i){var n,a,o,r,s,l=this,d=i.keyCode,c=l.view(),u=c.options.editable,p=l._selection,h=e.extend(p),f=16===d||18===d||17===d||91===d||92===d,v="> .k-button,.k-scheduler-navigation > .k-button,.k-nav-current,.k-views-dropdown:visible,.k-scheduler-views > .k-button",m=l.toolbar.find(v),g=l.toolbar.find(ze),_=e(i.target).closest(ze).length||l.toolbar.find(".k-scheduler-views .k-state-focused").length,k=g.children().index(l.toolbar.find("."+we)),b=F.support.isRtl(l.element),w=e(i.target).is(".k-views-dropdown"),y=b?-1:1;if(k==-1&&(k=g.children().index(l.toolbar.find(".k-state-selected"))),l._ctrlKey=i.ctrlKey,l._shiftKey=i.shiftKey,d===U.F10)return l._focusToolbar(),i.preventDefault(),t;if(d===U.TAB){if(l.toolbar.find("."+we).length)return n=m.index(l.toolbar.find("."+we)),a=i.shiftKey?m[n-1]:m[n+1],l.toolbar.find("."+we).removeClass(we),a?(e(a).addClass(we).focus(),l._focusedView=null,i.preventDefault(),t):(l.element.focus(),i.preventDefault(),t)}else if(d===U.ENTER||d===U.SPACEBAR){if(_&&l._focusedView&&!l._focusedView.hasClass("k-state-selected"))return o=l._focusedView.data().name,l.trigger("navigate",{view:o,action:"changeView",date:l.date()})||l.view(o),i.preventDefault(),t;if(l.toolbar.find("."+we+":visible").length)return l.toolbar.find("."+we+":visible").click(),i.preventDefault(),t}else if(i.altKey&&d===U.DOWN&&!w){if(l.toolbar.find("."+we+":visible").length)return l.toolbar.find("."+we+":visible").click(),i.preventDefault(),t}else{if(d===U.RIGHT&&_)return e(l.toolbar.find("."+we)).removeClass(we),l._focusedView=e(b?k-1===0?g.children(":last"):g.children()[k+1*y]:k+1===g.children().length?g.children(":first"):g.children()[k+1*y]),l._focusedView.focus().addClass(we),i.preventDefault(),t;if(d===U.LEFT&&_)return e(l.toolbar.find("."+we)).removeClass(we),l._focusedView=e(b?k+1===g.children().length?g.children(":first"):g.children()[k-1*y]:k-1<0?g.children(":last"):g.children()[k-1*y]),l._focusedView.focus().addClass(we),i.preventDefault(),t;if(i.altKey&&d===U.DOWN&&l.toolbar.find(".k-nav-current").hasClass(we))return l._showCalendar(),i.preventDefault(),t;if(i.altKey&&d===U.DOWN&&w)return;if(d===U.ESC&&l.popup&&l.popup.visible())return l.popup.close(),i.preventDefault(),t}if(!f){if(!p)return l._selectFirstSlot(),l._select(),l.element.focus(),t;if("year"===l._selectedViewName)return c.move(p,d)&&(l.toolbar.find("."+we).removeClass(we),l._select()),p&&l._adjustSelectedDate(),i.preventDefault(),t;if(d===U.TAB){if(!c.moveToEvent(p,i.shiftKey))return l._focusToolbar(),i.preventDefault(),t;l._select(),document.activeElement.getAttribute("id")!==l.element.attr("id")&&l.element.focus(),i.preventDefault()}else d===U.ENTER||d===U.SPACEBAR?p.events.length&&u?u.update!==!1&&l.editEvent(p.events[0]):u&&u.create!==!1&&(p.isAllDay&&(p=e.extend({},p,{end:F.date.addDays(p.end,-1)})),i.preventDefault(),l.addEvent(G({},p,c._resourceBySlot(p)))):d===U.DELETE&&u!==!1&&u.destroy!==!1?l.removeEvent(p.events[0]):d>=49&&d<=57?(r=l._viewByIndex(d-49),r&&!l.trigger("navigate",{view:r,action:"changeView",date:l.date()})&&l.view(r)):c.move(p,d,i.shiftKey)&&(c.inRange(p)?(l._select(),e(document.activeElement).blur(),l.toolbar.find("."+we).removeClass(we),l.wrapper.focus()):(s=l.date().getTime()>p.start.getTime()?"previous":"next",l.trigger("navigate",{view:l._selectedViewName,action:s,date:p.start})?(p.start=h.start,p.end=h.end):l.date(p.start)),i.preventDefault());l._adjustSelectedDate()}},_focusToolbar:function(){this.toolbar.find(".k-button:first").focus().addClass(we)},_createSelection:function(t){var i,n,a=this._selection;t=e(t),t.is(".k-event")&&(i=t.attr(F.attr("uid")),a&&a.events.indexOf(i)!==-1&&!this._ctrlKey)||(a&&(this._ctrlKey||this._shiftKey)||(a=this._selection={events:[],groupIndex:0}),n=this.view().selectionByElement(t),n&&(a.groupIndex=n.groupIndex||0),i&&(n=d(this._data,i)),n&&n.uid&&(i=[n.uid]),this._updateSelection(n,i),this._adjustSelectedDate())},_updateSelection:function(e,i,n){var a,o,r,s=this._selection;e&&s&&(a=this.view(),e.uid&&(e=a._updateEventForSelection(e)),this._shiftKey&&s.start&&s.end?(o=e.end<s.end,s.end=e.endDate?e.endDate():e.end,o&&a._timeSlotInterval&&F.date.setTime(s.end,-a._timeSlotInterval())):(s.start=e.startDate?e.startDate():e.start,s.end=e.endDate?e.endDate():e.end),s.isAllDay="isDaySlot"in e?e.isDaySlot:e.isAllDay,null!==n&&n!==t&&(s.groupIndex=n),s.index=e.index,this._ctrlKey?(r=i&&i.length?s.events.indexOf(i[0]):-1,r>-1?s.events.splice(r,1):s.events=s.events.concat(i||[])):s.events=i||[])},options:{name:"Scheduler",date:Se,editable:!0,autoBind:!0,snap:!0,mobile:!1,timezone:"",allDaySlot:!0,min:new Date(1900,0,1),max:new Date(2099,11,31),toolbar:null,workWeekStart:1,workWeekEnd:5,workDays:null,showWorkHours:!1,startTime:Se,endTime:Se,currentTimeMarker:{updateInterval:1e4,useLocalTimezone:!0},footer:{},messages:{today:"Today",pdf:"Export to PDF",save:"Save",cancel:"Cancel",destroy:"Delete",resetSeries:"Reset Series",deleteWindowTitle:"Delete event",next:"Next",previous:"Previous",ariaSlotLabel:"Selected from {0:t} to {1:t}",ariaEventLabel:"{0} on {1:D} at {2:t}",search:"Search...",views:{day:"Day",week:"Week",workWeek:"Work Week",agenda:"Agenda",month:"Month",timeline:"Timeline",timelineWeek:"Timeline Week",timelineWorkWeek:"Timeline Work Week",timelineMonth:"Timeline Month",year:"Year"},recurrenceMessages:{deleteWindowTitle:"Delete Recurring Item",resetSeriesWindowTitle:"Reset Series",deleteWindowOccurrence:"Delete current occurrence",deleteWindowSeries:"Delete the series",editWindowTitle:"Edit Recurring Item",editWindowOccurrence:"Edit current occurrence",editWindowSeries:"Edit the series"},editable:{confirmation:Ce},editor:{title:"Title",start:"Start",end:"End",allDayEvent:"All day event",description:"Description",repeat:"Repeat",timezone:"Timezone",startTimezone:"Start timezone",endTimezone:"End timezone",separateTimezones:"Use separate start and end time zones",timezoneEditorTitle:"Timezones",timezoneEditorButton:"Time zone",timezoneTitle:"Time zones",noTimezone:"No timezone",editorTitle:"Event"}},height:null,width:null,resources:[],group:{resources:[],orientation:"horizontal"},views:[],selectable:!1},events:[fe,_e,he,me,"add","dataBinding","dataBound","moveStart","move","moveEnd","resizeStart","resize","resizeEnd","navigate",ce],destroy:function(){var t,i,n,a=this;if(Y.fn.destroy.call(a),a.dataSource&&(a.dataSource.unbind(ce,a._refreshHandler),a.dataSource.unbind(ue,a._progressHandler),a.dataSource.unbind(pe,a._errorHandler)),a._resourceRefreshHandler)for(i=0;i<a.resources.length;i++)n=a.resources[i].dataSource,n.unbind(ce,a._resourceRefreshHandler),n.unbind(ue,a._resourceProgressHandler),n.unbind(pe,a._resourceErrorHandler);a.calendar&&(a.calendar.destroy(),a.popup.destroy()),a.view()&&a.view().destroy(),a._editor&&a._editor.destroy(),this._moveDraggable&&this._moveDraggable.destroy(),this._resizeDraggable&&this._resizeDraggable.destroy(),t=a.element.add(a.wrapper).add(a.toolbar).add(a.popup),t.off(ne),clearTimeout(a._moveTimer),a._model=null,a.toolbar=null,a.element=null,e(window).off("resize"+ne,a._resizeHandler),F.destroy(a.wrapper)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.options.autoBind&&e.fetch?e.fetch():ie(e)&&this.view(this._selectedView)},items:function(){var e=this.wrapper.find(".k-scheduler-content"),t=this.view();return t&&"agenda"===t.options.name?e.find(".k-task"):e.find(".k-event").add(this.wrapper.find(".k-scheduler-header-wrap").find(".k-scheduler-header-all-day").siblings())},_movable:function(){var i,n,a,o,r,s,l,d,c,u,p=this,h=0,f=[],v=[],m=p._isMobile(),g=p.options.editable&&p.options.editable.move!==!1,_=p.options.editable&&p.options.editable.resize!==!1;(g||_&&m)&&(p._dragging=!1,m&&F.support.mobileOS.android&&(h=5),p._moveDraggable=new F.ui.Draggable(p.element,{distance:h,filter:".k-event",ignore:".k-resize-handle",holdToDrag:m,autoScroll:!0}),g&&p._moveDraggable.bind("dragstart",function(e){var r,h,v,m,g=p.view(),_=e.currentTarget,k=p._isTouch(e);if(p._dragging=!0,!g.options.editable||g.options.editable.move===!1)return p._dragging=!1,e.preventDefault(),t;if(k&&!_.hasClass("k-event-active"))return p._dragging=!1,p.element.find(".k-event-active").removeClass("k-event-active"),e.preventDefault(),t;if(s=p.occurrenceByUid(_.attr(F.attr("uid"))),l=s.clone(),u=s.clone(),l.update(g._eventOptionsForMove(l)),l.inverseColor=p._isInverseColor(_),f=[],p._selection)for(r=p._selection.events,h=0;h<r.length;h++)v=p.occurrenceByUid(r[h]).clone(),m=this.element.find('div.k-event[data-uid="'+v.uid+'"]').eq(0),v.update(g._eventOptionsForMove(v)),m.length&&(v.inverseColor=p._isInverseColor(m)),f.push(v);else f.push(l);i=g._slotByPosition(e.x.startLocation,e.y.startLocation),a=g._resourceBySlot(i),c=o=i.startOffset(e.x.startLocation,e.y.startLocation,p.options.snap),n=i,d=i,i&&!p.trigger("moveStart",{event:s})||e.preventDefault()}).bind("drag",function(t){var a,u,h,m,g,_=p.view(),k=_._slotByPosition(t.x.location,t.y.location);if(k){if(r=k.startOffset(t.x.location,t.y.location,p.options.snap),k.isDaySlot!==i.isDaySlot)if(k.isDaySlot!==d.isDaySlot)for(m=e(i.element).index(),g=e(k.element).parent().children().eq(m),i=_._slotByPosition(g.offset().left,g.offset().top),o=i.startOffset(t.x.location,t.y.location,!0),v=f.map(function(e){return e.clone()}),h=0;h<f.length;h++)f[h].isAllDay!=k.isDaySlot&&(f[h].isAllDay=k.isDaySlot,f[h].end=F.date.getDate(f[h].start),f[h].start=F.date.getDate(f[h].start),k.isDaySlot||(F.date.setTime(f[h].start,F.date.getMilliseconds(_.startTime())),F.date.setTime(f[h].end,F.date.getMilliseconds(_.startTime())+_._timeSlotInterval())));else i=e.extend(!0,{},d),o=c,f=v;for(a=r-o,h=0;h<f.length;h++)_._updateMoveHint(f[h],k.groupIndex,a);if(u=D(l,a),p.trigger("move",{event:s,slot:{element:k.element,start:k.startDate(),end:k.endDate(),isDaySlot:k.isDaySlot},resources:_._resourceBySlot(k),start:u.start,end:u.end}))for(h=0;h<f.length;h++)_._updateMoveHint(f[h],k.groupIndex,a);else n=k}}).bind("dragend",function(t){var i,c,u,h,m,g,_,k,b,w;if(p.view()._removeMoveHint(),i=r-o,c=D(l,i),u=c.start,h=c.end,p._dragging=!1,m=p.view()._resourceBySlot(n),g=p.trigger("moveEnd",{event:s,slot:{element:n.element,start:n.startDate(),end:n.endDate()},start:u,end:h,resources:m}),!g&&(s.start.getTime()!==u.getTime()||s.end.getTime()!==h.getTime()||d.isDaySlot!==n.isDaySlot||F.stringify(m)!==F.stringify(a))){for(p._isMultiDrag=f.length>1,_=0;_<f.length;_++)k=f[_],c=D(k,i),b=p.view()._eventOptionsForMove(k),w=e.extend({isAllDay:k.isAllDay,start:c.start,end:c.end},b,m),p._updateEvent(null,k,w);p._isMultiDrag&&(p.dataSource.sync(),p._isMultiDrag=!1)}t.currentTarget.removeClass("k-event-active"),this.cancelHold(),f=[],v=[]}).bind("dragcancel",function(){p.view()._removeMoveHint(),this.cancelHold(),f=[],v=[]}),p._moveDraggable.bind("hold",function(e){p._isTouch(e)&&(p.element.find(".k-event-active").removeClass("k-event-active"),p.options.selectable&&p._createSelection(e.currentTarget),e.currentTarget.addClass("k-event-active"))}))},_resizable:function(){function t(e){var t,i={"k-resize-e":"east","k-resize-w":"west","k-resize-n":"north","k-resize-s":"south"};for(t in i)if(e.hasClass(t))return i[t]}var i,n,a,o,r,s=this,l=0;s._isMobile()&&F.support.mobileOS.android&&(l=5),s._resizeDraggable=new F.ui.Draggable(s.element,{distance:l,filter:".k-resize-handle",autoScroll:!0,dragstart:function(t){var l=e(t.currentTarget),d=l.closest(".k-event"),c=d.attr(F.attr("uid")),u=s.view();s._dragging=!0,a=s.occurrenceByUid(c),o=a.clone(),u._updateEventForResize(o),r=u._slotByPosition(t.x.startLocation,t.y.startLocation),s.trigger("resizeStart",{event:a})&&t.preventDefault(),i=F.date.toUtcTime(o.start),n=F.date.toUtcTime(o.end)},drag:function(l){var d,c,u,p,h,f;r&&(d=e(l.currentTarget),c=t(d),u=s.view(),p=u._slotByPosition(l.x.location,l.y.location),p&&r.groupIndex==p.groupIndex&&(r=p,h=i,f=n,"south"==c?!r.isDaySlot&&r.end-F.date.toUtcTime(o.start)>=u._timeSlotInterval()&&(n=o.isAllDay?r.startOffset(l.x.location,l.y.location,s.options.snap):r.endOffset(l.x.location,l.y.location,s.options.snap)):"north"==c?!r.isDaySlot&&F.date.toUtcTime(o.end)-r.start>=u._timeSlotInterval()&&(i=r.startOffset(l.x.location,l.y.location,s.options.snap)):"east"==c?r.isDaySlot&&F.date.toUtcTime(F.date.getDate(r.endDate()))>=F.date.toUtcTime(F.date.getDate(o.start))?n=o.isAllDay?r.startOffset(l.x.location,l.y.location,s.options.snap):r.endOffset(l.x.location,l.y.location,s.options.snap):!r.isDaySlot&&r.end-F.date.toUtcTime(o.start)>=u._timeSlotInterval()&&(n=r.endOffset(l.x.location,l.y.location,s.options.snap)):"west"==c&&(r.isDaySlot&&F.date.toUtcTime(F.date.getDate(o.end))>=F.date.toUtcTime(F.date.getDate(r.startDate()))?i=r.startOffset(l.x.location,l.y.location,s.options.snap):!r.isDaySlot&&F.date.toUtcTime(o.end)-r.start>=u._timeSlotInterval()&&(i=r.startOffset(l.x.location,l.y.location,s.options.snap))),s.trigger("resize",{event:a,slot:{element:r.element,start:r.startDate(),end:r.endDate()},start:F.timezone.toLocalDate(i),end:F.timezone.toLocalDate(n),resources:u._resourceBySlot(r)})?(i=h,n=f):u._updateResizeHint(o,r.groupIndex,i,n)))},dragend:function(l){var d,c=e(l.currentTarget),u=new Date(o.start.getTime()),p=new Date(o.end.getTime()),h=t(c);s._dragging=!1,s.view()._removeResizeHint(),"south"==h?p=F.timezone.toLocalDate(n):"north"==h?u=F.timezone.toLocalDate(i):"east"==h?p=r.isDaySlot?F.date.getDate(F.timezone.toLocalDate(n)):F.timezone.toLocalDate(n):"west"==h&&(r.isDaySlot?(u=new Date(F.timezone.toLocalDate(i)),u.setHours(0),u.setMinutes(0)):u=F.timezone.toLocalDate(i)),d=s.trigger("resizeEnd",{event:a,slot:{element:r.element,start:r.startDate(),end:r.endDate()},start:u,end:p,resources:s.view()._resourceBySlot(r)}),!d&&p.getTime()>=u.getTime()&&(o.start.getTime()==u.getTime()&&o.end.getTime()==p.getTime()||(s.view()._updateEventForResize(a),s._updateEvent(h,a,{start:u,end:p}))),r=null,a=null},dragcancel:function(){s._dragging=!1,s.view()._removeResizeHint(),r=null,a=null}})},_updateEvent:function(e,t,i){var n,a=this,o=function(t,n){var o;try{a._preventRefresh=!0,t.update(i),a._convertDates(t),o=t.start,e&&t.duration()%W===0&&0===o.getHours()&&0===o.getMinutes()&&0===o.getSeconds()&&0===o.getMilliseconds()&&t.set("isAllDay",!0)}finally{a._preventRefresh=!1}a.trigger(me,{event:t})||(n&&n(),a._isMultiDrag||a.dataSource.sync())},r=function(e){return e.recurrenceRule?a.dataSource.getByUid(e.uid):a.dataSource.get(e.recurrenceId)},s=function(){var n,s,l=r(t);"south"!=e&&"north"!=e||(i.start&&(n=F.date.getDate(l.start),F.date.setTime(n,L(i.start)),i.start=n),i.end&&(s=F.date.getDate(l.end),F.date.setTime(s,L(i.end)),i.end=s)),a.dataSource._removeExceptions(l),o(l)},l=function(){var e=r(t),i=function(){a._convertDates(e),a._selection&&a._selection.events.push(s)},n=e.toOccurrence({start:t.start,end:t.end}),s=n.uid;o(a.dataSource.add(n),i)};t.recurrenceRule||t.isOccurrence()?(n=a.options.messages.recurrenceMessages,a._showRecurringDialog(t,l,s,{title:n.editWindowTitle,text:n.editRecurring?n.editRecurring:Pe,occurrenceText:n.editWindowOccurrence,seriesText:n.editWindowSeries})):o(a.dataSource.getByUid(t.uid))},_modelForContainer:function(t){return t=e(t).closest("["+F.attr("uid")+"]"),this.dataSource.getByUid(t.attr(F.attr("uid")))},showDialog:function(e){this._editor.showDialog(e)},focus:function(){this.wrapper.focus()},_confirmation:function(e,t,i){var n,a,o,r,s,l=this.options.editable;l===!0||l.confirmation!==!1?(n=this.options.messages,a=n.deleteWindowTitle,o=typeof l.confirmation===j?l.confirmation:n.editable.confirmation,this._isEditorOpened()&&t.isRecurring()&&(r=this.options.messages.recurrenceMessages,a=r.deleteWindowTitle,o=t.isException()||t.isNew()?r.deleteRecurringConfirmation?r.deleteRecurringConfirmation:Me:r.deleteSeriesConfirmation?r.deleteSeriesConfirmation:Ae,i&&(a=r.resetSeriesWindowTitle,o=r.resetSeriesConfirmation?r.resetSeriesConfirmation:Oe)),s=[{name:"destroy",text:i?n.resetSeries:n.destroy,click:function(){e()}}],this._isMobile()&&F.Pane||s.push({name:"canceledit",text:n.cancel,click:function(){e(!0)}}),this._unbindResize(),this.showDialog({model:t,text:o,title:a,buttons:s}),this._bindResize()):e()},addEvent:function(e){var t,i,n=this._editor.editable,a=this.dataSource;e=e||{},i=this.trigger("add",{event:e}),!i&&(n&&n.end()||!n)&&(this.cancelEvent(),e&&e.toJSON&&(e=e.toJSON()),t=a.add(e),t&&(this.cancelEvent(),this._editEvent(t)))},saveEvent:function(){var e,t,i,n,a,o,r=this,s=r._editor,l=r.dataSource;if(s&&(e=s.editable,t=s.container,i=r._modelForContainer(t),t&&e&&e.end()&&!r.trigger(me,{container:t,event:i}))){if(!i.isOccurrence()&&i.recurrenceException&&!i.recurrenceRule){for(n=l.data(),a=n.length-1;a>=0;a-=1)o=n[a],o&&o.recurrenceId===i.id&&l.remove(o);i.set("recurrenceException","")}i.dirty||i.isOccurrence()||r._convertDates(i,"remove"),l.sync()}},cancelEvent:function(){var e,t=this._editor,i=t.container; i&&(e=this._modelForContainer(i),e&&e.isOccurrence()&&(this._convertDates(e,"remove"),this._convertDates(this.dataSource.get(e.recurrenceId),"remove")),this.dataSource.cancelChanges(e),t.close())},editEvent:function(e){var t="string"==typeof e?this.occurrenceByUid(e):e;t&&(this.cancelEvent(),t.isRecurring()?this._editRecurringDialog(t):this._editEvent(t))},_editEvent:function(e){this._preventRefresh=!0,this._unbindResize(),this._createPopupEditor(e),this._bindResize()},_editRecurringDialog:function(e){var t=this,i=function(){e.isException()?t._editEvent(e):t.addEvent(e)},n=function(){e.recurrenceId&&(e=t.dataSource.get(e.recurrenceId)),t._editEvent(e)},a=t.options.messages.recurrenceMessages;t._showRecurringDialog(e,i,n,{title:a.editWindowTitle,text:a.editRecurring?a.editRecurring:Pe,occurrenceText:a.editWindowOccurrence,seriesText:a.editWindowSeries})},_showRecurringDialog:function(e,t,i,n){var a=this.options.editable,o=Z(a)?a.editRecurringMode:"dialog";"occurrence"===o||this._isMultiDrag?t():"series"===o?i():(this._unbindResize(),this.showDialog({model:e,title:n.title,text:n.text,buttons:[{text:n.occurrenceText,click:t},{text:n.seriesText,click:i}]}),this._bindResize())},_createButton:function(e){var t=e.template||Ie,i=typeof e===j?e:e.name||e.text,n={className:"k-scheduler-"+(i||"").replace(/\s/g,""),text:i,attr:""};if(!(i||Z(e)&&e.template))throw Error("Custom commands should have name specified");return Z(e)?(e.className&&(e.className+=" "+n.className),"edit"===i&&Z(e.text)&&(e=G(!0,{},e),e.text=e.text.edit),n=G(!0,n,S[i],e)):n=G(!0,n,S[i]),F.template(t)(n)},_convertDates:function(e,t){var i=this.dataSource.reader.timezone,n=e.startTimezone,a=e.endTimezone,o=e.start,r=e.start;t=t||"apply",n=n||a,a=a||n,n&&(i?"apply"===t?(o=F.timezone.convert(e.start,i,n),r=F.timezone.convert(e.end,i,a)):(o=F.timezone.convert(e.start,n,i),r=F.timezone.convert(e.end,a,i)):(o=F.timezone[t](e.start,n),r=F.timezone[t](e.end,a)),e._set("start",o),e._set("end",r))},_createEditor:function(){var e,i=this;e=i._editor=this._isMobile()&&F.Pane?new R(this.wrapper,G({},this.options,{target:this,timezone:i.dataSource.reader.timezone,resources:i.resources,createButton:ee(this._createButton,this)})):new C(this.wrapper,G({},this.options,{target:this,createButton:ee(this._createButton,this),timezone:i.dataSource.reader.timezone,resources:i.resources})),e.bind("cancel",function(e){return i.trigger("cancel",{container:e.container,event:e.model})?(e.preventDefault(),t):(i._preventRefresh=!1,i.cancelEvent(),i._attemptRefresh&&i.refresh(),i.focus(),t)}),e.bind("edit",function(e){i.trigger(_e,{container:e.container,event:e.model})&&e.preventDefault()}),e.bind("save",function(){i._preventRefresh=!1,i.saveEvent()}),e.bind("remove",function(e){i._preventRefresh=!1,i.removeEvent(e.model)}),e.bind("resetSeries",function(e){i._confirmation(function(t){i._preventRefresh=!1,t||(i.dataSource._removeExceptions(e.model),i.saveEvent())},e.model,!0)})},_createPopupEditor:function(e){var t=this._editor;e.isNew()&&!e.isOccurrence()||(e.isOccurrence()&&this._convertDates(e.recurrenceId?this.dataSource.get(e.recurrenceId):e),this._convertDates(e)),this.editable=t.editEvent(e)},removeEvent:function(e){var t=this,i="string"==typeof e?t.occurrenceByUid(e):e;i&&(i.isRecurring()?t._deleteRecurringDialog(i):t._confirmation(function(e){e||t._removeEvent(i)},i))},occurrenceByUid:function(e){var t=this.dataSource.getByUid(e);return t||(t=d(this._data,e)),t},occurrencesInRange:function(e,t){return new F.data.Query(this._data).filter({logic:"or",filters:[{logic:"and",filters:[{field:"start",operator:"gte",value:e},{field:"end",operator:"gte",value:e},{field:"start",operator:"lt",value:t}]},{logic:"and",filters:[{field:"start",operator:"lte",value:e},{field:"end",operator:"gt",value:e}]}]}).toArray()},_removeEvent:function(e){this.trigger(fe,{event:e})||this.dataSource.remove(e)&&this.dataSource.sync()},_deleteRecurringDialog:function(e){var t,i,n,a,o,r,s,l=this,d=e,c=l.options.editable,u=Z(c)?c.editRecurringMode:"dialog",p=function(){var e=d.recurrenceId?d:d.toOccurrence(),t=l.dataSource.get(e.recurrenceId);l._convertDates(t),l._removeEvent(e)},h=function(){d.recurrenceId&&(d=l.dataSource.get(d.recurrenceId)),l._removeEvent(d)},f=function(){l.dataSource.remove(d),l.dataSource.sync()};("dialog"!=u||l._isEditorOpened())&&(t=function(){l._confirmation(function(e){e||p()},d)},i=function(){l._confirmation(function(e){e||h()},d)},n=function(){l._confirmation(function(e){e||f()},d)}),a=i||h,o=t||p,r=n||f,l._isEditorOpened()?e.isException()?o():e.isNew()?r():a():(s=l.options.messages.recurrenceMessages,l._showRecurringDialog(e,o,a,{title:s.deleteWindowTitle,text:s.deleteRecurring?s.deleteRecurring:Ve,occurrenceText:s.deleteWindowOccurrence,seriesText:s.deleteWindowSeries}))},_isEditorOpened:function(){return!!this._editor.container},_unbindView:function(e){var t=this;t.angular("cleanup",function(){return{elements:t.items()}}),e.destroy()},_bindView:function(e){var t=this;t.options.editable&&(t._viewRemoveHandler&&e.unbind(fe,t._viewRemoveHandler),t._viewRemoveHandler=function(e){t.removeEvent(e.uid)},e.bind(fe,t._viewRemoveHandler),t._viewAddHandler&&e.unbind(ge,t._viewAddHandler),t._viewAddHandler=function(e){t.addEvent(e.eventInfo)},e.bind(ge,this._viewAddHandler),t._viewEditHandler&&e.unbind(_e,t._viewEditHandler),t._viewEditHandler=function(e){t.editEvent(e.uid)},e.bind(_e,this._viewEditHandler)),t._viewNavigateHandler&&e.unbind("navigate",t._viewNavigateHandler),t._viewNavigateHandler=function(e){var i,n;e.action?t.trigger("navigate",{view:e.view,isWorkDay:e.isWorkDay,action:e.action,date:e.date})||t.date(e.date):e.view&&(i="isWorkDay"in e,n=i?"changeWorkDay":"changeView",t.trigger("navigate",{view:e.view,isWorkDay:e.isWorkDay,action:n,date:e.date})||(i&&(t._workDayMode=e.isWorkDay),t._selectView(e.view),t.date(e.date)))},e.bind("navigate",t._viewNavigateHandler),t._viewActivateHandler&&e.unbind("activate",t._viewActivateHandler),t._viewActivateHandler=function(){var e=this;t._selection&&(e.constrainSelection(t._selection),t._select(),t._adjustSelectedDate())},e.bind("activate",t._viewActivateHandler)},_selectView:function(e){var t,i,n,a=this;e&&a.views[e]&&(a._selectedView&&a._unbindView(a._selectedView),a._selectedView=a._renderView(e),a._selectedViewName=e,a._viewsCount>1&&!a._isMobile()?(t=a.toolbar.find(".k-views-dropdown"),i=a.toolbar.find(".k-scheduler-views > .k-button"),0===a.toolbar.find(".k-views-dropdown").length&&(a.toolbar.find(".k-scheduler-views-wrapper").prepend(Be({views:a.views,view:e,ns:F.ns})),t=a.toolbar.find(".k-views-dropdown")),t.val(e),i.removeClass("k-state-selected"),i.filter(".k-view-"+e.replace(/\./g,"\\.").toLowerCase()).addClass("k-state-selected")):(n=a.toolbar.find(".k-scheduler-mobile-views"),n.find("[value="+e.replace(/\./g,"\\.")+"]").prop("selected","selected")))},view:function(e){var i=this;return e?(i._selectView(e),i.rebind(),t):i._selectedView},viewName:function(){return this.view().name},_renderView:function(e){var t=this._initializeView(e);return this._bindView(t),(F.support.mouseAndTouchPresent||F.support.pointers)&&(t.content.css("-ms-touch-action","pinch-zoom"),t.content.css("touch-action","pinch-zoom")),this._model.set("formattedDate",t.dateForTitle()),this._model.set("formattedShortDate",t.shortDateForTitle()),this._model.set("formattedMobileDate",t.mobileDateForTitle?t.mobileDateForTitle():t.shortDateForTitle()),this._model.set("formattedYear",F.format("{0:yyyy}",t.startDate())),t},resize:function(e){var t=this.getSize(),i=this._size,n=this.view();n&&n.groups&&(!e&&i&&t.width===i.width&&t.height===i.height||(this.refresh({action:"resize"}),this._size=t))},_adjustSelectedDate:function(){var e=this._model.selectedDate,t=this._selection,i=t.start;i&&!F.date.isInDateRange(e,N(i),N(t.end))&&e.setFullYear(i.getFullYear(),i.getMonth(),i.getDate())},_initializeView:function(e){var t,i,n,a=this.views[e];if(a){if(t=Z(a),i={},n=a.type,typeof n===j&&(n=F.getter(a.type)(window)),t&&a.workDays&&a.workDays.length&&(i.workDays=a.workDays),!n)throw Error("There is no such view");a=new n(this.wrapper,v(G(!0,{},this.options,t?a:{},{resources:this.resources,date:this.date(),startTime:F.parseDate(a.startTime)||F.parseDate(this.options.startTime),endTime:F.parseDate(a.endTime)||F.parseDate(this.options.endTime),showWorkHours:this._workDayMode}),i))}return a},_views:function(){var e,t,i,n,a,o,r,s,l,d=this.options.views;for(this.views={},this._viewsCount=0,r=0,s=d.length;r<s;r++)l=!1,e=d[r],n=Z(e),n?(o=a=e.type?e.type:e,typeof o!==j&&(a=e.name||e.title,l=!0)):o=a=e,t=P[a],t&&!l&&(e.type=t.type,t.title=this.options.messages.views[a],"day"===t.type?t.messages={allDay:this.options.messages.allDay}:"agenda"===t.type&&(t.messages={event:this.options.messages.event,date:this.options.messages.date,time:this.options.messages.time})),e=G({title:a},t,n?e:{}),a&&(this.views[a]=e,this._viewsCount++,i&&!e.selected||(i=a));i&&(this._selectedViewName=i)},rebind:function(){var i=this,n=i.resources,a=[];return i._preventRebind?(i._preventRebind=!1,t):(i.options.autoBind===!1&&n&&n.length>0?(n.forEach(function(e){0===e.dataSource.data().length&&(i._preventRebind=!0,a.push(e.dataSource.fetch()))}),e.when.apply(null,a).then(function(){i.dataSource.fetch(),i._preventRebind=!1})):i.dataSource.fetch(),t)},_dataSource:function(){var e=this,t=e.options,i=t.dataSource;i=ie(i)?{data:i}:i,!t.timezone||i instanceof Xe?i instanceof Xe&&(t.timezone=i.options.schema?i.options.schema.timezone:""):i=G(!0,i,{schema:{timezone:t.timezone}}),e.dataSource&&e._refreshHandler?e.dataSource.unbind(ce,e._refreshHandler).unbind(ue,e._progressHandler).unbind(pe,e._errorHandler):(e._refreshHandler=ee(e.refresh,e),e._progressHandler=ee(e._requestStart,e),e._errorHandler=ee(e._error,e)),e.dataSource=F.data.SchedulerDataSource.create(i).bind(ce,e._refreshHandler).bind(ue,e._progressHandler).bind(pe,e._errorHandler),e.options.dataSource=e.dataSource},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_progress:function(e){var t=this.element.find(".k-scheduler-content");F.ui.progress(t,e)},_resources:function(){var t,i,n,a,o,r=this,s=r.options.resources,l=[];for(t=0;t<s.length;t++){if(i=s[t],n=i.field,a=i.name||n,o=i.dataSource,!n||!o)throw Error('The "field" and "dataSource" options of the scheduler resource are mandatory.');r.resources.push({field:n,name:a,title:i.title||n,dataTextField:i.dataTextField||"text",dataValueField:i.dataValueField||"value",dataColorField:i.dataColorField||"color",dataParentValueField:i.dataParentValueField||"parentValue",valuePrimitive:null==i.valuePrimitive||i.valuePrimitive,multiple:i.multiple||!1,dataSource:r._resourceDataSource(o,a,l)})}r.options.autoBind?e.when.apply(null,l).then(function(){r.view(r._selectedViewName)}):r._selectView(r._selectedViewName)},_resourceDataSource:function(e,t,i){var n=this,a=ie(e)?{data:e}:e,o=F.data.DataSource.create(a);return n.options.autoBind?i.push(o.fetch(function(){n._bindResourceEvents(this,t)})):n._bindResourceEvents(o,t),o},_bindResourceEvents:function(e,t){var i=this,n=i.options.group&&i.options.group.resources.length,a=n&&i.options.group.resources.indexOf(t)>-1;!i._resourceRefreshHandler&&a&&(i._resourceRefreshHandler=ee(i._refreshResource,i),i._resourceErrorHandler=ee(i._error,i)),a&&e.bind(ce,i._resourceRefreshHandler).bind(pe,i._resourceErrorHandler)},_refreshResource:function(){var e=this,t=e._editor&&e._editor.editable||e._preventRefresh;t||e.view(e._selectedViewName)},_initModel:function(){var e=this;e._model=F.observable({selectedDate:new Date(this.options.date),formattedDate:"",formattedShortDate:""}),e._model.bind(ce,function(t){"selectedDate"===t.field&&e.view(e._selectedViewName)})},_wrapper:function(){var e=this,t=e.options,i=t.height,n=t.width;e.wrapper=e.element.addClass("k-widget k-scheduler k-floatwrap").attr("role","grid").attr("aria-multiselectable",!0),e._isMobile()&&e.wrapper.addClass("k-scheduler-mobile"),i&&e.wrapper.height(i),n&&e.wrapper.width(n)},date:function(e){return null!=e&&N(e)>=N(this.options.min)&&N(e)<=N(this.options.max)&&this._model.set("selectedDate",e),N(this._model.get("selectedDate"))},_toolbar:function(){var t,i,n=this,a=n.options,o=[];a.toolbar&&(o=e.isArray(a.toolbar)?a.toolbar:[a.toolbar]),t=this._isMobile()?He:Fe,i=e(t({messages:a.messages,pdf:e.grep(o,function(e){return"pdf"==e||"pdf"==e.name}).length>0,search:e.grep(o,function(e){return"search"==e||"search"==e.name}).length>0,ns:F.ns,view:n._selectedViewName,views:n.views,viewsCount:n._viewsCount,editable:n.options.editable})),n.wrapper.append(i),n.toolbar=i,F.bind(n.toolbar,n._model),i.on(ae+ne,".k-pdf",function(e){e.preventDefault(),n.saveAsPDF()}),i.on("input"+ne,".k-scheduler-search-input",F.throttle(function(e){n.dataSource.filter({logic:"or",filters:[{field:"title",operator:"contains",value:e.target.value},{field:"description",operator:"contains",value:e.target.value}]})},250)),i.on(ae+ne,".k-create-event",function(e){e.preventDefault(),n.addEvent()}),i.on(ae+ne,".k-nav-calendar",function(e){e.preventDefault(),n._showCalendar(e.target)}),i.on(ae+ne,".k-scheduler-navigation > .k-button",function(t){var i,a=e(this),o=new Date(n.date()),r="",s=new Date,l=n.options.timezone;e(t.target).is("input")||(t.preventDefault(),a.hasClass("k-nav-today")?(r="today",l?(i=F.timezone.offset(s,l),o=F.timezone.convert(s,s.getTimezoneOffset(),i)):o=s):a.hasClass("k-nav-next")?(r="next",o=n.view().nextDate()):a.hasClass("k-nav-prev")&&(r="previous",o=n.view().previousDate()),n.trigger("navigate",{view:n._selectedViewName,action:r,date:o})||n.date(o))}),i.on(ae+ne,".k-nav-current",function(e){e.preventDefault(),n._isMobile()||n._showCalendar()}),i.on(ae+ne,".k-scheduler-views > .k-button, .k-scheduler-refresh",function(t){t.preventDefault();var i=e(this).attr(F.attr("name"));n.toolbar.find(".k-scheduler-views > .k-button").removeClass(we),n.trigger("navigate",{view:i,action:"changeView",date:n.date()})||n.view(i)}),i.on(ce+ne,".k-views-dropdown, .k-scheduler-mobile-views",function(){var e=this.value;n.trigger("navigate",{view:e,action:"changeView",date:n.date()})||n.view(e)})},_showCalendar:function(t){var i=this,n=t||i.toolbar.find(".k-nav-current"),a=e('<div class="k-calendar-container"><div class="k-scheduler-calendar"></div></div>');i.popup||(i.popup=new Q(a,{anchor:n,activate:function(){i.popup&&i.calendar&&(i.popup._toggleResize(!1),i.calendar.element.find("table").focus(),i.popup._toggleResize(!0))},open:function(){i.calendar||(i.calendar=new J(this.element.find(".k-scheduler-calendar"),{change:function(){var e=this.value();i.trigger("navigate",{view:i._selectedViewName,action:"changeDate",date:e})||(i.date(e),i.popup.close()),i._isMobile()||(i._selectedView.element.focus(),i.toolbar.find(".k-nav-current").focus().addClass(we))},min:i.options.min,max:i.options.max})),i.calendar.element.on("keydown"+ne,function(e){e.keyCode!==U.ESC&&e.keyCode!==U.TAB||(i.popup.close(),i._selectedView.element.focus(),i.toolbar.find(".k-nav-current").focus().addClass(we))}),i.calendar.setOptions({start:"year"===i._selectedViewName?"decade":"month",depth:"year"===i._selectedViewName?"decade":"month"}),i.calendar.value(i.date())},copyAnchorStyles:!1})),i.popup.open()},refresh:function(e){var i=this,n=this.view(),a=e&&"itemchange"===e.action&&(this._editor.editable||this._preventRefresh)||"signalr"===this.dataSource.options.type&&this._preventRefresh;if(this._progress(!1),this.angular("cleanup",function(){return{elements:i.items()}}),e=e||{},n)return a?(this._attemptRefresh="signalr"===this.dataSource.options.type,t):(this.trigger("dataBinding",{action:e.action||"rebind",index:e.index,items:e.items})||(e&&"resize"===e.action||!this._editor||this._editor.close(),this._data=this.dataSource.expand(n.startDate(),n.visibleEndDate()),n.refreshLayout(),n.render(this._data),this.trigger("dataBound"),this._attemptRefresh=!1),t)},slotByPosition:function(e,t){var i,n=this.view();return n._slotByPosition?(i=n._slotByPosition(e,t),i?{startDate:i.startDate(),endDate:i.endDate(),groupIndex:i.groupIndex,element:i.element,isDaySlot:i.isDaySlot}:null):null},slotByElement:function(t){var i=e(t).offset();return this.slotByPosition(i.left,i.top)},resourcesBySlot:function(e){return this.view()._resourceBySlot(e)}}),P={day:{type:"kendo.ui.DayView"},week:{type:"kendo.ui.WeekView"},workWeek:{type:"kendo.ui.WorkWeekView"},agenda:{type:"kendo.ui.AgendaView"},month:{type:"kendo.ui.MonthView"},timeline:{type:"kendo.ui.TimelineView"},timelineWeek:{type:"kendo.ui.TimelineWeekView"},timelineWorkWeek:{type:"kendo.ui.TimelineWorkWeekView"},timelineMonth:{type:"kendo.ui.TimelineMonthView"},year:{type:"kendo.ui.YearView"}},q.plugin(V),F.PDFMixin&&(F.PDFMixin.extend(V.prototype),M="k-scheduler-pdf-export",V.fn._drawPDF=function(t){var i,n,a,o=this.wrapper,r=o[0].style.cssText;return o.css({width:o.width(),height:o.height()}),o.addClass(M),i=this,n=new e.Deferred,a=o.find(".k-scheduler-content").find("table").css("table-layout","auto"),setTimeout(function(){a.css("table-layout","fixed"),i.resize(!0),i._drawPDFShadow({},{avoidLinks:i.options.pdf.avoidLinks}).done(function(e){var i={page:e,pageNumber:1,progress:1,totalPages:1};t.notify(i),n.resolve(i.page)}).fail(function(e){n.reject(e)}).always(function(){o[0].style.cssText=r,o.removeClass(M),i.resize(!0),i.resize(!0)})}),n}),O=Y.extend({init:function(e,t){var i=this,n=F.timezone.windows_zones;if(!n||!F.timezone.zones_titles)throw Error("kendo.timezones.min.js is not included.");Y.fn.init.call(i,e,t),i.wrapper=i.element,i._zonesQuery=new F.data.Query(n),i._zoneTitleId=F.guid(),i._zoneTitlePicker(),i._zonePicker(),i._zoneTitle.bind("cascade",function(){this.value()||i._zone.wrapper.hide()}),i._zone.bind("cascade",function(){i._value=this.value(),i.trigger(ce)}),i.value(i.options.value)},options:{name:"TimezoneEditor",value:"",optionLabel:"No timezone"},events:[ce],_zoneTitlePicker:function(){var t=this,i=e('<input id="'+t._zoneTitleId+'" aria-label="'+t.options.title+'"/>').appendTo(t.wrapper);t._zoneTitle=new F.ui.DropDownList(i,{dataSource:F.timezone.zones_titles,dataValueField:"other_zone",dataTextField:"name",optionLabel:t.options.optionLabel})},_zonePicker:function(){var t=this,i=e('<input aria-label="'+t.options.title+'"/>').appendTo(this.wrapper);t._zone=new F.ui.DropDownList(i,{dataValueField:"zone",dataTextField:"territory",dataSource:t._zonesQuery.data,cascadeFrom:t._zoneTitleId,dataBound:function(){t._value=this.value(),this.wrapper.toggle(this.dataSource.view().length>1)}}),t._zone.wrapper.hide()},destroy:function(){Y.fn.destroy.call(this),F.destroy(this.wrapper)},value:function(e){var i,n=this;return e===t?n._value:(i=n._zonesQuery.filter({field:"zone",operator:"eq",value:e}).data[0],i?(n._zoneTitle.value(i.other_zone),n._zone.value(i.zone)):n._zoneTitle.select(0),t)}}),q.plugin(O),A=F.template('<option value="#=other_zone#">#=name#</option>'),I=F.template('<option value="#=zone#">#=territory#</option>'),B=Y.extend({init:function(e,t){var i=this,n=F.timezone.windows_zones;if(!n||!F.timezone.zones_titles)throw Error("kendo.timezones.min.js is not included.");Y.fn.init.call(i,e,t),i.wrapper=i.element,i._zonesQuery=new F.data.Query(n),i._zoneTitlePicker(),i._zonePicker(),i.value(i.options.value)},options:{name:"MobileTimezoneEditor",optionLabel:"No timezone",value:""},events:[ce],_bindZones:function(e){var t=e?this._filter(e):[];this._zone.html(this._options(t,I))},_filter:function(e){return this._zonesQuery.filter({field:"other_zone",operator:"eq",value:e}).data},_options:function(e,t,i){var n=0,a="",o=e.length;for(i&&(a+=t({other_zone:"",name:i}));n<o;n++)a+=t(e[n]);return a},_zoneTitlePicker:function(){var t=this,i=t._options(F.timezone.zones_titles,A,t.options.optionLabel);t._zoneTitle=e("<select>"+i+"</select>").appendTo(t.wrapper).change(function(){var e=this.value,i=t._zonePickerLabel,n=i.find("select");t._bindZones(e),e&&n.children().length>1?i.show():i.hide(),t._value=t._zone[0].value,t.trigger(ce)})},_zonePicker:function(){var t=this;t._zonePickerLabel=e("<li class='k-item k-listgroup-item k-zonepicker' style='display:none'><label class='k-label k-listgroup-form-row'><span class='k-item-title k-listgroup-form-field-label'></span><div class='k-listgroup-form-field-wrapper'></div></label></li>"),t._zone=e("<select></select>").appendTo(t._zonePickerLabel.find("div")).change(function(){t._value=this.value,t.trigger(ce)}),this.wrapper.closest(".k-item").after(t._zonePickerLabel),t._bindZones(t._zoneTitle.val()),t._value=t._zone[0].value},destroy:function(){Y.fn.destroy.call(this),F.destroy(this.wrapper)},value:function(e){var i,n=this,a=n._zone,o="",r="";return e===t?n._value:(i=n._zonesQuery.filter({field:"zone",operator:"eq",value:e}).data[0],i&&(r=i.zone,o=i.other_zone),n._zoneTitle.val(o),n._bindZones(o),a.val(r),r=a[0].value,r&&a.children.length>1?n._zonePickerLabel.show():n._zonePickerLabel.hide(),n._value=r,t)}}),q.plugin(B)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()});;!function(t,define){define("kendo.tooltip.min",["kendo.core.min","kendo.popup.min","kendo.fx.min"],t)}(function(){return function(t,o){function e(t){for(;t.length&&!n(t);)t=t.parent()}function n(t){var o=t.data(r.ns+"title");if(o)return t.attr("title",o),t.removeData(r.ns+"title"),!0}function i(t){var o=t.attr("title");if(o)return t.data(r.ns+"title",o),t.attr("title",""),!0}function s(t){for(;t.length&&!t.is("body")&&!i(t);)t=t.parent()}var r=window.kendo,p=r.ui.Widget,u=r.ui.Popup,c=r.isFunction,l=t.isPlainObject,a=t.extend,h=t.proxy,f=t(document),d=r.isLocalUrl,m="_tt_active",w="aria-describedby",_="show",g="hide",v="error",k="contentLoad",y="requestStart",O="k-content-frame",b='<div role="tooltip" class="k-widget k-tooltip#if (!autoHide) {# k-tooltip-closable#}#"><div class="k-tooltip-content"></div>#if (!autoHide) {# <div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close" title="Close"></a></div> #}##if (callout){ #<div class="k-callout k-callout-#=dir#"></div>#}#</div>',S=r.template("<iframe frameborder='0' class='"+O+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),C=".kendoTooltip",T={bottom:{origin:"bottom center",position:"top center"},top:{origin:"top center",position:"bottom center"},left:{origin:"center left",position:"center right",collision:"fit flip"},right:{origin:"center right",position:"center left",collision:"fit flip"},center:{position:"center center",origin:"center center"}},H={top:"bottom",bottom:"top",left:"right",right:"left",center:"center"},D={bottom:"n",top:"s",left:"e",right:"w",center:"n"},P={horizontal:{offset:"top",size:"outerHeight"},vertical:{offset:"left",size:"outerWidth"}},x=function(t){return t.target.data(r.ns+"title")},j=p.extend({init:function(t,o){var e,n=this;p.fn.init.call(n,t,o),e=n.options.position.match(/left|right/)?"horizontal":"vertical",n.dimensions=P[e],n._documentKeyDownHandler=h(n._documentKeyDown,n),r.support.touch&&this._isShownOnMouseEnter()&&n.element.on(r.support.mousedown+C,n.options.filter,h(n._showOn,n)),n.element.on(n.options.showOn+C,n.options.filter,h(n._showOn,n)),(this._isShownOnMouseEnter()||this._isShownOnClick())&&n.element.on("mouseenter"+C,n.options.filter,h(n._mouseenter,n)),this.options.autoHide&&this._isShownOnMouseEnter()&&n.element.on("mouseleave"+C,n.options.filter,h(n._mouseleave,n)),this.options.autoHide&&this._isShownOnFocus()&&n.element.on("blur"+C,n.options.filter,h(n._blur,n)),r.support.touch&&n.element.on(r.support.mousedown+C,n.options.filter,h(n._mouseenter,n))},options:{name:"Tooltip",filter:"",content:x,showAfter:100,hideAfter:100,callout:!0,offset:0,position:"bottom",showOn:"mouseenter",autoHide:!0,width:null,height:null,animation:{open:{effects:"fade:in",duration:0},close:{duration:40,hide:!0}}},events:[_,g,k,v,y],_isShownOnFocus:function(){return this.options.showOn&&this.options.showOn.match(/focus/)},_isShownOnMouseEnter:function(){return this.options.showOn&&this.options.showOn.match(/mouseenter/)},_isShownOnClick:function(){return this.options.showOn&&this.options.showOn.match(/click/)},_mouseenter:function(o){s(t(o.currentTarget))},_showOn:function(o){var e=this,n=t(o.currentTarget);e._isShownOnClick()&&!e._isShownOnMouseEnter()?e._show(n):e._isShownOnFocus()?(s(n),e._show(n)):(clearTimeout(e.timeout),e.timeout=setTimeout(function(){e._show(n)},e.options.showAfter))},_appendContent:function(t){var o,e=this,n=e.options.content,i=e.content,s=e.options.iframe;l(n)&&n.url?("iframe"in e.options||(s=!d(n.url)),e.trigger(y,{options:n,target:t}),s?(i.hide(),o=i.find("."+O)[0],o?o.src=n.url||o.src:i.html(S({content:n})),i.find("."+O).off("load"+C).on("load"+C,function(){e.trigger(k),i.show()})):(i.empty(),r.ui.progress(i,!0),e._ajaxRequest(n))):n&&c(n)?(n=n({sender:this,target:t}),i.html(n||"")):i.html(n),e.angular("compile",function(){return{elements:i}})},_ajaxRequest:function(t){var o=this;o.contentLoading=!0,jQuery.ajax(a({type:"GET",dataType:"html",cache:!1,error:function(t,e){r.ui.progress(o.content,!1),o.trigger(v,{status:e,xhr:t})},success:h(function(t){r.ui.progress(o.content,!1),o.content.html(t),o.contentLoading=!1,o.trigger(k),o._openPopup()},o)},t))},_documentKeyDown:function(t){t.keyCode===r.keys.ESC&&this.hide()},refresh:function(){var t=this,o=t.popup;o&&o.options.anchor&&t._appendContent(o.options.anchor)},hide:function(){this.popup&&this.popup.close()},show:function(t){t=t||this.element,s(t),this._show(t)},_show:function(t){var o=this,n=o.target();o.popup||o._initPopup(),n&&n[0]!=t[0]&&(o.popup.close(),o.popup.element.kendoStop(!0,!0)),n&&n[0]==t[0]||(o._appendContent(t),o.popup.options.anchor=t),o.popup.one("deactivate",function(){e(t),o._removeDescribedBy(t),this.element.removeAttr("id").attr("aria-hidden",!0),f.off("keydown"+C,o._documentKeyDownHandler)}),o.contentLoading||o._openPopup()},_openPopup:function(){this.popup&&(this.popup._hovered=!0,this.popup.open())},_initPopup:function(){var e=this,n=e.options,i=t(r.template(b)({callout:n.callout&&"center"!==n.position,dir:D[n.position],autoHide:n.autoHide}));e.popup=new u(i,a({autosize:!0,activate:function(){var t=this.options.anchor,i=t[0].id||e.element[0].id||r.guid(),s=[];t.attr(w)&&s.push(t.attr(w)),i&&(s.push(i+m),t.attr(w,s.join(" ")),this.element.attr("id",i+m)),n.callout?e._positionCallout():e._offset(e.options.position,e.options.offset),this.element.removeAttr("aria-hidden"),f.on("keydown"+C,e._documentKeyDownHandler),e.trigger(_),e.popup._hovered=o},close:function(){e.trigger(g)},copyAnchorStyles:!1,animation:n.animation},T[n.position])),i.css({width:n.width,height:n.height}),e.content=i.find(".k-tooltip-content"),e.arrow=i.find(".k-callout"),n.autoHide&&this._isShownOnMouseEnter()?i.on("mouseleave"+C,h(e._mouseleave,e)):i.on("click"+C,".k-tooltip-button",h(e._closeButtonClick,e))},_closeButtonClick:function(t){t.preventDefault(),this.hide()},_mouseleave:function(t){var o=this;clearTimeout(o.timeout),o.timeout=setTimeout(function(){o._closePopup(t.currentTarget)},o.options.hideAfter)},_blur:function(t){this._closePopup(t.currentTarget)},_closePopup:function(o){this.popup&&!this.popup._hovered?this.popup.close():e(t(o))},target:function(){return this.popup?this.popup.options.anchor:null},_positionCallout:function(){var o=this,e=o.options.position,n=o.dimensions,i=n.offset,s=o.popup,r=s.options.anchor,p=t(r).offset(),u=t(s.element).offset(),c=D[s.flipped?H[e]:e],l=p[i]-u[i]+t(r)[n.size]()/2;o._offset(e,o.options.offset),o.arrow.removeClass("k-callout-n k-callout-s k-callout-w k-callout-e").addClass("k-callout-"+c).css(i,l)},_removeDescribedBy:function(t){var o,e,n,i=this.popup.element.attr("id"),s=t.attr(w);s&&(o=s.split(" "),o&&o.length>0&&(e=o.filter(function(t){return t!==i})),e&&e.length>0?(n=e.join(" "),t.attr(w,n)):t.removeAttr(w))},destroy:function(){var t=this.popup;t&&(t.element.off(C),t.destroy()),clearTimeout(this.timeout),this.element.off(C),f.off("keydown"+C,this._documentKeyDownHandler),p.fn.destroy.call(this)},_offset:function(t,o){var e=this,n="top"==t||"left"==t,i=e.popup.flipped,s=n&&i||!n&&!i?1:-1,p=n?"margin-"+t:"margin-"+H[t],u=r._outerWidth(e.arrow)/2+o;e.popup.wrapper.css(p,u*s+"px")}});r.ui.plugin(j)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,o,e){(e||o)()});; /* End of File include/javascript/kendo/kendo.min.js */ ;(function(){var SchedulerView=window.kendo.ui.SchedulerView;function cellspacing(){if(kendo.support.cssBorderSpacing){return'';} return'cellspacing="0"';} function table(tableRows,className){if(!tableRows.length){return'';} return'<table '+cellspacing()+' class="'+$.trim('k-scheduler-table '+(className||''))+'">'+'<tr>'+tableRows.join('</tr><tr>')+'</tr>'+'</table>';} function content(){return $('<div class="k-scheduler-content">'+'<table '+cellspacing()+' class="k-scheduler-table"/>'+'</div>');} function getSpaceForDayNumber(element){var fontSize=parseInt(kendo.getComputedStyles(element).fontSize);var defaultFontSize=12;return fontSize||defaultFontSize;} window.kendo.ui.scheduler.MonthGroupedViewAllEvents=window.kendo.ui.scheduler.MonthGroupedView.extend({_addDaySlotCollections:function(groupCount,tableRows,startDate){var spaceForDayNumber=getSpaceForDayNumber(this._view.element[0]);var view=this._view;var columnCount=7;var rowCount=6;for(var groupIndex=0;groupIndex<groupCount;groupIndex++){var cellCount=0;var rowMultiplier=0;if(view._isVerticallyGrouped()){rowMultiplier=groupIndex;} for(var rowIndex=rowMultiplier*rowCount;rowIndex<(rowMultiplier+1)*rowCount;rowIndex++){var group=view.groups[groupIndex];var collection=group.addDaySlotCollection(kendo.date.addDays(startDate,cellCount),kendo.date.addDays(startDate,cellCount+columnCount));var tableRow=tableRows[rowIndex];var cells=tableRow.children;var cellMultiplier=0;tableRow.setAttribute('role','row');if(!view._isVerticallyGrouped()){cellMultiplier=groupIndex;} for(var cellIndex=cellMultiplier*columnCount;cellIndex<(cellMultiplier+1)*columnCount;cellIndex++){var cell=cells[cellIndex];var start=kendo.date.toUtcTime(kendo.date.addDays(view.startDate(),cellCount));var eventCount=view.getNumberOfEventsToday(start,null);if(eventCount>=2){marginTop=30+spaceForDayNumber;padding=3;var newHeight=marginTop+eventCount*(view.options.eventHeight+padding);$(cell).height(newHeight);}else{$(cell).height(98);} view.addDaySlot(collection,cell,startDate,cellCount);cellCount++;}}}}});window.expandedMonth=kendo.ui.scheduler.expandedMonth=kendo.ui.MonthView.extend({id:"scheduler.expandedMonth",name:"month",type:"expandedMonth",options:{name:"month",type:"expandedMonth",title:"Month",},_getGroupedView:function(){if(this._isGroupedByDate()){return new kendo.ui.scheduler.MonthGroupedByDateView(this);}else{return new kendo.ui.scheduler.MonthGroupedViewAllEvents(this);}},render:function(events){this.numberOfEventsEachDay=this.getNumberOfEventsEachDay(events);this.content.children(".k-event,.k-more-events,.k-events-container").remove();this._groups();events=new kendo.data.Query(events).sort([{field:"start",dir:"asc"},{field:"end",dir:"desc"}]).toArray();var resources=this.groupedResources;if(resources.length){this._renderGroups(events,resources,0,1);}else{this._renderEvents(events,0);} this.refreshLayout();},getNumberOfEventsToday:function(day,resource){if(typeof(this.numberOfEventsEachDay)==='undefined'){return 2;} if(resource!==null&&this.groupedResources&&this.groupedResources.length===1){return this.numberOfEventsEachDay[resource][day];}else{return this.numberOfEventsEachDay[day];}},getNumberOfEventsEachDay:function(events){var localFormat="YYYY-MM-DD[T]HH:mm:ss";var start=moment(moment(this.startDate()).format(localFormat));var end=moment(moment(this.endDate()).format(localFormat));var datesEnum=[];var startDateTimestamp=kendo.date.toUtcTime(start.clone().toDate());datesEnum.push(startDateTimestamp);var currDate=start.clone().startOf('day');var lastDate=end.clone().startOf('day');while(currDate.add(1,'days').diff(lastDate)<0){var newDayTimeStamp=kendo.date.toUtcTime(currDate.clone().toDate());datesEnum.push(newDayTimeStamp);} var endDateTimeStamp=kendo.date.toUtcTime(end.clone().toDate());datesEnum.push(endDateTimeStamp);var result={};_.each(datesEnum,function(dateInCalendar){eventsInThisDay=_.filter(events,function(event){eventStart=kendo.date.toUtcTime(event.start);eventEnd=kendo.date.toUtcTime(event.end);endDateInCalendar=(dateInCalendar/1000+(24*60*60-1))*1000;var inThisDay=false;if((eventStart>=dateInCalendar&&eventStart<=endDateInCalendar)||(eventEnd>=dateInCalendar&&eventEnd<=endDateInCalendar)||(eventStart<dateInCalendar&&eventEnd>endDateInCalendar)){inThisDay=true;} return inThisDay;});result[dateInCalendar]=eventsInThisDay.length;});return result;},_positionEvent:function(slotRange,element,group){var spaceForDayNumber=getSpaceForDayNumber(element[0]);var eventHeight=this.options.eventHeight;var startSlot=slotRange.start;if(slotRange.start.offsetLeft>slotRange.end.offsetLeft){startSlot=slotRange.end;} var startIndex=slotRange.start.index;var endIndex=slotRange.end.index;var eventCount=startSlot.eventCount;var events=SchedulerView.collidingEvents(slotRange.events(),startIndex,endIndex);var rightOffset=startIndex!==endIndex?5:4;events.push({element:element,start:startIndex,end:endIndex});var rows=SchedulerView.createRows(events);if(rows.length<=eventCount){for(var idx=0,length=Math.min(rows.length,eventCount);idx<length;idx++){var rowEvents=rows[idx].events;var eventTop=startSlot.offsetTop+startSlot.firstChildHeight+idx*eventHeight+3*idx+spaceForDayNumber+'px';for(var j=0,eventLength=rowEvents.length;j<eventLength;j++){rowEvents[j].element[0].style.top=eventTop;}}}else{for(var idx=0,length=Math.max(rows.length,eventCount);idx<length;idx++){var rowEvents=rows[idx].events;var eventTop=startSlot.offsetTop+startSlot.firstChildHeight+idx*eventHeight+3*idx+spaceForDayNumber+'px';for(var j=0,eventLength=rowEvents.length;j<eventLength;j++){rowEvents[j].element[0].style.top=eventTop;}}} slotRange.addEvent({element:element,start:startIndex,end:endIndex,groupIndex:startSlot.groupIndex});element[0].style.width=slotRange.innerWidth()-rightOffset+'px';element[0].style.left=startSlot.offsetLeft+2+'px';element[0].style.height=eventHeight+'px';group._continuousEvents.push({element:element,uid:element.attr(kendo.attr('uid')),start:slotRange.start,end:slotRange.end});element.appendTo(this.content);},_bottomSection:function(columnLevels,rowLevels,rowCount){this.content=content(columnLevels[columnLevels.length-1],rowLevels[rowLevels.length-1]);return $('<tr>').append(this.content.wrap('<td>').parent());}});})(); /* End of File include/javascript/kendo/expandedMonth.js */ ;(function(app){kendo=window.kendo;var MS_PER_MINUTE=60000,MS_PER_DAY=86400000;function levels(values,key){var result=[];function collect(depth,values){values=values[key];if(values){var level=result[depth]=result[depth]||[];for(var idx=0;idx<values.length;idx++){level.push(values[idx]);collect(depth+1,values[idx]);}}} collect(0,values);return result;} function cellspacing(){if(kendo.support.cssBorderSpacing){return'';} return'cellspacing="0"';} function table(tableRows,className){if(!tableRows.length){return'';} return'<table '+cellspacing()+' class="'+$.trim('k-scheduler-table '+(className||''))+'">'+'<tr>'+tableRows.join('</tr><tr>')+'</tr>'+'</table>';} function getMilliseconds(date){return toInvariantTime(date).getTime()-getDate(toInvariantTime(date));} function toInvariantTime(date){var staticDate=new Date(1980,1,1,0,0,0);if(date){staticDate.setHours(date.getHours(),date.getMinutes(),date.getSeconds(),date.getMilliseconds());} return staticDate;} function getDate(date){date=new Date(date.getFullYear(),date.getMonth(),date.getDate(),0,0,0);adjustDST(date,0);return date;} function adjustDST(date,hours){if(hours===0&&date.getHours()===23){date.setHours(date.getHours()+2);return true;} return false;} function timesHeader(columnLevelCount,rowCount){var tableRows=[];tableRows.push('<th>​</th>');columnLevelCount--;if(rowCount>0){for(var idx=0;idx<columnLevelCount;idx++){tableRows.push('<th>​</th>');}} if(rowCount<1){return $();} return $('<div class="k-scheduler-times">'+table(tableRows)+'</div>');} function datesHeader(columnLevels,columnCount){var dateTableRows=[];var columnIndex;var level=columnLevels[0];var th=[];var colspan=columnCount / level.length;var smartColspan=0;for(columnIndex=0;columnIndex<level.length;columnIndex++){var column=level[columnIndex];var dayInWeek=column.date.getDay();const fullVerboseMonth=app.Calendar.utils.getKendoDateMapping(app.user.getPreference('datepref'),'fullVerboseMonth');let columnText=kendo.toString(column.date,fullVerboseMonth);if(smartColspan===0){smartColspan=7-dayInWeek+1;if(columnIndex+smartColspan>level.length){smartColspan=level.length-columnIndex;} th.push($('<th></th>').attr('colspan',smartColspan).attr('className',column.className||'').text(columnText).get(0).outerHTML);} smartColspan--;} dateTableRows.push(th.join(''));columnLevels[1]=columnLevels[2];delete columnLevels[2];columnLevels.length=2;for(var columnLevelIndex=0;columnLevelIndex<columnLevels.length;columnLevelIndex++){var level=columnLevels[columnLevelIndex];var th=[];var colspan=columnCount / level.length;for(columnIndex=0;columnIndex<level.length;columnIndex++){var column=level[columnIndex];th.push($('<th></th>').attr('colspan',column.colspan||colspan).addClass(column.className||'').html(column.text).get(0).outerHTML);} dateTableRows.push(th.join(''));} return $('<div class="k-scheduler-header k-state-default">'+'<div class="k-scheduler-header-wrap">'+table(dateTableRows)+'</div>'+'</div>');} window.monthSchedule=kendo.ui.monthSchedule=kendo.ui.TimelineMonthView.extend({name:"monthSchedule",type:"monthSchedule",options:{dateHeaderTemplate:kendo.template($('<span class="k-link k-nav-day"></span>').text('#=(kendo.format(\'{0:dddd}\', date)).substring(0,1)#').get(0).outerHTML),columnWidth:50,name:"monthSchedule",type:"monthSchedule",},_topSection:function(columnLevels,allDaySlot,rowCount){this.timesHeader=timesHeader(columnLevels.length,rowCount);var columnCount=columnLevels[columnLevels.length-1].length;this.datesHeader=datesHeader(columnLevels,columnCount);return $('<tr>').append(this.timesHeader.add(this.datesHeader).wrap('<td>').parent());},_layout:function(dates){var timeColumns=[];var columns=[];var that=this;var rows=[{text:that.options.messages.defaultRowText}];var groupedView=that._groupedView;var minorTickSlots=[];for(var minorTickIndex=0;minorTickIndex<that.options.minorTickCount;minorTickIndex++){minorTickSlots.push({text:'​',className:'k-last',minorTicks:true});} this._forTimeRange(that.startTime(),that.endTime(),function(date,majorTick,middleColumn,lastSlotColumn,minorSlotsCount){var template=that.majorTimeHeaderTemplate;if(majorTick){var timeColumn={text:template({date:date}),className:lastSlotColumn?'k-slot-cell':'',columns:minorTickSlots.slice(0,minorSlotsCount)};groupedView._setColspan(timeColumn);timeColumns.push(timeColumn);}});for(var idx=0;idx<dates.length;idx++){columns.push({text:that.dateHeaderTemplate({date:dates[idx]}),className:'k-slot-cell',columns:timeColumns.slice(0),date:dates[idx]});} var resources=this.groupedResources;if(resources.length){if(this._groupOrientation()==='vertical'){rows=groupedView._createRowsLayout(resources,null,this.groupHeaderTemplate,columns);columns=groupedView._createVerticalColumnsLayout(resources,null,this.groupHeaderTemplate,columns);}else{columns=groupedView._createColumnsLayout(resources,columns,this.groupHeaderTemplate,columns);}} return{columns:columns,rows:rows};},_positionEvent:function(eventObject){var eventHeight=this.options.eventHeight+2;var rect=eventObject.slotRange.innerRect(eventObject.start,eventObject.end,true);var left=this._adjustLeftPosition(rect.left);var width=rect.right-rect.left-2;if(width<0){width=0;} if(width<this.options.eventMinWidth){var slotsCollection=eventObject.slotRange.collection;var lastSlot=slotsCollection._slots[slotsCollection._slots.length-1];var offsetRight=lastSlot.offsetLeft+lastSlot.offsetWidth;width=this.options.eventMinWidth;if(offsetRight<left+width){width=offsetRight-rect.left-2;}} eventObject.element.css({top:eventObject.slotRange.start.offsetTop+eventObject.rowIndex*(eventHeight+2)+'px',left:left,width:width});},_arrangeRows:function(eventObject,slotRange,eventGroup){var startIndex=slotRange.start.index;var endIndex=slotRange.end.index;var rect=eventObject.slotRange.innerRect(eventObject.start,eventObject.end,false);var rectRight=rect.right+this.options.eventMinWidth;var events=[];var slotRangeEvents=slotRange.events();for(var slotEventIdx in slotRangeEvents){var slotEvent=slotRangeEvents[slotEventIdx];if(slotEvent.rectLeft&&slotEvent.rectRight){events.push(slotEvent);}} slotRange.addEvent({slotIndex:startIndex,start:startIndex,end:endIndex,rectLeft:rect.left,rectRight:rectRight,element:eventObject.element,uid:eventObject.uid});events.push({start:startIndex,end:endIndex,uid:eventObject.uid});var rows=kendo.ui.SchedulerView.createRows(events);if(eventGroup.maxRowCount<rows.length){eventGroup.maxRowCount=rows.length;} for(var idx=0,length=rows.length;idx<length;idx++){var rowEvents=rows[idx].events;for(var j=0,eventLength=rowEvents.length;j<eventLength;j++){eventGroup.events[rowEvents[j].uid].rowIndex=idx;}}},});})(SUGAR.App); /* End of File include/javascript/kendo/monthSchedule.js */ ;(function(app){kendo.ui.AgendaView=kendo.ui.AgendaView.extend({_renderTaskGroups:function(tasksGroups,groups){var tableRows=[];var editable=this.options.editable;var showDelete=editable&&editable.destroy!==false&&!this._isMobile();var isMobile=this._isMobile();var sumOfItemsForDate=this._groupedView._getSumOfItemsForDate(tasksGroups);var groupsInDay=this._groupedView._getGroupsInDay(tasksGroups,groups);var groupsRowSpanIndex=0;for(var taskGroupIndex=0;taskGroupIndex<tasksGroups.length;taskGroupIndex++){var date=tasksGroups[taskGroupIndex].value;var tasks=tasksGroups[taskGroupIndex].items;var today=kendo.date.isToday(date);for(var taskIndex=0;taskIndex<tasks.length;taskIndex++){var task=tasks[taskIndex];var tableRow=[];var headerCells=!isMobile?tableRow:[];this._groupedView._renderTaskGroupsCells(headerCells,groups,taskGroupIndex,taskIndex,groupsInDay,sumOfItemsForDate,date,groupsRowSpanIndex);groupsRowSpanIndex++;if(taskIndex===0){if(isMobile){headerCells.push(kendo.format('<td class="k-scheduler-datecolumn {1}" colspan="2">{0}</td>',this._dateTemplate({date:date,isMobile:isMobile}),!this.groupedResources.length?'k-first':''));tableRows.push('<tr role="row" aria-selected="false"'+ (today?' class="k-today">':'>')+headerCells.join('')+'</tr>');}else{this._groupedView._renderDateCell(tableRow,groups,tasks,date,taskGroupIndex,tasksGroups);}} let userTimeFormat=app.Calendar.utils.getKendoTimeMapping(app.user.attributes.preferences.timepref);if(task.head){task.format=`{0:${userTimeFormat}}`;}else if(task.tail){task.format=`{1:${userTimeFormat}}`;}else{task.format=`{0:${userTimeFormat}}-{1:${userTimeFormat}}`;} task.resources=this.eventResources(task);tableRow.push(kendo.format('<td class="k-scheduler-timecolumn {4}"><div>{0}{1}{2}</div></td><td>{3}</td>',task.tail||task.middle?'<span class="k-icon k-i-arrow-60-left"></span>':'',this._timeTemplate(task.clone({start:task._startTime||task.start,end:task.endTime||task.end})),task.head||task.middle?'<span class="k-icon k-i-arrow-60-right"></span>':'',this._eventTemplate(task.clone({showDelete:showDelete,messages:this.options.messages})),!this.groupedResources.length&&isMobile?'k-first':''));tableRows.push('<tr role="row" aria-selected="false"'+(today?' class="k-today">':'>')+ tableRow.join('')+'</tr>');}} return tableRows.join('');},});})(SUGAR.App); /* End of File include/javascript/kendo/agendaView.js */ kendo.cultures["en-US"]={name:"en-US",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:[App.lang.getModString('LBL_SUNDAY','Calendar'),App.lang.getModString('LBL_MONDAY','Calendar'),App.lang.getModString('LBL_TUESDAY','Calendar'),App.lang.getModString('LBL_WEDNESDAY','Calendar'),App.lang.getModString('LBL_THURSDAY','Calendar'),App.lang.getModString('LBL_FRIDAY','Calendar'),App.lang.getModString('LBL_SATURDAY','Calendar'),],namesAbbr:[App.lang.getModString('LBL_SUN','Calendar'),App.lang.getModString('LBL_MON','Calendar'),App.lang.getModString('LBL_TUE','Calendar'),App.lang.getModString('LBL_WED','Calendar'),App.lang.getModString('LBL_THU','Calendar'),App.lang.getModString('LBL_FRI','Calendar'),App.lang.getModString('LBL_SAT','Calendar'),],namesShort:[App.lang.getModString('LBL_SU','Calendar'),App.lang.getModString('LBL_MO','Calendar'),App.lang.getModString('LBL_TU','Calendar'),App.lang.getModString('LBL_WE','Calendar'),App.lang.getModString('LBL_TH','Calendar'),App.lang.getModString('LBL_FR','Calendar'),App.lang.getModString('LBL_SA','Calendar'),]},months:{names:[App.lang.getModString('LBL_JANUARY','Calendar'),App.lang.getModString('LBL_FEBRUARY','Calendar'),App.lang.getModString('LBL_MARCH','Calendar'),App.lang.getModString('LBL_APRIL','Calendar'),App.lang.getModString('LBL_MAY','Calendar'),App.lang.getModString('LBL_JUNE','Calendar'),App.lang.getModString('LBL_JULY','Calendar'),App.lang.getModString('LBL_AUGUST','Calendar'),App.lang.getModString('LBL_SEPTEMBER','Calendar'),App.lang.getModString('LBL_OCTOBER','Calendar'),App.lang.getModString('LBL_NOVEMBER','Calendar'),App.lang.getModString('LBL_DECEMBER','Calendar'),],namesAbbr:[App.lang.getModString('LBL_JAN','Calendar'),App.lang.getModString('LBL_FEB','Calendar'),App.lang.getModString('LBL_MAR','Calendar'),App.lang.getModString('LBL_APR','Calendar'),App.lang.getModString('LBL_MAY','Calendar'),App.lang.getModString('LBL_JUN','Calendar'),App.lang.getModString('LBL_JUL','Calendar'),App.lang.getModString('LBL_AUG','Calendar'),App.lang.getModString('LBL_SEP','Calendar'),App.lang.getModString('LBL_OCT','Calendar'),App.lang.getModString('LBL_NOV','Calendar'),App.lang.getModString('LBL_DEC','Calendar'),]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},firstDay:0}}}; /* End of File include/javascript/kendo/kendo.culture.en-US.js */ (function resourcesLoader(app){function loadjscssfile(filename,filetype){let fileref;if(filetype==='js'){fileref=document.createElement('script');fileref.setAttribute('type','text/javascript');fileref.setAttribute('src',filename);}else if(filetype==='css'){fileref=document.createElement('link');fileref.setAttribute('rel','stylesheet');fileref.setAttribute('type','text/css');fileref.setAttribute('href',filename);} if(typeof fileref!=='undefined'){$('head').append(fileref);}} loadjscssfile('include/javascript/kendo/kendo.office365.min.css','css');})(SUGAR.App); /* End of File include/javascript/calendar/resourcesLoader.js */