text: /**
   * @license
   * Copyright Google LLC All Rights Reserved.
   *
   * Use of this source code is governed by an MIT-style license that can be
   * found in the LICENSE file at https://angular.io/license
   */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/a11y"),require("@angular/cdk/overlay"),require("@angular/common"),require("@angular/core"),require("@angular/material/core"),require("@angular/cdk/scrolling"),require("@angular/animations"),require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/keycodes"),require("@angular/platform-browser"),require("rxjs/observable/merge"),require("rxjs/operators/filter"),require("rxjs/operators/first"),require("rxjs/operators/startWith"),require("rxjs/operators/takeUntil"),require("rxjs/operators/map"),require("rxjs/Subject"),require("rxjs/Observable")):"function"==typeof define&&define.amd?define(["exports","@angular/cdk/a11y","@angular/cdk/overlay","@angular/common","@angular/core","@angular/material/core","@angular/cdk/scrolling","@angular/animations","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/keycodes","@angular/platform-browser","rxjs/observable/merge","rxjs/operators/filter","rxjs/operators/first","rxjs/operators/startWith","rxjs/operators/takeUntil","rxjs/operators/map","rxjs/Subject","rxjs/Observable"],t):t((e.ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.sidenav=e.ng.material.sidenav||{}),e.ng.cdk.a11y,e.ng.cdk.overlay,e.ng.common,e.ng.core,e.ng.material.core,e.ng.cdk.scrolling,e.ng.animations,e.ng.cdk.bidi,e.ng.cdk.coercion,e.ng.cdk.keycodes,e.ng.platformBrowser,e.Rx.Observable,e.Rx.Observable,e.Rx.Observable,e.Rx.Observable,e.Rx.Observable,e.Rx.Observable,e.Rx)}(this,function(e,t,n,r,o,i,a,s,d,c,p,l,u,m,h,f,g,b,_){"use strict";function w(e,t){function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function y(e){throw Error("A drawer was already declared for 'position=\""+e+"\"'")}var v=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])},x=function(){function e(e,t){this.type=e,this.animationFinished=t}return e}(),C=function(){function e(e,t){this._changeDetectorRef=e,this._container=t,this._margins={left:0,right:0}}return e.prototype.ngAfterContentInit=function(){var e=this;this._container._contentMargins.subscribe(function(t){e._margins=t,e._changeDetectorRef.markForCheck()})},e.decorators=[{type:o.Component,args:[{selector:"mat-drawer-content",template:"<ng-content></ng-content>",host:{class:"mat-drawer-content","[style.marginLeft.px]":"_margins.left","[style.marginRight.px]":"_margins.right"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,preserveWhitespaces:!1}]}],e.ctorParameters=function(){return[{type:o.ChangeDetectorRef},{type:O,decorators:[{type:o.Inject,args:[o.forwardRef(function(){return O})]}]}]},e}(),k=function(){function e(e,t,n,r){var i=this;this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=n,this._doc=r,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new o.EventEmitter,this._animationState="void",this.openedChange=new o.EventEmitter,this.onOpen=this._openedStream,this.onClose=this._closedStream,this.onPositionChanged=new o.EventEmitter,this.onAlignChanged=new o.EventEmitter,this._modeChanged=new _.Subject,this.openedChange.subscribe(function(e){e?(i._doc&&(i._elementFocusedBeforeDrawerWasOpened=i._doc.activeElement),i._isFocusTrapEnabled&&i._focusTrap&&i._focusTrap.focusInitialElementWhenReady()):i._restoreFocus()})}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onAlignChanged.emit(),this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.position},set:function(e){this.position=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(e){this._mode=e,this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClose",{get:function(){return this._disableClose},set:function(e){this._disableClose=c.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(m.filter(function(e){return e}),b.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(m.filter(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),b.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(m.filter(function(e){return!e}),b.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(m.filter(function(e){return e.fromState!==e.toState&&"void"===e.toState}),b.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isFocusTrapEnabled",{get:function(){return this.opened&&"side"!==this.mode},enumerable:!0,configurable:!0}),e.prototype._restoreFocus=function(){var e=this._doc&&this._doc.activeElement;e&&this._elementRef.nativeElement.contains(e)&&(this._elementFocusedBeforeDrawerWasOpened instanceof HTMLElement?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null},e.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._focusTrap.enabled=this._isFocusTrapEnabled,this._enableAnimations=!0},e.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy()},Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(e){this.toggle(c.coerceBooleanProperty(e))},enumerable:!0,configurable:!0}),e.prototype.open=function(e){return this.toggle(!0,e)},e.prototype.close=function(){return this.toggle(!1)},e.prototype.toggle=function(e,t){var n=this;return void 0===e&&(e=!this.opened),void 0===t&&(t="program"),this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=t):(this._animationState="void",this._restoreFocus()),this._focusTrap&&(this._focusTrap.enabled=this._isFocusTrapEnabled),new Promise(function(e){n.openedChange.pipe(h.first()).subscribe(function(t){e(new x(t?"open":"close",!0))})})},e.prototype.handleKeydown=function(e){e.keyCode!==p.ESCAPE||this.disableClose||(this.close(),e.stopPropagation())},e.prototype._onAnimationStart=function(e){this._animationStarted.emit(e)},e.prototype._onAnimationEnd=function(e){var t=e.fromState,n=e.toState;0===n.indexOf("open")&&"void"===t?this.openedChange.emit(!0):"void"===n&&0===t.indexOf("open")&&this.openedChange.emit(!1)},Object.defineProperty(e.prototype,"_width",{get:function(){return this._elementRef.nativeElement?this._elementRef.nativeElement.offsetWidth||0:0},enumerable:!0,configurable:!0}),e.decorators=[{type:o.Component,args:[{selector:"mat-drawer",exportAs:"matDrawer",template:"<ng-content></ng-content>",animations:[s.trigger("transform",[s.state("open, open-instant",s.style({transform:"translate3d(0, 0, 0)",visibility:"visible"})),s.state("void",s.style({visibility:"hidden"})),s.transition("void => open-instant",s.animate("0ms")),s.transition("void <=> open, open-instant => void",s.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])],host:{class:"mat-drawer","[@transform]":"_animationState","(@transform.start)":"_onAnimationStart($event)","(@transform.done)":"_onAnimationEnd($event)","(keydown)":"handleKeydown($event)","[attr.align]":"null","[class.mat-drawer-end]":'position === "end"',"[class.mat-drawer-over]":'mode === "over"',"[class.mat-drawer-push]":'mode === "push"',"[class.mat-drawer-side]":'mode === "side"',tabIndex:"-1"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,preserveWhitespaces:!1}]}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:t.FocusTrapFactory},{type:t.FocusMonitor},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[l.DOCUMENT]}]}]},e.propDecorators={position:[{type:o.Input}],align:[{type:o.Input}],mode:[{type:o.Input}],disableClose:[{type:o.Input}],openedChange:[{type:o.Output}],_openedStream:[{type:o.Output,args:["opened"]}],openedStart:[{type:o.Output}],_closedStream:[{type:o.Output,args:["closed"]}],closedStart:[{type:o.Output}],onOpen:[{type:o.Output,args:["open"]}],onClose:[{type:o.Output,args:["close"]}],onPositionChanged:[{type:o.Output,args:["positionChanged"]}],onAlignChanged:[{type:o.Output,args:["align-changed"]}],opened:[{type:o.Input}]},e}(),O=function(){function e(e,t,n,r,i){var a=this;this._dir=e,this._element=t,this._renderer=n,this._ngZone=r,this._changeDetectorRef=i,this.backdropClick=new o.EventEmitter,this._destroyed=new _.Subject,this._contentMargins=new _.Subject,null!=e&&e.change.pipe(g.takeUntil(this._destroyed)).subscribe(function(){return a._validateDrawers()})}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._drawers.changes.pipe(f.startWith(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e._updateContentMargins(),e._changeDetectorRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype.open=function(){this._drawers.forEach(function(e){return e.open()})},e.prototype.close=function(){this._drawers.forEach(function(e){return e.close()})},e.prototype._watchDrawerToggle=function(e){var t=this;e._animationStarted.pipe(g.takeUntil(this._drawers.changes),m.filter(function(e){return e.fromState!==e.toState})).subscribe(function(e){"open-instant"!==e.toState&&t._renderer.addClass(t._element.nativeElement,"mat-drawer-transition"),t._updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(g.takeUntil(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})},e.prototype._watchDrawerPosition=function(e){var t=this;e&&e.onPositionChanged.pipe(g.takeUntil(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.asObservable().pipe(h.first()).subscribe(function(){t._validateDrawers()})})},e.prototype._watchDrawerMode=function(e){var t=this;e&&e._modeChanged.pipe(g.takeUntil(u.merge(this._drawers.changes,this._destroyed))).subscribe(function(){t._updateContentMargins(),t._changeDetectorRef.markForCheck()})},e.prototype._setContainerClass=function(e){e?this._renderer.addClass(this._element.nativeElement,"mat-drawer-opened"):this._renderer.removeClass(this._element.nativeElement,"mat-drawer-opened")},e.prototype._validateDrawers=function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?(null!=e._end&&y("end"),e._end=t):(null!=e._start&&y("start"),e._start=t)}),this._right=this._left=null,null==this._dir||"ltr"==this._dir.value?(this._left=this._start,this._right=this._end):(this._left=this._end,this._right=this._start)},e.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},e.prototype._closeModalDrawer=function(){[this._start,this._end].filter(function(e){return e&&!e.disableClose&&"side"!==e.mode}).forEach(function(e){return e.close()})},e.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&"side"!=this._start.mode||this._isDrawerOpen(this._end)&&"side"!=this._end.mode},e.prototype._isDrawerOpen=function(e){return null!=e&&e.opened},e.prototype._updateContentMargins=function(){var e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var n=this._left._width;e+=n,t-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._width;else if("push"==this._right.mode){var n=this._right._width;t+=n,e-=n}this._contentMargins.next({left:e,right:t})},e.decorators=[{type:o.Component,args:[{selector:"mat-drawer-container",exportAs:"matDrawerContainer",template:'<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" [class.mat-drawer-shown]="_isShowingBackdrop()"></div><ng-content select="mat-drawer"></ng-content><ng-content select="mat-drawer-content"></ng-content><mat-drawer-content *ngIf="!_content" cdkScrollable><ng-content></ng-content></mat-drawer-content>',styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-opened{overflow:hidden}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media screen and (-ms-high-contrast:active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;min-width:5vw;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%,0,0)}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer{transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%,0,0)}.mat-drawer.mat-drawer-opened:not(.mat-drawer-side),.mat-drawer.mat-drawer-opening:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-sidenav-fixed{position:fixed}"],host:{class:"mat-drawer-container"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,preserveWhitespaces:!1}]}],e.ctorParameters=function(){return[{type:d.Directionality,decorators:[{type:o.Optional}]},{type:o.ElementRef},{type:o.Renderer2},{type:o.NgZone},{type:o.ChangeDetectorRef}]},e.propDecorators={_drawers:[{type:o.ContentChildren,args:[k]}],_content:[{type:o.ContentChild,args:[C]}],backdropClick:[{type:o.Output}]},e}(),D=function(e){function t(t,n){return e.call(this,t,n)||this}return w(t,e),t.decorators=[{type:o.Component,args:[{selector:"mat-sidenav-content",template:"<ng-content></ng-content>",host:{class:"mat-drawer-content mat-sidenav-content","[style.marginLeft.px]":"_margins.left","[style.marginRight.px]":"_margins.right"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:o.ChangeDetectorRef},{type:E,decorators:[{type:o.Inject,args:[o.forwardRef(function(){return E})]}]}]},t}(C),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return w(t,e),Object.defineProperty(t.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=c.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=c.coerceNumberProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=c.coerceNumberProperty(e)},enumerable:!0,configurable:!0}),t.decorators=[{type:o.Component,args:[{selector:"mat-sidenav",exportAs:"matSidenav",template:"<ng-content></ng-content>",animations:[s.trigger("transform",[s.state("open, open-instant",s.style({transform:"translate3d(0, 0, 0)",visibility:"visible"})),s.state("void",s.style({visibility:"hidden"})),s.transition("void => open-instant",s.animate("0ms")),s.transition("void <=> open, open-instant => void",s.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])],host:{class:"mat-drawer mat-sidenav",tabIndex:"-1","[@transform]":"_animationState","(@transform.start)":"_onAnimationStart($event)","(@transform.done)":"_onAnimationEnd($event)","(keydown)":"handleKeydown($event)","[attr.align]":"null","[class.mat-drawer-end]":'position === "end"',"[class.mat-drawer-over]":'mode === "over"',"[class.mat-drawer-push]":'mode === "push"',"[class.mat-drawer-side]":'mode === "side"',"[class.mat-sidenav-fixed]":"fixedInViewport","[style.top.px]":"fixedInViewport ? fixedTopGap : null","[style.bottom.px]":"fixedInViewport ? fixedBottomGap : null"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t.propDecorators={fixedInViewport:[{type:o.Input}],fixedTopGap:[{type:o.Input}],fixedBottomGap:[{type:o.Input}]},t}(k),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.decorators=[{type:o.Component,args:[{selector:"mat-sidenav-container",exportAs:"matSidenavContainer",template:'<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" [class.mat-drawer-shown]="_isShowingBackdrop()"></div><ng-content select="mat-sidenav"></ng-content><ng-content select="mat-sidenav-content"></ng-content><mat-sidenav-content *ngIf="!_content" cdkScrollable><ng-content></ng-content></mat-sidenav-content>',styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-opened{overflow:hidden}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media screen and (-ms-high-contrast:active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;min-width:5vw;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%,0,0)}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer{transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%,0,0)}.mat-drawer.mat-drawer-opened:not(.mat-drawer-side),.mat-drawer.mat-drawer-opening:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-sidenav-fixed{position:fixed}"],host:{class:"mat-drawer-container mat-sidenav-container"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t.propDecorators={_drawers:[{type:o.ContentChildren,args:[S]}],_content:[{type:o.ContentChild,args:[D]}]},t}(O),P=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{imports:[r.CommonModule,i.MatCommonModule,t.A11yModule,n.OverlayModule,a.ScrollDispatchModule],exports:[i.MatCommonModule,k,O,C,S,E,D],declarations:[k,O,C,S,E,D]}]}],e.ctorParameters=function(){return[]},e}();e.MatSidenavModule=P,e.throwMatDuplicatedDrawerError=y,e.MatDrawerToggleResult=x,e.MatDrawerContent=C,e.MatDrawer=k,e.MatDrawerContainer=O,e.MatSidenavContent=D,e.MatSidenav=S,e.MatSidenavContainer=E,Object.defineProperty(e,"__esModule",{value:!0})});
  //# sourceMappingURL=/home/travis/build/angular/material2/dist/bundles/material-sidenav.umd.min.js.map