@progress/kendo-angular-buttons 7.0.1 → 7.0.3-dev.202202251012
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.
- package/dist/cdn/js/kendo-angular-buttons.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/button/button.directive.js +5 -5
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/button/button.directive.d.ts +5 -5
- package/dist/es2015/button/button.directive.js +5 -5
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +6 -6
- package/dist/fesm5/index.js +6 -6
- package/dist/npm/button/button.directive.js +5 -5
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-buttons.js +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e
|
|
5
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-popup"),require("rxjs"),require("@angular/animations")):"function"==typeof define&&define.amd?define([,,,,,,,],e):"object"==typeof exports?exports.KendoAngularButtons=e(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-popup"),require("rxjs"),require("@angular/animations")):t.KendoAngularButtons=e(t.ng.core,t.KendoAngularCommon,t.KendoAngularL10N,t.KendoLicensing,t.ng.common,t.KendoAngularPopup,t.rxjs,t.ng.animations)}(window,(function(t,e,n,i,o,r,s,u){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return r})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return u})),n.d(e,"__param",(function(){return a})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return p})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return h})),n.d(e,"__values",(function(){return f})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return y})),n.d(e,"__spreadArrays",(function(){return _})),n.d(e,"__await",(function(){return m})),n.d(e,"__asyncGenerator",(function(){return v})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return S})),n.d(e,"__importDefault",(function(){return C})),n.d(e,"__classPrivateFieldGet",(function(){return I})),n.d(e,"__classPrivateFieldSet",(function(){return E}));
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
|
|
@@ -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 a(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 s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function p(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 c(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{p(i.next(e))}catch(e){r(e)}}function s(e){try{p(i.throw(e))}catch(e){r(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}p((i=i.apply(e,t||[])).next())}))}function l(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}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,s])}}}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),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.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 a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){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],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(p,u):c(r[0][2],n)}catch(e){c(r[0][3],e)}var n}function p(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function v(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:_(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function C(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 O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(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 E(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(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 U})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return S})),n.d(t,"DraggableModule",(function(){return E})),n.d(t,"closestInScope",(function(){return w})),n.d(t,"closest",(function(){return k})),n.d(t,"contains",(function(){return j})),n.d(t,"findElement",(function(){return I})),n.d(t,"findFocusableChild",(function(){return D})),n.d(t,"findFocusable",(function(){return z})),n.d(t,"hasClasses",(function(){return T})),n.d(t,"isFocusableWithTabKey",(function(){return B})),n.d(t,"isFocusable",(function(){return P})),n.d(t,"isVisible",(function(){return A})),n.d(t,"matchesClasses",(function(){return N})),n.d(t,"matchesNodeName",(function(){return F})),n.d(t,"rtlScrollPosition",(function(){return L})),n.d(t,"EventsOutsideAngularDirective",(function(){return K})),n.d(t,"EventsModule",(function(){return V})),n.d(t,"ResizeSensorComponent",(function(){return $})),n.d(t,"ResizeBatchService",(function(){return X})),n.d(t,"ResizeCompatService",(function(){return W})),n.d(t,"ResizeObserverService",(function(){return Y})),n.d(t,"ResizeSensorModule",(function(){return Q})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return _})),n.d(t,"isChanged",(function(){return b})),n.d(t,"anyChanged",(function(){return v})),n.d(t,"hasObservers",(function(){return C})),n.d(t,"guid",(function(){return O})),n.d(t,"Keys",(function(){return H}));var i=n(1),o=n(0),r=function(e,t){return function(n){return t(e(n))}},a=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},s=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},p=function(){},u=function(e){return e.preventDefault()},c=/touch/;function l(e){return e.type.match(c)?{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=p);var i=e.drag;void 0===i&&(i=p);var o=e.release;void 0===o&&(o=p);var c=e.mouseOnly;void 0===c&&(c=!1),this._pressHandler=r(l,n),this._dragHandler=r(l,i),this._releaseHandler=r(l,o),this._ignoreMouse=!1,this._mouseOnly=c,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||(a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",u),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(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()?a(e,"pointerdown",this._pointerdown):(a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return s(e,"pointerdown",this._pointerdown),s(this.document,"pointermove",this._pointermove),s(this.document,"pointerup",this._pointerup),s(this.document,"contextmenu",u),void s(this.document,"pointercancel",this._pointerup);s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(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=p);var n=e.drag;void 0===n&&(n=p);var i=e.release;void 0===i&&(i=p);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(6),g=n(9),y=n(3),_=function(){return"undefined"!=typeof document},b=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},v=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return b(e,t,n)}))},C=function(e){return e&&e.observers.length>0},O=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},S=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){b("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;_()&&(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)}(),E=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[S],exports:[S],imports:[m.CommonModule]})],e)}(),w=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},k=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},j=function(e,t,n){if(void 0===n&&(n=!1),!k(t,(function(t){return t===e})))return!1;var i=k(t,(function(e){return e===t}));return i&&(n||i!==e)},I=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=I(e,t);if(i)return i}e=e.nextSibling}}},x=/^(?: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&&x.test(t)||n},A=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},B=function(e,t){if(void 0===t&&(t=!0),!P(e))return!1;var n=e.getAttribute("tabIndex");return(!t||A(e))&&"-1"!==n},D=function(e,t){return void 0===t&&(t=!0),I(e,(function(e){return B(e,t)}),!1)},z=function(e,t){return void 0===t&&(t=!0),I(e,(function(e){return B(e,t)}))},M=function(e){return String(e).trim().split(" ")},T=function(e,t){var n=M(t);return Boolean(M(e.className).find((function(e){return n.indexOf(e)>=0})))},N=function(e){return function(t){return T(t,e)}},R={},F=function(e){return R[e]||(R[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),R[e]};function L(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var H,K=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)}(),V=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[K],exports:[K]})],e)}(),U=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(){_()&&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}(),Z=function(e){var t=document.createElement("div");return t.style.cssText=e,t},G="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",W=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=G,e.setAttribute("dir","ltr"),this.expand=Z(G),this.expandChild=Z("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=Z(G);var t=Z("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(y.merge)(Object(y.fromEvent)(e.shrink,"scroll"),Object(y.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(U),q="undefined"!=typeof ResizeObserver,Y=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 q},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}(U),X=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(y.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)}(),$=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=Y.supported()?Y:W;this.resizeService=new r(e,t,n);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(g.auditTime)(a)).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",[X,o.ElementRef,o.NgZone])],e)}(),J=[$],Q=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[J],exports:[J],providers:[X]})],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"}(H||(H={}));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){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Promise.resolve(null);t.isPresent=function(e){return null!=e},t.tick=function(e){return i.then(e)},t.closest=function(e,t){if(e.closest)return e.closest(t);for(var n=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&9!==i.nodeType;){if(n(i,t))return i;i=i.parentNode}},t.replaceMessagePlaceholder=function(e,t,n){return e.replace(new RegExp("{\\s*"+t+"\\s*}","g"),n)},t.SIZES={small:"sm",medium:"md",large:"lg"};var o={small:"sm",medium:"md",large:"lg",full:"full"};t.getStylingClasses=function(e,n,i,r){switch(n){case"size":return{toRemove:"k-"+e+"-"+t.SIZES[i],toAdd:r?"k-"+e+"-"+t.SIZES[r]:null};case"rounded":return{toRemove:"k-rounded-"+o[i],toAdd:r?"k-rounded-"+o[r]:null};case"fillMode":case"shape":return{toRemove:"k-"+e+"-"+i,toAdd:r?"k-"+e+"-"+r:null}}},t.getThemeColorClasses=function(e,t,n,i,o){return{toRemove:"k-"+e+"-"+t+"-"+i,toAdd:o?"k-"+e+"-"+n+"-"+o:null}}},function(e,t){e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return u})),n.d(t,"validatePackage",(function(){return c}));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 a=function(e,t){var n=r[e-=0];if(void 0===a.eVebMg){a.JsjtEd=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),o="",r=0,a=0;n=i.charAt(a++);~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)},a.rqrXoU={},a.eVebMg=!0}var i=a.rqrXoU[e];return void 0===i?(n=a.JsjtEd(n),a.rqrXoU[e]=n):n=i,n},s={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="} '},p=new Map;function u(e){}function c(e){if(p[a("0x14")](e[a("0x4")])){if(a("0x35")==a("0x35"))return p[a("0x36")](e[a("0x4")])}var t,n=e[a("0x1")]?" v"+e[a("0x1")]:"",i=e[a("0x4")]+n,o=JSON[a("0x9")](s[a("0x34")]),r=!o[a("0x26")]&&!o[a("0x38")],u=o[a("0x26")]&&typeof KendoLicensing===a("0x2b"),c=function(e,t){var n=e[a("0x8")];if(!n||!n[a("0x2d")]){if(a("0x11")==a("0x11"))return null}var i=new Set(t);return n[a("0x2a")]((function(e){if(a("0xa")!==a("0x18"))return i[a("0x14")](e[a("0x39")])}))}(o,e[a("0x2")]);if(r||u)if(a("0x29")!=a("0x29")){}else t={type:0,packageName:i,docsUrl:e[a("0x27")]};else if(a("0xf")===a("0x24")){}else if(c){if(a("0x12")!=a("0x12")){}else if(c[a("0x37")]<e[a("0x1c")])if(a("0x21")===a("0x32")){}else t={type:2,packageName:i,publishDate:l(e[a("0x1c")]),expiryDate:l(c[a("0x37")]),docsUrl:e[a("0x27")]}}else if(a("0x6")!=a("0x6")){}else t={type:1,packageName:i,docsUrl:e[a("0x27")]};if(t&&typeof console===a("0x30"))if(a("0x5")===a("0x3")){}else{var d=a("0x1b")+e[a("0xe")],h=typeof console[a("0x7")]===a("0x33");if(h)if(a("0xc")!=a("0xc")){}else console[a("0x7")](d);else if(a("0x17")!=a("0x17")){}else console[a("0x1e")](d);if(console[a("0x1e")](function(e){var t=a("0x28")+e[a("0x16")]+"\n";if(2===e[a("0x3a")])if(a("0x20")!=a("0x20")){}else t+=a("0x25")+e[a("0x15")][a("0x2c")]()+a("0xb")+e[a("0x1c")][a("0x2c")]()+".\n";else if(0===e[a("0x3a")])if(a("0x13")!==a("0x10"))t+=a("0xd");else{}else if(1===e[a("0x3a")])if(a("0x2e")===a("0x23")){}else t+=a("0x1d");return t+=a("0x31")+e[a("0x1a")]+a("0x22")}(t)),h)if(a("0x1f")!==a("0x19"))console[a("0x2f")]();else{}}var f=!t;return p[a("0x0")](e[a("0x4")],f),f}function l(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642598733,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){e.exports=o},function(e,t){e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"AlignService",(function(){return te})),n.d(t,"AnimationService",(function(){return ae})),n.d(t,"DOMService",(function(){return Q})),n.d(t,"PositionService",(function(){return ne})),n.d(t,"ResizeService",(function(){return ie})),n.d(t,"ScrollableService",(function(){return oe})),n.d(t,"PopupService",(function(){return le})),n.d(t,"POPUP_CONTAINER",(function(){return ce})),n.d(t,"PopupComponent",(function(){return ue})),n.d(t,"PopupModule",(function(){return he})),n.d(t,"SCALE",(function(){return ee}));var i=n(1),o=n(0),r="bottom",a="center",s="middle",p="left",u="right",c="top",l=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,p=e.margin;void 0===p&&(p={});var c=n.horizontal,l=n.vertical,d=o.horizontal,h=o.vertical,f=p.horizontal||0,m=p.vertical||0,g=t.top,y=t.left;return l===r&&(g+=t.height),l!==a&&l!==s||(g+=Math.round(t.height/2)),h===r&&(g-=i.height,m*=-1),h!==a&&h!==s||(g-=Math.round(i.height/2),m*=-1),c===u&&(y+=t.width),c!==a&&c!==s||(y+=Math.round(t.width/2)),d===u&&(y-=i.width,f*=-1),d!==a&&d!==s||(y-=Math.round(i.width/2),f*=-1),{top:g+m,left:y+f}};function d(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},m=function(e){return h(e).documentElement},g=0;function y(){if(!g&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),g=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return g}function _(e){var t=f(e),n=m(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=y()),i}var b=function(e){if(!e.getBoundingClientRect){var t=_(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}},v=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||m(e)},C=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 S(e){var t=m(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?S(e):{x:e.scrollLeft,y:e.scrollTop}};var w=function(e,t){var n=f(e),i=n.getComputedStyle(e),o=C(e),r=t||v(e),a=e.ownerDocument,s=r!==a.body&&r!==a.documentElement,p={top:0,left:0};if("fixed"!==i.position&&s){var u=n.getComputedStyle(r);(p=C(r)).top+=parseInt(u.borderTopWidth,10),p.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-p.top,left:o.left-p.left,height:o.height,width:o.width}},k=function(e,t){return e?E(e):function(e){var t=v(e);return t?E(t):{x:0,y:0}}(t)},j=function(e,t,n){void 0===n&&(n=1);var i=t?v(t):null,o=w(e,i),r=o.top,a=o.left,s=o.height,p=o.width,u=k(i,e),c=u.x,l=u.y,d=e.ownerDocument,h=i===d.body||i===d.documentElement?1:n;return{top:r+l*h,left:a+c*h,height:s,width:p}};function I(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var x="fit",P="flip",A=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},B=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===a||u===s)&&!(r===a||r===s)){var h=r===c||r===p;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},D=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var p=i.top,u=i.left,c=i.height,l=i.width,d=a.height,h=a.width,f=s.horizontal||0,m=s.vertical||0,g=0,y=0,_=r.vertical===x,b=r.horizontal===x,v=r.vertical===P,C=r.horizontal===P;_&&(y+=A(p,c,d)),b&&(g+=A(u,l,h)),v&&(y+=B({margin:m,offset:p,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),C&&(g+=B({margin:f,offset:u,size:l,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var O=v&&0!==y,S=C&&0!==g,E=_&&0!==y,w=b&&0!==g;return{flipped:S||O,fitted:E||w,flip:{horizontal:S,vertical:O},fit:{horizontal:w,vertical:E},offset:{left:g,top:y}}},z=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},M=function(e,t){for(var n,i,o=O(e),r=t;r&&(n=z(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};T=function(e){if(!F())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},R=!1;var T,N,R,F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},L=n(2),H=n(3),K=n(9),V=n(10),U=n(7),Z=n(6),G=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},W=function(){return"undefined"!=typeof window},q=/auto|scroll/,Y=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 X=function(e){var t,n=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n||(t=e.apply(void 0,i),n=!0),t}}((function(){if(!Object(L.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})),$=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},J=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Q=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 d(e,t)},e.prototype.align=function(e){return l(e)},e.prototype.boundingOffset=function(e){return b(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return J.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return W()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?C(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,a=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=C(n);return n.style.left=o,n.style.top=r,n.offsetHeight,n.style.transition=a,s},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?j(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return I(e,t)},e.prototype.restrictToView=function(e){return D(e)},e.prototype.scrollPosition=function(e){return S(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(L.isDocumentAvailable)()||!W())return t;for(var n=e.parentElement;n;)(q.test(Y(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?C(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||!X())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 _(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(L.isDocumentAvailable)()||!W())return null;var n=M(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(L.isDocumentAvailable)()&&W()&&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)}(),ee=new o.InjectionToken("Popup Document Scale"),te=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,a=e.offset,s=e.positionMode,p=this.scale||1,u="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,p):this.relativeRect(t,n,a,p),c=$(this._dom.offset(n),p);return this._dom.align({anchorAlign:i,anchorRect:u,elementAlign:o,elementRect:c,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=G(this._dom.offset(e),n),a=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=a,s.y/=a);var p=this._dom.stackingElementOffset(t);return 1!==i&&p&&(p.left/=a,p.top/=a),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}($(r,i),p),s),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=G(this._dom.position(e,t,i),n);return $(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(ee)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[Q,Number])],e)}(),ne=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,a=e.collisions,s=e.margin,p=this._dom,u=this.scale||1,c=p.offsetAtPoint(i,n),l=$(c,u),d=$(p.offset(t),u),h=G(d,n),f=e.viewPort||p.windowViewPort(i);f.width=f.width/u,f.height=f.height/u;var m=p.restrictToView({anchorAlign:o,anchorRect:h,collisions:a,elementAlign:r,elementRect:l,margin:s,viewPort:f}),g=p.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:g}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(ee)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[Q,Number])],e)}(),ie=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(L.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(H.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(K.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",[Q,o.NgZone])],e)}(),oe=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(L.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(H.fromEvent)(e,"scroll").pipe(Object(K.auditTime)(1e3/60))}));t.subscription=H.merge.apply(void 0,o).subscribe((function(o){var r=o.target,a=i.filter((function(e){return e===r})).length>0,s=r===document,p=r===window;(a||s||p)&&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",[Q,o.NgZone])],e)}(),re={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)"}}}},ae=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=re[i];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,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(V.style)(t.start),Object(V.animate)(o+"ms ease-in",Object(V.style)(t.end))]),a=this.player=r.create(e);a.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),a.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",[V.AnimationBuilder])],e)}(),se={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583997,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"},pe={left:-1e4,top:0},ue=function(){function e(e,t,n,i,r,a,s,p,u){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=a,this.animationService=s,this._renderer=p,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=pe,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(U.validatePackage)(se),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=pe,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;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(H.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(L.isDocumentAvailable)()){var t,n,i,o,r,a,s=this.position(),p=s.flip,u=s.offset;(!this.currentOffset||(t=this.currentOffset,n=u,i=t.left,o=t.top,r=n.left,a=n.top,Math.abs(i-r)>=1||Math.abs(o-a)>=1))&&(this.currentOffset=u,Object(L.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:u,flip:p})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,p),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(L.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)(L.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",L.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[te,ae,Q,ne,ie,oe],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,te,Q,ne,ie,oe,ae,o.Renderer2,o.NgZone])],e)}(),ce=new o.InjectionToken("Popup Container"),le=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 a=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=a)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:a,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(ue,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)(ce)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),de=[ue],he=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[de],entryComponents:[de],exports:[de],imports:[Z.CommonModule,L.ResizeSensorModule],providers:[le]})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(17),a=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.ButtonDirective],exports:[r.ButtonDirective]})],e)}();t.ButtonModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(){this.onFocus=new o.EventEmitter}return e.prototype.isFocused=function(e){return e===this.focused},e.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},e.prototype.resetFocus=function(){this.focused=-1},Object.defineProperty(e.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex=e,this.onFocus.emit(e)},enumerable:!0,configurable:!0}),e=i.__decorate([o.Injectable()],e)}();t.FocusService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}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=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]"}),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ButtonItemTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.NAVIGATION_CONFIG=new i.InjectionToken("navigation.config")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(24),a=n(2),s=n(4),p=n(7),u=n(8),c=n(5),l=function(){function e(e,t,n,i,r){var a=this;this.service=n,this.ngZone=r,this.toggleable=!1,this.role="button",this.selectedChange=new o.EventEmitter,this.click=new o.EventEmitter,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._size="medium",this._rounded="medium",this._shape="rectangle",this._fillMode="solid",this._themeColor="base",this._focused=!1,this.domEvents=[],p.validatePackage(u.packageMetadata),this.direction=i.rtl?"rtl":"ltr",this.localizationChangeSubscription=i.changes.subscribe((function(e){var t=e.rtl;return a.direction=t?"rtl":"ltr"})),this.element=e.nativeElement,this.renderer=t}return Object.defineProperty(e.prototype,"togglable",{get:function(){return this.toggleable},set:function(e){this.toggleable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected||!1},set:function(e){this._selected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.element.tabIndex},set:function(e){this.element.tabIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{set:function(e){var t=this;e?this.iconSetter(e,(function(){t.isIcon=!0;var n="k-button-icon k-icon k-i-"+e;t.addIcon(n)})):(this.isIcon=!1,this.updateIconNode())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{set:function(e){var t=this;e?this.iconSetter(e,(function(){t.isIconClass=!0;var n="k-button-icon k-icon "+e;t.addIcon(n)})):(this.isIconClass=!1,this.updateIconNode())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageUrl",{set:function(e){e?this.iconSetter(e,this.addImgIcon.bind(this)):this.removeImageNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.isDisabled},set:function(e){this.isDisabled=e,this.renderer.setProperty(this.element,"disabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"themeColor",{get:function(){return this._themeColor},set:function(e){this.handleThemeColor(e),this._themeColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){return this._shape},set:function(e){this.handleClasses(e,"shape"),this._shape=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._focused},set:function(e){this.toggleClass("k-focus",e),this._focused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classButton",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isToggleable",{get:function(){return this.toggleable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"roleSetter",{get:function(){return this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classDisabled",{get:function(){return this.isDisabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classActive",{get:function(){return this.selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getDirection",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.onFocus=function(){this.isFocused=!0},e.prototype.onBlur=function(){this.isFocused=!1},Object.defineProperty(e.prototype,"primary",{set:function(e){this.themeColor=e?"primary":"base"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"look",{set:function(e){switch(e){case"default":this.fillMode="solid";break;default:this.fillMode=e}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t="SPAN"===this.element.tagName;this.addTextSpan(),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.element,"click",e._onButtonClick.bind(e))),e.domEvents.push(e.renderer.listen(e.element,"keydown",(function(n){var i=n.keyCode===a.Keys.Space||n.keyCode===a.Keys.Enter;t&&i&&(e.click.emit(n),e._onButtonClick())})))}))},e.prototype.ngOnChanges=function(e){(a.isChanged("togglable",e)||a.isChanged("toggleable",e))&&this.toggleAriaPressed(this.toggleable)},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","shape","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngAfterViewChecked=function(){this.setIconTextClasses()},e.prototype.ngOnDestroy=function(){this.imageNode=null,this.iconNode=null,this.iconSpanNode=null,this.renderer=null,this.localizationChangeSubscription.unsubscribe(),clearTimeout(this.deferTimeout),this.domEvents.forEach((function(e){return e()}))},e.prototype.focus=function(){a.isDocumentAvailable()&&(this.element.focus(),this.isFocused=!0)},e.prototype.blur=function(){a.isDocumentAvailable()&&(this.element.blur(),this.isFocused=!1)},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element,e,t)},e.prototype.removeAttribute=function(e){this.renderer.removeAttribute(this.element,e)},e.prototype.setSelected=function(e){var t=this,n=this.selected!==e;this.selected=e,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-selected",this.selected),n&&a.hasObservers(this.selectedChange)&&this.ngZone.run((function(){t.selectedChange.emit(e)}))},e.prototype.toggleAriaPressed=function(e){a.isDocumentAvailable()&&(e?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))},e.prototype.hasText=function(){return a.isDocumentAvailable()&&this.element.textContent.trim().length>0},e.prototype.addImgIcon=function(e){var t=this.renderer;this.iconSpanNode=t.createElement("span"),t.setProperty(this.iconSpanNode,"className","k-button-icon k-icon"),this.imageNode?t.setProperty(this.imageNode,"src",e):a.isDocumentAvailable()&&(this.imageNode=t.createElement("img"),t.setProperty(this.imageNode,"src",e),t.setProperty(this.imageNode,"className","k-image"),t.setAttribute(this.imageNode,"role","presentation")),this.iconSpanNode.appendChild(this.imageNode),this.prependChild(this.iconSpanNode)},e.prototype.addIcon=function(e){var t=this.renderer;this.iconNode?t.setProperty(this.iconNode,"className",e):a.isDocumentAvailable()&&(this.iconNode=t.createElement("span"),t.setProperty(this.iconNode,"className",e),t.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))},e.prototype.addTextSpan=function(){var e=this;if(a.isDocumentAvailable()&&this.hasText()){var t=this.renderer.createElement("span");this.renderer.addClass(t,"k-button-text"),Array.from(this.element.childNodes).forEach((function(n){return e.renderer.appendChild(t,n)})),this.renderer.appendChild(this.element,t)}},e.prototype.prependChild=function(e){var t=this;this.defer((function(){t.renderer&&e!==t.element.firstChild&&t.renderer.insertBefore(t.element,e,t.element.firstChild)}))},e.prototype.defer=function(e){var t=this;this.ngZone.runOutsideAngular((function(){t.deferTimeout=setTimeout(e,0)}))},e.prototype.iconSetter=function(e,t){e&&t(e),this.setIconTextClasses()},e.prototype.removeImageNode=function(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.renderer.removeChild(this.element,this.iconSpanNode),this.imageNode=null,this.iconSpanNode=null)},e.prototype.removeIconNode=function(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null),this.iconSpanNode&&(this.renderer.removeChild(this.element,this.iconSpanNode),this.iconSpanNode=null)},e.prototype.updateIconNode=function(){this.isIcon||this.isIconClass||this.removeIconNode()},e.prototype.setIconTextClasses=function(){var e=this.isIcon||this.isIconClass||this.imageNode;this.toggleClass("k-icon-button",e&&!this.hasText())},e.prototype.toggleClass=function(e,t){t?this.renderer.addClass(this.element,e):this.renderer.removeClass(this.element,e)},e.prototype._onButtonClick=function(){var e=this;!this.disabled&&this.service&&this.ngZone.run((function(){e.service.click(e)})),this.togglable&&!this.service&&this.setSelected(!this.selected)},e.prototype.handleClasses=function(e,t){var n=this.element,i=c.getStylingClasses("button",t,this[t],e);"fillMode"===t&&this.handleThemeColor(this.themeColor,this[t],e),i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleThemeColor=function(e,t,n){var i=this.element,o=t||this.fillMode,r=n||this.fillMode,a=c.getThemeColorClasses("button",o,r,this.themeColor,e);this.renderer.removeClass(i,a.toRemove),null!==r&&null!==n&&a.toAdd&&this.renderer.addClass(i,a.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"toggleable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"togglable",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"selected",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"icon",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"iconClass",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"imageUrl",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"disabled",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"themeColor",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"shape",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"click",void 0),i.__decorate([o.HostBinding("class.k-button"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classButton",null),i.__decorate([o.HostBinding("class.k-toggle-button"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isToggleable",null),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"roleSetter",null),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classDisabled",null),i.__decorate([o.HostBinding("class.k-selected"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classActive",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"getDirection",null),i.__decorate([o.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onFocus",null),i.__decorate([o.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onBlur",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"primary",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"look",null),e=i.__decorate([o.Directive({exportAs:"kendoButton",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoButton], span[kendoButton]"}),i.__param(2,o.Optional()),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.KendoButtonService,s.LocalizationService,o.NgZone])],e)}();t.ButtonDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(6),a=n(28),s=n(42),p=n(15),u=n(43),c=[a.ListComponent,s.FocusableDirective,p.ButtonItemTemplateDirective,u.TemplateContextDirective],l=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[c],exports:[c],imports:[r.CommonModule]})],e)}();t.ListModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Undefined=0]="Undefined",e[e.Open=1]="Open",e[e.Close=2]="Close",e[e.Enter=3]="Enter",e[e.EnterPress=4]="EnterPress",e[e.EnterUp=5]="EnterUp",e[e.Tab=6]="Tab",e[e.Esc=7]="Esc",e[e.Navigate=8]="Navigate"}(t.NavigationAction||(t.NavigationAction={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),a=n(31),s=n(2),p=n(19),u=n(16),c=function(){function e(e){this.navigate=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.enter=new o.EventEmitter,this.enterpress=new o.EventEmitter,this.enterup=new o.EventEmitter,this.tab=new o.EventEmitter,this.esc=new o.EventEmitter,this.useLeftRightArrows=e.useLeftRightArrows}return e.prototype.process=function(e){var t,n=e.keyCode,i=e.keyEvent,o=p.NavigationAction.Undefined;if(i===a.KeyEvents.keypress)this.isEnter(n)&&(o=p.NavigationAction.EnterPress);else if(i===a.KeyEvents.keyup)this.isEnter(n)&&(o=p.NavigationAction.EnterUp);else if(e.altKey&&n===s.Keys.ArrowDown)o=p.NavigationAction.Open;else if(e.altKey&&n===s.Keys.ArrowUp)o=p.NavigationAction.Close;else if(this.isEnter(n))o=p.NavigationAction.Enter;else if(n===s.Keys.Escape)o=p.NavigationAction.Esc;else if(n===s.Keys.Tab)o=p.NavigationAction.Tab;else if(n===s.Keys.ArrowUp||this.useLeftRightArrows&&n===s.Keys.ArrowLeft){var r=e.flipNavigation?1:-1,u=e.flipNavigation?e.min:e.max,c=e.flipNavigation?e.max:e.min;t=this.next({current:e.current,start:u,end:c,step:r}),o=p.NavigationAction.Navigate}else if(n===s.Keys.ArrowDown||this.useLeftRightArrows&&n===s.Keys.ArrowRight){r=e.flipNavigation?-1:1,u=e.flipNavigation?e.max:e.min,c=e.flipNavigation?e.min:e.max;t=this.next({current:e.current,start:u,end:c,step:r}),o=p.NavigationAction.Navigate}else n===s.Keys.Home?(t=e.min,o=p.NavigationAction.Navigate):n===s.Keys.End&&(t=e.max,o=p.NavigationAction.Navigate);return o!==p.NavigationAction.Undefined&&this[p.NavigationAction[o].toLowerCase()].emit(t),o},e.prototype.isEnter=function(e){return e===s.Keys.Enter||e===s.Keys.Space},e.prototype.next=function(e){return r.isPresent(e.current)?e.current!==e.end?e.current+e.step:e.end:e.start},e=i.__decorate([o.Injectable(),i.__param(0,o.Inject(u.NAVIGATION_CONFIG)),i.__metadata("design:paramtypes",[Object])],e)}();t.NavigationService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),a=n(4),s=n(7),p=n(8),u=n(5),c=function(){function e(e,t,n,i){this.element=e,this.renderer=t,this.ngZone=n,this.localizationService=i,this.selected=!1,this.removable=!1,this.disabled=!1,this.remove=new o.EventEmitter,this.contentClick=new o.EventEmitter,this.tabIndex=0,this.hostClass=!0,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this.focused=!1,s.validatePackage(p.packageMetadata),this.direction=i.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"themeColor",{get:function(){return this._themeColor},set:function(e){this.handleThemeColor(e),this._themeColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaChecked",{get:function(){return this.selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasIconClass",{get:function(){return!!(this.icon||this.iconClass||this.avatarClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedClass",{get:function(){return this.selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.detachDomEvents&&this.detachDomEvents()},e.prototype.ngAfterViewInit=function(){var e=this,t=this.element.nativeElement;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)})),this.attachElementEventHandlers(t)},Object.defineProperty(e.prototype,"kendoIconClass",{get:function(){return this.verifyIconSettings([this.iconClass,this.avatarClass]),"k-i-"+this.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"customIconClass",{get:function(){return this.verifyIconSettings([this.icon,this.avatarClass]),""+this.iconClass},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipAvatarClass",{get:function(){return this.verifyIconSettings([this.icon,this.iconClass]),""+this.avatarClass},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removeIconClass",{get:function(){return this.removeIcon?""+this.removeIcon:"k-i-close-circle"},enumerable:!0,configurable:!0}),e.prototype.focus=function(){r.isDocumentAvailable()&&this.element.nativeElement.focus()},e.prototype.blur=function(){r.isDocumentAvailable()&&this.element.nativeElement.blur()},e.prototype.onRemoveClick=function(e){this.removable&&this.remove.emit({sender:this,originalEvent:e})},e.prototype.attachElementEventHandlers=function(e){var t=this;this.ngZone.runOutsideAngular((function(){var n=t.renderer.listen(e,"focus",(function(){t.renderer.addClass(e,"k-focus")})),i=t.renderer.listen(e,"blur",(function(){t.renderer.removeClass(e,"k-focus")})),o=t.renderer.listen(e,"click",(function(e){u.closest(e.target,".k-chip-remove-action")||t.ngZone.run((function(){t.contentClick.emit({sender:t,originalEvent:e})}))}));t.detachDomEvents=function(){n(),i(),o()}}))},e.prototype.verifyIconSettings=function(e){if(o.isDevMode()&&e.filter((function(e){return null!=e})).length>0)throw this.renderer.removeClass(this.element.nativeElement,"k-chip-has-icon"),new Error("Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.")},e.prototype.handleClasses=function(e,t){var n=this.element.nativeElement,i=u.getStylingClasses("chip",t,this[t],e);"fillMode"===t&&this.handleThemeColor(this.themeColor,this[t],e),i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleThemeColor=function(e,t,n){var i=this.element.nativeElement,o=t||this.fillMode,r=n||this.fillMode,a=u.getThemeColorClasses("chip",o,r,this.themeColor,e);this.renderer.removeClass(i,a.toRemove),null!==r&&null!==n&&a.toAdd&&this.renderer.addClass(i,a.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"label",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"iconClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"avatarClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"removable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"removeIcon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"themeColor",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"remove",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"contentClick",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([o.HostBinding("attr.aria-checked"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaChecked",null),i.__decorate([o.HostBinding("class.k-chip"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("class.k-chip-has-icon"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasIconClass",null),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("class.k-selected"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"selectedClass",null),i.__decorate([o.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e=i.__decorate([o.Component({selector:"kendo-chip",template:'\n <span\n *ngIf="icon"\n class="k-chip-icon k-icon"\n [ngClass]="kendoIconClass"\n >\n </span>\n\n <span\n *ngIf="iconClass"\n class="k-chip-icon"\n [ngClass]="customIconClass"\n >\n </span>\n\n <span\n *ngIf="avatarClass"\n class="k-chip-avatar k-avatar k-rounded-full"\n >\n <span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>\n </span>\n\n <span class="k-chip-content">\n <span class="k-chip-label" *ngIf="label">\n {{ label }}\n </span>\n <ng-content *ngIf="!label"></ng-content>\n </span>\n\n <span class="k-chip-actions">\n <span class="k-chip-action k-chip-remove-action"\n *ngIf="removable"\n (click)="onRemoveClick($event)"\n >\n <span\n class="k-icon"\n [ngClass]="removeIconClass"\n >\n </span>\n </span>\n </span>\n ',providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.chip"}]}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.NgZone,a.LocalizationService])],e)}();t.ChipComponent=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:"[kendoDialItemTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.DialItemTemplateDirective=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:"[kendoFloatingActionButtonTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.FloatingActionButtonTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(3),a=function(){function e(){this.buttonClicked=new r.Subject,this.buttonClicked$=this.buttonClicked.asObservable()}return e.prototype.click=function(e){this.buttonClicked.next(e)},e=i.__decorate([o.Injectable()],e)}();t.KendoButtonService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(17),r=n(0),a=n(4),s=n(2),p=n(24),u=n(5),c=n(14),l=n(8),d=n(7),h=function(){function e(e,t,n){var i=this;this.service=e,this.element=n,this.selection="multiple",this.navigate=new r.EventEmitter,this._tabIndex=0,this.currentTabIndex=0,d.validatePackage(l.packageMetadata),this.localizationChangeSubscription=t.changes.subscribe((function(e){var t=e.rtl;return i.direction=t?"rtl":"ltr"}))}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this._tabIndex},set:function(e){this._tabIndex=e,this.currentTabIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stretchedClass",{get:function(){return!!this.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getRole",{get:function(){return this.isSelectionSingle()?"radiogroup":"group"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperWidth",{get:function(){return this.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperTabIndex",{get:function(){return this.disabled?void 0:this.currentTabIndex},enumerable:!0,configurable:!0}),e.prototype.keydown=function(e){this.disabled||this.navigateFocus(e)},e.prototype.onFocus=function(){this.currentTabIndex=-1;var e=this.buttons.toArray().findIndex((function(e){return-1!==e.element.tabIndex})),t=-1===e?0:e;this.focus(this.buttons.filter((function(e,n){return n===t})))},e.prototype.focusout=function(e){e.relatedTarget&&e.relatedTarget.parentNode!==this.element.nativeElement&&(this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex)},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.buttonClicked$.subscribe((function(t){var n;e.isSelectionSingle()?(n=!0,e.deactivate(e.buttons.filter((function(e){return e!==t})))):(e.defocus(e.buttons.toArray()),n=!t.selected),t.togglable&&t.setSelected(n),t.setAttribute("tabindex","0")}))},e.prototype.ngOnChanges=function(e){var t=this;s.isChanged("disabled",e)&&this.buttons.forEach((function(e){u.isPresent(t.disabled)&&(e.disabled=t.disabled)}))},e.prototype.ngAfterContentInit=function(){this.buttons.forEach((function(e){e.selected?e.setAttribute("tabindex","0"):e.setAttribute("tabindex","-1")}))},e.prototype.ngAfterViewChecked=function(){this.buttons.length&&(this.buttons.first.renderer.addClass(this.buttons.first.element,"k-group-start"),this.buttons.last.renderer.addClass(this.buttons.last.element,"k-group-end"))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.navigateFocus=function(e){var t=this.buttons.toArray().findIndex((function(e){return-1!==e.element.tabIndex})),n=this.buttons.length-1,i=new c.PreventableEvent;e.keyCode===s.Keys.ArrowRight&&t<n&&(this.navigate.emit(i),i.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter((function(e,n){return n===t+1}))))),e.keyCode===s.Keys.ArrowLeft&&t>0&&(this.navigate.emit(i),i.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter((function(e,n){return n===t-1})))))},e.prototype.deactivate=function(e){e.forEach((function(e){e.setSelected(!1),e.setAttribute("tabindex","-1")}))},e.prototype.activate=function(e){e.forEach((function(e){e.setSelected(!0),e.setAttribute("tabindex","0"),e.focus()}))},e.prototype.defocus=function(e){e.forEach((function(e){e.setAttribute("tabindex","-1")}))},e.prototype.focus=function(e){e.forEach((function(e){e.setAttribute("tabindex","0"),e.focus()}))},e.prototype.verifySettings=function(){if(r.isDevMode()&&this.isSelectionSingle()&&this.buttons.filter((function(e){return e.selected})).length>1)throw new Error("Having multiple selected buttons with single selection mode is not supported")},e.prototype.isSelectionSingle=function(){return"single"===this.selection},i.__decorate([r.Input("disabled"),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input("selection"),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([r.Input("width"),i.__metadata("design:type",String)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"navigate",void 0),i.__decorate([r.ContentChildren(o.ButtonDirective),i.__metadata("design:type",r.QueryList)],e.prototype,"buttons",void 0),i.__decorate([r.HostBinding("class.k-button-group"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperClass",null),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("class.k-button-group-stretched"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"stretchedClass",null),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"getRole",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),i.__decorate([r.HostBinding("style.width"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperWidth",null),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperTabIndex",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),i.__decorate([r.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onFocus",null),i.__decorate([r.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"focusout",null),e=i.__decorate([r.Component({exportAs:"kendoButtonGroup",providers:[p.KendoButtonService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.buttongroup"}],selector:"kendo-buttongroup",template:'\n <ng-content select="[kendoButton]"></ng-content>\n '}),i.__metadata("design:paramtypes",[p.KendoButtonService,a.LocalizationService,r.ElementRef])],e)}();t.ButtonGroupComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(6),a=n(12),s=n(25),p=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[s.ButtonGroupComponent],exports:[s.ButtonGroupComponent],imports:[r.CommonModule,a.ButtonModule]})],e)}();t.ButtonGroupModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(6),a=n(11),s=n(12),p=n(18),u=n(29),c=n(44),l=n(33),d=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[u.SplitButtonComponent,c.LocalizedSplitButtonMessagesDirective,l.SplitButtonCustomMessagesComponent],exports:[u.SplitButtonComponent,p.ListModule,c.LocalizedSplitButtonMessagesDirective,l.SplitButtonCustomMessagesComponent],imports:[r.CommonModule,a.PopupModule,s.ButtonModule,p.ListModule]})],e)}();t.SplitButtonModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(7),a=n(8),s=n(15),p=n(5),u=function(){function e(){this.onItemClick=new o.EventEmitter,this.onItemBlur=new o.EventEmitter,this.sizeClass="",r.validatePackage(a.packageMetadata)}return Object.defineProperty(e.prototype,"size",{set:function(e){this.sizeClass=e?"k-menu-group-"+p.SIZES[e]:""},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e)return this.textField?e[this.textField]:e.text||e},e.prototype.getIconClasses=function(e){var t={};return t[(e.icon?"k-icon k-i-"+e.icon:void 0)||e.iconClass]=!0,t},e.prototype.onClick=function(e){this.onItemClick.emit(e)},e.prototype.onBlur=function(){this.onItemBlur.emit()},i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",s.ButtonItemTemplateDirective)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onItemClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onItemBlur",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),e=i.__decorate([o.Component({selector:"kendo-button-list",template:'\n <ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">\n <li role="menuitem" unselectable="on"\n kendoButtonFocusable\n *ngFor="let dataItem of data; let index = index;"\n class="k-item k-menu-item"\n (click)="onClick(index)"\n (blur)="onBlur()"\n [attr.aria-disabled]="dataItem.disabled ? true : false">\n <ng-template [ngIf]="itemTemplate?.templateRef">\n <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">\n <ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>\n </span>\n </ng-template>\n <ng-template [ngIf]="!itemTemplate?.templateRef">\n <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">\n <span\n *ngIf="dataItem.icon || dataItem.iconClass"\n [ngClass]="getIconClasses(dataItem)"\n ></span>\n <img\n *ngIf="dataItem.imageUrl"\n class="k-image"\n [src]="dataItem.imageUrl"\n alt=""\n >\n <span *ngIf="getText(dataItem)" class="k-menu-link-text">\n {{ getText(dataItem) }}\n </span>\n </span>\n </ng-template>\n </li>\n </ul>\n '}),i.__metadata("design:paramtypes",[])],e)}();t.ListComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),a=n(11),s=n(30),p=n(15),u=n(13),c=n(20),l=n(16),d=n(2),h=n(5),f=n(14),m=n(2),g=n(5),y={provide:l.NAVIGATION_CONFIG,useValue:{useLeftRightArrows:!0}},_=function(e){function t(t,n,i,r,a,s,p,u,c){var l=e.call(this,t,n,i,r,p,u)||this;return l.popupService=a,l.elRef=s,l.localization=p,l.renderer=c,l.text="",l.icon="",l.iconClass="",l.type="button",l.imageUrl="",l.size="medium",l.themeColor="base",l.tabIndex=0,l.arrowButtonIcon="arrow-s",l.buttonClick=new o.EventEmitter,l.itemClick=new o.EventEmitter,l.onFocus=new o.EventEmitter,l.onBlur=new o.EventEmitter,l.open=new o.EventEmitter,l.close=new o.EventEmitter,l.activeArrow=!1,l.listId=d.guid(),l.buttonText="",l.lockFocus=!1,l._rounded="medium",l._fillMode="solid",l._itemClick=l.itemClick,l._blur=l.onBlur,l}return i.__extends(t,e),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this._fillMode="clear"===e?"flat":e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this.isOpen&&this.toggle(!1),this._disabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0,popupClass:""},e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openState",{get:function(){return this._open},set:function(e){if(!this.disabled){var t=new f.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this._toggle(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTabIndex",{get:function(){return this.disabled?-1:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused&&!this._disabled},set:function(e){this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){var e=this.localization.get("splitButtonLabel")||"";return g.replaceMessagePlaceholder(e,"buttonText",this.buttonText)},enumerable:!0,configurable:!0}),t.prototype.onButtonFocus=function(){this.isFocused||(this._isFocused=!0,this.onFocus.emit())},t.prototype.onArrowButtonClick=function(){this.lockFocus=!0,this.togglePopupVisibility()},t.prototype.toggleButtonActiveState=function(e){this._active=e},t.prototype.toggleArrowButtonActiveState=function(e){this.activeArrow=e},t.prototype.onButtonClick=function(){this.lockFocus=!0,this.buttonClick.emit()},t.prototype.onButtonBlur=function(){this.isOpen||this.lockFocus||this.blurWrapper(),this.lockFocus=!1},t.prototype.keydown=function(e){this.keyDownHandler(e),e.keyCode===m.Keys.Space&&(this._active=!0)},t.prototype.keypress=function(e){this.keyPressHandler(e)},t.prototype.keyup=function(e){this._active=!1,e.keyCode!==m.Keys.Space&&this.keyUpHandler(e)},t.prototype.ngAfterViewInit=function(){this.updateButtonText(),this.handleClasses(this.rounded,"rounded")},t.prototype.ngOnChanges=function(e){if(e.hasOwnProperty("text")&&this.updateButtonText(),d.isChanged("popupSettings",e)&&h.isPresent(this.popupRef)){var t=this.popupRef.popup.instance,n=e.popupSettings.currentValue;t.popupClass=n.popupClass,t.animate=n.animate,t.popupAlign=this.popupAlign}},t.prototype.togglePopupVisibility=function(){e.prototype.togglePopupVisibility.call(this),d.isDocumentAvailable()&&this.lockFocus&&this.button.nativeElement.focus()},t.prototype.wrapperContains=function(e){return this.wrapper===e||this.wrapper.contains(e)||this.popupRef&&this.popupRef.popupElement.contains(e)},Object.defineProperty(t.prototype,"anchorAlign",{get:function(){var e={horizontal:this.popupSettings.align||"left",vertical:"bottom"};return"rtl"!==this.direction||h.isPresent(this.popupSettings.align)||(e.horizontal="right"),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupAlign",{get:function(){var e={horizontal:this.popupSettings.align||"left",vertical:"top"};return"rtl"!==this.direction||h.isPresent(this.popupSettings.align)||(e.horizontal="right"),e},enumerable:!0,configurable:!0}),t.prototype.focus=function(){d.isDocumentAvailable()&&this.button.nativeElement.focus()},t.prototype.blur=function(){d.isDocumentAvailable()&&(this.button.nativeElement.blur(),this.blurWrapper())},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.destroyPopup()},t.prototype.toggle=function(e){var t=this;this.disabled||h.tick((function(){return t._toggle(void 0===e?!t._open:e)}))},Object.defineProperty(t.prototype,"isOpen",{get:function(){return this.openState},enumerable:!0,configurable:!0}),t.prototype.enterHandler=function(){if(!this.disabled)if(this.openState){var e=this.focusService.focused;h.isPresent(e)&&-1!==e&&this.emitItemClickHandler(e)}else this.buttonClick.emit()},t.prototype.updateButtonText=function(){var e=this;if(d.isDocumentAvailable()){var t=this.wrapper.innerText.split("\n").join("").trim();setTimeout((function(){return e.buttonText=t}),0)}},Object.defineProperty(t.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.containerRef:e},enumerable:!0,configurable:!0}),t.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},t.prototype.createPopup=function(){var e=this;this.popupRef=this.popupService.open({anchor:this.elRef,anchorAlign:this.anchorAlign,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:this.popupAlign,popupClass:this.popupClasses}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.openState=!1})),this.popupRef.popupOpen.subscribe(this.focusFirstItem.bind(this))},t.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},t.prototype.handleClasses=function(e,t){var n=this.wrapperRef.nativeElement,i=g.getStylingClasses("button",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"text",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"iconClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"type",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"imageUrl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"size",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"fillMode",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"themeColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"disabled",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"popupSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"data",null),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"buttonClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"arrowButtonClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"arrowButtonIcon",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"buttonClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"itemClick",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onBlur",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(p.ButtonItemTemplateDirective,{static:!1}),i.__metadata("design:type",p.ButtonItemTemplateDirective)],t.prototype,"itemTemplate",void 0),i.__decorate([o.ViewChild("button",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"button",void 0),i.__decorate([o.ViewChild("arrowButton",{static:!0,read:o.ElementRef}),i.__metadata("design:type",o.ElementRef)],t.prototype,"arrowButton",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],t.prototype,"popupTemplate",void 0),i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],t.prototype,"containerRef",void 0),i.__decorate([o.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"isFocused",null),i.__decorate([o.HostBinding("class.k-split-button"),o.HostBinding("class.k-button-group"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"widgetClasses",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"dir",null),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"keydown",null),i.__decorate([o.HostListener("keypress",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"keypress",null),i.__decorate([o.HostListener("keyup",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"keyup",null),t=i.__decorate([o.Component({exportAs:"kendoSplitButton",providers:[u.FocusService,c.NavigationService,y,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.splitbutton"}],selector:"kendo-splitbutton",template:'\n <ng-container kendoSplitButtonLocalizedMessages\n i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"\n splitButtonLabel="{{ \'{buttonText} splitbutton\' }}">\n </ng-container>\n <button\n kendoButton\n #button\n [type]="type"\n [tabindex]="componentTabIndex"\n [disabled]="disabled"\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [themeColor]="themeColor"\n [icon]="icon"\n [class.k-active]="active"\n [class.k-icon-button]="!text && icon"\n [iconClass]="iconClass"\n [imageUrl]="imageUrl"\n [ngClass]="buttonClass"\n (focus)="onButtonFocus()"\n (click)="onButtonClick()"\n (blur)="onButtonBlur()"\n (mousedown)="toggleButtonActiveState(true)"\n (mouseup)="toggleButtonActiveState(false)"\n [attr.aria-disabled]="disabled"\n [attr.aria-expanded]="openState"\n [attr.aria-haspopup]="true"\n [attr.aria-owns]="listId"\n [attr.aria-label]="ariaLabel"\n >\n <span *ngIf="text" class="k-button-text">\n {{ text }}\n </span><ng-content></ng-content>\n </button>\n <button\n kendoButton\n #arrowButton\n type="button"\n [class.k-active]="activeArrow"\n [disabled]="disabled"\n [icon]="arrowButtonIcon"\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n [tabindex]="-1"\n [ngClass]="arrowButtonClass"\n (click)="onArrowButtonClick()"\n (mousedown)="toggleArrowButtonActiveState(true)"\n (mouseup)="toggleArrowButtonActiveState(false)"\n ></button>\n <ng-template #popupTemplate>\n <kendo-button-list\n [id]="listId"\n [data]="data"\n [textField]="textField"\n [itemTemplate]="itemTemplate"\n (onItemClick)="onItemClick($event)"\n (keydown)="keyDownHandler($event)"\n (keypress)="keyPressHandler($event)"\n (keyup)="keyUpHandler($event)"\n [attr.dir]="dir"\n [size]="size"\n >\n </kendo-button-list>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[u.FocusService,c.NavigationService,o.ElementRef,o.NgZone,a.PopupService,o.ElementRef,r.LocalizationService,o.ChangeDetectorRef,o.Renderer2])],t)}(s.ListButton);t.SplitButtonComponent=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(9),r=n(31),a=n(19),s=n(2),p=n(5),u=n(7),c=n(8),l=function(){function e(e,t,n,i,o,r){var a=this;this.focusService=e,this.navigationService=t,this.wrapperRef=n,this._zone=i,this.cdr=r,this._open=!1,this._disabled=!1,this._active=!1,this._popupSettings={animate:!0,popupClass:""},this.listId=s.guid(),this._isFocused=!1,u.validatePackage(c.packageMetadata),this.focusService=e,this.navigationService=t,this.wrapper=n.nativeElement,this.localizationChangeSubscription=o.changes.subscribe((function(e){var t=e.rtl;return a.direction=t?"rtl":"ltr"})),this.subscribeEvents()}return Object.defineProperty(e.prototype,"popupClasses",{get:function(){var e=["k-menu-popup"];return this._popupSettings.popupClass&&e.push(this._popupSettings.popupClass),e.join(" ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openState",{get:function(){return this._open},set:function(e){this._open=e},enumerable:!0,configurable:!0}),e.prototype.togglePopupVisibility=function(){this._disabled||(this.openState=!this.openState,this.openState||this.focusService.focus(-1))},e.prototype.onItemClick=function(e){var t=this;this.emitItemClickHandler(e),setTimeout((function(){return t.focusWrapper()}),1)},e.prototype.ngOnDestroy=function(){this.openState=!1,this.unsubscribeEvents(),clearTimeout(this.focusFirstTimeout),clearTimeout(this.blurTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.subscribeEvents=function(){s.isDocumentAvailable()&&(this.subscribeListItemFocusEvent(),this.subscribeComponentBlurredEvent(),this.subscribeNavigationEvents())},e.prototype.subscribeListItemFocusEvent=function(){var e=this;this.focusSubscription=this.focusService.onFocus.subscribe((function(){e._isFocused=!0}))},e.prototype.subscribeComponentBlurredEvent=function(){var e=this;this._zone.runOutsideAngular((function(){e.tabSubscription=e.navigationService.tab.pipe(o.filter((function(){return e._isFocused}))).subscribe(e.handleTab.bind(e)),e.componentBlurredSubscription=i.fromEvent(document,"click").pipe(o.filter((function(t){return!e.wrapperContains(t.target)})),o.filter((function(){return e._isFocused}))).subscribe((function(){return e._zone.run((function(){return e.blurWrapper()}))}))}))},e.prototype.subscribeNavigationEvents=function(){var e=this;this.navigationSubscription=this.navigationService.navigate.subscribe(this.focusService.focus.bind(this.focusService)),this.enterUpSubscription=this.navigationService.enterup.subscribe((function(){e.enterHandler(),e.focusWrapper()})),this.openSubscription=this.navigationService.open.subscribe((function(){e._open?e.focusWrapper():(e.togglePopupVisibility(),e.focusFirstItem())})),this.closeSubscription=i.merge(this.navigationService.close,this.navigationService.esc).subscribe((function(){return e.focusWrapper()}))},e.prototype.enterHandler=function(){},e.prototype.unsubscribeEvents=function(){s.isDocumentAvailable()&&(this.unsubscribe(this.componentBlurredSubscription),this.unsubscribe(this.focusSubscription),this.unsubscribe(this.navigationSubscription),this.unsubscribe(this.enterPressSubscription),this.unsubscribe(this.enterUpSubscription),this.unsubscribe(this.openSubscription),this.unsubscribe(this.closeSubscription),this.unsubscribe(this.tabSubscription))},e.prototype.unsubscribe=function(e){e&&e.unsubscribe()},e.prototype.keyDownHandler=function(e){this.keyHandler(e)},e.prototype.keyPressHandler=function(e){this.keyHandler(e,r.KeyEvents.keypress)},e.prototype.keyUpHandler=function(e){this.keyHandler(e,r.KeyEvents.keyup)},e.prototype.keyHandler=function(e,t){if(!this._disabled){var n=this.focusService.focused||0,i=e,o=this.navigationService.process({altKey:i.altKey,current:n,keyCode:i.keyCode,keyEvent:t,max:this._data?this._data.length-1:0,min:0});o!==a.NavigationAction.Undefined&&o!==a.NavigationAction.Tab&&(o!==a.NavigationAction.Enter||o===a.NavigationAction.Enter&&this._open)&&(e.keyCode===s.Keys.Space&&o===a.NavigationAction.EnterUp?this._open=!1:i.preventDefault())}},e.prototype.emitItemClickHandler=function(e){var t=this._data[e];this._itemClick&&this._itemClick.emit(t),t&&t.click&&!t.disabled&&t.click(t)},e.prototype.focusFirstItem=function(){var e=this;this._data&&p.isPresent(this._data[0])&&(this.focusFirstTimeout=setTimeout((function(){return e.focusService.focus(0)}),1))},e.prototype.focusWrapper=function(){this._open&&(this.togglePopupVisibility(),this.focusButton())},e.prototype.wrapperContains=function(e){return this.wrapper===e||this.wrapper.contains(e)},e.prototype.blurWrapper=function(e){void 0===e&&(e=!0),this._open&&this.togglePopupVisibility(),this._isFocused=!1,e&&(this._blur.emit(),this.cdr.markForCheck())},e.prototype.focusButton=function(){this.button&&this.button.nativeElement.focus()},e.prototype.handleTab=function(){this.focusButton(),this.blurWrapper(!1)},e}();t.ListButton=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.keydown=0]="keydown",e[e.keypress=1]="keypress",e[e.keyup=2]="keyup"}(t.KeyEvents||(t.KeyEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"splitButtonLabel",void 0),t}(n(4).ComponentMessages);t.Messages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),a=n(32),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-splitbutton-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.SplitButtonCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(6),a=n(11),s=n(18),p=n(12),u=n(35),c=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[u.DropDownButtonComponent],exports:[u.DropDownButtonComponent,s.ListModule],imports:[r.CommonModule,a.PopupModule,s.ListModule,p.ButtonModule]})],e)}();t.DropDownButtonModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),a=n(11),s=n(2),p=n(15),u=n(5),c=n(30),l=n(28),d=n(13),h=n(20),f=n(16),m=n(14),g=n(3),y={provide:f.NAVIGATION_CONFIG,useValue:{useLeftRightArrows:!0}},_=function(e){function t(t,n,i,r,a,p,u,c){var l=e.call(this,t,n,i,r,u,c)||this;return l.popupService=a,l.elRef=p,l.icon="",l.iconClass="",l.imageUrl="",l.size="medium",l.shape="rectangle",l.rounded="medium",l.themeColor="base",l.tabIndex=0,l.itemClick=new o.EventEmitter,l.open=new o.EventEmitter,l.close=new o.EventEmitter,l.onFocus=new o.EventEmitter,l.onBlur=new o.EventEmitter,l.listId=s.guid(),l._fillMode="solid",l._itemClick=l.itemClick,l._blur=l.onBlur,l}return i.__extends(t,e),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0,popupClass:""},e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){e&&this.openState&&(this.openState=!1),this._disabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this._fillMode="clear"===e?"flat":e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openState",{get:function(){return this._open},set:function(e){if(!this.disabled){var t=new m.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this._toggle(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTabIndex",{get:function(){return this.disabled?-1:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{get:function(){return this._isFocused&&!this._disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),t.prototype.keydown=function(e){this.keyDownHandler(e),e.keyCode===s.Keys.Space&&(this._active=!0)},t.prototype.keypress=function(e){this.keyPressHandler(e)},t.prototype.keyup=function(e){this.keyUpHandler(e),this._active=!1},t.prototype.mousedown=function(e){this._disabled&&e.preventDefault(),this._active=!0},t.prototype.mouseup=function(e){this._disabled&&e.preventDefault(),this._active=!1},t.prototype.openPopup=function(){this.togglePopupVisibility()},t.prototype.onButtonBlur=function(){this.isOpen||this.blurWrapper()},Object.defineProperty(t.prototype,"anchorAlign",{get:function(){var e={horizontal:this.popupSettings.align||"left",vertical:"bottom"};return"rtl"!==this.direction||u.isPresent(this.popupSettings.align)||(e.horizontal="right"),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupAlign",{get:function(){var e={horizontal:this.popupSettings.align||"left",vertical:"top"};return"rtl"!==this.direction||u.isPresent(this.popupSettings.align)||(e.horizontal="right"),e},enumerable:!0,configurable:!0}),t.prototype.focus=function(){s.isDocumentAvailable()&&this.button.nativeElement.focus()},t.prototype.blur=function(){s.isDocumentAvailable()&&(this.button.nativeElement.blur(),this.blurWrapper())},t.prototype.ngOnChanges=function(e){if(s.isChanged("popupSettings",e)&&u.isPresent(this.popupRef)){var t=this.popupRef.popup.instance,n=e.popupSettings.currentValue;t.popupClass=n.popupClass,t.animate=n.animate,t.popupAlign=this.popupAlign}},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.destroyPopup()},t.prototype.toggle=function(e){var t=this;this.disabled||u.tick((function(){return t._toggle(void 0===e?!t._open:e)}))},Object.defineProperty(t.prototype,"isOpen",{get:function(){return this.openState},enumerable:!0,configurable:!0}),t.prototype.handleFocus=function(){this._disabled||this._isFocused||(this._isFocused=!0,this.onFocus.emit())},t.prototype.wrapperContains=function(e){return this.wrapper===e||this.wrapper.contains(e)||this.popupRef&&this.popupRef.popupElement.contains(e)},t.prototype.subscribeNavigationEvents=function(){this.navigationSubscription=this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this)),this.enterUpSubscription=this.navigationService.enterup.subscribe(this.onNavigationEnterUp.bind(this)),this.openSubscription=this.navigationService.open.subscribe(this.onNavigationOpen.bind(this)),this.closeSubscription=g.merge(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this))},t.prototype.onNavigationEnterUp=function(){if(this._disabled||this.openState||(this._active=!1),this.openState){var e=this.focusService.focused;u.isPresent(e)&&-1!==e&&this.emitItemClickHandler(e)}this.togglePopupVisibility(),!this.openState&&s.isDocumentAvailable()&&this.button.nativeElement.focus()},t.prototype.onNavigationOpen=function(){this._disabled||this.openState||this.togglePopupVisibility()},t.prototype.onNavigationClose=function(){this.openState&&(this.togglePopupVisibility(),s.isDocumentAvailable()&&this.button.nativeElement.focus())},t.prototype.onArrowKeyNavigate=function(e){this.focusService.focus(e)},t.prototype._toggle=function(e){this._open!==e&&(this._open=e,this.destroyPopup(),this._open&&this.createPopup())},t.prototype.createPopup=function(){var e=this;this.popupRef=this.popupService.open({anchor:this.elRef,anchorAlign:this.anchorAlign,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:this.popupAlign,popupClass:this.popupClasses}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.openState=!1})),this.popupRef.popupOpen.subscribe(this.focusFirstItem.bind(this))},t.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"iconClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"imageUrl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"popupSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"disabled",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"data",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"size",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"shape",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"rounded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"fillMode",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"themeColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"buttonClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"itemClick",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.Output("focus"),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onBlur",void 0),i.__decorate([o.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"focused",null),i.__decorate([o.HostBinding("class.k-dropdown-button"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"widgetClasses",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"dir",null),i.__decorate([o.ContentChild(p.ButtonItemTemplateDirective,{static:!1}),i.__metadata("design:type",p.ButtonItemTemplateDirective)],t.prototype,"itemTemplate",void 0),i.__decorate([o.ViewChild("button",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"button",void 0),i.__decorate([o.ViewChild("buttonList",{static:!1}),i.__metadata("design:type",l.ListComponent)],t.prototype,"buttonList",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],t.prototype,"popupTemplate",void 0),i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],t.prototype,"container",void 0),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"keydown",null),i.__decorate([o.HostListener("keypress",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"keypress",null),i.__decorate([o.HostListener("keyup",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"keyup",null),i.__decorate([o.HostListener("mousedown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"mousedown",null),i.__decorate([o.HostListener("mouseup",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"mouseup",null),t=i.__decorate([o.Component({exportAs:"kendoDropDownButton",providers:[d.FocusService,h.NavigationService,y,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.dropdownbutton"}],selector:"kendo-dropdownbutton",template:'\n <button kendoButton #button\n role="menu"\n type="button"\n [tabindex]="componentTabIndex"\n [class.k-active]="active"\n [disabled]="disabled"\n [icon]="icon"\n [iconClass]="iconClass"\n [imageUrl]="imageUrl"\n [ngClass]="buttonClass"\n [size]="size"\n [shape]="shape"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n (click)="openPopup()"\n (focus)="handleFocus()"\n (blur)="onButtonBlur()"\n [attr.aria-disabled]="disabled"\n [attr.aria-expanded]="openState"\n [attr.aria-haspopup]="true"\n [attr.aria-owns]="listId"\n >\n <ng-content></ng-content>\n </button>\n <ng-template #popupTemplate>\n <kendo-button-list\n #buttonList\n [id]="listId"\n [data]="data"\n [textField]="textField"\n [itemTemplate]="itemTemplate"\n (onItemClick)="onItemClick($event)"\n (keydown)="keyDownHandler($event)"\n (keypress)="keyPressHandler($event)"\n (keyup)="keyUpHandler($event)"\n [attr.dir]="dir"\n [size]="size"\n >\n </kendo-button-list>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[d.FocusService,h.NavigationService,o.ElementRef,o.NgZone,a.PopupService,o.ElementRef,r.LocalizationService,o.ChangeDetectorRef])],t)}(c.ListButton);t.DropDownButtonComponent=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(6),a=n(21),s=n(37),p=[a.ChipComponent,s.ChipListComponent],u=p.slice(),c=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[u],exports:[p],imports:[r.CommonModule]})],e)}();t.ChipModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),a=n(21),s=n(5),p=n(7),u=n(8),c=function(){function e(e,t,n){this.localizationService=e,this.renderer=t,this.element=n,this.hostClass=!0,this.selection="none",this.selectedChange=new o.EventEmitter,this.remove=new o.EventEmitter,this.role="listbox",this._size="medium",p.validatePackage(u.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"single",{get:function(){return"single"===this.selection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return"multiple"===this.selection},enumerable:!0,configurable:!0}),e.prototype.onClick=function(e){var t=e.target,n=s.closest(t,".k-chip-remove-action"),i=s.closest(t,".k-chip"),o=this.chips.find((function(e){return i===e.element.nativeElement}));if(n&&i){var r={sender:this,originalEvent:e,removedChip:o};this.remove.emit(r)}"none"!==this.selection&&i&&!n&&this.setSelection(o)},e.prototype.ngOnInit=function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this;["size"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngAfterContentInit=function(){var e=this;this.chips.forEach((function(t){e.renderer.setAttribute(t.element.nativeElement,"role","option")}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.selectedChips=function(){return this.chips.reduce((function(e,t,n){return t.selected?e.concat(n):e}),[])},e.prototype.setSelection=function(e){"single"===this.selection&&this.clearSelection(e),e.selected=!e.selected,this.selectedChange.emit(this.selectedChips())},e.prototype.clearSelection=function(e){this.chips.forEach((function(t){e!==t&&(t.selected=!1)}))},e.prototype.handleClasses=function(e,t){var n=this.element.nativeElement,i=s.getStylingClasses("chip-list",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.HostBinding("class.k-chip-list"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"remove",void 0),i.__decorate([o.ContentChildren(a.ChipComponent),i.__metadata("design:type",o.QueryList)],e.prototype,"chips",void 0),i.__decorate([o.HostBinding("class.k-selection-single"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"single",null),i.__decorate([o.HostBinding("class.k-selection-multiple"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"multiple",null),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostListener("click",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),e=i.__decorate([o.Component({selector:"kendo-chiplist, kendo-chip-list",template:"\n <ng-content></ng-content>\n ",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.chiplist"}]}),i.__metadata("design:paramtypes",[r.LocalizationService,o.Renderer2,o.ElementRef])],e)}();t.ChipListComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(6),a=n(39),s=n(22),p=n(23),u=n(47),c=n(48),l=n(18),d=n(2),h=n(11),f=[a.FloatingActionButtonComponent,s.DialItemTemplateDirective,p.FloatingActionButtonTemplateDirective],m=f.concat([u.DialListComponent,c.DialItemComponent]),g=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[m],exports:[f],imports:[r.CommonModule,h.PopupModule,l.ListModule,d.EventsModule]})],e)}();t.FloatingActionButtonModule=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(10),r=n(0),a=n(3),s=n(9),p=n(4),u=n(7),c=n(8),l=n(2),d=n(11),h=n(13),f=n(19),m=n(16),g=n(20),y=n(5),_=n(45),b=n(46),v=n(14),C=n(22),O=n(23),S={provide:m.NAVIGATION_CONFIG,useValue:{useLeftRightArrows:!1}},E={small:"k-fab-sm",medium:"k-fab-md",large:"k-fab-lg"},w={rectangle:"k-fab-rectangle",square:"k-fab-square"},k={small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"},j=function(){function e(e,t,n,i,o,s,p,d){var h=this;this.renderer=e,this.element=t,this.focusService=n,this.navigationService=i,this.ngZone=o,this.popupService=s,this.builder=p,this.localizationService=d,this.positionMode="fixed",this.dialItemAnimation=!0,this.tabIndex=0,this.dialItems=[],this.onBlur=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.dialItemClick=new r.EventEmitter,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.id="k-"+l.guid(),this._themeColor="primary",this._size="medium",this._shape="rectangle",this._disabled=!1,this._align={horizontal:"end",vertical:"bottom"},this._offset={x:"16px",y:"16px"},this._rounded="full",this.subscriptions=new a.Subscription,this.rtl=!1,this.animationEnd=new r.EventEmitter,this.initialSetup=!0,u.validatePackage(c.packageMetadata),this.subscribeNavigationEvents(),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;h.rtl=t,h.direction=h.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"fixedClass",{get:function(){return"fixed"===this.positionMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"absoluteClass",{get:function(){return"absolute"===this.positionMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"themeColor",{get:function(){return this._themeColor},set:function(e){this.handleClasses(e,"themeColor"),this._themeColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){return this._shape},set:function(e){this.handleClasses(e,"shape"),this._shape=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(e){this._align=Object.assign(this._align,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=Object.assign(this._offset,e),this.offsetStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTabIndex",{get:function(){return this.disabled?-1:this.tabIndex},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["shape","size","rounded","themeColor"].forEach((function(t){return e.handleClasses(e[t],t)})),this.renderer.addClass(this.element.nativeElement,this.alignClass()),this.offsetStyles(),this.initialSetup=!1},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"isOpen",{get:function(){return y.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),e.prototype.focus=function(){l.isDocumentAvailable()&&this.button.nativeElement.focus()},e.prototype.blur=function(){l.isDocumentAvailable()&&this.button.nativeElement.blur()},e.prototype.toggleDial=function(e){var t=this;if(!this.disabled&&this.hasDialItems){var n=y.isPresent(e)?e:!this.isOpen;this.disabled||n===this.isOpen||(n?setTimeout((function(){return t.openDial()})):this.closeDial())}},Object.defineProperty(e.prototype,"role",{get:function(){return this.dialItems&&this.dialItems.length?"menubutton":"button"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return y.isPresent(this.isOpen)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaHasPopup",{get:function(){return y.isPresent(this.isOpen)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClasses",{get:function(){var e=[];return this.iconClass&&e.push(""+this.iconClass),this.icon&&e.push("k-fab-icon k-icon k-i-"+this.icon),e},enumerable:!0,configurable:!0}),e.prototype.clickHandler=function(){var e=this;!this.disabled&&this.hasDialItems&&this.ngZone.run((function(){var t=!e.isOpen;e.toggleDialWithEvents(t)}))},e.prototype.keyDownHandler=function(e){this.keyHandler(e)},e.prototype.keyHandler=function(e,t){if(!this.disabled){var n=this.focusService.focused||0,i=e.keyCode,o=this.navigationService.process({altKey:e.altKey,current:n,keyCode:i,keyEvent:t,max:this.dialItems?this.dialItems.length-1:0,min:0,flipNavigation:"bottom"===this.align.vertical});o!==f.NavigationAction.Undefined&&o!==f.NavigationAction.Tab&&e.preventDefault()}},e.prototype.onItemClick=function(e){var t=y.closest(e.target,".k-fab-item");if(t){var n=t.getAttribute("data-fab-item-index");this.emitItemClick(n)}},e.prototype.focusHandler=function(){this.disabled||this.onFocus.emit()},e.prototype.blurHandler=function(){this.onBlur.emit(),this.toggleDialWithEvents(!1)},e.prototype.handleClasses=function(e,t){if(y.isPresent(this.button)&&(this[t]!==e||this.initialSetup)){var n=this.button.nativeElement,i={themeColor:"k-fab-solid-"+this.themeColor,size:E[this.size],shape:w[this.shape],rounded:k[this.rounded]},o={themeColor:e?"k-fab-solid-"+e:null,size:E[e],shape:w[e],rounded:k[e]};this.renderer.removeClass(n,i[t]),o[t]&&this.renderer.addClass(n,o[t])}},e.prototype.onEnterPressed=function(){var e=this.focusService.focused;this.emitItemClick(e)},e.prototype.emitItemClick=function(e){var t=this.dialItems[e];if(t&&!t.disabled){var n={item:t,index:e};this.dialItemClick.emit(n),this.toggleDialWithEvents(!1)}},e.prototype.subscribeNavigationEvents=function(){this.subscriptions.add(this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this))),this.subscriptions.add(this.navigationService.enter.subscribe(this.onNavigationEnterPress.bind(this))),this.subscriptions.add(a.merge(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this)))},e.prototype.onArrowKeyNavigate=function(e){this.focusService.focus(e)},e.prototype.onNavigationEnterPress=function(){var e=this;this.ngZone.run((function(){if(e.isOpen){var t=e.focusService.focused,n=e.dialItems[t];if(n&&n.disabled)return;if(y.isPresent(t)&&-1!==t)return void e.onEnterPressed()}!e.isOpen&&l.isDocumentAvailable()&&(e.toggleDialWithEvents(!0),e.button.nativeElement.focus())}))},e.prototype.onNavigationClose=function(){var e=this;this.isOpen&&this.ngZone.run((function(){e.toggleDialWithEvents(!1),l.isDocumentAvailable()&&e.button.nativeElement.focus()}))},e.prototype.alignClass=function(){return"k-pos-"+this.align.vertical+"-"+this.align.horizontal},e.prototype.toggleDialWithEvents=function(e){if(e!==this.isOpen){var t=new v.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||(e?this.openDial():this.closeDial())}},e.prototype.openPopup=function(){var e=this;if(!this.isOpen){var t=this.icon&&!this.text,n=this.rtl,i=this.align;this.popupRef=this.popupService.open({anchor:this.element.nativeElement,animate:!1,content:this.popupTemplate,anchorAlign:_.getAnchorAlign(i,n),popupAlign:_.getPopupAlign(i,n),popupClass:"k-fab-popup k-popup-transparent"});var o=this.popupRef.popupElement;this.renderer.setStyle(o,"box-shadow","none"),t&&this.subscriptions.add(this.popupRef.popupOpen.subscribe((function(){return e.positionPopup()}))),this.ngZone.runOutsideAngular((function(){e.popupMouseDownListener=e.renderer.listen(o,"mousedown",(function(e){e.preventDefault()}))})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.toggleDialWithEvents(!1)}))}},e.prototype.closePopup=function(){this.isOpen&&(this.popupMouseDownListener&&this.popupMouseDownListener(),this.popupRef.close(),this.popupRef=null)},e.prototype.openDial=function(){this.openPopup(),this.focusService.focus(0),this.dialItemAnimation&&this.isValidAnimation()&&this.playAnimation(!0)},e.prototype.closeDial=function(){var e=this;this.dialItemAnimation&&this.isValidAnimation()?(this.playAnimation(!1),this.animationEnd.pipe(s.take(1)).subscribe((function(){return e.closePopup()}))):this.closePopup()},e.prototype.isValidAnimation=function(){var e=this.dialItemAnimation;return"boolean"==typeof e||0!==e.duration},e.prototype.positionPopup=function(){if(!this.dialItemTemplate){var e=this.element.nativeElement.getBoundingClientRect().width,t=this.popupRef.popupElement,n=t.querySelector(".k-fab-item-icon");if(n){var i=e/2-n.getBoundingClientRect().width/2,o=t.getBoundingClientRect().left,r="end"===this.align.horizontal,a=r?o-i:i+o,s=r?i+o:o-i;t.style.left=this.rtl?s+"px":a+"px"}}},e.prototype.offsetStyles=function(){var e=this.element.nativeElement;this.renderer.setStyle(e,this.horizontalPosition,this.horizontalOffset),this.renderer.setStyle(e,this.verticalPosition,this.verticalOffset)},Object.defineProperty(e.prototype,"hasDialItems",{get:function(){return y.isPresent(this.dialItems)&&0!==this.dialItems.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalPosition",{get:function(){return{top:"top",middle:"top",bottom:"bottom"}[this.align.vertical]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalOffset",{get:function(){return"middle"===this.align.vertical?"16px"===this.offset.y?"50%":"calc(50% + "+this.offset.y+")":this.offset.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalPosition",{get:function(){var e=this.align.horizontal;return{end:this.rtl?"left":"right",center:"left",start:this.rtl?"right":"left"}[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalOffset",{get:function(){return"center"===this.align.horizontal?"16px"===this.offset.x?"50%":"calc(50% + "+this.offset.x+")":this.offset.x},enumerable:!0,configurable:!0}),e.prototype.playerFor=function(e,t){return this.builder.build(t).create(e)},e.prototype.playAnimation=function(e){var t=this,n=this.durationSettings(),i={duration:n.duration,gap:n.gap,align:this.align},o=e?b.openAnimation(i):b.closeAnimation(i),r=this.playerFor(this.popupRef.popupElement,o);r.play(),r.onDone((function(){r&&(t.animationEnd.emit(),r.destroy(),r=null)}))},e.prototype.durationSettings=function(){return{duration:this.animationDuration(),gap:this.animationGap()}},e.prototype.animationGap=function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&y.isPresent(e.gap)?e.gap:90},e.prototype.animationDuration=function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&y.isPresent(e.duration)?e.duration:180},i.__decorate([r.HostBinding("class.k-pos-fixed"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"fixedClass",null),i.__decorate([r.HostBinding("class.k-pos-absolute"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"absoluteClass",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.ViewChild("button",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"button",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ContentChild(C.DialItemTemplateDirective,{static:!0}),i.__metadata("design:type",C.DialItemTemplateDirective)],e.prototype,"dialItemTemplate",void 0),i.__decorate([r.ContentChild(O.FloatingActionButtonTemplateDirective,{static:!0}),i.__metadata("design:type",O.FloatingActionButtonTemplateDirective)],e.prototype,"fabTemplate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"themeColor",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"shape",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"disabled",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"align",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"offset",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"positionMode",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"iconClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"buttonClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dialClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dialItemAnimation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"dialItems",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("dialItemClick"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"dialItemClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),e=i.__decorate([r.Component({selector:"kendo-floatingactionbutton",providers:[h.FocusService,g.NavigationService,S,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.floatingactionbutton"}],template:'\n <button\n #button\n [attr.id]="id"\n [attr.role]="role"\n [tabIndex]="componentTabIndex"\n type="button"\n class="k-fab k-fab-solid"\n [class.k-disabled]="disabled"\n [ngClass]="buttonClass"\n [disabled]="disabled"\n [attr.aria-disabled]="disabled"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-haspopup]="ariaHasPopup"\n (focus)="focusHandler()"\n (blur)="blurHandler()"\n [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n click: clickHandler\n }"\n [scope]="this"\n >\n <ng-template *ngIf="fabTemplate"\n [ngTemplateOutlet]="fabTemplate?.templateRef"\n >\n </ng-template>\n\n <ng-container *ngIf="!fabTemplate">\n <span *ngIf="icon || iconClass" [ngClass]="iconClasses"></span>\n <span *ngIf="text" class="k-fab-text">{{ text }}</span>\n </ng-container>\n </button>\n\n <ng-template #popupTemplate>\n <ul\n kendoDialList\n [ngClass]="dialClass"\n [dialItems]="dialItems"\n [dialItemTemplate]=\'dialItemTemplate?.templateRef\'\n [align]="align"\n [attr.aria-labelledby]="id"\n (click)="onItemClick($event)"\n >\n </ul>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,h.FocusService,g.NavigationService,r.NgZone,d.PopupService,o.AnimationBuilder,p.LocalizationService])],e)}();t.FloatingActionButtonComponent=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17);t.ButtonDirective=i.ButtonDirective,t.Button=i.ButtonDirective;var o=n(25);t.ButtonGroupComponent=o.ButtonGroupComponent,t.ButtonGroup=o.ButtonGroupComponent;var r=n(26);t.ButtonGroupModule=r.ButtonGroupModule;var a=n(12);t.ButtonModule=a.ButtonModule;var s=n(41);t.ButtonsModule=s.ButtonsModule;var p=n(29);t.SplitButtonComponent=p.SplitButtonComponent,t.SplitButton=p.SplitButtonComponent;var u=n(27);t.SplitButtonModule=u.SplitButtonModule;var c=n(33);t.SplitButtonCustomMessagesComponent=c.SplitButtonCustomMessagesComponent;var l=n(35);t.DropDownButtonComponent=l.DropDownButtonComponent,t.DropDownButton=l.DropDownButtonComponent;var d=n(34);t.DropDownButtonModule=d.DropDownButtonModule;var h=n(21);t.ChipComponent=h.ChipComponent;var f=n(37);t.ChipListComponent=f.ChipListComponent;var m=n(36);t.ChipModule=m.ChipModule;var g=n(38);t.FloatingActionButtonModule=g.FloatingActionButtonModule;var y=n(39);t.FloatingActionButtonComponent=y.FloatingActionButtonComponent;var _=n(23);t.FloatingActionButtonTemplateDirective=_.FloatingActionButtonTemplateDirective;var b=n(22);t.DialItemTemplateDirective=b.DialItemTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(12),a=n(26),s=n(27),p=n(34),u=n(36),c=n(38),l=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[a.ButtonGroupModule,r.ButtonModule,s.SplitButtonModule,p.DropDownButtonModule,u.ChipModule,c.FloatingActionButtonModule]})],e)}();t.ButtonsModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(13),a=n(2),s=function(){function e(e,t,n){this.focusService=e,this.renderer=n,this.element=t.nativeElement,this.subscribeEvents()}return e.prototype.ngOnInit=function(){this.index===this.focusService.focused?this.renderer.addClass(this.element,"k-focus"):this.renderer.removeClass(this.element,"k-focus")},e.prototype.ngOnDestroy=function(){this.unsubscribeEvents()},e.prototype.subscribeEvents=function(){var e=this;a.isDocumentAvailable()&&(this.focusSubscription=this.focusService.onFocus.subscribe((function(t){e.index===t?(e.renderer.addClass(e.element,"k-focus"),e.element.focus()):e.renderer.removeClass(e.element,"k-focus")})))},e.prototype.unsubscribeEvents=function(){a.isDocumentAvailable()&&this.focusSubscription&&this.focusSubscription.unsubscribe()},i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"index",void 0),e=i.__decorate([o.Directive({selector:"[kendoButtonFocusable]"}),i.__metadata("design:paramtypes",[r.FocusService,o.ElementRef,o.Renderer2])],e)}();t.FocusableDirective=s},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.viewContainerRef=e}return Object.defineProperty(e.prototype,"templateContext",{set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"templateContext",null),e=i.__decorate([o.Directive({selector:"[templateContext]"}),i.__metadata("design:paramtypes",[o.ViewContainerRef])],e)}();t.TemplateContextDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),a=n(32),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoSplitButtonLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedSplitButtonMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAnchorAlign=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),"bottom"===e.vertical&&(n.vertical="top"),"bottom"===e.vertical&&"end"===e.horizontal&&(n.horizontal=t?"left":"right",n.vertical="top"),n},t.getPopupAlign=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),"bottom"===e.vertical&&(n.vertical="bottom"),"bottom"===e.vertical&&"end"===e.horizontal&&(n.horizontal=t?"left":"right",n.vertical="bottom"),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10);t.openAnimation=function(e){var t="bottom"===e.align.vertical,n=e.duration,o=e.gap;return i.sequence([i.query(".k-fab-item",[i.style({opacity:0,transform:"translateY("+(t?"8px":"-8px")+")"}),i.stagger(o,[i.animate(n+"ms ease-in",i.style({opacity:"*",transform:"translateY(0)"}))])],{optional:!0})])},t.closeAnimation=function(e){var t="bottom"===e.align.vertical,n=e.duration,o=e.gap;return i.sequence([i.query(".k-fab-item",[i.style({opacity:"*",transform:"translateY(0)"}),i.stagger(-o,[i.animate(n+"ms ease-in",i.style({opacity:0,transform:"translateY("+(t?"8px":"-8px")+")"}))])],{optional:!0})])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(3),a=n(13),s=function(){function e(e,t){var n=this;this.focusService=e,this.cdr=t,this.hostClass=!0,this.subscriptions=new r.Subscription,this.subscriptions.add(this.focusService.onFocus.subscribe((function(){return n.cdr.detectChanges()})))}return Object.defineProperty(e.prototype,"bottomClass",{get:function(){return"top"===this.align.vertical||"middle"===this.align.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topClass",{get:function(){return"bottom"===this.align.vertical},enumerable:!0,configurable:!0}),e.prototype.isFocused=function(e){return this.focusService.isFocused(e)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},i.__decorate([o.HostBinding("class.k-fab-items"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("class.k-fab-items-bottom"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"bottomClass",null),i.__decorate([o.HostBinding("class.k-fab-items-top"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"topClass",null),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"dialItems",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"dialItemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"align",void 0),e=i.__decorate([o.Component({selector:"[kendoDialList]",template:'\n <ng-container *ngFor=\'let item of dialItems; let idx = index\'>\n <li\n kendoButtonFocusable\n kendoDialItem\n [item]="dialItems[idx]"\n [index]="idx"\n [dialItemTemplate]="dialItemTemplate"\n [isFocused]="isFocused(idx)"\n [ngClass]=\'item.cssClass\'\n [ngStyle]=\'item.cssStyle\'\n [align]="align"\n >\n </li>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[a.FocusService,o.ChangeDetectorRef])],e)}();t.DialListComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),a=function(){function e(e,t,n){this.element=e,this.renderer=t,this.localisationService=n,this.hostClass=!0,this.role="menuitem"}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){var e=this.item.label;return e||this.itemTitle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indexAttr",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClasses",{get:function(){var e=[];return this.item.iconClass&&e.push(""+this.item.iconClass),this.item.icon&&e.push("k-fab-item-icon k-icon k-i-"+this.item.icon),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemTitle",{get:function(){var e=this.item.icon,t=this.item.itemTitle;return e&&t?t:e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this.element.nativeElement,t=this.localisationService.rtl,n=this.align.horizontal;this.renderer.addClass(e,this.getTextDirectionClass(t,n))},e.prototype.getTextDirectionClass=function(e,t){return{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[e?"rtl":"ltr"]["end"===t?"end":"start"]},i.__decorate([o.HostBinding("class.k-fab-item"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.title"),o.HostBinding("attr.aria-label"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"title",null),i.__decorate([o.HostBinding("attr.data-fab-item-index"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"indexAttr",null),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",Boolean)],e.prototype,"isFocused",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"dialItemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"align",void 0),e=i.__decorate([o.Component({selector:"[kendoDialItem]",template:'\n <ng-template *ngIf="dialItemTemplate"\n [ngTemplateOutlet]="dialItemTemplate"\n [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"\n >\n </ng-template>\n\n <ng-container *ngIf="!dialItemTemplate">\n <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>\n <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.LocalizationService])],e)}();t.DialItemComponent=a}])}));
|
|
20
|
+
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function u(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function a(t,e){return function(n,i){e(n,i,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{a(i.next(t))}catch(t){r(t)}}function u(t){try{a(i.throw(t))}catch(t){r(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((i=i.apply(t,e||[])).next())}))}function l(t,e){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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(r){return function(u){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=e.call(t,s)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}}function d(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function h(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,u=r.length;s<u;s++,o++)i[o]=r[s];return i}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function v(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||u(t,e)}))})}function u(t,e){try{(n=o[t](e)).value instanceof m?Promise.resolve(n.value.v).then(a,c):p(r[0][2],n)}catch(t){p(r[0][3],t)}var n}function a(t){u("next",t)}function c(t){u("throw",t)}function p(t,e){t(e),r.shift(),r.length&&u(r[0][0],r[0][1])}}function g(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:m(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function I(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Promise.resolve(null);e.isPresent=function(t){return null!=t},e.tick=function(t){return i.then(t)},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i&&9!==i.nodeType;){if(n(i,e))return i;i=i.parentNode}},e.replaceMessagePlaceholder=function(t,e,n){return t.replace(new RegExp("{\\s*"+e+"\\s*}","g"),n)},e.SIZES={small:"sm",medium:"md",large:"lg"};var o={small:"sm",medium:"md",large:"lg",full:"full"};e.getStylingClasses=function(t,n,i,r){switch(n){case"size":return{toRemove:"k-"+t+"-"+e.SIZES[i],toAdd:r?"k-"+t+"-"+e.SIZES[r]:null};case"rounded":return{toRemove:"k-rounded-"+o[i],toAdd:r?"k-rounded-"+o[r]:null};case"fillMode":case"shape":return{toRemove:"k-"+t+"-"+i,toAdd:r?"k-"+t+"-"+r:null}}},e.getThemeColorClasses=function(t,e,n,i,o){return{toRemove:"k-"+t+"-"+e+"-"+i,toAdd:o?"k-"+t+"-"+n+"-"+o:null}}},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1645783878,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(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(15),s=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[r.ButtonDirective],exports:[r.ButtonDirective]})],t)}();e.ButtonModule=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function t(){this.onFocus=new o.EventEmitter}return t.prototype.isFocused=function(t){return t===this.focused},t.prototype.focus=function(t){this.isFocused(t)||(this.focused=t,this.onFocus.emit(t))},t.prototype.resetFocus=function(){this.focused=-1},Object.defineProperty(t.prototype,"focused",{get:function(){return this.focusedIndex},set:function(t){this.focusedIndex=t,this.onFocus.emit(t)},enumerable:!0,configurable:!0}),t=i.__decorate([o.Injectable()],t)}();e.FocusService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}();e.PreventableEvent=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function t(t){this.templateRef=t}return t=i.__decorate([o.Directive({selector:"[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]"}),i.__metadata("design:paramtypes",[o.TemplateRef])],t)}();e.ButtonItemTemplateDirective=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1);e.NAVIGATION_CONFIG=new i.InjectionToken("navigation.config")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(22),s=n(2),u=n(3),a=n(5),c=n(6),p=n(4),l=function(){function t(t,e,n,i,r){var s=this;this.service=n,this.ngZone=r,this.toggleable=!1,this.role="button",this.selectedChange=new o.EventEmitter,this.click=new o.EventEmitter,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._size="medium",this._rounded="medium",this._shape="rectangle",this._fillMode="solid",this._themeColor="base",this._focused=!1,this.domEvents=[],a.validatePackage(c.packageMetadata),this.direction=i.rtl?"rtl":"ltr",this.localizationChangeSubscription=i.changes.subscribe((function(t){var e=t.rtl;return s.direction=e?"rtl":"ltr"})),this.element=t.nativeElement,this.renderer=e}return Object.defineProperty(t.prototype,"togglable",{get:function(){return this.toggleable},set:function(t){this.toggleable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||!1},set:function(t){this._selected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.element.tabIndex},set:function(t){this.element.tabIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(t){var e=this;t?this.iconSetter(t,(function(){e.isIcon=!0;var n="k-button-icon k-icon k-i-"+t;e.addIcon(n)})):(this.isIcon=!1,this.updateIconNode())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{set:function(t){var e=this;t?this.iconSetter(t,(function(){e.isIconClass=!0;var n="k-button-icon k-icon "+t;e.addIcon(n)})):(this.isIconClass=!1,this.updateIconNode())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageUrl",{set:function(t){t?this.iconSetter(t,this.addImgIcon.bind(this)):this.removeImageNode()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.isDisabled},set:function(t){this.isDisabled=t,this.renderer.setProperty(this.element,"disabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this.handleClasses(t,"size"),this._size=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(t){this.handleClasses(t,"rounded"),this._rounded=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(t){this.handleClasses(t,"fillMode"),this._fillMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"themeColor",{get:function(){return this._themeColor},set:function(t){this.handleThemeColor(t),this._themeColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shape",{get:function(){return this._shape},set:function(t){this.handleClasses(t,"shape"),this._shape=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._focused},set:function(t){this.toggleClass("k-focus",t),this._focused=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classButton",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isToggleable",{get:function(){return this.toggleable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"roleSetter",{get:function(){return this.role},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classDisabled",{get:function(){return this.isDisabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classActive",{get:function(){return this.selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getDirection",{get:function(){return this.direction},enumerable:!0,configurable:!0}),t.prototype.onFocus=function(){this.isFocused=!0},t.prototype.onBlur=function(){this.isFocused=!1},Object.defineProperty(t.prototype,"primary",{set:function(t){this.themeColor=t?"primary":"base"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"look",{set:function(t){switch(t){case"default":this.fillMode="solid";break;default:this.fillMode=t}},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e="SPAN"===this.element.tagName;this.addTextSpan(),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular((function(){t.domEvents.push(t.renderer.listen(t.element,"click",t._onButtonClick.bind(t))),t.domEvents.push(t.renderer.listen(t.element,"keydown",(function(n){var i=n.keyCode===s.Keys.Space||n.keyCode===s.Keys.Enter;e&&i&&(t.click.emit(n),t._onButtonClick())})))}))},t.prototype.ngOnChanges=function(t){(s.isChanged("togglable",t)||s.isChanged("toggleable",t))&&this.toggleAriaPressed(this.toggleable)},t.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","shape","fillMode"].forEach((function(e){t.handleClasses(t[e],e)}))},t.prototype.ngAfterViewChecked=function(){this.setIconTextClasses()},t.prototype.ngOnDestroy=function(){this.imageNode=null,this.iconNode=null,this.iconSpanNode=null,this.renderer=null,this.localizationChangeSubscription.unsubscribe(),clearTimeout(this.deferTimeout),this.domEvents.forEach((function(t){return t()}))},t.prototype.focus=function(){s.isDocumentAvailable()&&(this.element.focus(),this.isFocused=!0)},t.prototype.blur=function(){s.isDocumentAvailable()&&(this.element.blur(),this.isFocused=!1)},t.prototype.setAttribute=function(t,e){this.renderer.setAttribute(this.element,t,e)},t.prototype.removeAttribute=function(t){this.renderer.removeAttribute(this.element,t)},t.prototype.setSelected=function(t){var e=this,n=this.selected!==t;this.selected=t,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-selected",this.selected),n&&s.hasObservers(this.selectedChange)&&this.ngZone.run((function(){e.selectedChange.emit(t)}))},t.prototype.toggleAriaPressed=function(t){s.isDocumentAvailable()&&(t?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))},t.prototype.hasText=function(){return s.isDocumentAvailable()&&this.element.textContent.trim().length>0},t.prototype.addImgIcon=function(t){var e=this.renderer;this.iconSpanNode=e.createElement("span"),e.setProperty(this.iconSpanNode,"className","k-button-icon k-icon"),this.imageNode?e.setProperty(this.imageNode,"src",t):s.isDocumentAvailable()&&(this.imageNode=e.createElement("img"),e.setProperty(this.imageNode,"src",t),e.setProperty(this.imageNode,"className","k-image"),e.setAttribute(this.imageNode,"role","presentation")),this.iconSpanNode.appendChild(this.imageNode),this.prependChild(this.iconSpanNode)},t.prototype.addIcon=function(t){var e=this.renderer;this.iconNode?e.setProperty(this.iconNode,"className",t):s.isDocumentAvailable()&&(this.iconNode=e.createElement("span"),e.setProperty(this.iconNode,"className",t),e.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))},t.prototype.addTextSpan=function(){var t=this;if(s.isDocumentAvailable()&&this.hasText()){var e=this.renderer.createElement("span");this.renderer.addClass(e,"k-button-text"),Array.from(this.element.childNodes).forEach((function(n){return t.renderer.appendChild(e,n)})),this.renderer.appendChild(this.element,e)}},t.prototype.prependChild=function(t){var e=this;this.defer((function(){e.renderer&&t!==e.element.firstChild&&e.renderer.insertBefore(e.element,t,e.element.firstChild)}))},t.prototype.defer=function(t){var e=this;this.ngZone.runOutsideAngular((function(){e.deferTimeout=setTimeout(t,0)}))},t.prototype.iconSetter=function(t,e){t&&e(t),this.setIconTextClasses()},t.prototype.removeImageNode=function(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.renderer.removeChild(this.element,this.iconSpanNode),this.imageNode=null,this.iconSpanNode=null)},t.prototype.removeIconNode=function(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null),this.iconSpanNode&&(this.renderer.removeChild(this.element,this.iconSpanNode),this.iconSpanNode=null)},t.prototype.updateIconNode=function(){this.isIcon||this.isIconClass||this.removeIconNode()},t.prototype.setIconTextClasses=function(){var t=this.isIcon||this.isIconClass||this.imageNode;this.toggleClass("k-icon-button",t&&!this.hasText())},t.prototype.toggleClass=function(t,e){e?this.renderer.addClass(this.element,t):this.renderer.removeClass(this.element,t)},t.prototype._onButtonClick=function(){var t=this;!this.disabled&&this.service&&this.ngZone.run((function(){t.service.click(t)})),this.togglable&&!this.service&&this.setSelected(!this.selected)},t.prototype.handleClasses=function(t,e){var n=this.element,i=p.getStylingClasses("button",e,this[e],t);"fillMode"===e&&this.handleThemeColor(this.themeColor,this[e],t),i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},t.prototype.handleThemeColor=function(t,e,n){var i=this.element,o=e||this.fillMode,r=n||this.fillMode,s=p.getThemeColorClasses("button",o,r,this.themeColor,t);this.renderer.removeClass(i,s.toRemove),null!==r&&null!==n&&s.toAdd&&this.renderer.addClass(i,s.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"toggleable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"togglable",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"selected",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"icon",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"iconClass",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"imageUrl",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"disabled",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"fillMode",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"themeColor",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"shape",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"role",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"selectedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"click",void 0),i.__decorate([o.HostBinding("class.k-button"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"classButton",null),i.__decorate([o.HostBinding("class.k-toggle-button"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"isToggleable",null),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"roleSetter",null),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"classDisabled",null),i.__decorate([o.HostBinding("class.k-selected"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"classActive",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"getDirection",null),i.__decorate([o.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onFocus",null),i.__decorate([o.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onBlur",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"primary",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"look",null),t=i.__decorate([o.Directive({exportAs:"kendoButton",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoButton], span[kendoButton]"}),i.__param(2,o.Optional()),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.KendoButtonService,u.LocalizationService,o.NgZone])],t)}();e.ButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),s=n(26),u=n(42),a=n(13),c=n(43),p=[s.ListComponent,u.FocusableDirective,a.ButtonItemTemplateDirective,c.TemplateContextDirective],l=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[p],exports:[p],imports:[r.CommonModule]})],t)}();e.ListModule=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Undefined=0]="Undefined",t[t.Open=1]="Open",t[t.Close=2]="Close",t[t.Enter=3]="Enter",t[t.EnterPress=4]="EnterPress",t[t.EnterUp=5]="EnterUp",t[t.Tab=6]="Tab",t[t.Esc=7]="Esc",t[t.Navigate=8]="Navigate"}(e.NavigationAction||(e.NavigationAction={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),s=n(29),u=n(2),a=n(17),c=n(14),p=function(){function t(t){this.navigate=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.enter=new o.EventEmitter,this.enterpress=new o.EventEmitter,this.enterup=new o.EventEmitter,this.tab=new o.EventEmitter,this.esc=new o.EventEmitter,this.useLeftRightArrows=t.useLeftRightArrows}return t.prototype.process=function(t){var e,n=t.keyCode,i=t.keyEvent,o=a.NavigationAction.Undefined;if(i===s.KeyEvents.keypress)this.isEnter(n)&&(o=a.NavigationAction.EnterPress);else if(i===s.KeyEvents.keyup)this.isEnter(n)&&(o=a.NavigationAction.EnterUp);else if(t.altKey&&n===u.Keys.ArrowDown)o=a.NavigationAction.Open;else if(t.altKey&&n===u.Keys.ArrowUp)o=a.NavigationAction.Close;else if(this.isEnter(n))o=a.NavigationAction.Enter;else if(n===u.Keys.Escape)o=a.NavigationAction.Esc;else if(n===u.Keys.Tab)o=a.NavigationAction.Tab;else if(n===u.Keys.ArrowUp||this.useLeftRightArrows&&n===u.Keys.ArrowLeft){var r=t.flipNavigation?1:-1,c=t.flipNavigation?t.min:t.max,p=t.flipNavigation?t.max:t.min;e=this.next({current:t.current,start:c,end:p,step:r}),o=a.NavigationAction.Navigate}else if(n===u.Keys.ArrowDown||this.useLeftRightArrows&&n===u.Keys.ArrowRight){r=t.flipNavigation?-1:1,c=t.flipNavigation?t.max:t.min,p=t.flipNavigation?t.min:t.max;e=this.next({current:t.current,start:c,end:p,step:r}),o=a.NavigationAction.Navigate}else n===u.Keys.Home?(e=t.min,o=a.NavigationAction.Navigate):n===u.Keys.End&&(e=t.max,o=a.NavigationAction.Navigate);return o!==a.NavigationAction.Undefined&&this[a.NavigationAction[o].toLowerCase()].emit(e),o},t.prototype.isEnter=function(t){return t===u.Keys.Enter||t===u.Keys.Space},t.prototype.next=function(t){return r.isPresent(t.current)?t.current!==t.end?t.current+t.step:t.end:t.start},t=i.__decorate([o.Injectable(),i.__param(0,o.Inject(c.NAVIGATION_CONFIG)),i.__metadata("design:paramtypes",[Object])],t)}();e.NavigationService=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),s=n(3),u=n(5),a=n(6),c=n(4),p=function(){function t(t,e,n,i){this.element=t,this.renderer=e,this.ngZone=n,this.localizationService=i,this.selected=!1,this.removable=!1,this.disabled=!1,this.remove=new o.EventEmitter,this.contentClick=new o.EventEmitter,this.tabIndex=0,this.hostClass=!0,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this.focused=!1,u.validatePackage(a.packageMetadata),this.direction=i.rtl?"rtl":"ltr"}return Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this.handleClasses(t,"size"),this._size=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(t){this.handleClasses(t,"rounded"),this._rounded=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(t){this.handleClasses(t,"fillMode"),this._fillMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"themeColor",{get:function(){return this._themeColor},set:function(t){this.handleThemeColor(t),this._themeColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaChecked",{get:function(){return this.selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasIconClass",{get:function(){return!!(this.icon||this.iconClass||this.avatarClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedClass",{get:function(){return this.selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var n=e.rtl;return t.direction=n?"rtl":"ltr"}))},t.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.detachDomEvents&&this.detachDomEvents()},t.prototype.ngAfterViewInit=function(){var t=this,e=this.element.nativeElement;["size","rounded","fillMode"].forEach((function(e){t.handleClasses(t[e],e)})),this.attachElementEventHandlers(e)},Object.defineProperty(t.prototype,"kendoIconClass",{get:function(){return this.verifyIconSettings([this.iconClass,this.avatarClass]),"k-i-"+this.icon},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"customIconClass",{get:function(){return this.verifyIconSettings([this.icon,this.avatarClass]),""+this.iconClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chipAvatarClass",{get:function(){return this.verifyIconSettings([this.icon,this.iconClass]),""+this.avatarClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeIconClass",{get:function(){return this.removeIcon?""+this.removeIcon:"k-i-close-circle"},enumerable:!0,configurable:!0}),t.prototype.focus=function(){r.isDocumentAvailable()&&this.element.nativeElement.focus()},t.prototype.blur=function(){r.isDocumentAvailable()&&this.element.nativeElement.blur()},t.prototype.onRemoveClick=function(t){this.removable&&this.remove.emit({sender:this,originalEvent:t})},t.prototype.attachElementEventHandlers=function(t){var e=this;this.ngZone.runOutsideAngular((function(){var n=e.renderer.listen(t,"focus",(function(){e.renderer.addClass(t,"k-focus")})),i=e.renderer.listen(t,"blur",(function(){e.renderer.removeClass(t,"k-focus")})),o=e.renderer.listen(t,"click",(function(t){c.closest(t.target,".k-chip-remove-action")||e.ngZone.run((function(){e.contentClick.emit({sender:e,originalEvent:t})}))}));e.detachDomEvents=function(){n(),i(),o()}}))},t.prototype.verifyIconSettings=function(t){if(o.isDevMode()&&t.filter((function(t){return null!=t})).length>0)throw this.renderer.removeClass(this.element.nativeElement,"k-chip-has-icon"),new Error("Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.")},t.prototype.handleClasses=function(t,e){var n=this.element.nativeElement,i=c.getStylingClasses("chip",e,this[e],t);"fillMode"===e&&this.handleThemeColor(this.themeColor,this[e],t),i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},t.prototype.handleThemeColor=function(t,e,n){var i=this.element.nativeElement,o=e||this.fillMode,r=n||this.fillMode,s=c.getThemeColorClasses("chip",o,r,this.themeColor,t);this.renderer.removeClass(i,s.toRemove),null!==r&&null!==n&&s.toAdd&&this.renderer.addClass(i,s.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"label",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"iconClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"avatarClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"selected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"removable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"removeIcon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"fillMode",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"themeColor",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"remove",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"contentClick",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),i.__decorate([o.HostBinding("attr.aria-checked"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"ariaChecked",null),i.__decorate([o.HostBinding("class.k-chip"),i.__metadata("design:type",Boolean)],t.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("class.k-chip-has-icon"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"hasIconClass",null),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"disabledClass",null),i.__decorate([o.HostBinding("class.k-selected"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"selectedClass",null),i.__decorate([o.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"focusedClass",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),t=i.__decorate([o.Component({selector:"kendo-chip",template:'\n <span\n *ngIf="icon"\n class="k-chip-icon k-icon"\n [ngClass]="kendoIconClass"\n >\n </span>\n\n <span\n *ngIf="iconClass"\n class="k-chip-icon"\n [ngClass]="customIconClass"\n >\n </span>\n\n <span\n *ngIf="avatarClass"\n class="k-chip-avatar k-avatar k-rounded-full"\n >\n <span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>\n </span>\n\n <span class="k-chip-content">\n <span class="k-chip-label" *ngIf="label">\n {{ label }}\n </span>\n <ng-content *ngIf="!label"></ng-content>\n </span>\n\n <span class="k-chip-actions">\n <span class="k-chip-action k-chip-remove-action"\n *ngIf="removable"\n (click)="onRemoveClick($event)"\n >\n <span\n class="k-icon"\n [ngClass]="removeIconClass"\n >\n </span>\n </span>\n </span>\n ',providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.chip"}]}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.NgZone,s.LocalizationService])],t)}();e.ChipComponent=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function t(t){this.templateRef=t}return t=i.__decorate([o.Directive({selector:"[kendoDialItemTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],t)}();e.DialItemTemplateDirective=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function t(t){this.templateRef=t}return t=i.__decorate([o.Directive({selector:"[kendoFloatingActionButtonTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],t)}();e.FloatingActionButtonTemplateDirective=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(9),s=function(){function t(){this.buttonClicked=new r.Subject,this.buttonClicked$=this.buttonClicked.asObservable()}return t.prototype.click=function(t){this.buttonClicked.next(t)},t=i.__decorate([o.Injectable()],t)}();e.KendoButtonService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(15),r=n(1),s=n(3),u=n(2),a=n(22),c=n(4),p=n(12),l=n(6),d=n(5),h=function(){function t(t,e,n){var i=this;this.service=t,this.element=n,this.selection="multiple",this.navigate=new r.EventEmitter,this._tabIndex=0,this.currentTabIndex=0,d.validatePackage(l.packageMetadata),this.localizationChangeSubscription=e.changes.subscribe((function(t){var e=t.rtl;return i.direction=e?"rtl":"ltr"}))}return Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this._tabIndex},set:function(t){this._tabIndex=t,this.currentTabIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stretchedClass",{get:function(){return!!this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getRole",{get:function(){return this.isSelectionSingle()?"radiogroup":"group"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperWidth",{get:function(){return this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperTabIndex",{get:function(){return this.disabled?void 0:this.currentTabIndex},enumerable:!0,configurable:!0}),t.prototype.keydown=function(t){this.disabled||this.navigateFocus(t)},t.prototype.onFocus=function(){this.currentTabIndex=-1;var t=this.buttons.toArray().findIndex((function(t){return-1!==t.element.tabIndex})),e=-1===t?0:t;this.focus(this.buttons.filter((function(t,n){return n===e})))},t.prototype.focusout=function(t){t.relatedTarget&&t.relatedTarget.parentNode!==this.element.nativeElement&&(this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex)},t.prototype.ngOnInit=function(){var t=this;this.subscription=this.service.buttonClicked$.subscribe((function(e){var n;t.isSelectionSingle()?(n=!0,t.deactivate(t.buttons.filter((function(t){return t!==e})))):(t.defocus(t.buttons.toArray()),n=!e.selected),e.togglable&&e.setSelected(n),e.setAttribute("tabindex","0")}))},t.prototype.ngOnChanges=function(t){var e=this;u.isChanged("disabled",t)&&this.buttons.forEach((function(t){c.isPresent(e.disabled)&&(t.disabled=e.disabled)}))},t.prototype.ngAfterContentInit=function(){this.buttons.forEach((function(t){t.selected?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1")}))},t.prototype.ngAfterViewChecked=function(){this.buttons.length&&(this.buttons.first.renderer.addClass(this.buttons.first.element,"k-group-start"),this.buttons.last.renderer.addClass(this.buttons.last.element,"k-group-end"))},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},t.prototype.ngAfterContentChecked=function(){this.verifySettings()},t.prototype.navigateFocus=function(t){var e=this.buttons.toArray().findIndex((function(t){return-1!==t.element.tabIndex})),n=this.buttons.length-1,i=new p.PreventableEvent;t.keyCode===u.Keys.ArrowRight&&e<n&&(this.navigate.emit(i),i.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter((function(t,n){return n===e+1}))))),t.keyCode===u.Keys.ArrowLeft&&e>0&&(this.navigate.emit(i),i.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter((function(t,n){return n===e-1})))))},t.prototype.deactivate=function(t){t.forEach((function(t){t.setSelected(!1),t.setAttribute("tabindex","-1")}))},t.prototype.activate=function(t){t.forEach((function(t){t.setSelected(!0),t.setAttribute("tabindex","0"),t.focus()}))},t.prototype.defocus=function(t){t.forEach((function(t){t.setAttribute("tabindex","-1")}))},t.prototype.focus=function(t){t.forEach((function(t){t.setAttribute("tabindex","0"),t.focus()}))},t.prototype.verifySettings=function(){if(r.isDevMode()&&this.isSelectionSingle()&&this.buttons.filter((function(t){return t.selected})).length>1)throw new Error("Having multiple selected buttons with single selection mode is not supported")},t.prototype.isSelectionSingle=function(){return"single"===this.selection},i.__decorate([r.Input("disabled"),i.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),i.__decorate([r.Input("selection"),i.__metadata("design:type",String)],t.prototype,"selection",void 0),i.__decorate([r.Input("width"),i.__metadata("design:type",String)],t.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"navigate",void 0),i.__decorate([r.ContentChildren(o.ButtonDirective),i.__metadata("design:type",r.QueryList)],t.prototype,"buttons",void 0),i.__decorate([r.HostBinding("class.k-button-group"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperClass",null),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"disabledClass",null),i.__decorate([r.HostBinding("class.k-button-group-stretched"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"stretchedClass",null),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"getRole",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"dir",null),i.__decorate([r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"ariaDisabled",null),i.__decorate([r.HostBinding("style.width"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperWidth",null),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperTabIndex",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"keydown",null),i.__decorate([r.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onFocus",null),i.__decorate([r.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"focusout",null),t=i.__decorate([r.Component({exportAs:"kendoButtonGroup",providers:[a.KendoButtonService,s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.buttongroup"}],selector:"kendo-buttongroup",template:'\n <ng-content select="[kendoButton]"></ng-content>\n '}),i.__metadata("design:paramtypes",[a.KendoButtonService,s.LocalizationService,r.ElementRef])],t)}();e.ButtonGroupComponent=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),s=n(10),u=n(23),a=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[u.ButtonGroupComponent],exports:[u.ButtonGroupComponent],imports:[r.CommonModule,s.ButtonModule]})],t)}();e.ButtonGroupModule=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),s=n(8),u=n(10),a=n(16),c=n(27),p=n(44),l=n(31),d=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[c.SplitButtonComponent,p.LocalizedSplitButtonMessagesDirective,l.SplitButtonCustomMessagesComponent],exports:[c.SplitButtonComponent,a.ListModule,p.LocalizedSplitButtonMessagesDirective,l.SplitButtonCustomMessagesComponent],imports:[r.CommonModule,s.PopupModule,u.ButtonModule,a.ListModule]})],t)}();e.SplitButtonModule=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(5),s=n(6),u=n(13),a=n(4),c=function(){function t(){this.onItemClick=new o.EventEmitter,this.onItemBlur=new o.EventEmitter,this.sizeClass="",r.validatePackage(s.packageMetadata)}return Object.defineProperty(t.prototype,"size",{set:function(t){this.sizeClass=t?"k-menu-group-"+a.SIZES[t]:""},enumerable:!0,configurable:!0}),t.prototype.getText=function(t){if(t)return this.textField?t[this.textField]:t.text||t},t.prototype.getIconClasses=function(t){var e={};return e[(t.icon?"k-icon k-i-"+t.icon:void 0)||t.iconClass]=!0,e},t.prototype.onClick=function(t){this.onItemClick.emit(t)},t.prototype.onBlur=function(){this.onItemBlur.emit()},i.__decorate([o.Input(),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",u.ButtonItemTemplateDirective)],t.prototype,"itemTemplate",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onItemClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onItemBlur",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),t=i.__decorate([o.Component({selector:"kendo-button-list",template:'\n <ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">\n <li role="menuitem" unselectable="on"\n kendoButtonFocusable\n *ngFor="let dataItem of data; let index = index;"\n class="k-item k-menu-item"\n (click)="onClick(index)"\n (blur)="onBlur()"\n [attr.aria-disabled]="dataItem.disabled ? true : false">\n <ng-template [ngIf]="itemTemplate?.templateRef">\n <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">\n <ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>\n </span>\n </ng-template>\n <ng-template [ngIf]="!itemTemplate?.templateRef">\n <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">\n <span\n *ngIf="dataItem.icon || dataItem.iconClass"\n [ngClass]="getIconClasses(dataItem)"\n ></span>\n <img\n *ngIf="dataItem.imageUrl"\n class="k-image"\n [src]="dataItem.imageUrl"\n alt=""\n >\n <span *ngIf="getText(dataItem)" class="k-menu-link-text">\n {{ getText(dataItem) }}\n </span>\n </span>\n </ng-template>\n </li>\n </ul>\n '}),i.__metadata("design:paramtypes",[])],t)}();e.ListComponent=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),s=n(8),u=n(28),a=n(13),c=n(11),p=n(18),l=n(14),d=n(2),h=n(4),f=n(12),b=n(2),y=n(4),_={provide:l.NAVIGATION_CONFIG,useValue:{useLeftRightArrows:!0}},m=function(t){function e(e,n,i,r,s,u,a,c,p){var l=t.call(this,e,n,i,r,a,c)||this;return l.popupService=s,l.elRef=u,l.localization=a,l.renderer=p,l.text="",l.icon="",l.iconClass="",l.type="button",l.imageUrl="",l.size="medium",l.themeColor="base",l.tabIndex=0,l.arrowButtonIcon="arrow-s",l.buttonClick=new o.EventEmitter,l.itemClick=new o.EventEmitter,l.onFocus=new o.EventEmitter,l.onBlur=new o.EventEmitter,l.open=new o.EventEmitter,l.close=new o.EventEmitter,l.activeArrow=!1,l.listId=d.guid(),l.buttonText="",l.lockFocus=!1,l._rounded="medium",l._fillMode="solid",l._itemClick=l.itemClick,l._blur=l.onBlur,l}return i.__extends(e,t),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(t){this.handleClasses(t,"rounded"),this._rounded=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(t){this._fillMode="clear"===t?"flat":t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this.isOpen&&this.toggle(!1),this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(t){this._popupSettings=Object.assign({animate:!0,popupClass:""},t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(t){this._data=t||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openState",{get:function(){return this._open},set:function(t){if(!this.disabled){var e=new f.PreventableEvent;t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()||this._toggle(t)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTabIndex",{get:function(){return this.disabled?-1:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused&&!this._disabled},set:function(t){this._isFocused=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){var t=this.localization.get("splitButtonLabel")||"";return y.replaceMessagePlaceholder(t,"buttonText",this.buttonText)},enumerable:!0,configurable:!0}),e.prototype.onButtonFocus=function(){this.isFocused||(this._isFocused=!0,this.onFocus.emit())},e.prototype.onArrowButtonClick=function(){this.lockFocus=!0,this.togglePopupVisibility()},e.prototype.toggleButtonActiveState=function(t){this._active=t},e.prototype.toggleArrowButtonActiveState=function(t){this.activeArrow=t},e.prototype.onButtonClick=function(){this.lockFocus=!0,this.buttonClick.emit()},e.prototype.onButtonBlur=function(){this.isOpen||this.lockFocus||this.blurWrapper(),this.lockFocus=!1},e.prototype.keydown=function(t){this.keyDownHandler(t),t.keyCode===b.Keys.Space&&(this._active=!0)},e.prototype.keypress=function(t){this.keyPressHandler(t)},e.prototype.keyup=function(t){this._active=!1,t.keyCode!==b.Keys.Space&&this.keyUpHandler(t)},e.prototype.ngAfterViewInit=function(){this.updateButtonText(),this.handleClasses(this.rounded,"rounded")},e.prototype.ngOnChanges=function(t){if(t.hasOwnProperty("text")&&this.updateButtonText(),d.isChanged("popupSettings",t)&&h.isPresent(this.popupRef)){var e=this.popupRef.popup.instance,n=t.popupSettings.currentValue;e.popupClass=n.popupClass,e.animate=n.animate,e.popupAlign=this.popupAlign}},e.prototype.togglePopupVisibility=function(){t.prototype.togglePopupVisibility.call(this),d.isDocumentAvailable()&&this.lockFocus&&this.button.nativeElement.focus()},e.prototype.wrapperContains=function(t){return this.wrapper===t||this.wrapper.contains(t)||this.popupRef&&this.popupRef.popupElement.contains(t)},Object.defineProperty(e.prototype,"anchorAlign",{get:function(){var t={horizontal:this.popupSettings.align||"left",vertical:"bottom"};return"rtl"!==this.direction||h.isPresent(this.popupSettings.align)||(t.horizontal="right"),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupAlign",{get:function(){var t={horizontal:this.popupSettings.align||"left",vertical:"top"};return"rtl"!==this.direction||h.isPresent(this.popupSettings.align)||(t.horizontal="right"),t},enumerable:!0,configurable:!0}),e.prototype.focus=function(){d.isDocumentAvailable()&&this.button.nativeElement.focus()},e.prototype.blur=function(){d.isDocumentAvailable()&&(this.button.nativeElement.blur(),this.blurWrapper())},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this.destroyPopup()},e.prototype.toggle=function(t){var e=this;this.disabled||h.tick((function(){return e._toggle(void 0===t?!e._open:t)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.openState},enumerable:!0,configurable:!0}),e.prototype.enterHandler=function(){if(!this.disabled)if(this.openState){var t=this.focusService.focused;h.isPresent(t)&&-1!==t&&this.emitItemClickHandler(t)}else this.buttonClick.emit()},e.prototype.updateButtonText=function(){var t=this;if(d.isDocumentAvailable()){var e=this.wrapper.innerText.split("\n").join("").trim();setTimeout((function(){return t.buttonText=e}),0)}},Object.defineProperty(e.prototype,"appendTo",{get:function(){var t=this.popupSettings.appendTo;if(t&&"root"!==t)return"component"===t?this.containerRef:t},enumerable:!0,configurable:!0}),e.prototype._toggle=function(t){this._open=t,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.createPopup=function(){var t=this;this.popupRef=this.popupService.open({anchor:this.elRef,anchorAlign:this.anchorAlign,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:this.popupAlign,popupClass:this.popupClasses}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.openState=!1})),this.popupRef.popupOpen.subscribe(this.focusFirstItem.bind(this))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.handleClasses=function(t,e){var n=this.wrapperRef.nativeElement,i=y.getStylingClasses("button",e,this[e],t);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},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,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"iconClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"imageUrl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"size",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"themeColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"disabled",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"buttonClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"arrowButtonClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"arrowButtonIcon",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"buttonClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"itemClick",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.ContentChild(a.ButtonItemTemplateDirective,{static:!1}),i.__metadata("design:type",a.ButtonItemTemplateDirective)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ViewChild("button",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"button",void 0),i.__decorate([o.ViewChild("arrowButton",{static:!0,read:o.ElementRef}),i.__metadata("design:type",o.ElementRef)],e.prototype,"arrowButton",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],e.prototype,"containerRef",void 0),i.__decorate([o.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isFocused",null),i.__decorate([o.HostBinding("class.k-split-button"),o.HostBinding("class.k-button-group"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"widgetClasses",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),i.__decorate([o.HostListener("keypress",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keypress",null),i.__decorate([o.HostListener("keyup",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keyup",null),e=i.__decorate([o.Component({exportAs:"kendoSplitButton",providers:[c.FocusService,p.NavigationService,_,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.splitbutton"}],selector:"kendo-splitbutton",template:'\n <ng-container kendoSplitButtonLocalizedMessages\n i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"\n splitButtonLabel="{{ \'{buttonText} splitbutton\' }}">\n </ng-container>\n <button\n kendoButton\n #button\n [type]="type"\n [tabindex]="componentTabIndex"\n [disabled]="disabled"\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [themeColor]="themeColor"\n [icon]="icon"\n [class.k-active]="active"\n [class.k-icon-button]="!text && icon"\n [iconClass]="iconClass"\n [imageUrl]="imageUrl"\n [ngClass]="buttonClass"\n (focus)="onButtonFocus()"\n (click)="onButtonClick()"\n (blur)="onButtonBlur()"\n (mousedown)="toggleButtonActiveState(true)"\n (mouseup)="toggleButtonActiveState(false)"\n [attr.aria-disabled]="disabled"\n [attr.aria-expanded]="openState"\n [attr.aria-haspopup]="true"\n [attr.aria-owns]="listId"\n [attr.aria-label]="ariaLabel"\n >\n <span *ngIf="text" class="k-button-text">\n {{ text }}\n </span><ng-content></ng-content>\n </button>\n <button\n kendoButton\n #arrowButton\n type="button"\n [class.k-active]="activeArrow"\n [disabled]="disabled"\n [icon]="arrowButtonIcon"\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n [tabindex]="-1"\n [ngClass]="arrowButtonClass"\n (click)="onArrowButtonClick()"\n (mousedown)="toggleArrowButtonActiveState(true)"\n (mouseup)="toggleArrowButtonActiveState(false)"\n ></button>\n <ng-template #popupTemplate>\n <kendo-button-list\n [id]="listId"\n [data]="data"\n [textField]="textField"\n [itemTemplate]="itemTemplate"\n (onItemClick)="onItemClick($event)"\n (keydown)="keyDownHandler($event)"\n (keypress)="keyPressHandler($event)"\n (keyup)="keyUpHandler($event)"\n [attr.dir]="dir"\n [size]="size"\n >\n </kendo-button-list>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[c.FocusService,p.NavigationService,o.ElementRef,o.NgZone,s.PopupService,o.ElementRef,r.LocalizationService,o.ChangeDetectorRef,o.Renderer2])],e)}(u.ListButton);e.SplitButtonComponent=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(9),o=n(39),r=n(29),s=n(17),u=n(2),a=n(4),c=n(5),p=n(6),l=function(){function t(t,e,n,i,o,r){var s=this;this.focusService=t,this.navigationService=e,this.wrapperRef=n,this._zone=i,this.cdr=r,this._open=!1,this._disabled=!1,this._active=!1,this._popupSettings={animate:!0,popupClass:""},this.listId=u.guid(),this._isFocused=!1,c.validatePackage(p.packageMetadata),this.focusService=t,this.navigationService=e,this.wrapper=n.nativeElement,this.localizationChangeSubscription=o.changes.subscribe((function(t){var e=t.rtl;return s.direction=e?"rtl":"ltr"})),this.subscribeEvents()}return Object.defineProperty(t.prototype,"popupClasses",{get:function(){var t=["k-menu-popup"];return this._popupSettings.popupClass&&t.push(this._popupSettings.popupClass),t.join(" ")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openState",{get:function(){return this._open},set:function(t){this._open=t},enumerable:!0,configurable:!0}),t.prototype.togglePopupVisibility=function(){this._disabled||(this.openState=!this.openState,this.openState||this.focusService.focus(-1))},t.prototype.onItemClick=function(t){var e=this;this.emitItemClickHandler(t),setTimeout((function(){return e.focusWrapper()}),1)},t.prototype.ngOnDestroy=function(){this.openState=!1,this.unsubscribeEvents(),clearTimeout(this.focusFirstTimeout),clearTimeout(this.blurTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},t.prototype.subscribeEvents=function(){u.isDocumentAvailable()&&(this.subscribeListItemFocusEvent(),this.subscribeComponentBlurredEvent(),this.subscribeNavigationEvents())},t.prototype.subscribeListItemFocusEvent=function(){var t=this;this.focusSubscription=this.focusService.onFocus.subscribe((function(){t._isFocused=!0}))},t.prototype.subscribeComponentBlurredEvent=function(){var t=this;this._zone.runOutsideAngular((function(){t.tabSubscription=t.navigationService.tab.pipe(o.filter((function(){return t._isFocused}))).subscribe(t.handleTab.bind(t)),t.componentBlurredSubscription=i.fromEvent(document,"click").pipe(o.filter((function(e){return!t.wrapperContains(e.target)})),o.filter((function(){return t._isFocused}))).subscribe((function(){return t._zone.run((function(){return t.blurWrapper()}))}))}))},t.prototype.subscribeNavigationEvents=function(){var t=this;this.navigationSubscription=this.navigationService.navigate.subscribe(this.focusService.focus.bind(this.focusService)),this.enterUpSubscription=this.navigationService.enterup.subscribe((function(){t.enterHandler(),t.focusWrapper()})),this.openSubscription=this.navigationService.open.subscribe((function(){t._open?t.focusWrapper():(t.togglePopupVisibility(),t.focusFirstItem())})),this.closeSubscription=i.merge(this.navigationService.close,this.navigationService.esc).subscribe((function(){return t.focusWrapper()}))},t.prototype.enterHandler=function(){},t.prototype.unsubscribeEvents=function(){u.isDocumentAvailable()&&(this.unsubscribe(this.componentBlurredSubscription),this.unsubscribe(this.focusSubscription),this.unsubscribe(this.navigationSubscription),this.unsubscribe(this.enterPressSubscription),this.unsubscribe(this.enterUpSubscription),this.unsubscribe(this.openSubscription),this.unsubscribe(this.closeSubscription),this.unsubscribe(this.tabSubscription))},t.prototype.unsubscribe=function(t){t&&t.unsubscribe()},t.prototype.keyDownHandler=function(t){this.keyHandler(t)},t.prototype.keyPressHandler=function(t){this.keyHandler(t,r.KeyEvents.keypress)},t.prototype.keyUpHandler=function(t){this.keyHandler(t,r.KeyEvents.keyup)},t.prototype.keyHandler=function(t,e){if(!this._disabled){var n=this.focusService.focused||0,i=t,o=this.navigationService.process({altKey:i.altKey,current:n,keyCode:i.keyCode,keyEvent:e,max:this._data?this._data.length-1:0,min:0});o!==s.NavigationAction.Undefined&&o!==s.NavigationAction.Tab&&(o!==s.NavigationAction.Enter||o===s.NavigationAction.Enter&&this._open)&&(t.keyCode===u.Keys.Space&&o===s.NavigationAction.EnterUp?this._open=!1:i.preventDefault())}},t.prototype.emitItemClickHandler=function(t){var e=this._data[t];this._itemClick&&this._itemClick.emit(e),e&&e.click&&!e.disabled&&e.click(e)},t.prototype.focusFirstItem=function(){var t=this;this._data&&a.isPresent(this._data[0])&&(this.focusFirstTimeout=setTimeout((function(){return t.focusService.focus(0)}),1))},t.prototype.focusWrapper=function(){this._open&&(this.togglePopupVisibility(),this.focusButton())},t.prototype.wrapperContains=function(t){return this.wrapper===t||this.wrapper.contains(t)},t.prototype.blurWrapper=function(t){void 0===t&&(t=!0),this._open&&this.togglePopupVisibility(),this._isFocused=!1,t&&(this._blur.emit(),this.cdr.markForCheck())},t.prototype.focusButton=function(){this.button&&this.button.nativeElement.focus()},t.prototype.handleTab=function(){this.focusButton(),this.blurWrapper(!1)},t}();e.ListButton=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.keydown=0]="keydown",t[t.keypress=1]="keypress",t[t.keyup=2]="keyup"}(e.KeyEvents||(e.KeyEvents={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"splitButtonLabel",void 0),e}(n(3).ComponentMessages);e.Messages=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),s=n(30),u=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return i.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=i.__decorate([o.Component({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-splitbutton-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}(s.Messages);e.SplitButtonCustomMessagesComponent=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),s=n(8),u=n(16),a=n(10),c=n(33),p=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[c.DropDownButtonComponent],exports:[c.DropDownButtonComponent,u.ListModule],imports:[r.CommonModule,s.PopupModule,u.ListModule,a.ButtonModule]})],t)}();e.DropDownButtonModule=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),s=n(8),u=n(2),a=n(13),c=n(4),p=n(28),l=n(26),d=n(11),h=n(18),f=n(14),b=n(12),y=n(9),_={provide:f.NAVIGATION_CONFIG,useValue:{useLeftRightArrows:!0}},m=function(t){function e(e,n,i,r,s,a,c,p){var l=t.call(this,e,n,i,r,c,p)||this;return l.popupService=s,l.elRef=a,l.icon="",l.iconClass="",l.imageUrl="",l.size="medium",l.shape="rectangle",l.rounded="medium",l.themeColor="base",l.tabIndex=0,l.itemClick=new o.EventEmitter,l.open=new o.EventEmitter,l.close=new o.EventEmitter,l.onFocus=new o.EventEmitter,l.onBlur=new o.EventEmitter,l.listId=u.guid(),l._fillMode="solid",l._itemClick=l.itemClick,l._blur=l.onBlur,l}return i.__extends(e,t),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(t){this._popupSettings=Object.assign({animate:!0,popupClass:""},t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){t&&this.openState&&(this.openState=!1),this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(t){this._fillMode="clear"===t?"flat":t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openState",{get:function(){return this._open},set:function(t){if(!this.disabled){var e=new b.PreventableEvent;t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()||this._toggle(t)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTabIndex",{get:function(){return this.disabled?-1:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var t=this.popupSettings.appendTo;if(t&&"root"!==t)return"component"===t?this.container:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this._isFocused&&!this._disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),e.prototype.keydown=function(t){this.keyDownHandler(t),t.keyCode===u.Keys.Space&&(this._active=!0)},e.prototype.keypress=function(t){this.keyPressHandler(t)},e.prototype.keyup=function(t){this.keyUpHandler(t),this._active=!1},e.prototype.mousedown=function(t){this._disabled&&t.preventDefault(),this._active=!0},e.prototype.mouseup=function(t){this._disabled&&t.preventDefault(),this._active=!1},e.prototype.openPopup=function(){this.togglePopupVisibility()},e.prototype.onButtonBlur=function(){this.isOpen||this.blurWrapper()},Object.defineProperty(e.prototype,"anchorAlign",{get:function(){var t={horizontal:this.popupSettings.align||"left",vertical:"bottom"};return"rtl"!==this.direction||c.isPresent(this.popupSettings.align)||(t.horizontal="right"),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupAlign",{get:function(){var t={horizontal:this.popupSettings.align||"left",vertical:"top"};return"rtl"!==this.direction||c.isPresent(this.popupSettings.align)||(t.horizontal="right"),t},enumerable:!0,configurable:!0}),e.prototype.focus=function(){u.isDocumentAvailable()&&this.button.nativeElement.focus()},e.prototype.blur=function(){u.isDocumentAvailable()&&(this.button.nativeElement.blur(),this.blurWrapper())},e.prototype.ngOnChanges=function(t){if(u.isChanged("popupSettings",t)&&c.isPresent(this.popupRef)){var e=this.popupRef.popup.instance,n=t.popupSettings.currentValue;e.popupClass=n.popupClass,e.animate=n.animate,e.popupAlign=this.popupAlign}},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this.destroyPopup()},e.prototype.toggle=function(t){var e=this;this.disabled||c.tick((function(){return e._toggle(void 0===t?!e._open:t)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.openState},enumerable:!0,configurable:!0}),e.prototype.handleFocus=function(){this._disabled||this._isFocused||(this._isFocused=!0,this.onFocus.emit())},e.prototype.wrapperContains=function(t){return this.wrapper===t||this.wrapper.contains(t)||this.popupRef&&this.popupRef.popupElement.contains(t)},e.prototype.subscribeNavigationEvents=function(){this.navigationSubscription=this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this)),this.enterUpSubscription=this.navigationService.enterup.subscribe(this.onNavigationEnterUp.bind(this)),this.openSubscription=this.navigationService.open.subscribe(this.onNavigationOpen.bind(this)),this.closeSubscription=y.merge(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this))},e.prototype.onNavigationEnterUp=function(){if(this._disabled||this.openState||(this._active=!1),this.openState){var t=this.focusService.focused;c.isPresent(t)&&-1!==t&&this.emitItemClickHandler(t)}this.togglePopupVisibility(),!this.openState&&u.isDocumentAvailable()&&this.button.nativeElement.focus()},e.prototype.onNavigationOpen=function(){this._disabled||this.openState||this.togglePopupVisibility()},e.prototype.onNavigationClose=function(){this.openState&&(this.togglePopupVisibility(),u.isDocumentAvailable()&&this.button.nativeElement.focus())},e.prototype.onArrowKeyNavigate=function(t){this.focusService.focus(t)},e.prototype._toggle=function(t){this._open!==t&&(this._open=t,this.destroyPopup(),this._open&&this.createPopup())},e.prototype.createPopup=function(){var t=this;this.popupRef=this.popupService.open({anchor:this.elRef,anchorAlign:this.anchorAlign,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:this.popupAlign,popupClass:this.popupClasses}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.openState=!1})),this.popupRef.popupOpen.subscribe(this.focusFirstItem.bind(this))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"iconClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"imageUrl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"disabled",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"size",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"shape",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"rounded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"themeColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"buttonClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"itemClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"focused",null),i.__decorate([o.HostBinding("class.k-dropdown-button"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"widgetClasses",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([o.ContentChild(a.ButtonItemTemplateDirective,{static:!1}),i.__metadata("design:type",a.ButtonItemTemplateDirective)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ViewChild("button",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"button",void 0),i.__decorate([o.ViewChild("buttonList",{static:!1}),i.__metadata("design:type",l.ListComponent)],e.prototype,"buttonList",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),i.__decorate([o.HostListener("keypress",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keypress",null),i.__decorate([o.HostListener("keyup",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keyup",null),i.__decorate([o.HostListener("mousedown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"mousedown",null),i.__decorate([o.HostListener("mouseup",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"mouseup",null),e=i.__decorate([o.Component({exportAs:"kendoDropDownButton",providers:[d.FocusService,h.NavigationService,_,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.dropdownbutton"}],selector:"kendo-dropdownbutton",template:'\n <button kendoButton #button\n role="menu"\n type="button"\n [tabindex]="componentTabIndex"\n [class.k-active]="active"\n [disabled]="disabled"\n [icon]="icon"\n [iconClass]="iconClass"\n [imageUrl]="imageUrl"\n [ngClass]="buttonClass"\n [size]="size"\n [shape]="shape"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n (click)="openPopup()"\n (focus)="handleFocus()"\n (blur)="onButtonBlur()"\n [attr.aria-disabled]="disabled"\n [attr.aria-expanded]="openState"\n [attr.aria-haspopup]="true"\n [attr.aria-owns]="listId"\n >\n <ng-content></ng-content>\n </button>\n <ng-template #popupTemplate>\n <kendo-button-list\n #buttonList\n [id]="listId"\n [data]="data"\n [textField]="textField"\n [itemTemplate]="itemTemplate"\n (onItemClick)="onItemClick($event)"\n (keydown)="keyDownHandler($event)"\n (keypress)="keyPressHandler($event)"\n (keyup)="keyUpHandler($event)"\n [attr.dir]="dir"\n [size]="size"\n >\n </kendo-button-list>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[d.FocusService,h.NavigationService,o.ElementRef,o.NgZone,s.PopupService,o.ElementRef,r.LocalizationService,o.ChangeDetectorRef])],e)}(p.ListButton);e.DropDownButtonComponent=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),s=n(19),u=n(35),a=[s.ChipComponent,u.ChipListComponent],c=a.slice(),p=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[c],exports:[a],imports:[r.CommonModule]})],t)}();e.ChipModule=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),s=n(19),u=n(4),a=n(5),c=n(6),p=function(){function t(t,e,n){this.localizationService=t,this.renderer=e,this.element=n,this.hostClass=!0,this.selection="none",this.selectedChange=new o.EventEmitter,this.remove=new o.EventEmitter,this.role="listbox",this._size="medium",a.validatePackage(c.packageMetadata),this.direction=t.rtl?"rtl":"ltr"}return Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this.handleClasses(t,"size"),this._size=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"single",{get:function(){return"single"===this.selection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return"multiple"===this.selection},enumerable:!0,configurable:!0}),t.prototype.onClick=function(t){var e=t.target,n=u.closest(e,".k-chip-remove-action"),i=u.closest(e,".k-chip"),o=this.chips.find((function(t){return i===t.element.nativeElement}));if(n&&i){var r={sender:this,originalEvent:t,removedChip:o};this.remove.emit(r)}"none"!==this.selection&&i&&!n&&this.setSelection(o)},t.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var n=e.rtl;return t.direction=n?"rtl":"ltr"}))},t.prototype.ngAfterViewInit=function(){var t=this;["size"].forEach((function(e){t.handleClasses(t[e],e)}))},t.prototype.ngAfterContentInit=function(){var t=this;this.chips.forEach((function(e){t.renderer.setAttribute(e.element.nativeElement,"role","option")}))},t.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},t.prototype.selectedChips=function(){return this.chips.reduce((function(t,e,n){return e.selected?t.concat(n):t}),[])},t.prototype.setSelection=function(t){"single"===this.selection&&this.clearSelection(t),t.selected=!t.selected,this.selectedChange.emit(this.selectedChips())},t.prototype.clearSelection=function(t){this.chips.forEach((function(e){t!==e&&(e.selected=!1)}))},t.prototype.handleClasses=function(t,e){var n=this.element.nativeElement,i=u.getStylingClasses("chip-list",e,this[e],t);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.HostBinding("class.k-chip-list"),i.__metadata("design:type",Boolean)],t.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"selection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"selectedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"remove",void 0),i.__decorate([o.ContentChildren(s.ChipComponent),i.__metadata("design:type",o.QueryList)],t.prototype,"chips",void 0),i.__decorate([o.HostBinding("class.k-selection-single"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"single",null),i.__decorate([o.HostBinding("class.k-selection-multiple"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"multiple",null),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],t.prototype,"role",void 0),i.__decorate([o.HostListener("click",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),t=i.__decorate([o.Component({selector:"kendo-chiplist, kendo-chip-list",template:"\n <ng-content></ng-content>\n ",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.chiplist"}]}),i.__metadata("design:paramtypes",[r.LocalizationService,o.Renderer2,o.ElementRef])],t)}();e.ChipListComponent=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),s=n(37),u=n(20),a=n(21),c=n(47),p=n(48),l=n(16),d=n(2),h=n(8),f=[s.FloatingActionButtonComponent,u.DialItemTemplateDirective,a.FloatingActionButtonTemplateDirective],b=f.concat([c.DialListComponent,p.DialItemComponent]),y=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[b],exports:[f],imports:[r.CommonModule,h.PopupModule,l.ListModule,d.EventsModule]})],t)}();e.FloatingActionButtonModule=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(38),r=n(1),s=n(9),u=n(39),a=n(3),c=n(5),p=n(6),l=n(2),d=n(8),h=n(11),f=n(17),b=n(14),y=n(18),_=n(4),m=n(45),v=n(46),g=n(12),w=n(20),x=n(21),S={provide:b.NAVIGATION_CONFIG,useValue:{useLeftRightArrows:!1}},C={small:"k-fab-sm",medium:"k-fab-md",large:"k-fab-lg"},I={rectangle:"k-fab-rectangle",square:"k-fab-square"},E={small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"},k=function(){function t(t,e,n,i,o,u,a,d){var h=this;this.renderer=t,this.element=e,this.focusService=n,this.navigationService=i,this.ngZone=o,this.popupService=u,this.builder=a,this.localizationService=d,this.positionMode="fixed",this.dialItemAnimation=!0,this.tabIndex=0,this.dialItems=[],this.onBlur=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.dialItemClick=new r.EventEmitter,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.id="k-"+l.guid(),this._themeColor="primary",this._size="medium",this._shape="rectangle",this._disabled=!1,this._align={horizontal:"end",vertical:"bottom"},this._offset={x:"16px",y:"16px"},this._rounded="full",this.subscriptions=new s.Subscription,this.rtl=!1,this.animationEnd=new r.EventEmitter,this.initialSetup=!0,c.validatePackage(p.packageMetadata),this.subscribeNavigationEvents(),this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var e=t.rtl;h.rtl=e,h.direction=h.rtl?"rtl":"ltr"})))}return Object.defineProperty(t.prototype,"fixedClass",{get:function(){return"fixed"===this.positionMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"absoluteClass",{get:function(){return"absolute"===this.positionMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"themeColor",{get:function(){return this._themeColor},set:function(t){this.handleClasses(t,"themeColor"),this._themeColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this.handleClasses(t,"size"),this._size=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(t){this.handleClasses(t,"rounded"),this._rounded=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shape",{get:function(){return this._shape},set:function(t){this.handleClasses(t,"shape"),this._shape=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(t){this._align=Object.assign(this._align,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this._offset},set:function(t){this._offset=Object.assign(this._offset,t),this.offsetStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTabIndex",{get:function(){return this.disabled?-1:this.tabIndex},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;["shape","size","rounded","themeColor"].forEach((function(e){return t.handleClasses(t[e],e)})),this.renderer.addClass(this.element.nativeElement,this.alignClass()),this.offsetStyles(),this.initialSetup=!1},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"isOpen",{get:function(){return _.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){l.isDocumentAvailable()&&this.button.nativeElement.focus()},t.prototype.blur=function(){l.isDocumentAvailable()&&this.button.nativeElement.blur()},t.prototype.toggleDial=function(t){var e=this;if(!this.disabled&&this.hasDialItems){var n=_.isPresent(t)?t:!this.isOpen;this.disabled||n===this.isOpen||(n?setTimeout((function(){return e.openDial()})):this.closeDial())}},Object.defineProperty(t.prototype,"role",{get:function(){return this.dialItems&&this.dialItems.length?"menubutton":"button"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return _.isPresent(this.isOpen)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaHasPopup",{get:function(){return _.isPresent(this.isOpen)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClasses",{get:function(){var t=[];return this.iconClass&&t.push(""+this.iconClass),this.icon&&t.push("k-fab-icon k-icon k-i-"+this.icon),t},enumerable:!0,configurable:!0}),t.prototype.clickHandler=function(){var t=this;!this.disabled&&this.hasDialItems&&this.ngZone.run((function(){var e=!t.isOpen;t.toggleDialWithEvents(e)}))},t.prototype.keyDownHandler=function(t){this.keyHandler(t)},t.prototype.keyHandler=function(t,e){if(!this.disabled){var n=this.focusService.focused||0,i=t.keyCode,o=this.navigationService.process({altKey:t.altKey,current:n,keyCode:i,keyEvent:e,max:this.dialItems?this.dialItems.length-1:0,min:0,flipNavigation:"bottom"===this.align.vertical});o!==f.NavigationAction.Undefined&&o!==f.NavigationAction.Tab&&t.preventDefault()}},t.prototype.onItemClick=function(t){var e=_.closest(t.target,".k-fab-item");if(e){var n=e.getAttribute("data-fab-item-index");this.emitItemClick(n)}},t.prototype.focusHandler=function(){this.disabled||this.onFocus.emit()},t.prototype.blurHandler=function(){this.onBlur.emit(),this.toggleDialWithEvents(!1)},t.prototype.handleClasses=function(t,e){if(_.isPresent(this.button)&&(this[e]!==t||this.initialSetup)){var n=this.button.nativeElement,i={themeColor:"k-fab-solid-"+this.themeColor,size:C[this.size],shape:I[this.shape],rounded:E[this.rounded]},o={themeColor:t?"k-fab-solid-"+t:null,size:C[t],shape:I[t],rounded:E[t]};this.renderer.removeClass(n,i[e]),o[e]&&this.renderer.addClass(n,o[e])}},t.prototype.onEnterPressed=function(){var t=this.focusService.focused;this.emitItemClick(t)},t.prototype.emitItemClick=function(t){var e=this.dialItems[t];if(e&&!e.disabled){var n={item:e,index:t};this.dialItemClick.emit(n),this.toggleDialWithEvents(!1)}},t.prototype.subscribeNavigationEvents=function(){this.subscriptions.add(this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this))),this.subscriptions.add(this.navigationService.enter.subscribe(this.onNavigationEnterPress.bind(this))),this.subscriptions.add(s.merge(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this)))},t.prototype.onArrowKeyNavigate=function(t){this.focusService.focus(t)},t.prototype.onNavigationEnterPress=function(){var t=this;this.ngZone.run((function(){if(t.isOpen){var e=t.focusService.focused,n=t.dialItems[e];if(n&&n.disabled)return;if(_.isPresent(e)&&-1!==e)return void t.onEnterPressed()}!t.isOpen&&l.isDocumentAvailable()&&(t.toggleDialWithEvents(!0),t.button.nativeElement.focus())}))},t.prototype.onNavigationClose=function(){var t=this;this.isOpen&&this.ngZone.run((function(){t.toggleDialWithEvents(!1),l.isDocumentAvailable()&&t.button.nativeElement.focus()}))},t.prototype.alignClass=function(){return"k-pos-"+this.align.vertical+"-"+this.align.horizontal},t.prototype.toggleDialWithEvents=function(t){if(t!==this.isOpen){var e=new g.PreventableEvent;t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()||(t?this.openDial():this.closeDial())}},t.prototype.openPopup=function(){var t=this;if(!this.isOpen){var e=this.icon&&!this.text,n=this.rtl,i=this.align;this.popupRef=this.popupService.open({anchor:this.element.nativeElement,animate:!1,content:this.popupTemplate,anchorAlign:m.getAnchorAlign(i,n),popupAlign:m.getPopupAlign(i,n),popupClass:"k-fab-popup k-popup-transparent"});var o=this.popupRef.popupElement;this.renderer.setStyle(o,"box-shadow","none"),e&&this.subscriptions.add(this.popupRef.popupOpen.subscribe((function(){return t.positionPopup()}))),this.ngZone.runOutsideAngular((function(){t.popupMouseDownListener=t.renderer.listen(o,"mousedown",(function(t){t.preventDefault()}))})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.toggleDialWithEvents(!1)}))}},t.prototype.closePopup=function(){this.isOpen&&(this.popupMouseDownListener&&this.popupMouseDownListener(),this.popupRef.close(),this.popupRef=null)},t.prototype.openDial=function(){this.openPopup(),this.focusService.focus(0),this.dialItemAnimation&&this.isValidAnimation()&&this.playAnimation(!0)},t.prototype.closeDial=function(){var t=this;this.dialItemAnimation&&this.isValidAnimation()?(this.playAnimation(!1),this.animationEnd.pipe(u.take(1)).subscribe((function(){return t.closePopup()}))):this.closePopup()},t.prototype.isValidAnimation=function(){var t=this.dialItemAnimation;return"boolean"==typeof t||0!==t.duration},t.prototype.positionPopup=function(){if(!this.dialItemTemplate){var t=this.element.nativeElement.getBoundingClientRect().width,e=this.popupRef.popupElement,n=e.querySelector(".k-fab-item-icon");if(n){var i=t/2-n.getBoundingClientRect().width/2,o=e.getBoundingClientRect().left,r="end"===this.align.horizontal,s=r?o-i:i+o,u=r?i+o:o-i;e.style.left=this.rtl?u+"px":s+"px"}}},t.prototype.offsetStyles=function(){var t=this.element.nativeElement;this.renderer.setStyle(t,this.horizontalPosition,this.horizontalOffset),this.renderer.setStyle(t,this.verticalPosition,this.verticalOffset)},Object.defineProperty(t.prototype,"hasDialItems",{get:function(){return _.isPresent(this.dialItems)&&0!==this.dialItems.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalPosition",{get:function(){return{top:"top",middle:"top",bottom:"bottom"}[this.align.vertical]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalOffset",{get:function(){return"middle"===this.align.vertical?"16px"===this.offset.y?"50%":"calc(50% + "+this.offset.y+")":this.offset.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalPosition",{get:function(){var t=this.align.horizontal;return{end:this.rtl?"left":"right",center:"left",start:this.rtl?"right":"left"}[t]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalOffset",{get:function(){return"center"===this.align.horizontal?"16px"===this.offset.x?"50%":"calc(50% + "+this.offset.x+")":this.offset.x},enumerable:!0,configurable:!0}),t.prototype.playerFor=function(t,e){return this.builder.build(e).create(t)},t.prototype.playAnimation=function(t){var e=this,n=this.durationSettings(),i={duration:n.duration,gap:n.gap,align:this.align},o=t?v.openAnimation(i):v.closeAnimation(i),r=this.playerFor(this.popupRef.popupElement,o);r.play(),r.onDone((function(){r&&(e.animationEnd.emit(),r.destroy(),r=null)}))},t.prototype.durationSettings=function(){return{duration:this.animationDuration(),gap:this.animationGap()}},t.prototype.animationGap=function(){var t=this.dialItemAnimation;return"boolean"!=typeof t&&_.isPresent(t.gap)?t.gap:90},t.prototype.animationDuration=function(){var t=this.dialItemAnimation;return"boolean"!=typeof t&&_.isPresent(t.duration)?t.duration:180},i.__decorate([r.HostBinding("class.k-pos-fixed"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"fixedClass",null),i.__decorate([r.HostBinding("class.k-pos-absolute"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"absoluteClass",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([r.ViewChild("button",{static:!0}),i.__metadata("design:type",r.ElementRef)],t.prototype,"button",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),i.__decorate([r.ContentChild(w.DialItemTemplateDirective,{static:!0}),i.__metadata("design:type",w.DialItemTemplateDirective)],t.prototype,"dialItemTemplate",void 0),i.__decorate([r.ContentChild(x.FloatingActionButtonTemplateDirective,{static:!0}),i.__metadata("design:type",x.FloatingActionButtonTemplateDirective)],t.prototype,"fabTemplate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"themeColor",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"shape",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"disabled",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"align",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"offset",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"positionMode",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"iconClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"buttonClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"dialClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"dialItemAnimation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"dialItems",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"onBlur",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"onFocus",void 0),i.__decorate([r.Output("dialItemClick"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"dialItemClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),t=i.__decorate([r.Component({selector:"kendo-floatingactionbutton",providers:[h.FocusService,y.NavigationService,S,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.floatingactionbutton"}],template:'\n <button\n #button\n [attr.id]="id"\n [attr.role]="role"\n [tabIndex]="componentTabIndex"\n type="button"\n class="k-fab k-fab-solid"\n [class.k-disabled]="disabled"\n [ngClass]="buttonClass"\n [disabled]="disabled"\n [attr.aria-disabled]="disabled"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-haspopup]="ariaHasPopup"\n (focus)="focusHandler()"\n (blur)="blurHandler()"\n [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n click: clickHandler\n }"\n [scope]="this"\n >\n <ng-template *ngIf="fabTemplate"\n [ngTemplateOutlet]="fabTemplate?.templateRef"\n >\n </ng-template>\n\n <ng-container *ngIf="!fabTemplate">\n <span *ngIf="icon || iconClass" [ngClass]="iconClasses"></span>\n <span *ngIf="text" class="k-fab-text">{{ text }}</span>\n </ng-container>\n </button>\n\n <ng-template #popupTemplate>\n <ul\n kendoDialList\n [ngClass]="dialClass"\n [dialItems]="dialItems"\n [dialItemTemplate]=\'dialItemTemplate?.templateRef\'\n [align]="align"\n [attr.aria-labelledby]="id"\n (click)="onItemClick($event)"\n >\n </ul>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,h.FocusService,y.NavigationService,r.NgZone,d.PopupService,o.AnimationBuilder,a.LocalizationService])],t)}();e.FloatingActionButtonComponent=k},function(t,e){t.exports=u},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return M})),n.d(e,"auditTime",(function(){return q})),n.d(e,"buffer",(function(){return G})),n.d(e,"bufferCount",(function(){return Z})),n.d(e,"bufferTime",(function(){return tt})),n.d(e,"bufferToggle",(function(){return ut})),n.d(e,"bufferWhen",(function(){return pt})),n.d(e,"catchError",(function(){return ht})),n.d(e,"combineAll",(function(){return gt})),n.d(e,"combineLatest",(function(){return xt})),n.d(e,"concat",(function(){return Vt})),n.d(e,"concatAll",(function(){return Dt})),n.d(e,"concatMap",(function(){return Rt})),n.d(e,"concatMapTo",(function(){return Ft})),n.d(e,"count",(function(){return zt})),n.d(e,"debounce",(function(){return Wt})),n.d(e,"debounceTime",(function(){return qt})),n.d(e,"defaultIfEmpty",(function(){return Zt})),n.d(e,"delay",(function(){return oe})),n.d(e,"delayWhen",(function(){return ae})),n.d(e,"dematerialize",(function(){return he})),n.d(e,"distinct",(function(){return ye})),n.d(e,"distinctUntilChanged",(function(){return ve})),n.d(e,"distinctUntilKeyChanged",(function(){return xe})),n.d(e,"elementAt",(function(){return Re})),n.d(e,"endWith",(function(){return Fe})),n.d(e,"every",(function(){return ze})),n.d(e,"exhaust",(function(){return We})),n.d(e,"exhaustMap",(function(){return qe})),n.d(e,"expand",(function(){return $e})),n.d(e,"filter",(function(){return Ie})),n.d(e,"finalize",(function(){return Qe})),n.d(e,"find",(function(){return en})),n.d(e,"findIndex",(function(){return rn})),n.d(e,"first",(function(){return sn})),n.d(e,"groupBy",(function(){return hn})),n.d(e,"ignoreElements",(function(){return vn})),n.d(e,"isEmpty",(function(){return xn})),n.d(e,"last",(function(){return On})),n.d(e,"map",(function(){return kt})),n.d(e,"mapTo",(function(){return Pn})),n.d(e,"materialize",(function(){return Bn})),n.d(e,"max",(function(){return Fn})),n.d(e,"merge",(function(){return Hn})),n.d(e,"mergeAll",(function(){return At})),n.d(e,"mergeMap",(function(){return Tt})),n.d(e,"flatMap",(function(){return Tt})),n.d(e,"mergeMapTo",(function(){return Ln})),n.d(e,"mergeScan",(function(){return Wn})),n.d(e,"min",(function(){return qn})),n.d(e,"multicast",(function(){return Jn})),n.d(e,"observeOn",(function(){return ei})),n.d(e,"onErrorResumeNext",(function(){return ri})),n.d(e,"pairwise",(function(){return ai})),n.d(e,"partition",(function(){return di})),n.d(e,"pluck",(function(){return hi})),n.d(e,"publish",(function(){return bi})),n.d(e,"publishBehavior",(function(){return _i})),n.d(e,"publishLast",(function(){return vi})),n.d(e,"publishReplay",(function(){return Ci})),n.d(e,"race",(function(){return Oi})),n.d(e,"reduce",(function(){return Rn})),n.d(e,"repeat",(function(){return Pi})),n.d(e,"repeatWhen",(function(){return Bi})),n.d(e,"retry",(function(){return Di})),n.d(e,"retryWhen",(function(){return Ri})),n.d(e,"refCount",(function(){return Gn})),n.d(e,"sample",(function(){return Hi})),n.d(e,"sampleTime",(function(){return Ki})),n.d(e,"scan",(function(){return Dn})),n.d(e,"sequenceEqual",(function(){return Yi})),n.d(e,"share",(function(){return Ji})),n.d(e,"shareReplay",(function(){return to})),n.d(e,"single",(function(){return eo})),n.d(e,"skip",(function(){return oo})),n.d(e,"skipLast",(function(){return uo})),n.d(e,"skipUntil",(function(){return po})),n.d(e,"skipWhile",(function(){return fo})),n.d(e,"startWith",(function(){return _o})),n.d(e,"subscribeOn",(function(){return Io})),n.d(e,"switchAll",(function(){return To})),n.d(e,"switchMap",(function(){return ko})),n.d(e,"switchMapTo",(function(){return No})),n.d(e,"take",(function(){return De})),n.d(e,"takeLast",(function(){return In})),n.d(e,"takeUntil",(function(){return Bo})),n.d(e,"takeWhile",(function(){return Do})),n.d(e,"tap",(function(){return Oe})),n.d(e,"throttle",(function(){return Fo})),n.d(e,"throttleTime",(function(){return Lo})),n.d(e,"throwIfEmpty",(function(){return je})),n.d(e,"timeInterval",(function(){return qo})),n.d(e,"timeout",(function(){return Jo})),n.d(e,"timeoutWith",(function(){return Zo})),n.d(e,"timestamp",(function(){return tr})),n.d(e,"toArray",(function(){return ir})),n.d(e,"window",(function(){return or})),n.d(e,"windowCount",(function(){return ur})),n.d(e,"windowTime",(function(){return pr})),n.d(e,"windowToggle",(function(){return _r})),n.d(e,"windowWhen",(function(){return gr})),n.d(e,"withLatestFrom",(function(){return Sr})),n.d(e,"zip",(function(){return Br})),n.d(e,"zipAll",(function(){return jr}));var i=n(0);function o(t){return"function"==typeof t}var r=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}};function u(t){setTimeout((function(){throw t}))}var a={closed:!0,next:function(t){},error:function(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;u(t)},complete:function(){}},c=Array.isArray||function(t){return t&&"number"==typeof t.length};function p(t){return null!==t&&"object"==typeof t}function l(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}l.prototype=Object.create(Error.prototype);var d=l,h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,i=this._parents,r=this._unsubscribe,s=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var u=-1,a=i?i.length:0;n;)n.remove(this),n=++u<a&&i[u]||null;if(o(r))try{r.call(this)}catch(n){e=!0,t=n instanceof d?f(n.errors):[n]}if(c(s))for(u=-1,a=s.length;++u<a;){var l=s[u];if(p(l))try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof d?t=t.concat(f(n.errors)):t.push(n)}}if(e)throw new d(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var i=n;(n=new t)._subscriptions=[i]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function f(t){return t.reduce((function(t,e){return t.concat(e instanceof d?e.errors:e)}),[])}var b="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(t){function e(n,i,o){var r=t.call(this)||this;switch(r.syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=a;break;case 1:if(!n){r.destination=a;break}if("object"==typeof n){n instanceof e?(r.syncErrorThrowable=n.syncErrorThrowable,r.destination=n,n.add(r)):(r.syncErrorThrowable=!0,r.destination=new _(r,n));break}default:r.syncErrorThrowable=!0,r.destination=new _(r,n,i,o)}return r}return i.__extends(e,t),e.prototype[b]=function(){return this},e.create=function(t,n,i){var o=new e(t,n,i);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(h),_=function(t){function e(e,n,i,r){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return o(n)?s=n:n&&(s=n.next,i=n.error,r=n.complete,n!==a&&(o((c=Object.create(n)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=i,u._complete=r,u}return i.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):u(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;u(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw t;u(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(u(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(y),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(y),v=function(t){function e(e,n,i){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=i,o.index=0,o}return i.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(y);var g="function"==typeof Symbol&&Symbol.observable||"@@observable";function w(){}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S(t)}function S(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:w}var C=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var i=this.operator,o=function(t,e,n){if(t){if(t instanceof y)return t;if(t[b])return t[b]()}return t||e||n?new y(t,e,n):new y(a)}(t,e,n);if(i?o.add(i.call(o,this.source)):o.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),s.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof y?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=I(e))((function(e,i){var o;o=n.subscribe((function(e){try{t(e)}catch(t){i(t),o&&o.unsubscribe()}}),i,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[g]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:S(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=I(t))((function(t,n){var i;e.subscribe((function(t){return i=t}),(function(t){return n(t)}),(function(){return t(i)}))}))},t.create=function(e){return new t(e)},t}();function I(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var E=function(t){return function(e){for(var n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},k=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,u),e}};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var P=O(),T=function(t){return function(e){for(var n=t[P]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e}},N=function(t){return function(e){var n=t[g]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},B=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function j(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var A=function(t){if(t instanceof C)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[g])return N(t);if(B(t))return E(t);if(j(t))return k(t);if(t&&"function"==typeof t[P])return T(t);var e=p(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function D(t,e,n,i,o){if(void 0===o&&(o=new v(t,n,i)),!o.closed)return A(e)(o)}function M(t){return function(e){return e.lift(new V(t))}}var V=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new R(t,this.durationSelector))},t}(),R=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=D(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(m),F=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return i.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(t){n=!0,i=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return i.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(h)),z=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),H=function(t){function e(n,i){void 0===i&&(i=z.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():i()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return i.__extends(e,t),e.prototype.schedule=function(n,i,o){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,o):t.prototype.schedule.call(this,n,i,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(z),L=new H(F);function W(t){return!c(t)&&t-parseFloat(t)+1>=0}function K(t){return t&&"function"==typeof t.schedule}function U(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function q(t,e){return void 0===e&&(e=L),M((function(){return function(t,e,n){void 0===t&&(t=0);var i=-1;return W(e)?i=Number(e)<1?1:Number(e):K(e)&&(n=e),K(n)||(n=L),new C((function(e){var o=W(t)?t:+t-n.now();return n.schedule(U,o,{index:0,period:i,subscriber:e})}))}(t,e)}))}function G(t){return function(e){return e.lift(new Y(t))}}var Y=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new $(t,this.closingNotifier))},t}(),$=function(t){function e(e,n){var i=t.call(this,e)||this;return i.buffer=[],i.add(D(i,n)),i}return i.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,i,o){var r=this.buffer;this.buffer=[],this.destination.next(r)},e}(m);function Z(t,e){return void 0===e&&(e=null),function(n){return n.lift(new X(t,e))}}var X=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?J:Q}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),Q=function(t){function e(e,n){var i=t.call(this,e)||this;return i.bufferSize=n,i.buffer=[],i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(y),J=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.bufferSize=n,o.startBufferEvery=i,o.buffers=[],o.count=0,o}return i.__extends(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,i=this.buffers,o=this.count;this.count++,o%n==0&&i.push([]);for(var r=i.length;r--;){var s=i[r];s.push(t),s.length===e&&(i.splice(r,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var i=e.shift();i.length>0&&n.next(i)}t.prototype._complete.call(this)},e}(y);function tt(t){var e=arguments.length,n=L;K(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),function(e){return e.lift(new et(t,i,o,n))}}var et=function(){function t(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),nt=function(){return function(){this.buffer=[]}}(),it=function(t){function e(e,n,i,o,r){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=i,s.maxBufferSize=o,s.scheduler=r,s.contexts=[];var u=s.openContext();if(s.timespanOnly=null==i||i<0,s.timespanOnly){var a={subscriber:s,context:u,bufferTimeSpan:n};s.add(u.closeAction=r.schedule(ot,n,a))}else{var c={subscriber:s,context:u},p={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:s,scheduler:r};s.add(u.closeAction=r.schedule(st,n,c)),s.add(r.schedule(rt,i,p))}return s}return i.__extends(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,i=n.length,o=0;o<i;o++){var r=n[o],s=r.buffer;s.push(t),s.length==this.maxBufferSize&&(e=r)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var i=e.shift();n.next(i.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(ot,n,i))}},e.prototype.openContext=function(){var t=new nt;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(y);function ot(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function rt(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,i=t.subscriber,o=t.scheduler,r=i.openContext();i.closed||(i.add(r.closeAction=o.schedule(st,n,{subscriber:i,context:r})),this.schedule(t,e))}function st(t){var e=t.subscriber,n=t.context;e.closeContext(n)}function ut(t,e){return function(n){return n.lift(new at(t,e))}}var at=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new ct(t,this.openings,this.closingSelector))},t}(),ct=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.openings=n,o.closingSelector=i,o.contexts=[],o.add(D(o,n)),o}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,i=0;i<n;i++)e[i].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,o){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,i=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new h,i={buffer:[],subscription:n};e.push(i);var o=D(this,t,i);!o||o.closed?this.closeBuffer(i):(o.context=i,this.add(o),n.add(o))},e}(m);function pt(t){return function(e){return e.lift(new lt(t))}}var lt=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new dt(t,this.closingSelector))},t}(),dt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,i,o){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new h,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(D(this,e)),this.subscribing=!1},e}(m);function ht(t){return function(e){var n=new ft(t),i=e.lift(n);return n.caught=i}}var ft=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new bt(t,this.selector,this.caught))},t}(),bt=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.selector=n,o.caught=i,o}return i.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var i=new v(this,void 0,void 0);this.add(i),D(this,n,void 0,void 0,i)}},e}(m);function yt(t,e){return new C(e?function(n){var i=new h,o=0;return i.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:E(t))}var _t={};var mt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.resultSelector))},t}(),vt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__extends(e,t),e.prototype._next=function(t){this.values.push(_t),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add(D(this,i,i,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,o){var r=this.values,s=r[n],u=this.toRespond?s===_t?--this.toRespond:this.toRespond:0;r[n]=e,0===u&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(m);function gt(t){return function(e){return e.lift(new mt(t))}}function wt(t,e){if(!e)return t instanceof C?t:new C(A(t));if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new C(e?function(n){var i=new h;return i.add(e.schedule((function(){var o=t[g]();i.add(o.subscribe({next:function(t){i.add(e.schedule((function(){return n.next(t)})))},error:function(t){i.add(e.schedule((function(){return n.error(t)})))},complete:function(){i.add(e.schedule((function(){return n.complete()})))}}))}))),i}:N(t))}(t,e);if(j(t))return function(t,e){return new C(e?function(n){var i=new h;return i.add(e.schedule((function(){return t.then((function(t){i.add(e.schedule((function(){n.next(t),i.add(e.schedule((function(){return n.complete()})))})))}),(function(t){i.add(e.schedule((function(){return n.error(t)})))}))}))),i}:k(t))}(t,e);if(B(t))return yt(t,e);if(function(t){return t&&"function"==typeof t[P]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new C(e?function(n){var i,o=new h;return o.add((function(){i&&"function"==typeof i.return&&i.return()})),o.add(e.schedule((function(){i=t[P](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var o=i.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}:T(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function xt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&c(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(wt([e].concat(t)),new mt(n))}}var St=new C((function(t){return t.complete()}));function Ct(t){return t?function(t){return new C((function(e){return t.schedule((function(){return e.complete()}))}))}(t):St}function It(t){var e=new C((function(e){e.next(t),e.complete()}));return e._isScalar=!0,e.value=t,e}function Et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(K(n)?t.pop():n=void 0,t.length){case 0:return Ct(n);case 1:return n?yt(t,n):It(t[0]);default:return yt(t,n)}}function kt(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ot(t,e))}}var Ot=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Pt(t,this.project,this.thisArg))},t}(),Pt=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=i||o,o}return i.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(y);function Tt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(i){return i.pipe(Tt((function(n,i){return wt(t(n,i)).pipe(kt((function(t,o){return e(n,t,i,o)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new Nt(t,n))})}var Nt=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new Bt(t,this.project,this.concurrent))},t}(),Bt=function(t){function e(e,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=i,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=new v(this,void 0,void 0);this.destination.add(i),D(this,t,e,n,i)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,o){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(m);function jt(t){return t}function At(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Tt(jt,t)}function Dt(){return At(1)}function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Dt()(Et.apply(void 0,t))}function Vt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Mt.apply(void 0,[e].concat(t)))}}function Rt(t,e){return Tt(t,e,1)}function Ft(t,e){return Rt((function(){return t}),e)}function zt(t){return function(e){return e.lift(new Ht(t,e))}}var Ht=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.predicate,this.source))},t}(),Lt=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.predicate=n,o.source=i,o.count=0,o.index=0,o}return i.__extends(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(y);function Wt(t){return function(e){return e.lift(new Kt(t))}}var Kt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ut(t,this.durationSelector))},t}(),Ut=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i.durationSubscription=null,i}return i.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=D(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,i,o){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(m);function qt(t,e){return void 0===e&&(e=L),function(n){return n.lift(new Gt(t,e))}}var Gt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Yt(t,this.dueTime,this.scheduler))},t}(),Yt=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.dueTime=n,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return i.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule($t,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(y);function $t(t){t.debouncedNext()}function Zt(t){return void 0===t&&(t=null),function(e){return e.lift(new Qt(t))}}var Xt,Qt=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.defaultValue))},t}(),Jt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.__extends(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(y);function te(t){return t instanceof Date&&!isNaN(+t)}function ee(t,e){return new C(e?function(n){return e.schedule(ne,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function ne(t){var e=t.error;t.subscriber.error(e)}Xt||(Xt={});var ie=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Et(this.value);case"E":return ee(this.error);case"C":return Ct()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function oe(t,e){void 0===e&&(e=L);var n=te(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new re(n,e))}}var re=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new se(t,this.delay,this.scheduler))},t}(),se=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.delay=n,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return i.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,o=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var r=Math.max(0,n[0].time-i.now());this.schedule(t,r)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new ue(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ie.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ie.createComplete()),this.unsubscribe()},e}(y),ue=function(){return function(t,e){this.time=t,this.notification=e}}();function ae(t,e){return e?function(n){return new le(n,e).lift(new ce(t))}:function(e){return e.lift(new ce(t))}}var ce=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new pe(t,this.delayDurationSelector))},t}(),pe=function(t){function e(e,n){var i=t.call(this,e)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,o){this.destination.next(t),this.removeSubscription(o),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=D(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(m),le=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subscriptionDelay=n,i}return i.__extends(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new de(t,this.source))},e}(C),de=function(t){function e(e,n){var i=t.call(this)||this;return i.parent=e,i.source=n,i.sourceSubscribed=!1,i}return i.__extends(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(y);function he(){return function(t){return t.lift(new fe)}}var fe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new be(t))},t}(),be=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(y);function ye(t,e){return function(n){return n.lift(new _e(t,e))}}var _e=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new me(t,this.keySelector,this.flushes))},t}(),me=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,i&&o.add(D(o,i)),o}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,o){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(m);function ve(t,e){return function(n){return n.lift(new ge(t,e))}}var ge=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new we(t,this.compare,this.keySelector))},t}(),we=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.keySelector=i,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return i.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))},e}(y);function xe(t,e){return ve((function(n,i){return e?e(n[t],i[t]):n[t]===i[t]}))}function Se(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Se.prototype=Object.create(Error.prototype);var Ce=Se;function Ie(t,e){return function(n){return n.lift(new Ee(t,e))}}var Ee=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new ke(t,this.predicate,this.thisArg))},t}(),ke=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.count=0,o}return i.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(y);function Oe(t,e,n){return function(i){return i.lift(new Pe(t,e,n))}}var Pe=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Te(t,this.nextOrObserver,this.error,this.complete))},t}(),Te=function(t){function e(e,n,i,r){var s=t.call(this,e)||this;return s._tapNext=w,s._tapError=w,s._tapComplete=w,s._tapError=i||w,s._tapComplete=r||w,o(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||w,s._tapError=n.error||w,s._tapComplete=n.complete||w),s}return i.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(y);function Ne(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ne.prototype=Object.create(Error.prototype);var Be=Ne,je=function(t){return void 0===t&&(t=Ae),Oe({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Ae(){return new Be}function De(t){return function(e){return 0===t?Ct():e.lift(new Me(t))}}var Me=function(){function t(t){if(this.total=t,this.total<0)throw new Ce}return t.prototype.call=function(t,e){return e.subscribe(new Ve(t,this.total))},t}(),Ve=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(y);function Re(t,e){if(t<0)throw new Ce;var n=arguments.length>=2;return function(i){return i.pipe(Ie((function(e,n){return n===t})),De(1),n?Zt(e):je((function(){return new Ce})))}}function Fe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];K(n)?t.pop():n=null;var i=t.length;return Mt(e,1!==i||n?i>0?yt(t,n):Ct(n):It(t[0]))}}function ze(t,e){return function(n){return n.lift(new He(t,e,n))}}var He=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new Le(t,this.predicate,this.thisArg,this.source))},t}(),Le=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.predicate=n,r.thisArg=i,r.source=o,r.index=0,r.thisArg=i||r,r}return i.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(y);function We(){return function(t){return t.lift(new Ke)}}var Ke=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ue(t))},t}(),Ue=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(D(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(m);function qe(t,e){return e?function(n){return n.pipe(qe((function(n,i){return wt(t(n,i)).pipe(kt((function(t,o){return e(n,t,i,o)})))})))}:function(e){return e.lift(new Ge(t))}}var Ge=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ye(t,this.project))},t}(),Ye=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=new v(this,void 0,void 0);this.destination.add(i),D(this,t,e,n,i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,o){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(m);function $e(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(i){return i.lift(new Ze(t,e,n))}}var Ze=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Xe(t,this.project,this.concurrent,this.scheduler))},t}(),Xe=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.project=n,r.concurrent=i,r.scheduler=o,r.index=0,r.active=0,r.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(r.buffer=[]),r}return i.__extends(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,i=t.value,o=t.index;e.subscribeToProjection(n,i,o)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(t);try{var o=(0,this.project)(t,i);if(this.scheduler){var r={subscriber:this,result:o,value:t,index:i};this.destination.add(this.scheduler.schedule(e.dispatch,0,r))}else this.subscribeToProjection(o,t,i)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(D(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,o){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(m);function Qe(t){return function(e){return e.lift(new Je(t))}}var Je=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new tn(t,this.callback))},t}(),tn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new h(n)),i}return i.__extends(e,t),e}(y);function en(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(t,n,!1,e))}}var nn=function(){function t(t,e,n,i){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=i}return t.prototype.call=function(t,e){return e.subscribe(new on(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),on=function(t){function e(e,n,i,o,r){var s=t.call(this,e)||this;return s.predicate=n,s.source=i,s.yieldIndex=o,s.thisArg=r,s.index=0,s}return i.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,i=this.index++;try{e.call(n||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(y);function rn(t,e){return function(n){return n.lift(new nn(t,n,!0,e))}}function sn(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ie((function(e,n){return t(e,n,i)})):jt,De(1),n?Zt(e):je((function(){return new Be})))}}function un(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}un.prototype=Object.create(Error.prototype);var an=un,cn=function(t){function e(e,n){var i=t.call(this)||this;return i.subject=e,i.subscriber=n,i.closed=!1,i}return i.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(h),pn=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i.__extends(e,t),e}(y),ln=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i.__extends(e,t),e.prototype[b]=function(){return new pn(this)},e.prototype.lift=function(t){var e=new dn(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new an;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),o=0;o<n;o++)i[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new an;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),o=0;o<n;o++)i[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new an;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new an;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new an;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new cn(this,t))},e.prototype.asObservable=function(){var t=new C;return t.source=this,t},e.create=function(t,e){return new dn(t,e)},e}(C),dn=function(t){function e(e,n){var i=t.call(this)||this;return i.destination=e,i.source=n,i}return i.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):h.EMPTY},e}(ln);function hn(t,e,n,i){return function(o){return o.lift(new fn(t,e,n,i))}}var fn=function(){function t(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}return t.prototype.call=function(t,e){return e.subscribe(new bn(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),bn=function(t){function e(e,n,i,o,r){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=i,s.durationSelector=o,s.subjectSelector=r,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return i.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var i,o=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(t){this.error(t)}else i=t;if(!o){o=this.subjectSelector?this.subjectSelector():new ln,n.set(e,o);var r=new _n(e,o,this);if(this.destination.next(r),this.durationSelector){var s=void 0;try{s=this.durationSelector(new _n(e,o))}catch(t){return void this.error(t)}this.add(s.subscribe(new yn(e,o,this)))}}o.closed||o.next(i)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(y),yn=function(t){function e(e,n,i){var o=t.call(this,n)||this;return o.key=e,o.group=n,o.parent=i,o}return i.__extends(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(y),_n=function(t){function e(e,n,i){var o=t.call(this)||this;return o.key=e,o.groupSubject=n,o.refCountSubscription=i,o}return i.__extends(e,t),e.prototype._subscribe=function(t){var e=new h,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&e.add(new mn(n)),e.add(i.subscribe(t)),e},e}(C),mn=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return i.__extends(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(h);function vn(){return function(t){return t.lift(new gn)}}var gn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new wn(t))},t}(),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._next=function(t){},e}(y);function xn(){return function(t){return t.lift(new Sn)}}var Sn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Cn(t))},t}(),Cn=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(y);function In(t){return function(e){return 0===t?Ct():e.lift(new En(t))}}var En=function(){function t(t){if(this.total=t,this.total<0)throw new Ce}return t.prototype.call=function(t,e){return e.subscribe(new kn(t,this.total))},t}(),kn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,o=0;o<n;o++){var r=e++%n;t.next(i[r])}t.complete()},e}(y);function On(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ie((function(e,n){return t(e,n,i)})):jt,In(1),n?Zt(e):je((function(){return new Be})))}}function Pn(t){return function(e){return e.lift(new Tn(t))}}var Tn=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Nn(t,this.value))},t}(),Nn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.value=n,i}return i.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(y);function Bn(){return function(t){return t.lift(new jn)}}var jn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new An(t))},t}(),An=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._next=function(t){this.destination.next(ie.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ie.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ie.createComplete()),t.complete()},e}(y);function Dn(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Mn(t,e,n))}}var Mn=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t,this.accumulator,this.seed,this.hasSeed))},t}(),Vn=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.accumulator=n,r._seed=i,r.hasSeed=o,r.index=0,r}return i.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(y);function Rn(t,e){return arguments.length>=2?function(n){return x(Dn(t,e),In(1),Zt(e))(n)}:function(e){return x(Dn((function(e,n,i){return t(e,n,i+1)})),In(1))(e)}}function Fn(t){return Rn("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}function zn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,i=null,o=t[t.length-1];return K(o)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===i&&1===t.length&&t[0]instanceof C?t[0]:At(n)(yt(t,i))}function Hn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(zn.apply(void 0,[e].concat(t)))}}function Ln(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Tt((function(){return t}),e,n):("number"==typeof e&&(n=e),Tt((function(){return t}),n))}function Wn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new Kn(t,e,n))}}var Kn=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Un(t,this.accumulator,this.seed,this.concurrent))},t}(),Un=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.accumulator=n,r.acc=i,r.concurrent=o,r.hasValue=!1,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.__extends(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(i,t,e)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){var i=new v(this,void 0,void 0);this.destination.add(i),D(this,t,e,n,i)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,o){var r=this.destination;this.acc=e,this.hasValue=!0,r.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(m);function qn(t){return Rn("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}function Gn(){return function(t){return t.lift(new Yn(t))}}var Yn=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new $n(t,n),o=e.subscribe(i);return i.closed||(i.connection=n.connect()),o},t}(),$n=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(y),Zn=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new h).add(this.source.subscribe(new Qn(this.getSubject(),this))),t.closed?(this._connection=null,t=h.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Gn()(this)},e}(C).prototype,Xn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Zn._subscribe},_isComplete:{value:Zn._isComplete,writable:!0},getSubject:{value:Zn.getSubject},connect:{value:Zn.connect},refCount:{value:Zn.refCount}},Qn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(pn);function Jn(t,e){return function(n){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new ti(i,e));var o=Object.create(n,Xn);return o.source=n,o.subjectFactory=i,o}}var ti=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,i=this.subjectFactory(),o=n(i).subscribe(t);return o.add(e.subscribe(i)),o},t}();function ei(t,e){return void 0===e&&(e=0),function(n){return n.lift(new ni(t,e))}}var ni=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new ii(t,this.scheduler,this.delay))},t}(),ii=function(t){function e(e,n,i){void 0===i&&(i=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=i,o}return i.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new oi(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(ie.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(ie.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(ie.createComplete()),this.unsubscribe()},e}(y),oi=function(){return function(t,e){this.notification=t,this.destination=e}}();function ri(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&c(t[0])&&(t=t[0]),function(e){return e.lift(new si(t))}}var si=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new ui(t,this.nextSources))},t}(),ui=function(t){function e(e,n){var i=t.call(this,e)||this;return i.destination=e,i.nextSources=n,i}return i.__extends(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new v(this,void 0,void 0);this.destination.add(e),D(this,t,void 0,void 0,e)}else this.destination.complete()},e}(m);function ai(){return function(t){return t.lift(new ci)}}var ci=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new pi(t))},t}(),pi=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return i.__extends(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(y);function li(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function di(t,e){return function(n){return[Ie(t,e)(n),Ie(li(t,e))(n)]}}function hi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return kt(fi(t,n))(e)}}function fi(t,e){return function(n){for(var i=n,o=0;o<e;o++){var r=i[t[o]];if(void 0===r)return;i=r}return i}}function bi(t){return t?Jn((function(){return new ln}),t):Jn(new ln)}var yi=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return i.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new an;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(ln);function _i(t){return function(e){return Jn(new yi(t))(e)}}var mi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i.__extends(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),h.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),h.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(ln);function vi(){return function(t){return Jn(new mi)(t)}}var gi=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(F),wi=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(H))(gi),xi=function(t){function e(e,n,i){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=i,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=e<1?1:e,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return i.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Si(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,r=i.length;if(this.closed)throw new an;if(this.isStopped||this.hasError?e=h.EMPTY:(this.observers.push(t),e=new cn(this,t)),o&&t.add(t=new ii(t,o)),n)for(var s=0;s<r&&!t.closed;s++)t.next(i[s]);else for(s=0;s<r&&!t.closed;s++)t.next(i[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||wi).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,o=i.length,r=0;r<o&&!(t-i[r].time<n);)r++;return o>e&&(r=Math.max(r,o-e)),r>0&&i.splice(0,r),i},e}(ln),Si=function(){return function(t,e){this.time=t,this.value=e}}();function Ci(t,e,n,i){n&&"function"!=typeof n&&(i=n);var o="function"==typeof n?n:void 0,r=new xi(t,e,i);return function(t){return Jn((function(){return r}),o)(t)}}function Ii(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!c(t[0]))return t[0];t=t[0]}return yt(t,void 0).lift(new Ei)}var Ei=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ki(t))},t}(),ki=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.__extends(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var i=t[n],o=D(this,i,i,n);this.subscriptions&&this.subscriptions.push(o),this.add(o)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,i,o){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var s=this.subscriptions[r];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(m);function Oi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&c(t[0])&&(t=t[0]),e.lift.call(Ii.apply(void 0,[e].concat(t)))}}function Pi(t){return void 0===t&&(t=-1),function(e){return 0===t?Ct():t<0?e.lift(new Ti(-1,e)):e.lift(new Ti(t-1,e))}}var Ti=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ni(t,this.count,this.source))},t}(),Ni=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.count=n,o.source=i,o}return i.__extends(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(y);function Bi(t){return function(e){return e.lift(new ji(t))}}var ji=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Ai(t,this.notifier,e))},t}(),Ai=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.notifier=n,o.source=i,o.sourceIsBeingSubscribedTo=!0,o}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new ln;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=D(this,e)},e}(m);function Di(t){return void 0===t&&(t=-1),function(e){return e.lift(new Mi(t,e))}}var Mi=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Vi(t,this.count,this.source))},t}(),Vi=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.count=n,o.source=i,o}return i.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(y);function Ri(t){return function(e){return e.lift(new Fi(t,e))}}var Fi=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new zi(t,this.notifier,this.source))},t}(),zi=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.notifier=n,o.source=i,o}return i.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,i=this.retries,o=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{n=new ln;try{i=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=D(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,i,o){var r=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=r,this.source.subscribe(this)},e}(m);function Hi(t){return function(e){return e.lift(new Li(t))}}var Li=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Wi(t),i=e.subscribe(n);return i.add(D(n,this.notifier)),i},t}(),Wi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return i.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,i,o){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(m);function Ki(t,e){return void 0===e&&(e=L),function(n){return n.lift(new Ui(t,e))}}var Ui=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qi(t,this.period,this.scheduler))},t}(),qi=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.period=n,o.scheduler=i,o.hasValue=!1,o.add(i.schedule(Gi,n,{subscriber:o,period:n})),o}return i.__extends(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(y);function Gi(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Yi(t,e){return function(n){return n.lift(new $i(t,e))}}var $i=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Zi(t,this.compareTo,this.comparator))},t}(),Zi=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.compareTo=n,o.comparator=i,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(n.subscribe(new Xi(e,o))),o}return i.__extends(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var i=t.shift(),o=e.shift(),r=!1;try{r=n?n(i,o):i===o}catch(t){this.destination.error(t)}r||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(y),Xi=function(t){function e(e,n){var i=t.call(this,e)||this;return i.parent=n,i}return i.__extends(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(y);function Qi(){return new ln}function Ji(){return function(t){return Gn()(Jn(Qi)(t))}}function to(t,e,n){var i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,i=t.bufferSize,o=void 0===i?Number.POSITIVE_INFINITY:i,r=t.windowTime,s=void 0===r?Number.POSITIVE_INFINITY:r,u=t.refCount,a=t.scheduler,c=0,p=!1,l=!1;return function(t){c++,e&&!p||(p=!1,e=new xi(o,s,a),n=t.subscribe({next:function(t){e.next(t)},error:function(t){p=!0,e.error(t)},complete:function(){l=!0,e.complete()}}));var i=e.subscribe(this);this.add((function(){c--,i.unsubscribe(),n&&!l&&u&&0===c&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(i))}}function eo(t){return function(e){return e.lift(new no(t,e))}}var no=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new io(t,this.predicate,this.source))},t}(),io=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.predicate=n,o.source=i,o.seenValue=!1,o.index=0,o}return i.__extends(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Be)},e}(y);function oo(t){return function(e){return e.lift(new ro(t))}}var ro=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new so(t,this.total))},t}(),so=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(y);function uo(t){return function(e){return e.lift(new ao(t))}}var ao=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ce}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new y(t)):e.subscribe(new co(t,this._skipCount))},t}(),co=function(t){function e(e,n){var i=t.call(this,e)||this;return i._skipCount=n,i._count=0,i._ring=new Array(n),i}return i.__extends(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var i=n%e,o=this._ring,r=o[i];o[i]=t,this.destination.next(r)}},e}(y);function po(t){return function(e){return e.lift(new lo(t))}}var lo=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new ho(t,this.notifier))},t}(),ho=function(t){function e(e,n){var i=t.call(this,e)||this;i.hasValue=!1;var o=new v(i,void 0,void 0);return i.add(o),i.innerSubscription=o,D(i,n,void 0,void 0,o),i}return i.__extends(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,i,o){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(m);function fo(t){return function(e){return e.lift(new bo(t))}}var bo=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new yo(t,this.predicate))},t}(),yo=function(t){function e(e,n){var i=t.call(this,e)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(y);function _o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];K(n)?t.pop():n=null;var i=t.length;return Mt(1!==i||n?i>0?yt(t,n):Ct(n):It(t[0]),e)}}var mo=1,vo={};var go=function(t){var e=mo++;return vo[e]=t,Promise.resolve().then((function(){return function(t){var e=vo[t];e&&e()}(e)})),e},wo=function(t){delete vo[t]},xo=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i.__extends(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=go(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(wo(n),e.scheduled=void 0)},e}(F),So=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<o&&(t=n.shift()));if(this.active=!1,e){for(;++i<o&&(t=n.shift());)t.unsubscribe();throw e}},e}(H))(xo),Co=function(t){function e(e,n,i){void 0===n&&(n=0),void 0===i&&(i=So);var o=t.call(this)||this;return o.source=e,o.delayTime=n,o.scheduler=i,(!W(n)||n<0)&&(o.delayTime=0),i&&"function"==typeof i.schedule||(o.scheduler=So),o}return i.__extends(e,t),e.create=function(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=So),new e(t,n,i)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,i=this.source;return this.scheduler.schedule(e.dispatch,n,{source:i,subscriber:t})},e}(C);function Io(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Eo(t,e))}}var Eo=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Co(e,this.delay,this.scheduler).subscribe(t)},t}();function ko(t,e){return"function"==typeof e?function(n){return n.pipe(ko((function(n,i){return wt(t(n,i)).pipe(kt((function(t,o){return e(n,t,i,o)})))})))}:function(e){return e.lift(new Oo(t))}}var Oo=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Po(t,this.project))},t}(),Po=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var o=new v(this,void 0,void 0);this.destination.add(o),this.innerSubscription=D(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,o){this.destination.next(e)},e}(m);function To(){return ko(jt)}function No(t,e){return e?ko((function(){return t}),e):ko((function(){return t}))}function Bo(t){return function(e){return e.lift(new jo(t))}}var jo=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Ao(t),i=D(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),Ao=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(m);function Do(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new Mo(t,e))}}var Mo=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new Vo(t,this.predicate,this.inclusive))},t}(),Vo=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.predicate=n,o.inclusive=i,o.index=0,o}return i.__extends(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(y),Ro={leading:!0,trailing:!1};function Fo(t,e){return void 0===e&&(e=Ro),function(n){return n.lift(new zo(t,e.leading,e.trailing))}}var zo=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new Ho(t,this.durationSelector,this.leading,this.trailing))},t}(),Ho=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.destination=e,r.durationSelector=n,r._leading=i,r._trailing=o,r._hasValue=!1,r}return i.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=D(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,i,o){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(m);function Lo(t,e,n){return void 0===e&&(e=L),void 0===n&&(n=Ro),function(i){return i.lift(new Wo(t,e,n.leading,n.trailing))}}var Wo=function(){function t(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new Ko(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Ko=function(t){function e(e,n,i,o,r){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=i,s.leading=o,s.trailing=r,s._hasTrailingValue=!1,s._trailingValue=null,s}return i.__extends(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Uo,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(y);function Uo(t){t.subscriber.clearThrottle()}function qo(t){return void 0===t&&(t=L),function(e){return n=function(){return e.pipe(Dn((function(e,n){var i=e.current;return{value:n,current:t.now(),last:i}}),{current:t.now(),value:void 0,last:void 0}),kt((function(t){var e=t.current,n=t.last,i=t.value;return new Go(i,e-n)})))},new C((function(t){var e;try{e=n()}catch(e){return void t.error(e)}return(e?wt(e):Ct()).subscribe(t)}));var n}}var Go=function(){return function(t,e){this.value=t,this.interval=e}}();function Yo(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Yo.prototype=Object.create(Error.prototype);var $o=Yo;function Zo(t,e,n){return void 0===n&&(n=L),function(i){var o=te(t),r=o?+t-n.now():Math.abs(t);return i.lift(new Xo(r,o,e,n))}}var Xo=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new Qo(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Qo=function(t){function e(e,n,i,o,r){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=i,s.withObservable=o,s.scheduler=r,s.action=null,s.scheduleTimeout(),s}return i.__extends(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(D(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(m);function Jo(t,e){return void 0===e&&(e=L),Zo(t,ee(new $o),e)}function tr(t){return void 0===t&&(t=L),kt((function(e){return new er(e,t.now())}))}var er=function(){return function(t,e){this.value=t,this.timestamp=e}}();function nr(t,e,n){return 0===n?[e]:(t.push(e),t)}function ir(){return Rn(nr,[])}function or(t){return function(e){return e.lift(new rr(t))}}var rr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new sr(t),i=e.subscribe(n);return i.closed||n.add(D(n,this.windowBoundaries)),i},t}(),sr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new ln,e.next(n.window),n}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,o){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new ln;e.next(n)},e}(m);function ur(t,e){return void 0===e&&(e=0),function(n){return n.lift(new ar(t,e))}}var ar=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new cr(t,this.windowSize,this.startWindowEvery))},t}(),cr=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.destination=e,o.windowSize=n,o.startWindowEvery=i,o.windows=[new ln],o.count=0,e.next(o.windows[0]),o}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,o=this.windows,r=o.length,s=0;s<r&&!this.closed;s++)o[s].next(t);var u=this.count-i+1;if(u>=0&&u%e==0&&!this.closed&&o.shift().complete(),++this.count%e==0&&!this.closed){var a=new ln;o.push(a),n.next(a)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(y);function pr(t){var e=L,n=null,i=Number.POSITIVE_INFINITY;return K(arguments[3])&&(e=arguments[3]),K(arguments[2])?e=arguments[2]:W(arguments[2])&&(i=arguments[2]),K(arguments[1])?e=arguments[1]:W(arguments[1])&&(n=arguments[1]),function(o){return o.lift(new lr(t,n,i,e))}}var lr=function(){function t(t,e,n,i){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new hr(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),dr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return i.__extends(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(ln),hr=function(t){function e(e,n,i,o,r){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=i,s.maxWindowSize=o,s.scheduler=r,s.windows=[];var u=s.openWindow();if(null!==i&&i>=0){var a={subscriber:s,window:u,context:null},c={windowTimeSpan:n,windowCreationInterval:i,subscriber:s,scheduler:r};s.add(r.schedule(yr,n,a)),s.add(r.schedule(br,i,c))}else{var p={subscriber:s,window:u,windowTimeSpan:n};s.add(r.schedule(fr,n,p))}return s}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,i=0;i<n;i++){var o=e[i];o.closed||(o.next(t),o.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(o))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new dr;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(y);function fr(t){var e=t.subscriber,n=t.windowTimeSpan,i=t.window;i&&e.closeWindow(i),t.window=e.openWindow(),this.schedule(t,n)}function br(t){var e=t.windowTimeSpan,n=t.subscriber,i=t.scheduler,o=t.windowCreationInterval,r=n.openWindow(),s={action:this,subscription:null},u={subscriber:n,window:r,context:s};s.subscription=i.schedule(yr,e,u),this.add(s.subscription),this.schedule(t,o)}function yr(t){var e=t.subscriber,n=t.window,i=t.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),e.closeWindow(n)}function _r(t,e){return function(n){return n.lift(new mr(t,e))}}var mr=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new vr(t,this.openings,this.closingSelector))},t}(),vr=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.openings=n,o.closingSelector=i,o.contexts=[],o.add(o.openSubscription=D(o,n,n)),o}return i.__extends(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,i=0;i<n;i++)e[i].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,o=-1;++o<i;){var r=n[o];r.window.error(e),r.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,i=-1;++i<n;){var o=e[i];o.window.complete(),o.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var i=t[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,i,o){if(t===this.openings){var r=void 0;try{r=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var s=new ln,u=new h,a={window:s,subscription:u};this.contexts.push(a);var c=D(this,r,a);c.closed?this.closeWindow(this.contexts.length-1):(c.context=a,u.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],i=n.window,o=n.subscription;e.splice(t,1),i.complete(),o.unsubscribe()}},e}(m);function gr(t){return function(e){return e.lift(new wr(t))}}var wr=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new xr(t,this.closingSelector))},t}(),xr=function(t){function e(e,n){var i=t.call(this,e)||this;return i.destination=e,i.closingSelector=n,i.openWindow(),i}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,o){this.openWindow(o)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,i=this.window=new ln;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=D(this,n))},e}(m);function Sr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var i=t;return e.lift(new Cr(i,n))}}var Cr=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Ir(t,this.observables,this.project))},t}(),Ir=function(t){function e(e,n,i){var o=t.call(this,e)||this;o.observables=n,o.project=i,o.toRespond=[];var r=n.length;o.values=new Array(r);for(var s=0;s<r;s++)o.toRespond.push(s);for(s=0;s<r;s++){var u=n[s];o.add(D(o,u,u,s))}return o}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,o){this.values[n]=e;var r=this.toRespond;if(r.length>0){var s=r.indexOf(n);-1!==s&&r.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(m);function Er(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),yt(t,void 0).lift(new kr(n))}var kr=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Or(t,this.resultSelector))},t}(),Or=function(t){function e(e,n,i){void 0===i&&(i=Object.create(null));var o=t.call(this,e)||this;return o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:null,o.values=i,o}return i.__extends(e,t),e.prototype._next=function(t){var e=this.iterators;c(t)?e.push(new Tr(t)):"function"==typeof t[P]?e.push(new Pr(t[P]())):e.push(new Nr(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var i=t[n];if(i.stillUnsubscribed)this.destination.add(i.subscribe(i,n));else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,i=0;i<e;i++){if("function"==typeof(s=t[i]).hasValue&&!s.hasValue())return}var o=!1,r=[];for(i=0;i<e;i++){var s,u=(s=t[i]).next();if(s.hasCompleted()&&(o=!0),u.done)return void n.complete();r.push(u.value)}this.resultSelector?this._tryresultSelector(r):n.next(r),o&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(y),Pr=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),Tr=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[P]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Nr=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.parent=n,o.observable=i,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return i.__extends(e,t),e.prototype[P]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,o){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return D(this,this.observable,this,e)},e}(m);function Br(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Er.apply(void 0,[e].concat(t)))}}function jr(t){return function(e){return e.lift(new kr(t))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(15);e.ButtonDirective=i.ButtonDirective,e.Button=i.ButtonDirective;var o=n(23);e.ButtonGroupComponent=o.ButtonGroupComponent,e.ButtonGroup=o.ButtonGroupComponent;var r=n(24);e.ButtonGroupModule=r.ButtonGroupModule;var s=n(10);e.ButtonModule=s.ButtonModule;var u=n(41);e.ButtonsModule=u.ButtonsModule;var a=n(27);e.SplitButtonComponent=a.SplitButtonComponent,e.SplitButton=a.SplitButtonComponent;var c=n(25);e.SplitButtonModule=c.SplitButtonModule;var p=n(31);e.SplitButtonCustomMessagesComponent=p.SplitButtonCustomMessagesComponent;var l=n(33);e.DropDownButtonComponent=l.DropDownButtonComponent,e.DropDownButton=l.DropDownButtonComponent;var d=n(32);e.DropDownButtonModule=d.DropDownButtonModule;var h=n(19);e.ChipComponent=h.ChipComponent;var f=n(35);e.ChipListComponent=f.ChipListComponent;var b=n(34);e.ChipModule=b.ChipModule;var y=n(36);e.FloatingActionButtonModule=y.FloatingActionButtonModule;var _=n(37);e.FloatingActionButtonComponent=_.FloatingActionButtonComponent;var m=n(21);e.FloatingActionButtonTemplateDirective=m.FloatingActionButtonTemplateDirective;var v=n(20);e.DialItemTemplateDirective=v.DialItemTemplateDirective},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(10),s=n(24),u=n(25),a=n(32),c=n(34),p=n(36),l=function(){function t(){}return t=i.__decorate([o.NgModule({exports:[s.ButtonGroupModule,r.ButtonModule,u.SplitButtonModule,a.DropDownButtonModule,c.ChipModule,p.FloatingActionButtonModule]})],t)}();e.ButtonsModule=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(11),s=n(2),u=function(){function t(t,e,n){this.focusService=t,this.renderer=n,this.element=e.nativeElement,this.subscribeEvents()}return t.prototype.ngOnInit=function(){this.index===this.focusService.focused?this.renderer.addClass(this.element,"k-focus"):this.renderer.removeClass(this.element,"k-focus")},t.prototype.ngOnDestroy=function(){this.unsubscribeEvents()},t.prototype.subscribeEvents=function(){var t=this;s.isDocumentAvailable()&&(this.focusSubscription=this.focusService.onFocus.subscribe((function(e){t.index===e?(t.renderer.addClass(t.element,"k-focus"),t.element.focus()):t.renderer.removeClass(t.element,"k-focus")})))},t.prototype.unsubscribeEvents=function(){s.isDocumentAvailable()&&this.focusSubscription&&this.focusSubscription.unsubscribe()},i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"index",void 0),t=i.__decorate([o.Directive({selector:"[kendoButtonFocusable]"}),i.__metadata("design:paramtypes",[r.FocusService,o.ElementRef,o.Renderer2])],t)}();e.FocusableDirective=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function t(t){this.viewContainerRef=t}return Object.defineProperty(t.prototype,"templateContext",{set:function(t){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),t.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(t.templateRef,t))},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"templateContext",null),t=i.__decorate([o.Directive({selector:"[templateContext]"}),i.__metadata("design:paramtypes",[o.ViewContainerRef])],t)}();e.TemplateContextDirective=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),s=n(30),u=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return i.__extends(e,t),n=e,e=n=i.__decorate([o.Directive({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoSplitButtonLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}(s.Messages);e.LocalizedSplitButtonMessagesDirective=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnchorAlign=function(t,e){var n={horizontal:e?"right":"left",vertical:"bottom"};return"end"===t.horizontal&&(n.horizontal=e?"left":"right"),"bottom"===t.vertical&&(n.vertical="top"),"bottom"===t.vertical&&"end"===t.horizontal&&(n.horizontal=e?"left":"right",n.vertical="top"),n},e.getPopupAlign=function(t,e){var n={horizontal:e?"right":"left",vertical:"top"};return"end"===t.horizontal&&(n.horizontal=e?"left":"right"),"bottom"===t.vertical&&(n.vertical="bottom"),"bottom"===t.vertical&&"end"===t.horizontal&&(n.horizontal=e?"left":"right",n.vertical="bottom"),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(38);e.openAnimation=function(t){var e="bottom"===t.align.vertical,n=t.duration,o=t.gap;return i.sequence([i.query(".k-fab-item",[i.style({opacity:0,transform:"translateY("+(e?"8px":"-8px")+")"}),i.stagger(o,[i.animate(n+"ms ease-in",i.style({opacity:"*",transform:"translateY(0)"}))])],{optional:!0})])},e.closeAnimation=function(t){var e="bottom"===t.align.vertical,n=t.duration,o=t.gap;return i.sequence([i.query(".k-fab-item",[i.style({opacity:"*",transform:"translateY(0)"}),i.stagger(-o,[i.animate(n+"ms ease-in",i.style({opacity:0,transform:"translateY("+(e?"8px":"-8px")+")"}))])],{optional:!0})])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(9),s=n(11),u=function(){function t(t,e){var n=this;this.focusService=t,this.cdr=e,this.hostClass=!0,this.subscriptions=new r.Subscription,this.subscriptions.add(this.focusService.onFocus.subscribe((function(){return n.cdr.detectChanges()})))}return Object.defineProperty(t.prototype,"bottomClass",{get:function(){return"top"===this.align.vertical||"middle"===this.align.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topClass",{get:function(){return"bottom"===this.align.vertical},enumerable:!0,configurable:!0}),t.prototype.isFocused=function(t){return this.focusService.isFocused(t)},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},i.__decorate([o.HostBinding("class.k-fab-items"),i.__metadata("design:type",Boolean)],t.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("class.k-fab-items-bottom"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"bottomClass",null),i.__decorate([o.HostBinding("class.k-fab-items-top"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"topClass",null),i.__decorate([o.Input(),i.__metadata("design:type",Array)],t.prototype,"dialItems",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"dialItemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"align",void 0),t=i.__decorate([o.Component({selector:"[kendoDialList]",template:'\n <ng-container *ngFor=\'let item of dialItems; let idx = index\'>\n <li\n kendoButtonFocusable\n kendoDialItem\n [item]="dialItems[idx]"\n [index]="idx"\n [dialItemTemplate]="dialItemTemplate"\n [isFocused]="isFocused(idx)"\n [ngClass]=\'item.cssClass\'\n [ngStyle]=\'item.cssStyle\'\n [align]="align"\n >\n </li>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[s.FocusService,o.ChangeDetectorRef])],t)}();e.DialListComponent=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),s=function(){function t(t,e,n){this.element=t,this.renderer=e,this.localisationService=n,this.hostClass=!0,this.role="menuitem"}return Object.defineProperty(t.prototype,"disabledClass",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){var t=this.item.label;return t||this.itemTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indexAttr",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClasses",{get:function(){var t=[];return this.item.iconClass&&t.push(""+this.item.iconClass),this.item.icon&&t.push("k-fab-item-icon k-icon k-i-"+this.item.icon),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemTitle",{get:function(){var t=this.item.icon,e=this.item.itemTitle;return t&&e?e:t},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this.element.nativeElement,e=this.localisationService.rtl,n=this.align.horizontal;this.renderer.addClass(t,this.getTextDirectionClass(e,n))},t.prototype.getTextDirectionClass=function(t,e){return{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[t?"rtl":"ltr"]["end"===e?"end":"start"]},i.__decorate([o.HostBinding("class.k-fab-item"),i.__metadata("design:type",Boolean)],t.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],t.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.title"),o.HostBinding("attr.aria-label"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"title",null),i.__decorate([o.HostBinding("attr.data-fab-item-index"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"indexAttr",null),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"isFocused",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"dialItemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"align",void 0),t=i.__decorate([o.Component({selector:"[kendoDialItem]",template:'\n <ng-template *ngIf="dialItemTemplate"\n [ngTemplateOutlet]="dialItemTemplate"\n [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"\n >\n </ng-template>\n\n <ng-container *ngIf="!dialItemTemplate">\n <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>\n <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.LocalizationService])],t)}();e.DialItemComponent=s}])}));
|