@progress/kendo-angular-menu 3.0.3-dev.202110281317 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
17
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
18
  PERFORMANCE OF THIS SOFTWARE.
19
19
  ***************************************************************************** */
20
- var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function a(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,i){t(n,i,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))}function l(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function d(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,u):p(r[0][2],n)}catch(e){p(r[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function p(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function j(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return V})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return C})),n.d(t,"DraggableModule",(function(){return w})),n.d(t,"closestInScope",(function(){return S})),n.d(t,"closest",(function(){return j})),n.d(t,"contains",(function(){return I})),n.d(t,"findElement",(function(){return E})),n.d(t,"findFocusableChild",(function(){return A})),n.d(t,"findFocusable",(function(){return D})),n.d(t,"hasClasses",(function(){return R})),n.d(t,"isFocusableWithTabKey",(function(){return T})),n.d(t,"isFocusable",(function(){return P})),n.d(t,"isVisible",(function(){return M})),n.d(t,"matchesClasses",(function(){return L})),n.d(t,"matchesNodeName",(function(){return N})),n.d(t,"rtlScrollPosition",(function(){return K})),n.d(t,"EventsOutsideAngularDirective",(function(){return H})),n.d(t,"EventsModule",(function(){return Z})),n.d(t,"ResizeSensorComponent",(function(){return J})),n.d(t,"ResizeBatchService",(function(){return W})),n.d(t,"ResizeCompatService",(function(){return G})),n.d(t,"ResizeObserverService",(function(){return X})),n.d(t,"ResizeSensorModule",(function(){return $})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return y})),n.d(t,"isChanged",(function(){return _})),n.d(t,"anyChanged",(function(){return b})),n.d(t,"hasObservers",(function(){return O})),n.d(t,"guid",(function(){return x})),n.d(t,"Keys",(function(){return F}));var i=n(1),o=n(0),r=function(e,t){return function(n){return t(e(n))}},s=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},c=function(){},u=function(e){return e.preventDefault()},p=/touch/;function l(e){return e.type.match(p)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var d=function(e){var t=this,n=e.press;void 0===n&&(n=c);var i=e.drag;void 0===i&&(i=c);var o=e.release;void 0===o&&(o=c);var p=e.mouseOnly;void 0===p&&(p=!1),this._pressHandler=r(l,n),this._dragHandler=r(l,i),this._releaseHandler=r(l,o),this._ignoreMouse=!1,this._mouseOnly=p,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",u),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",u),t._releaseHandler(e))}},h={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",u),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(e){var t=e.press;void 0===t&&(t=c);var n=e.drag;void 0===n&&(n=c);var i=e.release;void 0===i&&(i=c);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=r(l,t),this._dragHandler=r(l,n),this._releaseHandler=r(l,i),this._mouseOnly=o},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,h),d.default=d;var f=d,m=n(5),v=n(6),g=n(3),y=function(){return"undefined"!=typeof document},_=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},b=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return _(e,t,n)}))},O=function(e){return e&&e.observers.length>0},x=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},C=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){_("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;y()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),w=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[C],exports:[C],imports:[m.CommonModule]})],e)}(),S=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},j=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},I=function(e,t,n){if(void 0===n&&(n=!1),!j(t,(function(t){return t===e})))return!1;var i=j(t,(function(e){return e===t}));return i&&(n||i!==e)},E=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=E(e,t);if(i)return i}e=e.nextSibling}}},k=/^(?:a|input|select|option|textarea|button|object)$/i,P=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&k.test(t)||n},M=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,i=0!==t.x&&0!==t.y;return(n||i)&&"hidden"!==window.getComputedStyle(e).visibility},T=function(e,t){if(void 0===t&&(t=!0),!P(e))return!1;var n=e.getAttribute("tabIndex");return(!t||M(e))&&"-1"!==n},A=function(e,t){return void 0===t&&(t=!0),E(e,(function(e){return T(e,t)}),!1)},D=function(e,t){return void 0===t&&(t=!0),E(e,(function(e){return T(e,t)}))},z=function(e){return String(e).trim().split(" ")},R=function(e,t){var n=z(t);return Boolean(z(e.className).find((function(e){return n.indexOf(e)>=0})))},L=function(e){return function(t){return R(t,e)}},B={},N=function(e){return B[e]||(B[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),B[e]};function K(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var F,H=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(i.__decorate)([Object(o.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2])],e)}(),Z=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[H],exports:[H]})],e)}(),V=function(){function e(e){this.resizeBatchService=e,this.resize=new o.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){y()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),U=function(e){var t=document.createElement("div");return t.style.cssText=e,t},q="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",G=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=q,e.setAttribute("dir","ltr"),this.expand=U(q),this.expandChild=U("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=U(q);var t=U("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(g.merge)(Object(g.fromEvent)(e.shrink,"scroll"),Object(g.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(V),Y="undefined"!=typeof ResizeObserver,X=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.supported=function(){return Y},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(V),W=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(g.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[o.NgZone])],e)}(),J=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=X.supported()?X:G;this.resizeService=new r(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(v.auditTime)(s)).subscribe((function(){i.resizeService.acceptedSize||i.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"resize",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[W,o.ElementRef,o.NgZone])],e)}(),Q=[J],$=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Q],exports:[Q],providers:[W]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(F||(F={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=/_?\d+$/,s=0,a=function(e,t){return e.siblingIndex-t.siblingIndex},c=function(e,t,n){for(var i=t[e+n];!i;)e<0?e=t.length-1:e>=t.length?e=0:e+=n,i=t[e];return i},u=function(){function e(){this.items={},this.lists=[],this.idPrefix="k-menu"+s++}return Object.defineProperty(e.prototype,"hasItems",{get:function(){return Object.keys(this.items).length>0},enumerable:!0,configurable:!0}),e.prototype.childId=function(e){return this.idPrefix+"-child"+e},e.prototype.itemIndex=function(e,t){return(e?e+"_":"")+t},e.prototype.get=function(e){return this.items[e]},e.prototype.add=function(e){this.items[e.index]=e},e.prototype.remove=function(e){this.items[e.index]===e&&delete this.items[e.index]},e.prototype.addList=function(e){this.lists.push(e)},e.prototype.removeList=function(e){var t=this.lists.indexOf(e);t>=0&&this.lists.splice(t,1)},e.prototype.containsList=function(e){return Boolean(this.lists.find((function(t){return t.element.nativeElement===e})))},e.prototype.siblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter((function(e){return t.parentIndex(e)===n}))},e.prototype.otherSiblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter((function(i){return t.parentIndex(i)===n&&i!==e.index}))},e.prototype.children=function(e){var t=this;return this.filter((function(n){return t.parentIndex(n)===e.index}))},e.prototype.parent=function(e){return this.items[this.parentIndex(e.index)]},e.prototype.root=function(e){return this.items[this.indices(e.index)[0]]},e.prototype.indices=function(e){return e.split("_")},e.prototype.filter=function(e){var t=[],n=this.items;for(var i in n)e(i,n[i])&&t.push(n[i]);return t.sort(a)},e.prototype.previous=function(e){var t=this.siblings(e),n=t.indexOf(e);return c(n,t,-1)},e.prototype.next=function(e){var t=this.siblings(e),n=t.indexOf(e);return c(n,t,1)},e.prototype.hasParent=function(e,t){return e.index.startsWith(t.index)},e.prototype.areSiblings=function(e,t){return e!==t&&this.parent(e)===this.parent(t)},e.prototype.forEach=function(e){var t=this.items;for(var n in t)t.hasOwnProperty(n)&&e(t[n])},e.prototype.parentIndex=function(e){return e.replace(r,"")},e=i.__decorate([o.Injectable()],e)}();t.ItemsService=u},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=n(16),a=n(2),c=function(e,t){return!("open"===t&&e.opened||"close"===t&&!e.opened)},u=function(){function e(e,t){this.ngZone=e,this.items=t,this.actions=[]}return e.prototype.open=function(e,t){e.disabled||(e.hasContent&&!e.opened?this.actions.push({name:"open",requiresZone:e.hasContentTemplates(),item:e,finished:t}):t&&t())},e.prototype.close=function(e){this.closeChildren(e),this.closeItem(e)},e.prototype.closeItem=function(e){e.opened&&this.actions.push({name:"close",item:e})},e.prototype.closeToRoot=function(e){this.closeChildren(e);var t=e;do{this.closeItem(t),t=this.items.parent(t)}while(t)},e.prototype.closeOthers=function(e){this.closeChildren(e);for(var t=e;t;){var n=this.items.otherSiblings(t);this.closeItems(n),t=this.items.parent(t)}},e.prototype.closeAll=function(){var e=this;this.items.forEach((function(t){t.opened&&0===t.level&&e.close(t)}))},e.prototype.select=function(e,t,n,i){this.actions.push({name:"select",item:e,prevented:n,finished:i,domEvent:t})},e.prototype.emit=function(e,t,n){var i=this.owner,o=new s.MenuEvent({sender:i,item:t.item,index:t.index,originalEvent:n,hasContent:t.hasContent});return i[e].emit(o),i.contextService&&i.contextService.emit(e,o),o.isDefaultPrevented()},Object.defineProperty(e.prototype,"hasPending",{get:function(){return this.actions.length>0},enumerable:!0,configurable:!0}),e.prototype.execute=function(e){var t=this;if(this.hasPending||e){var n=e||this.clear();!o.NgZone.isInAngularZone()&&this.requiresZone(n)?this.ngZone.run((function(){t.executeActions(n)})):this.executeActions(n)}},e.prototype.clear=function(){var e=this.actions;return this.actions=[],e},e.prototype.executeActions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.item,o=n.name,r=n.prevented,s=n.finished,a=n.domEvent;c(i,o)&&(this.emit(o,i,a)?r&&r():(i[o]&&i[o](),s&&s()))}},e.prototype.requiresZone=function(e){for(var t=e||this.actions,n=this.owner,i=n.contextService,o=0;o<t.length;o++){var r=t[o],s=r.name;if(r.requiresZone||s&&(a.hasObservers(n[s])||i&&i.hasObservers(s)))return!0}return!1},e.prototype.closeChildren=function(e){if(e.opened){var t=this.items.children(e);this.closeItems(t)}},e.prototype.closeItems=function(e){for(var t=0;t<e.length;t++)this.close(e[t])},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone,r.ItemsService])],e)}();t.ActionsService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(27),o=/^(?:a|input|select|option|textarea|button|object)$/i;t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,r=null!==n&&!i;return o.test(t)&&(r=!e.disabled&&!i),r}return!1};var r=function(e){return String(e).trim().split(" ")};t.hasClass=function(e,t){return r(e.className).indexOf(t)>=0},t.matchesClasses=function(e){var t=r(e);return function(e){var n=r(e.className);return Boolean(t.find((function(e){return n.indexOf(e)>=0})))}},t.nodeIndex=function(e){return e.getAttribute(i.NODE_INDEX)},t.closestItem=function(e,n){return t.closestInScope(e,t.nodeIndex,n)},t.closestList=function(e){var n=t.closest(e,t.matchesClasses("k-menu-popup k-menu k-menu-group"));return n&&t.hasClass(n,"k-menu-popup")&&(n=n.querySelector(".k-menu-group")),n},t.inMenu=function(e,n){if(e===n.lists[0].element.nativeElement)return!1;var i=t.closestList(e);return i&&n.containsList(i)},t.findInContainer=function(e,n,i){var o=i.getAttribute("id");o||i.setAttribute("id","kendo-matches-container");var r="#"+(o||"kendo-matches-container")+" "+n,s=t.closestInScope(e,(function(e){return function(e,t){return(e.matches||e.msMatchesSelector).call(e,t)}(e,r)}),i);return o||i.removeAttribute("id"),s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),s=n(9),a=function(){function e(){this.keydown=new o.EventEmitter}return e.prototype.emit=function(e,t){this.owner.emitMenuEvent(e,t)},e.prototype.hasObservers=function(e){return this.owner&&r.hasObservers(this.owner[e])},e.prototype.leaveMenu=function(e){return!this.items||!s.inMenu(e.target,this.items)},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(18),s=n(12),a=n(13),c=function(){function e(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0}return Object.defineProperty(e.prototype,"rootItems",{get:function(){return this.items||(this.children?this.children.toArray():[])},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"hoverDelay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.ContentChildren(s.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(r.MenuItemComponent),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e}();t.MenuBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemLinkTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemLinkTemplateDirective=r},function(e,t,n){"use strict";n.r(t),n.d(t,"AlignService",(function(){return J})),n.d(t,"AnimationService",(function(){return ne})),n.d(t,"DOMService",(function(){return X})),n.d(t,"PositionService",(function(){return Q})),n.d(t,"ResizeService",(function(){return $})),n.d(t,"ScrollableService",(function(){return ee})),n.d(t,"PopupService",(function(){return ae})),n.d(t,"POPUP_CONTAINER",(function(){return se})),n.d(t,"PopupComponent",(function(){return re})),n.d(t,"PopupModule",(function(){return ue})),n.d(t,"SCALE",(function(){return W}));var i=n(1),o=n(0),r="bottom",s="center",a="middle",c="left",u="right",p="top",l=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,c=e.margin;void 0===c&&(c={});var p=n.horizontal,l=n.vertical,d=o.horizontal,h=o.vertical,f=c.horizontal||0,m=c.vertical||0,v=t.top,g=t.left;return l===r&&(v+=t.height),l!==s&&l!==a||(v+=Math.round(t.height/2)),h===r&&(v-=i.height,m*=-1),h!==s&&h!==a||(v-=Math.round(i.height/2),m*=-1),p===u&&(g+=t.width),p!==s&&p!==a||(g+=Math.round(t.width/2)),d===u&&(g-=i.width,f*=-1),d!==s&&d!==a||(g-=Math.round(i.width/2),f*=-1),{top:v+m,left:g+f}};function d(e){return e.ownerDocument||e.document||e}var h=function(e){return d(e).defaultView},f=function(e){return d(e).documentElement},m=0;function v(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function g(e){var t=h(e),n=f(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=v()),i}var y=function(e){if(!e.getBoundingClientRect){var t=g(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},_=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||f(e)},b=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}},O=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function x(e){var t=f(e),n=h(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var C=function(e){return e===(e.ownerDocument||{}).body?x(e):{x:e.scrollLeft,y:e.scrollTop}};var w=function(e,t){var n=h(e),i=n.getComputedStyle(e),o=b(e),r=t||_(e),s=e.ownerDocument,a=r!==s.body&&r!==s.documentElement,c={top:0,left:0};if("fixed"!==i.position&&a){var u=n.getComputedStyle(r);(c=b(r)).top+=parseInt(u.borderTopWidth,10),c.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},S=function(e,t){return e?C(e):function(e){var t=_(e);return t?C(t):{x:0,y:0}}(t)};var j="fit",I="flip",E=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},k=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,u=e.elementAlignPoint,l=0,d=2*e.margin;if(u!==r&&!(u===s||u===a)&&!(r===s||r===a)){var h=r===p||r===c;t<0&&h?t+(l=n+i+d)+n>o&&(l=0):t>=0&&!h&&(t+n>o&&(l+=-(i+n+d)),t+l<0&&(l=0))}return l},P=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=i.top,u=i.left,p=i.height,l=i.width,d=s.height,h=s.width,f=a.horizontal||0,m=a.vertical||0,v=0,g=0,y=r.horizontal===I,_=r.vertical===I;r.vertical===j&&(g+=E(c,p,d)),r.horizontal===j&&(v+=E(u,l,h)),_&&(g+=k({margin:m,offset:c,size:p,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(v+=k({margin:f,offset:u,size:l,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var b=y&&0!==v,O=_&&0!==g;return{flipped:b||O,flip:{horizontal:b,vertical:O},offset:{left:v,top:g}}},M=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},T=function(e,t){for(var n,i,o=O(e),r=t;r&&(n=M(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};var A=n(2),D=n(3),z=n(6),R=n(7),L=n(23),B=n(5),N=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},K=function(){return"undefined"!=typeof window},F=/auto|scroll/,H=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var Z,V,U,q=(Z=function(){if(!Object(A.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t},U=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U||(V=Z.apply(void 0,e),U=!0),V}),G=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},Y=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],X=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.align=function(e){return l(e)},e.prototype.boundingOffset=function(e){return y(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return Y.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return K()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?b(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,o=i.left,r=i.top,s=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var a=b(n);return n.style.left=o,n.style.top=r,n.offsetHeight,n.style.transition=s,a},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?function(e,t,n){void 0===n&&(n=1);var i=t?_(t):null,o=w(e,i),r=o.top,s=o.left,a=o.height,c=o.width,u=S(i,e),p=u.x,l=u.y,d=e.ownerDocument,h=i===d.body||i===d.documentElement?1:n;return{top:r+l*h,left:s+p*h,height:a,width:c}}(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return P(e)},e.prototype.scrollPosition=function(e){return x(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(A.isDocumentAvailable)()||!K())return t;for(var n=e.parentElement;n;)(F.test(H(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?b(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!q())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return g(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(A.isDocumentAvailable)()||!K())return null;var n=T(e,t);if(!n)return null;var i=[e].concat(O(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(A.isDocumentAvailable)()&&K()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),W=new o.InjectionToken("Popup Document Scale"),J=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,r=e.margin,s=e.offset,a=e.positionMode,c=this.scale||1,u="fixed"===a||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,s,c):this.relativeRect(t,n,s,c),p=G(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:u,elementAlign:o,elementRect:p,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=N(this._dom.offset(e),n),s=2*i,a=this._dom.stackingElementScroll(t);1!==i&&a&&(a.x/=s,a.y/=s);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=s,c.top/=s),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(G(r,i),c),a),o)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var o=N(this._dom.position(e,t,i),n);return G(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(W)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[X,Number])],e)}(),Q=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,i=e.element,o=e.anchorAlign,r=e.elementAlign,s=e.collisions,a=e.margin,c=this._dom,u=this.scale||1,p=c.offsetAtPoint(i,n),l=G(p,u),d=G(c.offset(t),u),h=N(d,n),f=e.viewPort||c.windowViewPort(i);f.width=f.width/u,f.height=f.height/u;var m=c.restrictToView({anchorAlign:o,anchorRect:h,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:f}),v=c.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:v}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(W)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[X,Number])],e)}(),$=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(A.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(D.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(z.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[X,o.NgZone])],e)}(),ee=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(A.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var o=i.map((function(e){return Object(D.fromEvent)(e,"scroll").pipe(Object(z.auditTime)(1e3/60))}));t.subscription=D.merge.apply(void 0,o).subscribe((function(o){var r=o.target,s=i.filter((function(e){return e===r})).length>0,a=r===document,c=r===window;(s||a||c)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[X,o.NgZone])],e)}(),te={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},ne=function(){function e(e){this.animationBuilder=e,this.start=new o.EventEmitter,this.end=new o.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=t.type||"slide",r=te[i];if(r){var s=r(this.getDirection(n,t));this.playStates(e,s,t)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var o=n.duration||100,r=this.animationBuilder.build([Object(R.style)(t.start),Object(R.animate)(o+"ms ease-in",Object(R.style)(t.end))]),s=this.player=r.create(e);s.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),s.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[R.AnimationBuilder])],e)}(),ie={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620213546,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},oe={left:-1e4,top:0},re=function(){function e(e,t,n,i,r,s,a,c,u){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=c,this._zone=u,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=oe,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(L.validatePackage)(ie),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=oe,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.reposition(),this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(D.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(A.isDocumentAvailable)()){var t,n,i,o,r,s,a=this.position(),c=a.flip,u=a.offset;(!this.currentOffset||(t=this.currentOffset,n=u,i=t.left,o=t.top,r=n.left,s=n.top,Math.abs(i-r)>=1||Math.abs(o-s)>=1))&&(this.currentOffset=u,Object(A.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:u,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(A.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(A.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",A.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[J,ne,X,Q,$,ee],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,J,X,Q,$,ee,ne,o.Renderer2,o.NgZone])],e)}(),se=new o.InjectionToken("Popup Container"),ae=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,i=t.nodes,o=this.appendPopup(i,e.appendTo),r=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=s)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(re,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var o=i.create(this.injector,t);return this.applicationRef.attachView(o.hostView),o},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof o.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof o.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(se)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),ce=[re],ue=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ce],entryComponents:[ce],exports:[ce],imports:[B.CommonModule,A.ResizeSensorModule],providers:[ae]})],e)}()},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(25).PreventableEvent);t.MenuEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(15),s=n(4),a=n(8),c=/\S/,u={37:"left",39:"right",38:"up",40:"down",36:"home",35:"end",32:"enter",13:"enter",27:"esc",9:"tab"},p=Object.assign({},u,{37:"right",39:"left"});var l=Promise.resolve(null),d=function(){function e(e,t,n,i){this.items=e,this.actions=t,this.localization=n,this.ngZone=i,this.vertical=!1,this.activeIndex="0"}return Object.defineProperty(e.prototype,"focusedItem",{get:function(){return this.items.get(this.focusedIdx)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this.items.get(this.activeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handlers",{get:function(){return this.localization.rtl?p:u},enumerable:!0,configurable:!0}),e.prototype.focus=function(e){e.index!==this.focusedIdx&&(this.activeItem&&this.items.hasParent(e,this.activeItem)||this.setActive(e),this.setFocus(e))},e.prototype.setFocus=function(e){this.focusedIdx=e.index,e.focus()},e.prototype.focusLeave=function(){var e=this.focusedItem;e&&(this.actions.closeToRoot(e),this.actions.execute()),this.focusedIdx=null},e.prototype.updateActive=function(){var e=this;!this.activeItem&&this.items.hasItems&&(this.items.get("0").toggleActive(!0),this.ngZone.runOutsideAngular((function(){l.then((function(){e.activeIndex="0"}))})))},e.prototype.keydown=function(e){var t,n=this.focusedItem||this.activeItem,i=this.handlers[e.keyCode];n&&(i?("tab"!==i&&e.preventDefault(),this[i](n,e)):1===(t=e.key).length&&c.test(t)&&this.search(n,e.key),this.actions.execute())},e.prototype.focusIndex=function(e){if(!e&&this.activeItem)this.setFocus(this.activeItem);else if("first"===e)this.focusFirst();else if("last"===e)this.focusLast();else{var t=this.items.get(e);t&&this.focus(t)}},e.prototype.focusFirst=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[0])},e.prototype.focusLast=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[e.length-1])},e.prototype.search=function(e,t){for(var n=this.items.siblings(e),i=n.indexOf(e),o=n.slice(i+1).concat(n.slice(0,i)),r=0;r<o.length;r++){var s=o[r];if((s.item.text||"").toLowerCase().startsWith(t.toLowerCase())){this.focus(s);break}}},e.prototype.down=function(e){0!==e.level||this.vertical?this.focus(this.items.next(e)):e.hasContent&&this.actions.open(e,this.focusChild(e,0))},e.prototype.up=function(e){0!==e.level||this.vertical?this.focus(this.items.previous(e)):e.hasContent&&this.actions.open(e,this.focusChild(e,e.children.length-1))},e.prototype.left=function(e){if(!this.vertical||0!==e.level||!e.disabled)if(e.level>1||this.vertical&&e.level>0){var t=this.items.parent(e);this.focus(t),this.actions.close(t)}else this.vertical&&0===e.level&&!e.disabled?e.hasContent&&this.actions.open(e,this.focusChild(e,e.children.length-1)):this.focus(this.items.previous(this.activeItem))},e.prototype.right=function(e){this.vertical&&0===e.level&&e.disabled||(e.horizontal&&!e.disabled?e.hasContent?this.actions.open(e,this.focusChild(e,0)):(!this.vertical||e.level>0)&&this.focus(this.items.next(this.activeItem)):this.focus(this.items.next(this.activeItem)))},e.prototype.home=function(e){var t=this.items.siblings(e);this.focus(t[0])},e.prototype.end=function(e){var t=this.items.siblings(e);this.focus(t[t.length-1])},e.prototype.enter=function(e,t){var n=this.actions;e.disabled||(e.hasContent?(n.select(e,t),n.open(e,this.focusChild(e,0))):(n.select(e,t,null,(function(){e.navigate()})),this.focus(this.items.root(e)),n.closeToRoot(e)))},e.prototype.esc=function(e){if(e.level>0){var t=this.items.parent(e);this.actions.close(t),this.focus(t)}},e.prototype.tab=function(e){e.level>0&&this.activeItem.focus()},e.prototype.focusChild=function(e,t){var n=this;return function(){var i=n.items.children(e)[t];n.setFocus(i)}},e.prototype.setActive=function(e){var t=this.focusedItem,n=this.items.root(e);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=n.index,n.toggleActive(!0),t&&(this.actions.closeToRoot(t),t.level>0&&this.actions.open(n))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[s.ItemsService,a.ActionsService,r.LocalizationService,o.NgZone])],e)}();t.NavigationService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(12),s=n(13),a=n(19),c=function(){function e(){}var t;return t=e,Object.defineProperty(e.prototype,"template",{get:function(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentTemplate",{get:function(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){var e=this;if(this.children.length)return this.children.toArray().filter((function(t){return t!==e}))},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"url",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"separator",void 0),i.__decorate([o.ContentChildren(r.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemContentTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemContentTemplate",void 0),i.__decorate([o.ContentChildren(t),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e=t=i.__decorate([o.Component({selector:"kendo-menu-item",template:""})],e)}();t.MenuItemComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemContentTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemContentTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(2);t.defined=function(e){return void 0!==e},t.bodyFactory=function(){if(o.isDocumentAvailable())return new i.ElementRef(document.body)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),s=n(14),a=n(24),c=n(18),u=n(28),p=n(29),l=n(30),d=n(31),h=n(12),f=n(13),m=n(19),v=n(32),g=n(35),y=[a.MenuComponent,c.MenuItemComponent,h.ItemTemplateDirective,f.ItemLinkTemplateDirective,m.ItemContentTemplateDirective,v.HierarchyBindingDirective,g.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],_=y.concat([u.ListComponent,p.ItemComponent]),b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[_],exports:[y],imports:[s.PopupModule,r.CommonModule]})],e)}();t.MenuModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ContextMenuTemplateDirective=r},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return u})),n.d(t,"validatePackage",(function(){return p}));var i,o,r=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];i=r,o=131,function(e){for(;--e;)i.push(i.shift())}(++o);var s=function(e,t){var n=r[e-=0];if(void 0===s.eVebMg){s.JsjtEd=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),o="",r=0,s=0;n=i.charAt(s++);~n&&(t=r%4?64*t+n:n,r++%4)?o+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return o}(e),n=[],i=0,o=t.length;i<o;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var i=s.rqrXoU[e];return void 0===i?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=i,n},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},c=new Map;function u(e){}function p(e){if(c[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return c[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",i=e[s("0x4")]+n,o=JSON[s("0x9")](a[s("0x34")]),r=!o[s("0x26")]&&!o[s("0x38")],u=o[s("0x26")]&&typeof KendoLicensing===s("0x2b"),p=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var i=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return i[s("0x14")](e[s("0x39")])}))}(o,e[s("0x2")]);if(r||u)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:i,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(p){if(s("0x12")!=s("0x12")){}else if(p[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:i,publishDate:l(e[s("0x1c")]),expiryDate:l(p[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:i,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var d=s("0x1b")+e[s("0xe")],h=typeof console[s("0x7")]===s("0x33");if(h)if(s("0xc")!=s("0xc")){}else console[s("0x7")](d);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](d);if(console[s("0x1e")](function(e){var t=s("0x28")+e[s("0x16")]+"\n";if(2===e[s("0x3a")])if(s("0x20")!=s("0x20")){}else t+=s("0x25")+e[s("0x15")][s("0x2c")]()+s("0xb")+e[s("0x1c")][s("0x2c")]()+".\n";else if(0===e[s("0x3a")])if(s("0x13")!==s("0x10"))t+=s("0xd");else{}else if(1===e[s("0x3a")])if(s("0x2e")===s("0x23")){}else t+=s("0x1d");return t+=s("0x31")+e[s("0x1a")]+s("0x22")}(t)),h)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var f=!t;return c[s("0x0")](e[s("0x4")],f),f}function l(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(15),s=n(23),a=n(44),c=n(4),u=n(8),p=n(17),l=n(26),d=n(45),h=n(9),f=n(10),m=n(11),v=n(2),g=function(e){function t(t,n,i,r,c,u,p,l){var d=e.call(this)||this;return d.itemsService=t,d.hover=n,d.actions=i,d.navigation=r,d.localization=c,d.ngZone=u,d.renderer=p,d.contextService=l,d.select=new o.EventEmitter,d.open=new o.EventEmitter,d.close=new o.EventEmitter,s.validatePackage(a.packageMetadata),d.actions.owner=d,l&&(l.items=d.itemsService,d.contextKeyDownSubscription=l.keydown.subscribe(d.contextKeyDown.bind(d))),d}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"ariaOrientation",{get:function(){if(this.vertical)return"vertical"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contextMenuClass",{get:function(){return Boolean(this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return this.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!0,configurable:!0}),t.prototype.toggle=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++){var o=this.itemsService.get(t[i]);o&&!o.disabled&&(e?o.open():o.close())}},t.prototype.focus=function(e){this.navigation.focusIndex(e)},t.prototype.ngOnChanges=function(e){if(this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,e.openOnClick){var t=this.openOnClick=d.normalize(this.openOnClick);this.hover.openOnOver=!t,t&&"click"===t.toggle?this.attachCloseClick():this.unsubscribeClick()}},t.prototype.ngAfterViewChecked=function(){this.navigation.updateActive()},t.prototype.ngOnDestroy=function(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())},t.prototype.attachCloseClick=function(){var e=this;!this.closeClickSubscription&&v.isDocumentAvailable()&&this.ngZone.runOutsideAngular((function(){e.closeClickSubscription=e.renderer.listen("document","click",(function(t){h.inMenu(t.target,e.itemsService)||(e.hover.openOnOver=!1,e.actions.closeAll(),e.actions.execute())}))}))},t.prototype.unsubscribeClick=function(){this.closeClickSubscription&&this.closeClickSubscription()},t.prototype.contextKeyDown=function(e){if(this.itemsService.hasItems){var t,n=e.keyCode,i=this.localization.rtl,o=n===v.Keys.ArrowDown||n===v.Keys.ArrowRight,r=n===v.Keys.ArrowUp||n===v.Keys.ArrowLeft;o&&!i||r&&i?t="first":(o&&i||r&&!i)&&(t="last"),t&&(e.preventDefault(),this.focus(t))}},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"menuItemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"menuItemLinkTemplate",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"select",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.HostBinding("class.k-rtl"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"direction",null),t=n=i.__decorate([o.Component({exportAs:"kendoMenu",providers:[c.ItemsService,u.ActionsService,p.NavigationService,l.HoverService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.menu"},{provide:m.MenuBase,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-menu",template:'\n <ul role="menubar"\n [attr.aria-orientation]="ariaOrientation"\n kendoMenuList [items]="rootItems" [level]="0" class="k-widget k-reset k-header k-menu"\n [vertical]="vertical" [rtl]="rtl" [animate]="animate" [openOnClick]="openOnClick"\n [itemTemplate]="itemTemplate.first?.templateRef || menuItemTemplate"\n [itemLinkTemplate]="itemLinkTemplate.first?.templateRef || menuItemLinkTemplate"\n [class.k-menu-horizontal]="!vertical"\n [class.k-menu-vertical]="vertical"\n [class.k-context-menu]="contextMenuClass">\n </ul>\n '}),i.__param(7,o.Optional()),i.__metadata("design:paramtypes",[c.ItemsService,l.HoverService,u.ActionsService,p.NavigationService,r.LocalizationService,o.NgZone,o.Renderer2,f.ContextMenuService])],t)}(m.MenuBase);t.MenuComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.prevented=!1,Object.assign(this,e)}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=n(8),a=function(){function e(e,t){this.actions=e,this.items=t,this.delay=100,this._openOnOver=!0,this.scheduled=[]}return Object.defineProperty(e.prototype,"openOnOver",{get:function(){return this._openOnOver},set:function(e){this.cancelActions(),this._openOnOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hovered",{get:function(){return this.items.get(this.hoveredIdx)},set:function(e){this.hoveredIdx=e?e.index:null},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.cancelActions()},e.prototype.over=function(e){var t=this;this.cancelActions((function(e){return"openOnOver"===e.name})),this.hovered&&this.hovered===e||(this.actions.closeOthers(e),this.hovered=e,(e.level>0||this.openOnOver)&&!e.disabled&&(this.actions.open(e),this.cancelActions((function(n){return"close"===n.name&&(e===n.item||t.items.hasParent(e,n.item))||"open"===n.name&&!t.items.hasParent(e,n.item)}))),this.scheduleActions())},e.prototype.leave=function(e){var t=this.hovered;t&&(this.actions.closeToRoot(t),this.cancelActions((function(e){return"open"===e.name})),this.scheduleActions()),e&&this._openOnOver&&this.scheduleDisableOpenOnOver(),this.hovered=null},e.prototype.closeCurrent=function(){var e=this.hovered;e&&(this.actions.closeToRoot(e),this.hovered=null)},e.prototype.scheduleActions=function(){var e=this;if(this.actions.hasPending){var t={};t.actions=this.actions.clear(),t.id=setTimeout((function(){e.actions.execute(t.actions),e.removeScheduled(t)}),this.delay),this.scheduled.push(t)}},e.prototype.scheduleDisableOpenOnOver=function(){var e=this,t={actions:[{name:"openOnOver"}]};t.id=setTimeout((function(){e._openOnOver=!1,e.removeScheduled(t)}),Math.max(this.delay,500)),this.scheduled.push(t)},e.prototype.removeScheduled=function(e){for(var t=this.scheduled,n=0;n<t.length;n++)if(t[n]===e)return void t.splice(n,1)},e.prototype.cancelActions=function(e){for(var t=this.scheduled,n=t.length-1;n>=0;n--){var i=t[n],o=i.actions;if(e)for(var r=o.length-1;r>=0;r--)e(o[r])&&o.splice(r,1);e&&0!==o.length||(clearTimeout(i.id),t.splice(n,1))}},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[s.ActionsService,r.ItemsService])],e)}();t.HoverService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=n(8),a=n(17),c=n(26),u=n(27),p=n(9),l=n(2),d=function(){function e(e,t,n,i,o,r,s){this.itemsService=e,this.hover=t,this.actions=n,this.navigation=i,this.renderer=o,this.ngZone=r,this.element=s,this.animate=!0}return e.prototype.hierarchyIndex=function(e){return this.itemsService.itemIndex(this.index,e)},e.prototype.ngOnInit=function(){this.itemsService.addList(this),this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()},e.prototype.initDomEvents=function(){var e=this;l.isDocumentAvailable()&&this.element&&this.ngZone.runOutsideAngular((function(){var t=e.element.nativeElement,n=e.level>0?p.closest(t,(function(e){return p.hasClass(e,"k-popup")})):t,i=e.renderer.listen(t,"mouseover",(function(n){if(n.target===t&&0===e.level)e.onLeave();else{var i=e.nodeItem(n.target)||e.itemsService.get(e.index);!i||e.openOnClick&&"click"===e.openOnClick.toggle&&0===i.level&&!i.hasContent||e.hover.over(i)}})),o=e.renderer.listen(n,"mouseleave",(function(t){e.leavesMenu(t)&&e.onLeave()})),r=e.renderer.listen(t,"keydown",(function(t){p.hasClass(t.target,"k-menu-item")&&e.navigation.keydown(t)})),s=e.renderer.listen(t,"focusout",(function(t){e.leavesMenu(t)&&e.navigation.focusLeave()})),a=e.renderer.listen(document,"touchstart",(function(t){if(p.inMenu(t.target,e.itemsService)){var n=e.nodeItem(t.target);e.navigation.focus(n),n.opened||e.hover.over(n)}else if(e.navigation.focusedIdx){var i=e.itemsService.get(e.navigation.activeIndex);e.onLeave(),i.blur()}})),c=e.renderer.listen(t,"click",e.clickHandler.bind(e));e.domSubscriptions=function(){i(),o(),r(),s(),c(),a()}}))},e.prototype.leavesMenu=function(e){return!e.relatedTarget||!p.inMenu(e.relatedTarget,this.itemsService)},e.prototype.onLeave=function(){var e=this.openOnClick;e&&"click"===e.toggle||this.hover.leave(e&&"leave"===e.toggle)},e.prototype.nodeItem=function(e){var t=p.closestItem(e,this.element.nativeElement);if(t){var n=p.nodeIndex(t);return this.itemsService.get(n)}},e.prototype.clickHandler=function(e){if(!p.isFocusable(e.target)||p.hasClass(e.target,"k-menu-item")){var t=this.nodeItem(e.target);if(t&&!t.isContent&&!t.navigating)if(t.disabled)e.preventDefault();else{if(this.actions.select(t,e,(function(){e.preventDefault()})),this.navigation.focus(t),t.level>0&&!t.hasContent&&this.actions.closeToRoot(t),this.openOnClick){var n=this.hover;t.opened?0===t.level&&(n.openOnOver=!1,this.actions.close(t)):t.hasContent?(n.openOnOver=!0,this.actions.closeOthers(t),this.actions.open(t)):(n.openOnOver=!1,0===t.level&&"click"===this.openOnClick.toggle&&this.hover.closeCurrent())}this.actions.execute()}}},i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),e=i.__decorate([o.Component({selector:"[kendoMenuList]",template:'\n <ng-container *ngFor="let item of items; let idx = index">\n <li *ngIf="!item.separator" kendoMenuItem\n [item]="item" [level]="level" [vertical]="vertical" [animate]="animate" [rtl]="rtl"\n [itemTemplate]="itemTemplate" [itemLinkTemplate]="itemLinkTemplate" [openOnClick]="openOnClick"\n [index]="hierarchyIndex(idx)" [siblingIndex]="idx" [attr.'+u.NODE_INDEX+']="hierarchyIndex(idx)"\n [ngClass]="item.cssClass" [ngStyle]="item.cssStyle"\n role="menuitem"\n class="k-item k-menu-item"\n [class.k-first]="idx === 0" [class.k-last]="idx === items.length - 1"\n [class.k-state-disabled]="item.disabled"></li>\n <li *ngIf="item.separator" class="k-separator k-item"\n role="separator" [ngClass]="item.cssClass" [ngStyle]="item.cssStyle">\n &nbsp;\n </li>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,c.HoverService,s.ActionsService,a.NavigationService,o.Renderer2,o.NgZone,o.ElementRef])],e)}();t.ListComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=n(17),a=n(46),c=n(14),u=n(20),p=function(){function e(e,t,n,i,o,r){this.itemsService=e,this.navigation=t,this.changeDetector=n,this.renderer=i,this.popupService=o,this.element=r,this.animate=!0,this.openOnClick=!1,this.opened=!1,this.navigating=!1,this.destroyed=!1}return Object.defineProperty(e.prototype,"index",{get:function(){return this._index},set:function(e){this._index&&this._index!==e?(this.itemsService.remove(this),this._index=e,this.itemsService.add(this)):this._index=e,this.childId=this.itemsService.childId(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPopup",{get:function(){return!!this.hasContent||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this.hasContent?this.opened:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.item.text?this.item.text:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeId",{get:function(){return this.index===this.navigation.activeIndex?"0":"-1"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){var e=this.rtl?a.POPUP_SETTINGS_RTL:a.POPUP_SETTINGS;return this.horizontal?e.horizontal:e.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return this.vertical||this.level>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLink",{get:function(){return Boolean(this.item.url)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){return this.item.linkTemplate||this.itemLinkTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasContent",{get:function(){var e=this.item.items;return e&&e.length||this.item.contentTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isContent",{get:function(){return Boolean(this.item.content)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return"k-i-"+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){var e=this.item;return e.contentTemplate?(this.contentItems||(this.contentItems=[{content:e.contentTemplate,owner:e,ownerIndex:this.index}]),this.contentItems):e.items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return this.item.template||this.itemTemplate},enumerable:!0,configurable:!0}),e.prototype.hasContentTemplates=function(){var e=this.item;return this.itemTemplate||e.contentTemplate||this.itemLinkTemplate||e.items&&e.items.find((function(e){return e.template||e.linkTemplate}))},e.prototype.ngOnInit=function(){this.itemsService.add(this)},e.prototype.ngOnDestroy=function(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.focus=function(){this.element.nativeElement.focus()},e.prototype.blur=function(){this.element.nativeElement.blur()},e.prototype.toggleActive=function(e){e?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")},e.prototype.open=function(){if(!this.destroyed&&this.hasContent&&!this.opened){var e=this.popupSettings,t=!!this.animate&&Object.assign({},this.animate,{direction:e.animate});this.opened=!0,this.popupRef=this.popupService.open({popupAlign:e.popup,anchorAlign:e.anchor,collision:e.collision,anchor:this.element,positionMode:"absolute",content:this.popupTemplate,popupClass:{"k-rtl":this.rtl,"k-menu-popup":!0},animate:t}),this.setAttribute("aria-expanded","true"),this.setAttribute("aria-owns",this.childId),this.changeDetector.detectChanges()}},e.prototype.close=function(){!this.destroyed&&this.opened&&(this.opened=!1,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.changeDetector.detectChanges(),this.setAttribute("aria-expanded","false"),this.renderer.removeAttribute(this.element.nativeElement,"aria-owns"))},e.prototype.navigate=function(){var e;this.linkTemplate?e=this.element.nativeElement.querySelector("a.k-menu-link"):this.hasLink&&(e=this.link.nativeElement),e&&(this.navigating=!0,e.click(),this.navigating=!1)},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"index",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"siblingIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ViewChild("link",{static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabled",null),i.__decorate([o.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasPopup",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"expanded",null),i.__decorate([o.HostBinding("attr.aria-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"label",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"activeId",null),e=i.__decorate([o.Component({providers:[c.PopupService,{provide:c.POPUP_CONTAINER,useFactory:u.bodyFactory}],selector:"[kendoMenuItem]",template:'\n <span *ngIf="!hasLink && !item.content && !linkTemplate" class="k-link k-menu-link" #link\n [class.k-state-active]="opened" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </span>\n <a *ngIf="item.url && !linkTemplate" class="k-link k-menu-link" #link [attr.href]="item.url"\n [class.k-state-active]="opened" tabindex="-1" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </a>\n <ng-template *ngIf="linkTemplate && !item.content" [ngTemplateOutlet]="linkTemplate"\n [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n\n <div class="k-content" *ngIf="item.content" role="presentation">\n <ng-template [ngTemplateOutlet]="item.content" [ngTemplateOutletContext]="{ item: item.owner, index: item.ownerIndex }">\n </ng-template>\n </div>\n\n <ng-template #popupTemplate>\n <ul kendoMenuList\n [attr.id]="childId"\n [animate]="animate"\n [rtl]="rtl"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [items]="children"\n [level]="level + 1"\n [index]="index"\n [itemTemplate]="itemTemplate"\n [itemLinkTemplate]="itemLinkTemplate"\n role="menu"\n class="k-group k-menu-group k-reset">\n </ul>\n </ng-template>\n\n <ng-template #itemcontent>\n <span *ngIf="item.icon" class="k-icon" [ngClass]="iconClass" role="presentation"></span>\n <ng-container *ngIf="!template">\n {{ item.text }}\n </ng-container>\n <ng-template *ngIf="template" [ngTemplateOutlet]="template" [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n <span class="k-icon k-menu-expand-arrow" *ngIf="hasContent"\n role="presentation"\n [class.k-i-arrow-60-down]="!horizontal"\n [class.k-i-arrow-60-right]="horizontal && !rtl"\n [class.k-i-arrow-60-left]="horizontal && rtl">\n </span>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,s.NavigationService,o.ChangeDetectorRef,o.Renderer2,c.PopupService,o.ElementRef])],e)}();t.ItemComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation",this.tabindex="-1"}return Object.defineProperty(e.prototype,"activeClass",{get:function(){return this.item.opened},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(o.isDevMode()&&!this.index)throw new Error("The kendoMenuItemLink directive requires the item index to be set.");this.item=this.itemsService.get(this.index)||{}},i.__decorate([o.Input("kendoMenuItemLink"),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-link"),o.HostBinding("class.k-menu-link"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String)],e.prototype,"tabindex",void 0),i.__decorate([o.HostBinding("class.k-state-active"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"activeClass",null),e=i.__decorate([o.Directive({selector:"[kendoMenuItemLink]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.LinkDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation"}return Object.defineProperty(e.prototype,"arrowDown",{get:function(){return!this.item.horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowRight",{get:function(){return this.item.horizontal&&!this.item.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowLeft",{get:function(){return this.item.horizontal&&this.item.rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(o.isDevMode()&&!this.index)throw new Error("The kendoMenuExpandArrow directive requires the item index to be set.");this.item=this.itemsService.get(this.index)||{}},i.__decorate([o.Input("kendoMenuExpandArrow"),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-icon"),o.HostBinding("class.k-menu-expand-arrow"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("class.k-i-arrow-60-down"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowDown",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-right"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowRight",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-left"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowLeft",null),e=i.__decorate([o.Directive({selector:"[kendoMenuExpandArrow]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.ExpandArrowDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(11),s=n(33),a=n(34),c=function(e,t){return Array.isArray(e)?e[t]||a.last(e):e},u=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.mapItems=function(e,t){var n=this;return void 0===t&&(t=0),e.map((function(e){var i=n.createItem(e,t),o=n.getChildren(e,t);return o&&(i.items=n.mapItems(o,t+1)),i}))},t.prototype.createItem=function(e,t){for(var n={data:e},i=this.fields,o=0;o<i.length;o++){var r=i[o],s=r.target,u=r.source;n[s]=a.getter(c(u,t))(e)}return n},t.prototype.getChildren=function(e,t){if(this.childrenField)return e[c(this.childrenField,t)]},i.__decorate([o.Input("kendoMenuHierarchyBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"childrenField",void 0),t=i.__decorate([o.Directive({exportAs:"kendoMenuHierarchyBinding",selector:"[kendoMenuHierarchyBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],t)}(s.BindingDirectiveBase);t.HierarchyBindingDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],o=function(){function e(e){this.menu=e}return e.prototype.ngOnChanges=function(){this.rebind()},e.prototype.rebind=function(){for(var e=this.fields=[],t=0;t<i.length;t++){var n=i[t],o=this[n];o&&e.push({target:n.replace("Field",""),source:o})}this.menu.items=this.data?this.mapItems(this.data):[]},e}();t.BindingDirectiveBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,o={undefined:function(e){return e}};t.getter=function(e){if(o[e])return o[e];var t=[];return e.replace(i,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),o[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},o[e]},t.last=function(e){return e[e.length-1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(11),s=n(33),a=n(34),c=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.mapItems=function(e){var t=this;if(!this.idField||!this.parentIdField)return e.map((function(e){return t.createItem(e)}));for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],s=this.createItem(r),c=a.getter(this.idField)(r),u=a.getter(this.parentIdField)(r);if(null==u)n.push(s);else{var p=i[u]=i[u]||{};p.items=p.items||[],p.items.push(s)}i[c]&&(s.items=i[c].items),i[c]=s}return n},t.prototype.createItem=function(e){for(var t={data:e},n=this.fields,i=0;i<n.length;i++){var o=n[i],r=o.source;t[o.target]=a.getter(r)(e)}return t},i.__decorate([o.Input("kendoMenuFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"idField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"parentIdField",void 0),t=i.__decorate([o.Directive({exportAs:"kendoMenuFlatBinding",selector:"[kendoMenuFlatBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],t)}(s.BindingDirectiveBase);t.FlatBindingDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.ContextMenuEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(25).PreventableEvent);t.ContextMenuPopupEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(15),s=n(14),a=n(2),c=n(11),u=n(37),p=n(10),l=n(49),d=n(22),h=n(9),f=n(20),m=n(4),v=n(39),g=n(41),y=n(20),_={horizontal:"left",vertical:"bottom"},b={horizontal:"left",vertical:"top"},O={horizontal:"fit",vertical:"flip"},x=function(e){return e.preventDefault()},C=function(e){function t(t,n,i,r){var s=e.call(this)||this;return s.popupService=t,s.service=n,s.ngZone=i,s.renderer=r,s.showOn="contextmenu",s.alignToAnchor=!1,s.vertical=!0,s.popupOpen=new o.EventEmitter,s.popupClose=new o.EventEmitter,s.select=new o.EventEmitter,s.open=new o.EventEmitter,s.close=new o.EventEmitter,s.service.owner=s,s.popupKeyDownHandler=s.popupKeyDownHandler.bind(s),s}var n;return i.__extends(t,e),n=t,t.prototype.hide=function(){this.removePopup()},t.prototype.show=function(e){if(e){var t=e;this.removePopup(),f.defined(t.left)&&f.defined(t.top)?this.createPopup({offset:t}):(this.currentTarget=t.nativeElement||t,this.createPopup({anchor:this.currentTarget}))}},t.prototype.ngOnChanges=function(e){(e.target||e.showOn)&&this.bindShowHandler()},t.prototype.ngOnInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen("document","mousedown",(function(t){e.popupRef&&!h.closest(t.target,(function(t){return t===e.popupRef.popupElement}))&&e.service.leaveMenu(t)&&e.closePopup(t)})),n=e.renderer.listen("window","blur",(function(t){e.popupRef&&e.closePopup(t)}));e.closeSubscription=function(){t(),n()}}))},t.prototype.ngOnDestroy=function(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()},t.prototype.emitMenuEvent=function(e,t){t.target=this.currentTarget,t.sender=this,this[e].emit(t),"select"!==e||t.hasContent||this.closeAndFocus(t.originalEvent)},t.prototype.bindShowHandler=function(){var e=this;this.unbindShowHandler(),this.ngZone.runOutsideAngular((function(){var t=e.targetElement();if(t){var n=e.showOn||"contextmenu";e.showSubscription=e.renderer.listen(t,e.showOn||"contextmenu",(function(n){e.showContextMenu(n,t)})),"contextmenu"===n&&(e.keydownSubscription=e.renderer.listen(t,"keydown",(function(n){n.shiftKey&&n.keyCode===a.Keys.F10&&e.showContextMenu(n,t)})))}}))},t.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter(),o=t;if(i){if((o=h.findInContainer(e.target,i,t))&&o!==e.target&&h.isFocusable(e.target))return;o&&this.directiveTarget&&(o=this.target.targetService.find(o))}o?this.ngZone.run((function(){n.closePopup(e)||(n.currentTarget=o,n.openPopup(e))})):this.closePopup(e)},t.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},t.prototype.targetElement=function(){if(a.isDocumentAvailable()){this.directiveTarget=!1;var e=this.target;return"string"==typeof e?e=document.querySelector(e):e&&e.nativeElement?e=e.nativeElement:e instanceof v.ContextMenuTargetContainerDirective&&(e=e.element,this.directiveTarget=!0),e}},t.prototype.targetFilter=function(){return this.directiveTarget?"."+g.TARGET_CLASS:this.filter},t.prototype.closePopup=function(e){var t=this;if(this.popupRef)return this.popupAction("popupClose",e,(function(){t.removePopup()}))},t.prototype.removePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupSubscriptions&&(this.popupSubscriptions(),this.popupSubscriptions=null)},t.prototype.openPopup=function(e){var t=this;this.popupAction("popupOpen",e,(function(){var n,i;e.preventDefault(),t.alignToAnchor||"keydown"===e.type?n=t.currentTargetElement:i={left:e.pageX,top:e.pageY},t.createPopup({anchor:n,offset:i})}))},t.prototype.createPopup=function(e){var t=this;this.popupRef=this.popupService.open(Object.assign({animate:!f.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||O,popupAlign:this.popupAlign||b,anchorAlign:this.anchorAlign||_,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate,popupClass:"k-menu-popup"},e));var n=this.popupRef.popupElement;this.renderer.addClass(n,"k-context-menu-popup"),this.renderer.setAttribute(n,"tabindex","-1"),this.renderer.setStyle(n,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(n,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular((function(){var e=t.renderer.listen(n,"keydown",t.popupKeyDownHandler),i=t.renderer.listen(n,"contextmenu",x);t.popupSubscriptions=function(){e(),i()}})),n.focus()},t.prototype.closeAndFocus=function(e){var t=this.currentTargetElement;!this.closePopup(e)&&this.activeTarget&&t.focus()},t.prototype.popupKeyDownHandler=function(e){var t=this.popupRef.popupElement;e.keyCode!==a.Keys.Escape||!h.hasClass(e.target,"k-menu-item")&&e.target!==t?e.target===t&&this.service.keydown.emit(e):this.closeAndFocus(e)},t.prototype.popupAction=function(e,t,n){var i=this,o=this[e],r=!1;return a.hasObservers(o)?this.ngZone.run((function(){var e=new u.ContextMenuPopupEvent({originalEvent:t,sender:i,target:i.currentTarget});o.emit(e),e.isDefaultPrevented()||n(),r=e.isDefaultPrevented()})):n(),r},Object.defineProperty(t.prototype,"currentTargetElement",{get:function(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"target",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"alignToAnchor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"popupAnimate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"popupAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"anchorAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.ViewContainerRef)],t.prototype,"appendTo",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"ariaLabel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"popupOpen",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"popupClose",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"select",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.ContentChild(d.ContextMenuTemplateDirective,{static:!1}),i.__metadata("design:type",d.ContextMenuTemplateDirective)],t.prototype,"contentTemplate",void 0),i.__decorate([o.ViewChild("default",{static:!1}),i.__metadata("design:type",o.TemplateRef)],t.prototype,"defaultContentTemplate",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoContextMenu",providers:[p.ContextMenuService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:m.ItemsService,useClass:l.ContextMenuItemsService},{provide:c.MenuBase,useExisting:o.forwardRef((function(){return n}))},s.PopupService,{provide:s.POPUP_CONTAINER,useFactory:y.bodyFactory}],selector:"kendo-contextmenu",template:'\n <ng-template #default>\n <kendo-menu [items]="rootItems"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [hoverDelay]="hoverDelay"\n [animate]="animate"\n [menuItemTemplate]="itemTemplate.first?.templateRef"\n [menuItemLinkTemplate]="itemLinkTemplate.first?.templateRef"\n ></kendo-menu>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[s.PopupService,p.ContextMenuService,o.NgZone,o.Renderer2])],t)}(c.MenuBase);t.ContextMenuComponent=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(40),s=function(){function e(e,t){this.targetService=t,e&&(this.element=e.nativeElement)}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTargetContainer]",exportAs:"kendoContextMenuTargetContainer",providers:[r.ContextMenuTargetService]}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetContainerDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(){this.targets=[]}return e.prototype.add=function(e){this.targets.push(e)},e.prototype.remove=function(e){var t=this.targets.indexOf(e);this.targets.splice(t,1)},e.prototype.find=function(e){return this.targets.find((function(t){return t.element===e}))},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuTargetService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(40);t.TARGET_CLASS="k-contextmenu-target";var s=function(){function e(e,t){this.targetService=t,this.hostClass=!0,e&&(this.element=e.nativeElement),t.add(this)}return e.prototype.ngOnDestroy=function(){this.targetService.remove(this)},i.__decorate([o.Input("kendoContextMenuTarget"),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.HostBinding("class."+t.TARGET_CLASS),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Directive({selector:"[kendoContextMenuTarget]",exportAs:"kendoContextMenuTarget"}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),s=n(14),a=n(21),c=n(38),u=n(22),p=n(41),l=n(39),d=[c.ContextMenuComponent,u.ContextMenuTemplateDirective,p.ContextMenuTargetDirective,l.ContextMenuTargetContainerDirective],h=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[d],exports:[d,a.MenuModule],imports:[s.PopupModule,r.CommonModule,a.MenuModule]})],e)}();t.ContextMenuModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24);t.MenuComponent=i.MenuComponent;var o=n(28);t.ListComponent=o.ListComponent;var r=n(29);t.ItemComponent=r.ItemComponent;var s=n(30);t.LinkDirective=s.LinkDirective;var a=n(31);t.ExpandArrowDirective=a.ExpandArrowDirective;var c=n(18);t.MenuItemComponent=c.MenuItemComponent;var u=n(16);t.MenuEvent=u.MenuEvent;var p=n(47);t.MenuSelectEvent=p.MenuSelectEvent;var l=n(19);t.ItemContentTemplateDirective=l.ItemContentTemplateDirective;var d=n(12);t.ItemTemplateDirective=d.ItemTemplateDirective;var h=n(13);t.ItemLinkTemplateDirective=h.ItemLinkTemplateDirective;var f=n(32);t.HierarchyBindingDirective=f.HierarchyBindingDirective;var m=n(35);t.FlatBindingDirective=m.FlatBindingDirective;var v=n(21);t.MenuModule=v.MenuModule;var g=n(36);t.ContextMenuEvent=g.ContextMenuEvent;var y=n(48);t.ContextMenuSelectEvent=y.ContextMenuSelectEvent;var _=n(37);t.ContextMenuPopupEvent=_.ContextMenuPopupEvent;var b=n(22);t.ContextMenuTemplateDirective=b.ContextMenuTemplateDirective;var O=n(38);t.ContextMenuComponent=O.ContextMenuComponent;var x=n(42);t.ContextMenuModule=x.ContextMenuModule;var C=n(10);t.ContextMenuService=C.ContextMenuService;var w=n(50);t.MenusModule=w.MenusModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-menu",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635426983,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){return e&&Object.assign({toggle:"select"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={vertical:"top",horizontal:"left"},o={vertical:"top",horizontal:"right"},r={vertical:"flip",horizontal:"fit"},s={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:o,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:o,collision:s,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:i,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:i,collision:s,animate:"right"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(16).MenuEvent);t.MenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(36).ContextMenuEvent);t.ContextMenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(10),s=function(){function e(e){this.contextService=e}return e.prototype.get=function(e){if(this.contextService.items)return this.contextService.items.get(e)},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.ContextMenuService])],e)}();t.ContextMenuItemsService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(21),s=n(42),a=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.MenuModule,s.ContextMenuModule]})],e)}();t.MenusModule=a}])}));
20
+ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function a(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,i){t(n,i,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))}function l(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function d(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,u):p(r[0][2],n)}catch(e){p(r[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function p(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function j(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return V})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return C})),n.d(t,"DraggableModule",(function(){return w})),n.d(t,"closestInScope",(function(){return S})),n.d(t,"closest",(function(){return j})),n.d(t,"contains",(function(){return I})),n.d(t,"findElement",(function(){return E})),n.d(t,"findFocusableChild",(function(){return A})),n.d(t,"findFocusable",(function(){return D})),n.d(t,"hasClasses",(function(){return R})),n.d(t,"isFocusableWithTabKey",(function(){return T})),n.d(t,"isFocusable",(function(){return P})),n.d(t,"isVisible",(function(){return M})),n.d(t,"matchesClasses",(function(){return L})),n.d(t,"matchesNodeName",(function(){return N})),n.d(t,"rtlScrollPosition",(function(){return K})),n.d(t,"EventsOutsideAngularDirective",(function(){return H})),n.d(t,"EventsModule",(function(){return Z})),n.d(t,"ResizeSensorComponent",(function(){return J})),n.d(t,"ResizeBatchService",(function(){return W})),n.d(t,"ResizeCompatService",(function(){return G})),n.d(t,"ResizeObserverService",(function(){return X})),n.d(t,"ResizeSensorModule",(function(){return $})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return y})),n.d(t,"isChanged",(function(){return _})),n.d(t,"anyChanged",(function(){return b})),n.d(t,"hasObservers",(function(){return O})),n.d(t,"guid",(function(){return x})),n.d(t,"Keys",(function(){return F}));var i=n(1),o=n(0),r=function(e,t){return function(n){return t(e(n))}},s=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},c=function(){},u=function(e){return e.preventDefault()},p=/touch/;function l(e){return e.type.match(p)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var d=function(e){var t=this,n=e.press;void 0===n&&(n=c);var i=e.drag;void 0===i&&(i=c);var o=e.release;void 0===o&&(o=c);var p=e.mouseOnly;void 0===p&&(p=!1),this._pressHandler=r(l,n),this._dragHandler=r(l,i),this._releaseHandler=r(l,o),this._ignoreMouse=!1,this._mouseOnly=p,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",u),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",u),t._releaseHandler(e))}},h={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",u),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(e){var t=e.press;void 0===t&&(t=c);var n=e.drag;void 0===n&&(n=c);var i=e.release;void 0===i&&(i=c);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=r(l,t),this._dragHandler=r(l,n),this._releaseHandler=r(l,i),this._mouseOnly=o},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,h),d.default=d;var f=d,m=n(5),v=n(6),g=n(3),y=function(){return"undefined"!=typeof document},_=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},b=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return _(e,t,n)}))},O=function(e){return e&&e.observers.length>0},x=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},C=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){_("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;y()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),w=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[C],exports:[C],imports:[m.CommonModule]})],e)}(),S=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},j=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},I=function(e,t,n){if(void 0===n&&(n=!1),!j(t,(function(t){return t===e})))return!1;var i=j(t,(function(e){return e===t}));return i&&(n||i!==e)},E=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=E(e,t);if(i)return i}e=e.nextSibling}}},k=/^(?:a|input|select|option|textarea|button|object)$/i,P=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&k.test(t)||n},M=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,i=0!==t.x&&0!==t.y;return(n||i)&&"hidden"!==window.getComputedStyle(e).visibility},T=function(e,t){if(void 0===t&&(t=!0),!P(e))return!1;var n=e.getAttribute("tabIndex");return(!t||M(e))&&"-1"!==n},A=function(e,t){return void 0===t&&(t=!0),E(e,(function(e){return T(e,t)}),!1)},D=function(e,t){return void 0===t&&(t=!0),E(e,(function(e){return T(e,t)}))},z=function(e){return String(e).trim().split(" ")},R=function(e,t){var n=z(t);return Boolean(z(e.className).find((function(e){return n.indexOf(e)>=0})))},L=function(e){return function(t){return R(t,e)}},B={},N=function(e){return B[e]||(B[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),B[e]};function K(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var F,H=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(i.__decorate)([Object(o.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2])],e)}(),Z=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[H],exports:[H]})],e)}(),V=function(){function e(e){this.resizeBatchService=e,this.resize=new o.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){y()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),U=function(e){var t=document.createElement("div");return t.style.cssText=e,t},q="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",G=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=q,e.setAttribute("dir","ltr"),this.expand=U(q),this.expandChild=U("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=U(q);var t=U("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(g.merge)(Object(g.fromEvent)(e.shrink,"scroll"),Object(g.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(V),Y="undefined"!=typeof ResizeObserver,X=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.supported=function(){return Y},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(V),W=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(g.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[o.NgZone])],e)}(),J=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=X.supported()?X:G;this.resizeService=new r(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(v.auditTime)(s)).subscribe((function(){i.resizeService.acceptedSize||i.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"resize",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[W,o.ElementRef,o.NgZone])],e)}(),Q=[J],$=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Q],exports:[Q],providers:[W]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(F||(F={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=/_?\d+$/,s=0,a=function(e,t){return e.siblingIndex-t.siblingIndex},c=function(e,t,n){for(var i=t[e+n];!i;)e<0?e=t.length-1:e>=t.length?e=0:e+=n,i=t[e];return i},u=function(){function e(){this.items={},this.lists=[],this.idPrefix="k-menu"+s++}return Object.defineProperty(e.prototype,"hasItems",{get:function(){return Object.keys(this.items).length>0},enumerable:!0,configurable:!0}),e.prototype.childId=function(e){return this.idPrefix+"-child"+e},e.prototype.itemIndex=function(e,t){return(e?e+"_":"")+t},e.prototype.get=function(e){return this.items[e]},e.prototype.add=function(e){this.items[e.index]=e},e.prototype.remove=function(e){this.items[e.index]===e&&delete this.items[e.index]},e.prototype.addList=function(e){this.lists.push(e)},e.prototype.removeList=function(e){var t=this.lists.indexOf(e);t>=0&&this.lists.splice(t,1)},e.prototype.containsList=function(e){return Boolean(this.lists.find((function(t){return t.element.nativeElement===e})))},e.prototype.siblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter((function(e){return t.parentIndex(e)===n}))},e.prototype.otherSiblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter((function(i){return t.parentIndex(i)===n&&i!==e.index}))},e.prototype.children=function(e){var t=this;return this.filter((function(n){return t.parentIndex(n)===e.index}))},e.prototype.parent=function(e){return this.items[this.parentIndex(e.index)]},e.prototype.root=function(e){return this.items[this.indices(e.index)[0]]},e.prototype.indices=function(e){return e.split("_")},e.prototype.filter=function(e){var t=[],n=this.items;for(var i in n)e(i,n[i])&&t.push(n[i]);return t.sort(a)},e.prototype.previous=function(e){var t=this.siblings(e),n=t.indexOf(e);return c(n,t,-1)},e.prototype.next=function(e){var t=this.siblings(e),n=t.indexOf(e);return c(n,t,1)},e.prototype.hasParent=function(e,t){return e.index.startsWith(t.index)},e.prototype.areSiblings=function(e,t){return e!==t&&this.parent(e)===this.parent(t)},e.prototype.forEach=function(e){var t=this.items;for(var n in t)t.hasOwnProperty(n)&&e(t[n])},e.prototype.parentIndex=function(e){return e.replace(r,"")},e=i.__decorate([o.Injectable()],e)}();t.ItemsService=u},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=n(16),a=n(2),c=function(e,t){return!("open"===t&&e.opened||"close"===t&&!e.opened)},u=function(){function e(e,t){this.ngZone=e,this.items=t,this.actions=[]}return e.prototype.open=function(e,t){e.disabled||(e.hasContent&&!e.opened?this.actions.push({name:"open",requiresZone:e.hasContentTemplates(),item:e,finished:t}):t&&t())},e.prototype.close=function(e){this.closeChildren(e),this.closeItem(e)},e.prototype.closeItem=function(e){e.opened&&this.actions.push({name:"close",item:e})},e.prototype.closeToRoot=function(e){this.closeChildren(e);var t=e;do{this.closeItem(t),t=this.items.parent(t)}while(t)},e.prototype.closeOthers=function(e){this.closeChildren(e);for(var t=e;t;){var n=this.items.otherSiblings(t);this.closeItems(n),t=this.items.parent(t)}},e.prototype.closeAll=function(){var e=this;this.items.forEach((function(t){t.opened&&0===t.level&&e.close(t)}))},e.prototype.select=function(e,t,n,i){this.actions.push({name:"select",item:e,prevented:n,finished:i,domEvent:t})},e.prototype.emit=function(e,t,n){var i=this.owner,o=new s.MenuEvent({sender:i,item:t.item,index:t.index,originalEvent:n,hasContent:t.hasContent});return i[e].emit(o),i.contextService&&i.contextService.emit(e,o),o.isDefaultPrevented()},Object.defineProperty(e.prototype,"hasPending",{get:function(){return this.actions.length>0},enumerable:!0,configurable:!0}),e.prototype.execute=function(e){var t=this;if(this.hasPending||e){var n=e||this.clear();!o.NgZone.isInAngularZone()&&this.requiresZone(n)?this.ngZone.run((function(){t.executeActions(n)})):this.executeActions(n)}},e.prototype.clear=function(){var e=this.actions;return this.actions=[],e},e.prototype.executeActions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.item,o=n.name,r=n.prevented,s=n.finished,a=n.domEvent;c(i,o)&&(this.emit(o,i,a)?r&&r():(i[o]&&i[o](),s&&s()))}},e.prototype.requiresZone=function(e){for(var t=e||this.actions,n=this.owner,i=n.contextService,o=0;o<t.length;o++){var r=t[o],s=r.name;if(r.requiresZone||s&&(a.hasObservers(n[s])||i&&i.hasObservers(s)))return!0}return!1},e.prototype.closeChildren=function(e){if(e.opened){var t=this.items.children(e);this.closeItems(t)}},e.prototype.closeItems=function(e){for(var t=0;t<e.length;t++)this.close(e[t])},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone,r.ItemsService])],e)}();t.ActionsService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(27),o=/^(?:a|input|select|option|textarea|button|object)$/i;t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,r=null!==n&&!i;return o.test(t)&&(r=!e.disabled&&!i),r}return!1};var r=function(e){return String(e).trim().split(" ")};t.hasClass=function(e,t){return r(e.className).indexOf(t)>=0},t.matchesClasses=function(e){var t=r(e);return function(e){var n=r(e.className);return Boolean(t.find((function(e){return n.indexOf(e)>=0})))}},t.nodeIndex=function(e){return e.getAttribute(i.NODE_INDEX)},t.closestItem=function(e,n){return t.closestInScope(e,t.nodeIndex,n)},t.closestList=function(e){var n=t.closest(e,t.matchesClasses("k-menu-popup k-menu k-menu-group"));return n&&t.hasClass(n,"k-menu-popup")&&(n=n.querySelector(".k-menu-group")),n},t.inMenu=function(e,n){if(e===n.lists[0].element.nativeElement)return!1;var i=t.closestList(e);return i&&n.containsList(i)},t.findInContainer=function(e,n,i){var o=i.getAttribute("id");o||i.setAttribute("id","kendo-matches-container");var r="#"+(o||"kendo-matches-container")+" "+n,s=t.closestInScope(e,(function(e){return function(e,t){return(e.matches||e.msMatchesSelector).call(e,t)}(e,r)}),i);return o||i.removeAttribute("id"),s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),s=n(9),a=function(){function e(){this.keydown=new o.EventEmitter}return e.prototype.emit=function(e,t){this.owner.emitMenuEvent(e,t)},e.prototype.hasObservers=function(e){return this.owner&&r.hasObservers(this.owner[e])},e.prototype.leaveMenu=function(e){return!this.items||!s.inMenu(e.target,this.items)},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(18),s=n(12),a=n(13),c=function(){function e(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0}return Object.defineProperty(e.prototype,"rootItems",{get:function(){return this.items||(this.children?this.children.toArray():[])},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"hoverDelay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.ContentChildren(s.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(r.MenuItemComponent),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e}();t.MenuBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemLinkTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemLinkTemplateDirective=r},function(e,t,n){"use strict";n.r(t),n.d(t,"AlignService",(function(){return J})),n.d(t,"AnimationService",(function(){return ne})),n.d(t,"DOMService",(function(){return X})),n.d(t,"PositionService",(function(){return Q})),n.d(t,"ResizeService",(function(){return $})),n.d(t,"ScrollableService",(function(){return ee})),n.d(t,"PopupService",(function(){return ae})),n.d(t,"POPUP_CONTAINER",(function(){return se})),n.d(t,"PopupComponent",(function(){return re})),n.d(t,"PopupModule",(function(){return ue})),n.d(t,"SCALE",(function(){return W}));var i=n(1),o=n(0),r="bottom",s="center",a="middle",c="left",u="right",p="top",l=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,c=e.margin;void 0===c&&(c={});var p=n.horizontal,l=n.vertical,d=o.horizontal,h=o.vertical,f=c.horizontal||0,m=c.vertical||0,v=t.top,g=t.left;return l===r&&(v+=t.height),l!==s&&l!==a||(v+=Math.round(t.height/2)),h===r&&(v-=i.height,m*=-1),h!==s&&h!==a||(v-=Math.round(i.height/2),m*=-1),p===u&&(g+=t.width),p!==s&&p!==a||(g+=Math.round(t.width/2)),d===u&&(g-=i.width,f*=-1),d!==s&&d!==a||(g-=Math.round(i.width/2),f*=-1),{top:v+m,left:g+f}};function d(e){return e.ownerDocument||e.document||e}var h=function(e){return d(e).defaultView},f=function(e){return d(e).documentElement},m=0;function v(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function g(e){var t=h(e),n=f(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=v()),i}var y=function(e){if(!e.getBoundingClientRect){var t=g(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},_=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||f(e)},b=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}},O=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function x(e){var t=f(e),n=h(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var C=function(e){return e===(e.ownerDocument||{}).body?x(e):{x:e.scrollLeft,y:e.scrollTop}};var w=function(e,t){var n=h(e),i=n.getComputedStyle(e),o=b(e),r=t||_(e),s=e.ownerDocument,a=r!==s.body&&r!==s.documentElement,c={top:0,left:0};if("fixed"!==i.position&&a){var u=n.getComputedStyle(r);(c=b(r)).top+=parseInt(u.borderTopWidth,10),c.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},S=function(e,t){return e?C(e):function(e){var t=_(e);return t?C(t):{x:0,y:0}}(t)};var j="fit",I="flip",E=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},k=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,u=e.elementAlignPoint,l=0,d=2*e.margin;if(u!==r&&!(u===s||u===a)&&!(r===s||r===a)){var h=r===p||r===c;t<0&&h?t+(l=n+i+d)+n>o&&(l=0):t>=0&&!h&&(t+n>o&&(l+=-(i+n+d)),t+l<0&&(l=0))}return l},P=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=i.top,u=i.left,p=i.height,l=i.width,d=s.height,h=s.width,f=a.horizontal||0,m=a.vertical||0,v=0,g=0,y=r.horizontal===I,_=r.vertical===I;r.vertical===j&&(g+=E(c,p,d)),r.horizontal===j&&(v+=E(u,l,h)),_&&(g+=k({margin:m,offset:c,size:p,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(v+=k({margin:f,offset:u,size:l,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var b=y&&0!==v,O=_&&0!==g;return{flipped:b||O,flip:{horizontal:b,vertical:O},offset:{left:v,top:g}}},M=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},T=function(e,t){for(var n,i,o=O(e),r=t;r&&(n=M(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};var A=n(2),D=n(3),z=n(6),R=n(7),L=n(23),B=n(5),N=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},K=function(){return"undefined"!=typeof window},F=/auto|scroll/,H=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var Z,V,U,q=(Z=function(){if(!Object(A.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t},U=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U||(V=Z.apply(void 0,e),U=!0),V}),G=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},Y=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],X=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.align=function(e){return l(e)},e.prototype.boundingOffset=function(e){return y(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return Y.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return K()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?b(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,o=i.left,r=i.top,s=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var a=b(n);return n.style.left=o,n.style.top=r,n.offsetHeight,n.style.transition=s,a},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?function(e,t,n){void 0===n&&(n=1);var i=t?_(t):null,o=w(e,i),r=o.top,s=o.left,a=o.height,c=o.width,u=S(i,e),p=u.x,l=u.y,d=e.ownerDocument,h=i===d.body||i===d.documentElement?1:n;return{top:r+l*h,left:s+p*h,height:a,width:c}}(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return P(e)},e.prototype.scrollPosition=function(e){return x(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(A.isDocumentAvailable)()||!K())return t;for(var n=e.parentElement;n;)(F.test(H(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?b(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!q())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return g(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(A.isDocumentAvailable)()||!K())return null;var n=T(e,t);if(!n)return null;var i=[e].concat(O(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(A.isDocumentAvailable)()&&K()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),W=new o.InjectionToken("Popup Document Scale"),J=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,r=e.margin,s=e.offset,a=e.positionMode,c=this.scale||1,u="fixed"===a||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,s,c):this.relativeRect(t,n,s,c),p=G(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:u,elementAlign:o,elementRect:p,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=N(this._dom.offset(e),n),s=2*i,a=this._dom.stackingElementScroll(t);1!==i&&a&&(a.x/=s,a.y/=s);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=s,c.top/=s),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(G(r,i),c),a),o)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var o=N(this._dom.position(e,t,i),n);return G(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(W)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[X,Number])],e)}(),Q=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,i=e.element,o=e.anchorAlign,r=e.elementAlign,s=e.collisions,a=e.margin,c=this._dom,u=this.scale||1,p=c.offsetAtPoint(i,n),l=G(p,u),d=G(c.offset(t),u),h=N(d,n),f=e.viewPort||c.windowViewPort(i);f.width=f.width/u,f.height=f.height/u;var m=c.restrictToView({anchorAlign:o,anchorRect:h,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:f}),v=c.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:v}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(W)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[X,Number])],e)}(),$=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(A.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(D.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(z.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[X,o.NgZone])],e)}(),ee=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(A.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var o=i.map((function(e){return Object(D.fromEvent)(e,"scroll").pipe(Object(z.auditTime)(1e3/60))}));t.subscription=D.merge.apply(void 0,o).subscribe((function(o){var r=o.target,s=i.filter((function(e){return e===r})).length>0,a=r===document,c=r===window;(s||a||c)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[X,o.NgZone])],e)}(),te={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},ne=function(){function e(e){this.animationBuilder=e,this.start=new o.EventEmitter,this.end=new o.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=t.type||"slide",r=te[i];if(r){var s=r(this.getDirection(n,t));this.playStates(e,s,t)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var o=n.duration||100,r=this.animationBuilder.build([Object(R.style)(t.start),Object(R.animate)(o+"ms ease-in",Object(R.style)(t.end))]),s=this.player=r.create(e);s.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),s.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[R.AnimationBuilder])],e)}(),ie={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635939378,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},oe={left:-1e4,top:0},re=function(){function e(e,t,n,i,r,s,a,c,u){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=c,this._zone=u,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=oe,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(L.validatePackage)(ie),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=oe,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.reposition(),this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(D.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(A.isDocumentAvailable)()){var t,n,i,o,r,s,a=this.position(),c=a.flip,u=a.offset;(!this.currentOffset||(t=this.currentOffset,n=u,i=t.left,o=t.top,r=n.left,s=n.top,Math.abs(i-r)>=1||Math.abs(o-s)>=1))&&(this.currentOffset=u,Object(A.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:u,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(A.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(A.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",A.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[J,ne,X,Q,$,ee],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,J,X,Q,$,ee,ne,o.Renderer2,o.NgZone])],e)}(),se=new o.InjectionToken("Popup Container"),ae=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,i=t.nodes,o=this.appendPopup(i,e.appendTo),r=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=s)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(re,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var o=i.create(this.injector,t);return this.applicationRef.attachView(o.hostView),o},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof o.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof o.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(se)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),ce=[re],ue=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ce],entryComponents:[ce],exports:[ce],imports:[B.CommonModule,A.ResizeSensorModule],providers:[ae]})],e)}()},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(25).PreventableEvent);t.MenuEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(15),s=n(4),a=n(8),c=/\S/,u={37:"left",39:"right",38:"up",40:"down",36:"home",35:"end",32:"enter",13:"enter",27:"esc",9:"tab"},p=Object.assign({},u,{37:"right",39:"left"});var l=Promise.resolve(null),d=function(){function e(e,t,n,i){this.items=e,this.actions=t,this.localization=n,this.ngZone=i,this.vertical=!1,this.activeIndex="0"}return Object.defineProperty(e.prototype,"focusedItem",{get:function(){return this.items.get(this.focusedIdx)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this.items.get(this.activeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handlers",{get:function(){return this.localization.rtl?p:u},enumerable:!0,configurable:!0}),e.prototype.focus=function(e){e.index!==this.focusedIdx&&(this.activeItem&&this.items.hasParent(e,this.activeItem)||this.setActive(e),this.setFocus(e))},e.prototype.setFocus=function(e){this.focusedIdx=e.index,e.focus()},e.prototype.focusLeave=function(){var e=this.focusedItem;e&&(this.actions.closeToRoot(e),this.actions.execute()),this.focusedIdx=null},e.prototype.updateActive=function(){var e=this;!this.activeItem&&this.items.hasItems&&(this.items.get("0").toggleActive(!0),this.ngZone.runOutsideAngular((function(){l.then((function(){e.activeIndex="0"}))})))},e.prototype.keydown=function(e){var t,n=this.focusedItem||this.activeItem,i=this.handlers[e.keyCode];n&&(i?("tab"!==i&&e.preventDefault(),this[i](n,e)):1===(t=e.key).length&&c.test(t)&&this.search(n,e.key),this.actions.execute())},e.prototype.focusIndex=function(e){if(!e&&this.activeItem)this.setFocus(this.activeItem);else if("first"===e)this.focusFirst();else if("last"===e)this.focusLast();else{var t=this.items.get(e);t&&this.focus(t)}},e.prototype.focusFirst=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[0])},e.prototype.focusLast=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[e.length-1])},e.prototype.search=function(e,t){for(var n=this.items.siblings(e),i=n.indexOf(e),o=n.slice(i+1).concat(n.slice(0,i)),r=0;r<o.length;r++){var s=o[r];if((s.item.text||"").toLowerCase().startsWith(t.toLowerCase())){this.focus(s);break}}},e.prototype.down=function(e){0!==e.level||this.vertical?this.focus(this.items.next(e)):e.hasContent&&this.actions.open(e,this.focusChild(e,0))},e.prototype.up=function(e){0!==e.level||this.vertical?this.focus(this.items.previous(e)):e.hasContent&&this.actions.open(e,this.focusChild(e,e.children.length-1))},e.prototype.left=function(e){if(!this.vertical||0!==e.level||!e.disabled)if(e.level>1||this.vertical&&e.level>0){var t=this.items.parent(e);this.focus(t),this.actions.close(t)}else this.vertical&&0===e.level&&!e.disabled?e.hasContent&&this.actions.open(e,this.focusChild(e,e.children.length-1)):this.focus(this.items.previous(this.activeItem))},e.prototype.right=function(e){this.vertical&&0===e.level&&e.disabled||(e.horizontal&&!e.disabled?e.hasContent?this.actions.open(e,this.focusChild(e,0)):(!this.vertical||e.level>0)&&this.focus(this.items.next(this.activeItem)):this.focus(this.items.next(this.activeItem)))},e.prototype.home=function(e){var t=this.items.siblings(e);this.focus(t[0])},e.prototype.end=function(e){var t=this.items.siblings(e);this.focus(t[t.length-1])},e.prototype.enter=function(e,t){var n=this.actions;e.disabled||(e.hasContent?(n.select(e,t),n.open(e,this.focusChild(e,0))):(n.select(e,t,null,(function(){e.navigate()})),this.focus(this.items.root(e)),n.closeToRoot(e)))},e.prototype.esc=function(e){if(e.level>0){var t=this.items.parent(e);this.actions.close(t),this.focus(t)}},e.prototype.tab=function(e){e.level>0&&this.activeItem.focus()},e.prototype.focusChild=function(e,t){var n=this;return function(){var i=n.items.children(e)[t];n.setFocus(i)}},e.prototype.setActive=function(e){var t=this.focusedItem,n=this.items.root(e);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=n.index,n.toggleActive(!0),t&&(this.actions.closeToRoot(t),t.level>0&&this.actions.open(n))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[s.ItemsService,a.ActionsService,r.LocalizationService,o.NgZone])],e)}();t.NavigationService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(12),s=n(13),a=n(19),c=function(){function e(){}var t;return t=e,Object.defineProperty(e.prototype,"template",{get:function(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentTemplate",{get:function(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){var e=this;if(this.children.length)return this.children.toArray().filter((function(t){return t!==e}))},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"url",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"separator",void 0),i.__decorate([o.ContentChildren(r.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemContentTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemContentTemplate",void 0),i.__decorate([o.ContentChildren(t),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e=t=i.__decorate([o.Component({selector:"kendo-menu-item",template:""})],e)}();t.MenuItemComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemContentTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemContentTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(2);t.defined=function(e){return void 0!==e},t.bodyFactory=function(){if(o.isDocumentAvailable())return new i.ElementRef(document.body)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),s=n(14),a=n(24),c=n(18),u=n(28),p=n(29),l=n(30),d=n(31),h=n(12),f=n(13),m=n(19),v=n(32),g=n(35),y=[a.MenuComponent,c.MenuItemComponent,h.ItemTemplateDirective,f.ItemLinkTemplateDirective,m.ItemContentTemplateDirective,v.HierarchyBindingDirective,g.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],_=y.concat([u.ListComponent,p.ItemComponent]),b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[_],exports:[y],imports:[s.PopupModule,r.CommonModule]})],e)}();t.MenuModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ContextMenuTemplateDirective=r},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return u})),n.d(t,"validatePackage",(function(){return p}));var i,o,r=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];i=r,o=131,function(e){for(;--e;)i.push(i.shift())}(++o);var s=function(e,t){var n=r[e-=0];if(void 0===s.eVebMg){s.JsjtEd=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),o="",r=0,s=0;n=i.charAt(s++);~n&&(t=r%4?64*t+n:n,r++%4)?o+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return o}(e),n=[],i=0,o=t.length;i<o;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var i=s.rqrXoU[e];return void 0===i?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=i,n},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},c=new Map;function u(e){}function p(e){if(c[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return c[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",i=e[s("0x4")]+n,o=JSON[s("0x9")](a[s("0x34")]),r=!o[s("0x26")]&&!o[s("0x38")],u=o[s("0x26")]&&typeof KendoLicensing===s("0x2b"),p=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var i=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return i[s("0x14")](e[s("0x39")])}))}(o,e[s("0x2")]);if(r||u)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:i,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(p){if(s("0x12")!=s("0x12")){}else if(p[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:i,publishDate:l(e[s("0x1c")]),expiryDate:l(p[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:i,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var d=s("0x1b")+e[s("0xe")],h=typeof console[s("0x7")]===s("0x33");if(h)if(s("0xc")!=s("0xc")){}else console[s("0x7")](d);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](d);if(console[s("0x1e")](function(e){var t=s("0x28")+e[s("0x16")]+"\n";if(2===e[s("0x3a")])if(s("0x20")!=s("0x20")){}else t+=s("0x25")+e[s("0x15")][s("0x2c")]()+s("0xb")+e[s("0x1c")][s("0x2c")]()+".\n";else if(0===e[s("0x3a")])if(s("0x13")!==s("0x10"))t+=s("0xd");else{}else if(1===e[s("0x3a")])if(s("0x2e")===s("0x23")){}else t+=s("0x1d");return t+=s("0x31")+e[s("0x1a")]+s("0x22")}(t)),h)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var f=!t;return c[s("0x0")](e[s("0x4")],f),f}function l(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(15),s=n(23),a=n(44),c=n(4),u=n(8),p=n(17),l=n(26),d=n(45),h=n(9),f=n(10),m=n(11),v=n(2),g=function(e){function t(t,n,i,r,c,u,p,l){var d=e.call(this)||this;return d.itemsService=t,d.hover=n,d.actions=i,d.navigation=r,d.localization=c,d.ngZone=u,d.renderer=p,d.contextService=l,d.select=new o.EventEmitter,d.open=new o.EventEmitter,d.close=new o.EventEmitter,s.validatePackage(a.packageMetadata),d.actions.owner=d,l&&(l.items=d.itemsService,d.contextKeyDownSubscription=l.keydown.subscribe(d.contextKeyDown.bind(d))),d}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"ariaOrientation",{get:function(){if(this.vertical)return"vertical"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contextMenuClass",{get:function(){return Boolean(this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return this.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!0,configurable:!0}),t.prototype.toggle=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++){var o=this.itemsService.get(t[i]);o&&!o.disabled&&(e?o.open():o.close())}},t.prototype.focus=function(e){this.navigation.focusIndex(e)},t.prototype.ngOnChanges=function(e){if(this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,e.openOnClick){var t=this.openOnClick=d.normalize(this.openOnClick);this.hover.openOnOver=!t,t&&"click"===t.toggle?this.attachCloseClick():this.unsubscribeClick()}},t.prototype.ngAfterViewChecked=function(){this.navigation.updateActive()},t.prototype.ngOnDestroy=function(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())},t.prototype.attachCloseClick=function(){var e=this;!this.closeClickSubscription&&v.isDocumentAvailable()&&this.ngZone.runOutsideAngular((function(){e.closeClickSubscription=e.renderer.listen("document","click",(function(t){h.inMenu(t.target,e.itemsService)||(e.hover.openOnOver=!1,e.actions.closeAll(),e.actions.execute())}))}))},t.prototype.unsubscribeClick=function(){this.closeClickSubscription&&this.closeClickSubscription()},t.prototype.contextKeyDown=function(e){if(this.itemsService.hasItems){var t,n=e.keyCode,i=this.localization.rtl,o=n===v.Keys.ArrowDown||n===v.Keys.ArrowRight,r=n===v.Keys.ArrowUp||n===v.Keys.ArrowLeft;o&&!i||r&&i?t="first":(o&&i||r&&!i)&&(t="last"),t&&(e.preventDefault(),this.focus(t))}},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"menuItemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"menuItemLinkTemplate",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"select",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.HostBinding("class.k-rtl"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"direction",null),t=n=i.__decorate([o.Component({exportAs:"kendoMenu",providers:[c.ItemsService,u.ActionsService,p.NavigationService,l.HoverService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.menu"},{provide:m.MenuBase,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-menu",template:'\n <ul role="menubar"\n [attr.aria-orientation]="ariaOrientation"\n kendoMenuList [items]="rootItems" [level]="0" class="k-widget k-reset k-header k-menu"\n [vertical]="vertical" [rtl]="rtl" [animate]="animate" [openOnClick]="openOnClick"\n [itemTemplate]="itemTemplate.first?.templateRef || menuItemTemplate"\n [itemLinkTemplate]="itemLinkTemplate.first?.templateRef || menuItemLinkTemplate"\n [class.k-menu-horizontal]="!vertical"\n [class.k-menu-vertical]="vertical"\n [class.k-context-menu]="contextMenuClass">\n </ul>\n '}),i.__param(7,o.Optional()),i.__metadata("design:paramtypes",[c.ItemsService,l.HoverService,u.ActionsService,p.NavigationService,r.LocalizationService,o.NgZone,o.Renderer2,f.ContextMenuService])],t)}(m.MenuBase);t.MenuComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.prevented=!1,Object.assign(this,e)}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=n(8),a=function(){function e(e,t){this.actions=e,this.items=t,this.delay=100,this._openOnOver=!0,this.scheduled=[]}return Object.defineProperty(e.prototype,"openOnOver",{get:function(){return this._openOnOver},set:function(e){this.cancelActions(),this._openOnOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hovered",{get:function(){return this.items.get(this.hoveredIdx)},set:function(e){this.hoveredIdx=e?e.index:null},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.cancelActions()},e.prototype.over=function(e){var t=this;this.cancelActions((function(e){return"openOnOver"===e.name})),this.hovered&&this.hovered===e||(this.actions.closeOthers(e),this.hovered=e,(e.level>0||this.openOnOver)&&!e.disabled&&(this.actions.open(e),this.cancelActions((function(n){return"close"===n.name&&(e===n.item||t.items.hasParent(e,n.item))||"open"===n.name&&!t.items.hasParent(e,n.item)}))),this.scheduleActions())},e.prototype.leave=function(e){var t=this.hovered;t&&(this.actions.closeToRoot(t),this.cancelActions((function(e){return"open"===e.name})),this.scheduleActions()),e&&this._openOnOver&&this.scheduleDisableOpenOnOver(),this.hovered=null},e.prototype.closeCurrent=function(){var e=this.hovered;e&&(this.actions.closeToRoot(e),this.hovered=null)},e.prototype.scheduleActions=function(){var e=this;if(this.actions.hasPending){var t={};t.actions=this.actions.clear(),t.id=setTimeout((function(){e.actions.execute(t.actions),e.removeScheduled(t)}),this.delay),this.scheduled.push(t)}},e.prototype.scheduleDisableOpenOnOver=function(){var e=this,t={actions:[{name:"openOnOver"}]};t.id=setTimeout((function(){e._openOnOver=!1,e.removeScheduled(t)}),Math.max(this.delay,500)),this.scheduled.push(t)},e.prototype.removeScheduled=function(e){for(var t=this.scheduled,n=0;n<t.length;n++)if(t[n]===e)return void t.splice(n,1)},e.prototype.cancelActions=function(e){for(var t=this.scheduled,n=t.length-1;n>=0;n--){var i=t[n],o=i.actions;if(e)for(var r=o.length-1;r>=0;r--)e(o[r])&&o.splice(r,1);e&&0!==o.length||(clearTimeout(i.id),t.splice(n,1))}},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[s.ActionsService,r.ItemsService])],e)}();t.HoverService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=n(8),a=n(17),c=n(26),u=n(27),p=n(9),l=n(2),d=function(){function e(e,t,n,i,o,r,s){this.itemsService=e,this.hover=t,this.actions=n,this.navigation=i,this.renderer=o,this.ngZone=r,this.element=s,this.animate=!0}return e.prototype.hierarchyIndex=function(e){return this.itemsService.itemIndex(this.index,e)},e.prototype.ngOnInit=function(){this.itemsService.addList(this),this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()},e.prototype.initDomEvents=function(){var e=this;l.isDocumentAvailable()&&this.element&&this.ngZone.runOutsideAngular((function(){var t=e.element.nativeElement,n=e.level>0?p.closest(t,(function(e){return p.hasClass(e,"k-popup")})):t,i=e.renderer.listen(t,"mouseover",(function(n){if(n.target===t&&0===e.level)e.onLeave();else{var i=e.nodeItem(n.target)||e.itemsService.get(e.index);!i||e.openOnClick&&"click"===e.openOnClick.toggle&&0===i.level&&!i.hasContent||e.hover.over(i)}})),o=e.renderer.listen(n,"mouseleave",(function(t){e.leavesMenu(t)&&e.onLeave()})),r=e.renderer.listen(t,"keydown",(function(t){p.hasClass(t.target,"k-menu-item")&&e.navigation.keydown(t)})),s=e.renderer.listen(t,"focusout",(function(t){e.leavesMenu(t)&&e.navigation.focusLeave()})),a=e.renderer.listen(document,"touchstart",(function(t){if(p.inMenu(t.target,e.itemsService)){var n=e.nodeItem(t.target);e.navigation.focus(n),n.opened||e.hover.over(n)}else if(e.navigation.focusedIdx){var i=e.itemsService.get(e.navigation.activeIndex);e.onLeave(),i.blur()}})),c=e.renderer.listen(t,"click",e.clickHandler.bind(e));e.domSubscriptions=function(){i(),o(),r(),s(),c(),a()}}))},e.prototype.leavesMenu=function(e){return!e.relatedTarget||!p.inMenu(e.relatedTarget,this.itemsService)},e.prototype.onLeave=function(){var e=this.openOnClick;e&&"click"===e.toggle||this.hover.leave(e&&"leave"===e.toggle)},e.prototype.nodeItem=function(e){var t=p.closestItem(e,this.element.nativeElement);if(t){var n=p.nodeIndex(t);return this.itemsService.get(n)}},e.prototype.clickHandler=function(e){if(!p.isFocusable(e.target)||p.hasClass(e.target,"k-menu-item")){var t=this.nodeItem(e.target);if(t&&!t.isContent&&!t.navigating)if(t.disabled)e.preventDefault();else{if(this.actions.select(t,e,(function(){e.preventDefault()})),this.navigation.focus(t),t.level>0&&!t.hasContent&&this.actions.closeToRoot(t),this.openOnClick){var n=this.hover;t.opened?0===t.level&&(n.openOnOver=!1,this.actions.close(t)):t.hasContent?(n.openOnOver=!0,this.actions.closeOthers(t),this.actions.open(t)):(n.openOnOver=!1,0===t.level&&"click"===this.openOnClick.toggle&&this.hover.closeCurrent())}this.actions.execute()}}},i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),e=i.__decorate([o.Component({selector:"[kendoMenuList]",template:'\n <ng-container *ngFor="let item of items; let idx = index">\n <li *ngIf="!item.separator" kendoMenuItem\n [item]="item" [level]="level" [vertical]="vertical" [animate]="animate" [rtl]="rtl"\n [itemTemplate]="itemTemplate" [itemLinkTemplate]="itemLinkTemplate" [openOnClick]="openOnClick"\n [index]="hierarchyIndex(idx)" [siblingIndex]="idx" [attr.'+u.NODE_INDEX+']="hierarchyIndex(idx)"\n [ngClass]="item.cssClass" [ngStyle]="item.cssStyle"\n role="menuitem"\n class="k-item k-menu-item"\n [class.k-first]="idx === 0" [class.k-last]="idx === items.length - 1"\n [class.k-state-disabled]="item.disabled"></li>\n <li *ngIf="item.separator" class="k-separator k-item"\n role="separator" [ngClass]="item.cssClass" [ngStyle]="item.cssStyle">\n &nbsp;\n </li>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,c.HoverService,s.ActionsService,a.NavigationService,o.Renderer2,o.NgZone,o.ElementRef])],e)}();t.ListComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=n(17),a=n(46),c=n(14),u=n(20),p=function(){function e(e,t,n,i,o,r){this.itemsService=e,this.navigation=t,this.changeDetector=n,this.renderer=i,this.popupService=o,this.element=r,this.animate=!0,this.openOnClick=!1,this.opened=!1,this.navigating=!1,this.destroyed=!1}return Object.defineProperty(e.prototype,"index",{get:function(){return this._index},set:function(e){this._index&&this._index!==e?(this.itemsService.remove(this),this._index=e,this.itemsService.add(this)):this._index=e,this.childId=this.itemsService.childId(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPopup",{get:function(){return!!this.hasContent||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this.hasContent?this.opened:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.item.text?this.item.text:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeId",{get:function(){return this.index===this.navigation.activeIndex?"0":"-1"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){var e=this.rtl?a.POPUP_SETTINGS_RTL:a.POPUP_SETTINGS;return this.horizontal?e.horizontal:e.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return this.vertical||this.level>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLink",{get:function(){return Boolean(this.item.url)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){return this.item.linkTemplate||this.itemLinkTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasContent",{get:function(){var e=this.item.items;return e&&e.length||this.item.contentTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isContent",{get:function(){return Boolean(this.item.content)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return"k-i-"+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){var e=this.item;return e.contentTemplate?(this.contentItems||(this.contentItems=[{content:e.contentTemplate,owner:e,ownerIndex:this.index}]),this.contentItems):e.items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return this.item.template||this.itemTemplate},enumerable:!0,configurable:!0}),e.prototype.hasContentTemplates=function(){var e=this.item;return this.itemTemplate||e.contentTemplate||this.itemLinkTemplate||e.items&&e.items.find((function(e){return e.template||e.linkTemplate}))},e.prototype.ngOnInit=function(){this.itemsService.add(this)},e.prototype.ngOnDestroy=function(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.focus=function(){this.element.nativeElement.focus()},e.prototype.blur=function(){this.element.nativeElement.blur()},e.prototype.toggleActive=function(e){e?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")},e.prototype.open=function(){if(!this.destroyed&&this.hasContent&&!this.opened){var e=this.popupSettings,t=!!this.animate&&Object.assign({},this.animate,{direction:e.animate});this.opened=!0,this.popupRef=this.popupService.open({popupAlign:e.popup,anchorAlign:e.anchor,collision:e.collision,anchor:this.element,positionMode:"absolute",content:this.popupTemplate,popupClass:{"k-rtl":this.rtl,"k-menu-popup":!0},animate:t}),this.setAttribute("aria-expanded","true"),this.setAttribute("aria-owns",this.childId),this.changeDetector.detectChanges()}},e.prototype.close=function(){!this.destroyed&&this.opened&&(this.opened=!1,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.changeDetector.detectChanges(),this.setAttribute("aria-expanded","false"),this.renderer.removeAttribute(this.element.nativeElement,"aria-owns"))},e.prototype.navigate=function(){var e;this.linkTemplate?e=this.element.nativeElement.querySelector("a.k-menu-link"):this.hasLink&&(e=this.link.nativeElement),e&&(this.navigating=!0,e.click(),this.navigating=!1)},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"index",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"siblingIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ViewChild("link",{static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabled",null),i.__decorate([o.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasPopup",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"expanded",null),i.__decorate([o.HostBinding("attr.aria-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"label",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"activeId",null),e=i.__decorate([o.Component({providers:[c.PopupService,{provide:c.POPUP_CONTAINER,useFactory:u.bodyFactory}],selector:"[kendoMenuItem]",template:'\n <span *ngIf="!hasLink && !item.content && !linkTemplate" class="k-link k-menu-link" #link\n [class.k-state-active]="opened" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </span>\n <a *ngIf="item.url && !linkTemplate" class="k-link k-menu-link" #link [attr.href]="item.url"\n [class.k-state-active]="opened" tabindex="-1" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </a>\n <ng-template *ngIf="linkTemplate && !item.content" [ngTemplateOutlet]="linkTemplate"\n [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n\n <div class="k-content" *ngIf="item.content" role="presentation">\n <ng-template [ngTemplateOutlet]="item.content" [ngTemplateOutletContext]="{ item: item.owner, index: item.ownerIndex }">\n </ng-template>\n </div>\n\n <ng-template #popupTemplate>\n <ul kendoMenuList\n [attr.id]="childId"\n [animate]="animate"\n [rtl]="rtl"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [items]="children"\n [level]="level + 1"\n [index]="index"\n [itemTemplate]="itemTemplate"\n [itemLinkTemplate]="itemLinkTemplate"\n role="menu"\n class="k-group k-menu-group k-reset">\n </ul>\n </ng-template>\n\n <ng-template #itemcontent>\n <span *ngIf="item.icon" class="k-icon" [ngClass]="iconClass" role="presentation"></span>\n <ng-container *ngIf="!template">\n {{ item.text }}\n </ng-container>\n <ng-template *ngIf="template" [ngTemplateOutlet]="template" [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n <span class="k-icon k-menu-expand-arrow" *ngIf="hasContent"\n role="presentation"\n [class.k-i-arrow-60-down]="!horizontal"\n [class.k-i-arrow-60-right]="horizontal && !rtl"\n [class.k-i-arrow-60-left]="horizontal && rtl">\n </span>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,s.NavigationService,o.ChangeDetectorRef,o.Renderer2,c.PopupService,o.ElementRef])],e)}();t.ItemComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation",this.tabindex="-1"}return Object.defineProperty(e.prototype,"activeClass",{get:function(){return this.item.opened},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(o.isDevMode()&&!this.index)throw new Error("The kendoMenuItemLink directive requires the item index to be set.");this.item=this.itemsService.get(this.index)||{}},i.__decorate([o.Input("kendoMenuItemLink"),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-link"),o.HostBinding("class.k-menu-link"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String)],e.prototype,"tabindex",void 0),i.__decorate([o.HostBinding("class.k-state-active"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"activeClass",null),e=i.__decorate([o.Directive({selector:"[kendoMenuItemLink]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.LinkDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),s=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation"}return Object.defineProperty(e.prototype,"arrowDown",{get:function(){return!this.item.horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowRight",{get:function(){return this.item.horizontal&&!this.item.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowLeft",{get:function(){return this.item.horizontal&&this.item.rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(o.isDevMode()&&!this.index)throw new Error("The kendoMenuExpandArrow directive requires the item index to be set.");this.item=this.itemsService.get(this.index)||{}},i.__decorate([o.Input("kendoMenuExpandArrow"),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-icon"),o.HostBinding("class.k-menu-expand-arrow"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("class.k-i-arrow-60-down"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowDown",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-right"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowRight",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-left"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowLeft",null),e=i.__decorate([o.Directive({selector:"[kendoMenuExpandArrow]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.ExpandArrowDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(11),s=n(33),a=n(34),c=function(e,t){return Array.isArray(e)?e[t]||a.last(e):e},u=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.mapItems=function(e,t){var n=this;return void 0===t&&(t=0),e.map((function(e){var i=n.createItem(e,t),o=n.getChildren(e,t);return o&&(i.items=n.mapItems(o,t+1)),i}))},t.prototype.createItem=function(e,t){for(var n={data:e},i=this.fields,o=0;o<i.length;o++){var r=i[o],s=r.target,u=r.source;n[s]=a.getter(c(u,t))(e)}return n},t.prototype.getChildren=function(e,t){if(this.childrenField)return e[c(this.childrenField,t)]},i.__decorate([o.Input("kendoMenuHierarchyBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"childrenField",void 0),t=i.__decorate([o.Directive({exportAs:"kendoMenuHierarchyBinding",selector:"[kendoMenuHierarchyBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],t)}(s.BindingDirectiveBase);t.HierarchyBindingDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],o=function(){function e(e){this.menu=e}return e.prototype.ngOnChanges=function(){this.rebind()},e.prototype.rebind=function(){for(var e=this.fields=[],t=0;t<i.length;t++){var n=i[t],o=this[n];o&&e.push({target:n.replace("Field",""),source:o})}this.menu.items=this.data?this.mapItems(this.data):[]},e}();t.BindingDirectiveBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,o={undefined:function(e){return e}};t.getter=function(e){if(o[e])return o[e];var t=[];return e.replace(i,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),o[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},o[e]},t.last=function(e){return e[e.length-1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(11),s=n(33),a=n(34),c=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.mapItems=function(e){var t=this;if(!this.idField||!this.parentIdField)return e.map((function(e){return t.createItem(e)}));for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],s=this.createItem(r),c=a.getter(this.idField)(r),u=a.getter(this.parentIdField)(r);if(null==u)n.push(s);else{var p=i[u]=i[u]||{};p.items=p.items||[],p.items.push(s)}i[c]&&(s.items=i[c].items),i[c]=s}return n},t.prototype.createItem=function(e){for(var t={data:e},n=this.fields,i=0;i<n.length;i++){var o=n[i],r=o.source;t[o.target]=a.getter(r)(e)}return t},i.__decorate([o.Input("kendoMenuFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"idField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"parentIdField",void 0),t=i.__decorate([o.Directive({exportAs:"kendoMenuFlatBinding",selector:"[kendoMenuFlatBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],t)}(s.BindingDirectiveBase);t.FlatBindingDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.ContextMenuEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(25).PreventableEvent);t.ContextMenuPopupEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(15),s=n(14),a=n(2),c=n(11),u=n(37),p=n(10),l=n(49),d=n(22),h=n(9),f=n(20),m=n(4),v=n(39),g=n(41),y=n(20),_={horizontal:"left",vertical:"bottom"},b={horizontal:"left",vertical:"top"},O={horizontal:"fit",vertical:"flip"},x=function(e){return e.preventDefault()},C=function(e){function t(t,n,i,r){var s=e.call(this)||this;return s.popupService=t,s.service=n,s.ngZone=i,s.renderer=r,s.showOn="contextmenu",s.alignToAnchor=!1,s.vertical=!0,s.popupOpen=new o.EventEmitter,s.popupClose=new o.EventEmitter,s.select=new o.EventEmitter,s.open=new o.EventEmitter,s.close=new o.EventEmitter,s.service.owner=s,s.popupKeyDownHandler=s.popupKeyDownHandler.bind(s),s}var n;return i.__extends(t,e),n=t,t.prototype.hide=function(){this.removePopup()},t.prototype.show=function(e){if(e){var t=e;this.removePopup(),f.defined(t.left)&&f.defined(t.top)?this.createPopup({offset:t}):(this.currentTarget=t.nativeElement||t,this.createPopup({anchor:this.currentTarget}))}},t.prototype.ngOnChanges=function(e){(e.target||e.showOn)&&this.bindShowHandler()},t.prototype.ngOnInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen("document","mousedown",(function(t){e.popupRef&&!h.closest(t.target,(function(t){return t===e.popupRef.popupElement}))&&e.service.leaveMenu(t)&&e.closePopup(t)})),n=e.renderer.listen("window","blur",(function(t){e.popupRef&&e.closePopup(t)}));e.closeSubscription=function(){t(),n()}}))},t.prototype.ngOnDestroy=function(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()},t.prototype.emitMenuEvent=function(e,t){t.target=this.currentTarget,t.sender=this,this[e].emit(t),"select"!==e||t.hasContent||this.closeAndFocus(t.originalEvent)},t.prototype.bindShowHandler=function(){var e=this;this.unbindShowHandler(),this.ngZone.runOutsideAngular((function(){var t=e.targetElement();if(t){var n=e.showOn||"contextmenu";e.showSubscription=e.renderer.listen(t,e.showOn||"contextmenu",(function(n){e.showContextMenu(n,t)})),"contextmenu"===n&&(e.keydownSubscription=e.renderer.listen(t,"keydown",(function(n){n.shiftKey&&n.keyCode===a.Keys.F10&&e.showContextMenu(n,t)})))}}))},t.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter(),o=t;if(i){if((o=h.findInContainer(e.target,i,t))&&o!==e.target&&h.isFocusable(e.target))return;o&&this.directiveTarget&&(o=this.target.targetService.find(o))}o?this.ngZone.run((function(){n.closePopup(e)||(n.currentTarget=o,n.openPopup(e))})):this.closePopup(e)},t.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},t.prototype.targetElement=function(){if(a.isDocumentAvailable()){this.directiveTarget=!1;var e=this.target;return"string"==typeof e?e=document.querySelector(e):e&&e.nativeElement?e=e.nativeElement:e instanceof v.ContextMenuTargetContainerDirective&&(e=e.element,this.directiveTarget=!0),e}},t.prototype.targetFilter=function(){return this.directiveTarget?"."+g.TARGET_CLASS:this.filter},t.prototype.closePopup=function(e){var t=this;if(this.popupRef)return this.popupAction("popupClose",e,(function(){t.removePopup()}))},t.prototype.removePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupSubscriptions&&(this.popupSubscriptions(),this.popupSubscriptions=null)},t.prototype.openPopup=function(e){var t=this;this.popupAction("popupOpen",e,(function(){var n,i;e.preventDefault(),t.alignToAnchor||"keydown"===e.type?n=t.currentTargetElement:i={left:e.pageX,top:e.pageY},t.createPopup({anchor:n,offset:i})}))},t.prototype.createPopup=function(e){var t=this;this.popupRef=this.popupService.open(Object.assign({animate:!f.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||O,popupAlign:this.popupAlign||b,anchorAlign:this.anchorAlign||_,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate,popupClass:"k-menu-popup"},e));var n=this.popupRef.popupElement;this.renderer.addClass(n,"k-context-menu-popup"),this.renderer.setAttribute(n,"tabindex","-1"),this.renderer.setStyle(n,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(n,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular((function(){var e=t.renderer.listen(n,"keydown",t.popupKeyDownHandler),i=t.renderer.listen(n,"contextmenu",x);t.popupSubscriptions=function(){e(),i()}})),n.focus()},t.prototype.closeAndFocus=function(e){var t=this.currentTargetElement;!this.closePopup(e)&&this.activeTarget&&t.focus()},t.prototype.popupKeyDownHandler=function(e){var t=this.popupRef.popupElement;e.keyCode!==a.Keys.Escape||!h.hasClass(e.target,"k-menu-item")&&e.target!==t?e.target===t&&this.service.keydown.emit(e):this.closeAndFocus(e)},t.prototype.popupAction=function(e,t,n){var i=this,o=this[e],r=!1;return a.hasObservers(o)?this.ngZone.run((function(){var e=new u.ContextMenuPopupEvent({originalEvent:t,sender:i,target:i.currentTarget});o.emit(e),e.isDefaultPrevented()||n(),r=e.isDefaultPrevented()})):n(),r},Object.defineProperty(t.prototype,"currentTargetElement",{get:function(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"target",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"alignToAnchor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"popupAnimate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"popupAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"anchorAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.ViewContainerRef)],t.prototype,"appendTo",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"ariaLabel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"popupOpen",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"popupClose",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"select",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.ContentChild(d.ContextMenuTemplateDirective,{static:!1}),i.__metadata("design:type",d.ContextMenuTemplateDirective)],t.prototype,"contentTemplate",void 0),i.__decorate([o.ViewChild("default",{static:!1}),i.__metadata("design:type",o.TemplateRef)],t.prototype,"defaultContentTemplate",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoContextMenu",providers:[p.ContextMenuService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:m.ItemsService,useClass:l.ContextMenuItemsService},{provide:c.MenuBase,useExisting:o.forwardRef((function(){return n}))},s.PopupService,{provide:s.POPUP_CONTAINER,useFactory:y.bodyFactory}],selector:"kendo-contextmenu",template:'\n <ng-template #default>\n <kendo-menu [items]="rootItems"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [hoverDelay]="hoverDelay"\n [animate]="animate"\n [menuItemTemplate]="itemTemplate.first?.templateRef"\n [menuItemLinkTemplate]="itemLinkTemplate.first?.templateRef"\n ></kendo-menu>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[s.PopupService,p.ContextMenuService,o.NgZone,o.Renderer2])],t)}(c.MenuBase);t.ContextMenuComponent=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(40),s=function(){function e(e,t){this.targetService=t,e&&(this.element=e.nativeElement)}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTargetContainer]",exportAs:"kendoContextMenuTargetContainer",providers:[r.ContextMenuTargetService]}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetContainerDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(){this.targets=[]}return e.prototype.add=function(e){this.targets.push(e)},e.prototype.remove=function(e){var t=this.targets.indexOf(e);this.targets.splice(t,1)},e.prototype.find=function(e){return this.targets.find((function(t){return t.element===e}))},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuTargetService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(40);t.TARGET_CLASS="k-contextmenu-target";var s=function(){function e(e,t){this.targetService=t,this.hostClass=!0,e&&(this.element=e.nativeElement),t.add(this)}return e.prototype.ngOnDestroy=function(){this.targetService.remove(this)},i.__decorate([o.Input("kendoContextMenuTarget"),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.HostBinding("class."+t.TARGET_CLASS),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Directive({selector:"[kendoContextMenuTarget]",exportAs:"kendoContextMenuTarget"}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),s=n(14),a=n(21),c=n(38),u=n(22),p=n(41),l=n(39),d=[c.ContextMenuComponent,u.ContextMenuTemplateDirective,p.ContextMenuTargetDirective,l.ContextMenuTargetContainerDirective],h=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[d],exports:[d,a.MenuModule],imports:[s.PopupModule,r.CommonModule,a.MenuModule]})],e)}();t.ContextMenuModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24);t.MenuComponent=i.MenuComponent;var o=n(28);t.ListComponent=o.ListComponent;var r=n(29);t.ItemComponent=r.ItemComponent;var s=n(30);t.LinkDirective=s.LinkDirective;var a=n(31);t.ExpandArrowDirective=a.ExpandArrowDirective;var c=n(18);t.MenuItemComponent=c.MenuItemComponent;var u=n(16);t.MenuEvent=u.MenuEvent;var p=n(47);t.MenuSelectEvent=p.MenuSelectEvent;var l=n(19);t.ItemContentTemplateDirective=l.ItemContentTemplateDirective;var d=n(12);t.ItemTemplateDirective=d.ItemTemplateDirective;var h=n(13);t.ItemLinkTemplateDirective=h.ItemLinkTemplateDirective;var f=n(32);t.HierarchyBindingDirective=f.HierarchyBindingDirective;var m=n(35);t.FlatBindingDirective=m.FlatBindingDirective;var v=n(21);t.MenuModule=v.MenuModule;var g=n(36);t.ContextMenuEvent=g.ContextMenuEvent;var y=n(48);t.ContextMenuSelectEvent=y.ContextMenuSelectEvent;var _=n(37);t.ContextMenuPopupEvent=_.ContextMenuPopupEvent;var b=n(22);t.ContextMenuTemplateDirective=b.ContextMenuTemplateDirective;var O=n(38);t.ContextMenuComponent=O.ContextMenuComponent;var x=n(42);t.ContextMenuModule=x.ContextMenuModule;var C=n(10);t.ContextMenuService=C.ContextMenuService;var w=n(50);t.MenusModule=w.MenusModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-menu",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635940879,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){return e&&Object.assign({toggle:"select"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={vertical:"top",horizontal:"left"},o={vertical:"top",horizontal:"right"},r={vertical:"flip",horizontal:"fit"},s={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:o,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:o,collision:s,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:i,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:i,collision:s,animate:"right"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(16).MenuEvent);t.MenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(36).ContextMenuEvent);t.ContextMenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(10),s=function(){function e(e){this.contextService=e}return e.prototype.get=function(e){if(this.contextService.items)return this.contextService.items.get(e)},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.ContextMenuService])],e)}();t.ContextMenuItemsService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(21),s=n(42),a=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.MenuModule,s.ContextMenuModule]})],e)}();t.MenusModule=a}])}));