/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.menu.min",["kendo.popup.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 i(e,t,n){e=e.split(" ")[!t+0]||e;var i={origin:["bottom",n?"right":"left"],position:["top",n?"right":"left"]},o=/left|right/.test(e);return o?(i.origin=["top",e],i.position[1]=p.directions[e].reverse):(i.origin[0]=e,i.position[0]=p.directions[e].reverse),i.origin=i.origin.join(" "),i.position=i.position.join(" "),i}function o(t,n){try{return e.contains(t,n)}catch(i){return!1}}function r(t){t=e(t),t.addClass("k-item").children(b).addClass(H),t.children("a").addClass(T).children(b).addClass(H),t.filter(":not([disabled])").addClass(V),t.filter(".k-separator").empty().append("&nbsp;"),t.filter("li[disabled]").addClass(q).removeAttr("disabled").attr("aria-disabled",!0),t.filter("[role]").length||t.attr("role","menuitem"),t.children("."+T).length||t.contents().filter(function(){return!(this.nodeName.match(w)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll("<span class='"+T+"'/>"),s(t),a(t)}function s(t){t=e(t),t.find("> .k-link > [class*=k-i-arrow]: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=t.parent().parent();t.append("<span class='k-icon "+(n.hasClass(P+"-horizontal")?"k-i-arrow-s":"k-i-arrow-e")+"'/>")})}function a(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(E),t.filter(".k-last:not(:last-child)").removeClass(O),t.filter(":first-child").addClass(E),t.filter(":last-child").addClass(O)}var l,p=window.kendo,c=p.ui,u=p._activeElement,d=p.support.touch&&p.support.mobileOS,m="mousedown",h="click",f=e.extend,g=e.proxy,v=e.each,k=p.template,_=p.keys,C=c.Widget,w=/^(ul|a|div)$/i,y=".kendoMenu",b="img",x="open",P="k-menu",T="k-link",O="k-last",I="close",A="timer",E="k-first",H="k-image",D="select",R="zIndex",S="activate",U="deactivate",z="touchstart"+y+" MSPointerDown"+y+" pointerdown"+y,L=p.support.pointers,N=p.support.msPointers,B=N||L,M=L?"pointerover":N?"MSPointerOver":"mouseenter",G=L?"pointerout":N?"MSPointerOut":"mouseleave",W=d||B,j=e(document.documentElement),F="kendoPopup",V="k-state-default",X="k-state-hover",Y="k-state-focused",q="k-state-disabled",K="k-state-selected",Z=".k-menu",$=".k-menu-group",Q=$+",.k-animation-container",J=":not(.k-list) > .k-item",ee=".k-item.k-state-disabled",te=".k-item:not(.k-state-disabled)",ne=".k-item:not(.k-state-disabled) > .k-link",ie=":not(.k-item.k-separator)",oe=ie+":eq(0)",re=ie+":last",se="div:not(.k-animation-container,.k-list-container)",ae={2:1,touch:1},le={content:k("<div #= contentCssAttributes(item) # tabindex='-1'>#= content(item) #</div>"),group:k("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) # role='menu' aria-hidden='true'>#= renderItems(data) #</ul>"),itemWrapper:k("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(data) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:k("<li class='#= wrapperCssClass(group, item) #' #= itemCssAttributes(item) # role='menuitem'  #=item.items ? \"aria-haspopup='true'\": \"\"##=item.enabled === false ? \"aria-disabled='true'\" : ''#>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl) { ##= renderContent(data) ## } #</li>"),image:k("<img #= imageCssAttributes(item) # alt='' src='#= item.imageUrl #' />"),arrow:k("<span class='#= arrowClass(item, group) #'></span>"),sprite:k("<span class='k-sprite #= spriteCssClass #'></span>"),empty:k("")},pe={wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",e.firstLevel&&0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),t.cssClass&&(n+=" "+t.cssClass),t.attr&&t.attr.hasOwnProperty("class")&&(n+=" "+t.attr["class"]),t.selected&&(n+=" "+K),n},itemCssAttributes:function(e){var t,n="",i=e.attr||{};for(t in i)i.hasOwnProperty(t)&&"class"!==t&&(n+=t+'="'+i[t]+'" ');return n},imageCssAttributes:function(e){var t,n="",i=e.imageAttr||{};i["class"]?i["class"]+=" "+H:i["class"]=H;for(t in i)i.hasOwnProperty(t)&&(n+=t+'="'+i[t]+'" ');return n},contentCssAttributes:function(e){var t,n="",i=e.contentAttr||{},o="k-content k-group k-menu-group";i["class"]?i["class"]+=" "+o:i["class"]=o;for(t in i)i.hasOwnProperty(t)&&(n+=t+'="'+i[t]+'" ');return n},textClass:function(){return T},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},arrowClass:function(e,t){var n="k-icon";return n+=t.horizontal?" k-i-arrow-s":" k-i-arrow-e"},text:function(e){return e.encoded===!1?e.text:p.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},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:"&nbsp;"}},ce=C.extend({init:function(t,n){var i=this;C.fn.init.call(i,t,n),t=i.wrapper=i.element,n=i.options,i._initData(n),i._updateClasses(),i._animations(n),i.nextItemZIndex=100,i._tabindex(),i._focusProxy=g(i._focusHandler,i),t.on(z,te,i._focusProxy).on(h+y,ee,!1).on(h+y,te,g(i._click,i)).on("keydown"+y,g(i._keydown,i)).on("focus"+y,g(i._focus,i)).on("focus"+y,".k-content",g(i._focus,i)).on(z+" "+m+y,".k-content",g(i._preventClose,i)).on("blur"+y,g(i._removeHoverItem,i)).on("blur"+y,"[tabindex]",g(i._checkActiveElement,i)).on(M+y,te,g(i._mouseenter,i)).on(G+y,te,g(i._mouseleave,i)).on(M+y+" "+G+y+" "+m+y+" "+h+y,ne,g(i._toggleHover,i)),n.openOnClick&&(i.clicked=!1,i._documentClickHandler=g(i._documentClick,i),e(document).click(i._documentClickHandler)),t.attr("role","menubar"),t[0].id&&(i._ariaId=p.format("{0}_mn_active",t[0].id)),p.notify(i)},events:[x,I,S,U,D],options:{name:"Menu",animation:{open:{duration:200},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100,popupCollision:t},_initData:function(e){var t=this;e.dataSource&&(t.angular("cleanup",function(){return{elements:t.element.children()}}),t.element.empty(),t.append(e.dataSource,t.element),t.angular("compile",function(){return{elements:t.element.children()}}))},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=f(!0,t,e.animation),"dataSource"in e&&this._initData(e),this._updateClasses(),C.fn.setOptions.call(this,e)},destroy:function(){var t=this;C.fn.destroy.call(t),t.element.off(y),t._documentClickHandler&&e(document).unbind("click",t._documentClickHandler),p.destroy(t.element)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.length?t.find("> .k-menu-group, > .k-animation-container > .k-menu-group"):null);return v(n.items,function(){n.group.append(this),s(this)}),s(t),a(n.group.find(".k-first, .k-last").add(n.items)),this},insertBefore:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return v(n.items,function(){t.before(this),s(this),a(this)}),a(t),this},insertAfter:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return v(n.items,function(){t.after(this),s(this),a(this)}),a(t),this},_insert:function(t,n,i){var o,s,a,l,p=this;return n&&n.length||(i=p.element),a=e.isPlainObject(t),l={firstLevel:i.hasClass(P),horizontal:i.hasClass(P+"-horizontal"),expanded:!0,length:i.children().length},n&&!i.length&&(i=e(ce.renderGroup({group:l})).appendTo(n)),a||e.isArray(t)?o=e(e.map(a?[t]:t,function(t,n){return"string"==typeof t?e(t).get():e(ce.renderItem({group:l,item:f(t,{index:n})})).get()})):(o="string"==typeof t&&"<"!=t.charAt(0)?p.element.find(t):e(t),s=o.find("> ul").addClass("k-menu-group").attr("role","menu"),o=o.filter("li"),o.add(s.find("> li")).each(function(){r(this)})),{items:o,group:i}},remove:function(e){var t,n,i,o;return e=this.element.find(e),t=this,n=e.parentsUntil(t.element,J),i=e.parent("ul:not(.k-menu)"),e.remove(),i&&!i.children(J).length&&(o=i.parent(".k-animation-container"),o.length?o.remove():i.remove()),n.length&&(n=n.eq(0),s(n),a(n)),t},open:function(o){var r=this,s=r.options,a="horizontal"==s.orientation,l=s.direction,c=p.support.isRtl(r.wrapper);return o=r.element.find(o),/^(top|bottom|default)$/.test(l)&&(l=c?a?(l+" left").replace("default","bottom"):"left":a?(l+" right").replace("default","bottom"):"right"),o.siblings().find(">.k-popup:visible,>.k-animation-container>.k-popup:visible").each(function(){var t=e(this).data("kendoPopup");t&&t.close(!0)}),o.each(function(){var o=e(this);clearTimeout(o.data(A)),o.data(A,setTimeout(function(){var u,m,h,g,v,k,_,C,w=o.find(".k-menu-group:first:hidden");w[0]&&r._triggerEvent({item:o[0],type:x})===!1&&(!w.find(".k-menu-group")[0]&&w.children(".k-item").length>1?(m=e(window).height(),h=function(){w.css({maxHeight:m-(p._outerHeight(w)-w.height())-p.getShadows(w).bottom,overflow:"auto"})},p.support.browser.msie&&p.support.browser.version<=7?setTimeout(h,0):h()):w.css({maxHeight:"",overflow:""}),o.data(R,o.css(R)),o.css(R,r.nextItemZIndex++),u=w.data(F),g=o.parent().hasClass(P),v=g&&a,k=i(l,g,c),_=s.animation.open.effects,C=_!==t?_:"slideIn:"+n(l,g),u?(u=w.data(F),u.options.origin=k.origin,u.options.position=k.position,u.options.animation.open.effects=C):u=w.kendoPopup({activate:function(){r._triggerEvent({item:this.wrapper.parent(),type:S})},deactivate:function(e){e.sender.element.removeData("targetTransform").css({opacity:""}),r._triggerEvent({item:this.wrapper.parent(),type:U})},origin:k.origin,position:k.position,collision:s.popupCollision!==t?s.popupCollision:v?"fit":"fit flip",anchor:o,appendTo:o,animation:{open:f(!0,{effects:C},s.animation.open),close:s.animation.close},close:function(e){var t=e.sender.wrapper.parent();r._triggerEvent({item:t[0],type:I})?e.preventDefault():(t.css(R,t.data(R)),t.removeData(R),d&&(t.removeClass(X),r._removeHoverItem()))}}).data(F),w.removeAttr("aria-hidden"),u.open())},r.options.hoverDelay))}),r},close:function(t,n){var i=this,o=i.element;return t=o.find(t),t.length||(t=o.find(">.k-item")),t.each(function(){var t=e(this);!n&&i._isRootItem(t)&&(i.clicked=!1),clearTimeout(t.data(A)),t.data(A,setTimeout(function(){var e=t.find(".k-menu-group:not(.k-list-container):not(.k-calendar-container):first:visible").data(F);e&&(e.close(),e.element.attr("aria-hidden",!0))},i.options.hoverDelay))}),i},_toggleDisabled:function(t,n){this.element.find(t).each(function(){e(this).toggleClass(V,n).toggleClass(q,!n).attr("aria-disabled",!n)})},_toggleHover:function(t){var n=e(p.eventTarget(t)||t.target).closest(J),i=t.type==M||m.indexOf(t.type)!==-1;n.parents("li."+q).length||n.toggleClass(X,i||"mousedown"==t.type||"click"==t.type),this._removeHoverItem()},_preventClose:function(){this.options.closeOnClick||(this._closurePrevented=!0)},_checkActiveElement:function(t){var n=this,i=e(t?t.currentTarget:this._hoverItem()),r=n._findRootParent(i)[0];this._closurePrevented||setTimeout(function(){document.hasFocus()&&(o(r,p._activeElement())||!t||o(r,t.currentTarget))||n.close(r)},0),this._closurePrevented=!1},_removeHoverItem:function(){var e=this._hoverItem();e&&e.hasClass(Y)&&(e.removeClass(Y),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 "+P).addClass(P+"-"+this.options.orientation),t.find("li > ul").filter(function(){return!p.support.matchesSelector.call(this,n)}).addClass("k-group k-menu-group").attr("role","menu").attr("aria-hidden",t.is(":visible")).end().find("li > div").addClass("k-content").attr("tabindex","-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,i=e(t.currentTarget),r=i.children(".k-animation-container").length||i.children($).length;t.delegateTarget==i.parents(Z)[0]&&(n.options.openOnClick&&!n.clicked||d||(L||N)&&t.originalEvent.pointerType in ae&&n._isRootItem(i.closest(J))||!o(t.currentTarget,t.relatedTarget)&&r&&n.open(i),(n.options.openOnClick&&n.clicked||W)&&i.siblings().each(g(function(e,t){n.close(t,!0)},n)))},_mouseleave:function(n){var i=this,r=e(n.currentTarget),s=r.children(".k-animation-container").length||r.children($).length;return r.parentsUntil(".k-animation-container",".k-list-container,.k-calendar-container")[0]?(n.stopImmediatePropagation(),t):(i.options.openOnClick||d||(L||N)&&n.originalEvent.pointerType in ae||o(n.currentTarget,n.relatedTarget||n.target)||!s||o(n.currentTarget,p._activeElement())||i.close(r),t)},_click:function(n){for(var i,o,r,s=this,a=s.options,l=e(p.eventTarget(n)),c=l[0],u=l[0]?l[0].nodeName.toUpperCase():"",d="INPUT"==u||"SELECT"==u||"BUTTON"==u||"LABEL"==u,m=l.closest("."+T),h=l.closest(J),f=h[0],g=m.attr("href"),v=l.attr("href"),k=e("<a href='#' />").attr("href"),_=!!g&&g!==k,C=_&&!!g.match(/^#/),w=!!v&&v!==k,y=a.openOnClick&&r&&s._isRootItem(h);c&&c.parentNode!=f;)c=c.parentNode;if(!e(c).is(se)){if(h.hasClass(q))return n.preventDefault(),t;if(n.handled||!s._triggerEvent({item:h[0],type:D})||d||n.preventDefault(),n.handled=!0,o=h.children(Q),r=o.is(":visible"),a.closeOnClick&&(!_||C)&&(!o.length||y))return h.removeClass(X).css("height"),s._oldHoverItem=s._findRootParent(h),s.close(m.parentsUntil(s.element,J)),s.clicked=!1,"MSPointerUp".indexOf(n.type)!=-1&&n.preventDefault(),t;_&&n.enterKey&&m[0].click(),(s._isRootItem(h)&&a.openOnClick||p.support.touch||(L||N)&&s._isRootItem(h.closest(J)))&&(_||d||w||n.preventDefault(),s.clicked=!0,i=o.is(":visible")?I:x,(a.closeOnClick||i!=I)&&s[i](h))}},_documentClick:function(e){o(this.element[0],e.target)||(this.clicked=!1)},_focus:function(n){var i=this,o=n.target,r=i._hoverItem(),s=u();return o==i.wrapper[0]||e(o).is(":kendoFocusable")?(s===n.currentTarget&&(r.length?i._moveHover([],r):i._oldHoverItem||i._moveHover([],i.wrapper.children().first())),t):(n.stopPropagation(),e(o).closest(".k-content").closest(".k-menu-group").closest(".k-item").addClass(Y),i.wrapper.focus(),t)},_keydown:function(e){var n,i,o,r=this,s=e.keyCode,a=r._oldHoverItem,l=p.support.isRtl(r.wrapper);if(e.target==e.currentTarget||s==_.ESC){if(a||(a=r._oldHoverItem=r._hoverItem()),i=r._itemBelongsToVertival(a),o=r._itemHasChildren(a),s==_.RIGHT)n=r[l?"_itemLeft":"_itemRight"](a,i,o);else if(s==_.LEFT)n=r[l?"_itemRight":"_itemLeft"](a,i,o);else if(s==_.DOWN)n=r._itemDown(a,i,o);else if(s==_.UP)n=r._itemUp(a,i,o);else if(s==_.ESC)n=r._itemEsc(a,i);else if(s==_.ENTER||s==_.SPACEBAR)n=a.children(".k-link"),n.length>0&&(r._click({target:n[0],preventDefault:function(){},enterKey:!0}),r._moveHover(a,r._findRootParent(a)));else if(s==_.TAB)return n=r._findRootParent(a),r._moveHover(a,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.length&&e.children("ul.k-menu-group, div.k-animation-container").length>0},_moveHover:function(t,n){var i=this,o=i._ariaId;t.length&&n.length&&t.removeClass(Y),n.length&&(n[0].id&&(o=n[0].id),n.addClass(Y),i._oldHoverItem=n,o&&(i.element.removeAttr("aria-activedescendant"),e("#"+o).removeAttr("id"),n.attr("id",o),i.element.attr("aria-activedescendant",o)))},_findRootParent:function(e){return this._isRootItem(e)?e:e.parentsUntil(Z,"li.k-item").last()},_isRootItem:function(e){return e.parent().hasClass(P)},_itemRight:function(e,t,n){var i,o,r=this;if(!e.hasClass(q))return t?n?(r.open(e),i=e.find(".k-menu-group").children().first()):"horizontal"==r.options.orientation&&(o=r._findRootParent(e),r.close(o),i=o.nextAll(oe)):(i=e.nextAll(oe),i.length||(i=e.prevAll(re))),i&&!i.length?i=r.wrapper.children(".k-item").first():i||(i=[]),r._moveHover(e,i),i},_itemLeft:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._isRootItem(n)&&"horizontal"==i.options.orientation&&(n=n.prevAll(oe))):(n=e.prevAll(oe),n.length||(n=e.nextAll(re))),n.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n},_itemDown:function(e,t,n){var i,o=this;if(t)i=e.nextAll(oe);else{if(!n||e.hasClass(q))return;o.open(e),i=e.find(".k-menu-group").children().first()}return!i.length&&e.length?i=e.parent().children().first():e.length||(i=o.wrapper.children(".k-item").first()),o._moveHover(e,i),i},_itemUp:function(e,t){var n,i=this;if(t)return n=e.prevAll(oe),!n.length&&e.length?n=e.parent().children().last():e.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n},_itemEsc:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._moveHover(e,n),n):e},_triggerEvent:function(e){var t=this;return t.trigger(e.type,{type:e.type,item:e.item})},_focusHandler:function(t){var n=this,i=e(p.eventTarget(t)).closest(J);setTimeout(function(){n._moveHover([],i),i.children(".k-content")[0]&&i.parent().closest(".k-item").removeClass(Y)},200)},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})}});f(ce,{renderItem:function(e){e=f({menu:{},group:{}},e);var t=le.empty,n=e.item;return le.item(f(e,{image:n.imageUrl?le.image:t,sprite:n.spriteCssClass?le.sprite:t,itemWrapper:le.itemWrapper,renderContent:ce.renderContent,arrow:n.items||n.content?le.arrow:t,subGroup:ce.renderGroup},pe))},renderGroup:function(e){return le.group(f({renderItems:function(e){for(var t="",n=0,i=e.items,o=i?i.length:0,r=f({length:o},e.group);n<o;n++)t+=ce.renderItem(f(e,{group:r,item:f({index:n},i[n])}));return t}},e,pe))},renderContent:function(e){return le.content(f(e,pe))}}),l=ce.extend({init:function(t,n){var i=this;ce.fn.init.call(i,t,n),i._marker=p.guid().substring(0,8),i.target=e(i.options.target),i._popup(),i._wire()},options:{name:"ContextMenu",filter:null,showOn:"contextmenu",orientation:"vertical",alignToAnchor:!1,target:"body"},events:[x,I,S,U,D],setOptions:function(t){var n=this;ce.fn.setOptions.call(n,t),n.target.off(n.showOn+y+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(),ce.fn.setOptions.call(this,t)},destroy:function(){var e=this;e.target.off(e.options.showOn+y+e._marker),j.off(p.support.mousedown+y+e._marker,e._closeProxy),e.userEvents&&e.userEvents.destroy(),ce.fn.destroy.call(e)},open:function(n,i){var r=this;return n=e(n)[0],o(r.element[0],e(n)[0])?ce.fn.open.call(r,n):r._triggerEvent({item:r.element,type:x})===!1&&(r.popup.visible()&&r.options.filter&&(r.popup.close(!0),r.popup.element.kendoStop(!0)),i!==t?(r.popup.wrapper.hide(),r.popup.open(n,i)):(r.popup.options.anchor=(n?n:r.popup.anchor)||r.target,r.popup.element.kendoStop(!0),r.popup.open()),j.off(r.popup.downEvent,r.popup._mousedownProxy),j.on(p.support.mousedown+y+r._marker,r._closeProxy)),r},close:function(){var t=this;o(t.element[0],e(arguments[0])[0])?ce.fn.close.call(t,arguments[0]):t.popup.visible()&&t._triggerEvent({item:t.element,type:I})===!1&&(t.popup.close(),j.off(p.support.mousedown+y,t._closeProxy),t.unbind(D,t._closeTimeoutProxy))},_showHandler:function(e){var t,n=e,i=this,r=i.options;e.event&&(n=e.event,n.pageX=e.x.location,n.pageY=e.y.location),o(i.element[0],e.relatedTarget||e.target)||(i._eventOrigin=n,n.preventDefault(),n.stopImmediatePropagation(),i.element.find("."+Y).removeClass(Y),(r.filter&&p.support.matchesSelector.call(n.currentTarget,r.filter)||!r.filter)&&(r.alignToAnchor?(i.popup.options.anchor=n.currentTarget,i.open(n.currentTarget)):(i.popup.options.anchor=n.currentTarget,i._targetChild?(t=i.target.offset(),i.open(n.pageX-t.left,n.pageY-t.top)):i.open(n.pageX,n.pageY))))},_closeHandler:function(t){var n,i=this,r=e(t.relatedTarget||t.target),s=r.closest(i.target.selector)[0]==i.target[0],a=r.closest(te).children(Q),l=o(i.element[0],r[0]);i._eventOrigin=t,n=3!==t.which,i.popup.visible()&&(n&&s||!s)&&(i.options.closeOnClick&&!a[0]&&l||!l)&&(l?(this.unbind(D,this._closeTimeoutProxy),i.bind(D,i._closeTimeoutProxy)):i.close())},_wire:function(){var e=this,t=e.options,n=e.target;e._showProxy=g(e._showHandler,e),e._closeProxy=g(e._closeHandler,e),e._closeTimeoutProxy=g(e.close,e),n[0]&&(p.support.mobileOS&&"contextmenu"==t.showOn?(e.userEvents=new p.UserEvents(n,{filter:t.filter,allowSelection:!1}),n.on(t.showOn+y+e._marker,!1),e.userEvents.bind("hold",e._showProxy)):t.filter?n.on(t.showOn+y+e._marker,t.filter,e._showProxy):n.on(t.showOn+y+e._marker,e._showProxy))},_triggerEvent:function(n){var i=this,o=e(i.popup.options.anchor)[0],r=i._eventOrigin;return i._eventOrigin=t,i.trigger(n.type,f({type:n.type,item:n.item||this.element[0],target:o},r?{event:r}:{}))},_popup:function(){var e=this;e._triggerProxy=g(e._triggerEvent,e),e.popup=e.element.addClass("k-context-menu").kendoPopup({anchor:e.target||"body",copyAnchorStyles:e.options.copyAnchorStyles,collision:e.options.popupCollision||"fit",animation:e.options.animation,activate:e._triggerProxy,deactivate:e._triggerProxy}).data("kendoPopup"),e._targetChild=o(e.target[0],e.popup.element[0])}}),c.plugin(ce),c.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.menu.min.js.map
