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(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/cdk/a11y"),require("@angular/material/core"),require("@angular/cdk/bidi"),require("@angular/cdk/keycodes"),require("rxjs/observable/defer"),require("rxjs/observable/of"),require("rxjs/operators/filter"),require("rxjs/operators/startWith"),require("rxjs/Subject"),require("@angular/animations"),require("rxjs/operators/take")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common","@angular/cdk/overlay","@angular/cdk/portal","@angular/cdk/a11y","@angular/material/core","@angular/cdk/bidi","@angular/cdk/keycodes","rxjs/observable/defer","rxjs/observable/of","rxjs/operators/filter","rxjs/operators/startWith","rxjs/Subject","@angular/animations","rxjs/operators/take"],e):e((t.ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.dialog=t.ng.material.dialog||{}),t.ng.core,t.ng.common,t.ng.cdk.overlay,t.ng.cdk.portal,t.ng.cdk.a11y,t.ng.material.core,t.ng.cdk.bidi,t.ng.cdk.keycodes,t.Rx.Observable,t.Rx.Observable,t.Rx.operators,t.Rx.operators,t.Rx,t.ng.animations,t.Rx.operators)}(this,function(t,e,o,a,i,r,n,s,l,c,u,p,d,g,f,h){"use strict";function m(t,e){function o(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function y(){throw Error("Attempting to attach dialog content after content is already attached")}function _(t){return function(){return t.scrollStrategies.block()}}function b(t){return C({},new D,t)}var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},C=Object.assign||function(t){for(var e,o=1,a=arguments.length;o<a;o++){e=arguments[o];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},D=function(){function t(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.direction="ltr",this.ariaDescribedBy=null,this.ariaLabel=null,this.autoFocus=!0}return t}(),x=function(t){function a(o,a,i,r){var n=t.call(this)||this;return n._elementRef=o,n._focusTrapFactory=a,n._changeDetectorRef=i,n._document=r,n._elementFocusedBeforeDialogWasOpened=null,n._state="enter",n._animationStateChanged=new e.EventEmitter,n._ariaLabelledBy=null,n}return m(a,t),a.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&y(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},a.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&y(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},a.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},a.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},a.prototype._savePreviouslyFocusedElement=function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,Promise.resolve().then(function(){return t._elementRef.nativeElement.focus()}))},a.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},a.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},a.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},a.decorators=[{type:e.Component,args:[{selector:"mat-dialog-container",template:"<ng-template cdkPortalOutlet></ng-template>",styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap}.mat-dialog-actions:last-child{margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.Default,animations:[f.trigger("slideDialog",[f.state("enter",f.style({transform:"none",opacity:1})),f.state("void",f.style({transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0})),f.state("exit",f.style({transform:"translate3d(0, 25%, 0)",opacity:0})),f.transition("* => *",f.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])],host:{class:"mat-dialog-container",tabindex:"-1","[attr.role]":"_config?.role","[attr.aria-labelledby]":"_config?.ariaLabel ? null : _ariaLabelledBy","[attr.aria-label]":"_config?.ariaLabel","[attr.aria-describedby]":"_config?.ariaDescribedBy || null","[@slideDialog]":"_state","(@slideDialog.start)":"_onAnimationStart($event)","(@slideDialog.done)":"_onAnimationDone($event)"}}]}],a.ctorParameters=function(){return[{type:e.ElementRef},{type:r.FocusTrapFactory},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[o.DOCUMENT]}]}]},a.propDecorators={_portalOutlet:[{type:e.ViewChild,args:[i.CdkPortalOutlet]}]},a}(i.BasePortalOutlet),O=0,k=function(){function t(t,e,o){void 0===o&&(o="mat-dialog-"+O++);var a=this;this._overlayRef=t,this._containerInstance=e,this.id=o,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new g.Subject,this._afterClosed=new g.Subject,this._beforeClose=new g.Subject,e._animationStateChanged.pipe(p.filter(function(t){return"done"===t.phaseName&&"enter"===t.toState}),h.take(1)).subscribe(function(){a._afterOpen.next(),a._afterOpen.complete()}),e._animationStateChanged.pipe(p.filter(function(t){return"done"===t.phaseName&&"exit"===t.toState}),h.take(1)).subscribe(function(){a._overlayRef.dispose(),a._afterClosed.next(a._result),a._afterClosed.complete(),a.componentInstance=null})}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(p.filter(function(t){return"start"===t.phaseName}),h.take(1)).subscribe(function(){e._beforeClose.next(t),e._beforeClose.complete(),e._overlayRef.detachBackdrop()}),this._containerInstance._startExitAnimation()},t.prototype.afterOpen=function(){return this._afterOpen.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClose=function(){return this._beforeClose.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t="auto"),void 0===e&&(e="auto"),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),A=new e.InjectionToken("MatDialogData"),R=new e.InjectionToken("mat-dialog-scroll-strategy"),w={provide:R,deps:[a.Overlay],useFactory:_},P=function(){function t(t,e,o,a,i){var r=this;this._overlay=t,this._injector=e,this._scrollStrategy=a,this._parentDialog=i,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new g.Subject,this._afterOpenAtThisLevel=new g.Subject,this.afterAllClosed=c.defer(function(){return r.openDialogs.length?r._afterAllClosed:r._afterAllClosed.pipe(d.startWith(void 0))}),!i&&o&&o.subscribe(function(){return r.closeAll()})}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpen",{get:function(){return this._parentDialog?this._parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var o=this;if(e=b(e),e.id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var a=this._createOverlay(e),i=this._attachDialogContainer(a,e),r=this._attachDialogContent(t,i,a,e);return this.openDialogs.push(r),r.afterClosed().subscribe(function(){return o._removeOpenDialog(r)}),this.afterOpen.next(r),r},t.prototype.closeAll=function(){for(var t=this.openDialogs.length;t--;)this.openDialogs[t].close()},t.prototype.getDialogById=function(t){return this.openDialogs.find(function(e){return e.id===t})},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new a.OverlayConfig({positionStrategy:this._overlay.position().global(),scrollStrategy:this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var o=new i.ComponentPortal(x,e.viewContainerRef),a=t.attach(o);return a.instance._config=e,a.instance},t.prototype._attachDialogContent=function(t,o,a,r){var n=new k(a,o,r.id);if(r.hasBackdrop&&a.backdropClick().subscribe(function(){n.disableClose||n.close()}),a.keydownEvents().pipe(p.filter(function(t){return t.keyCode===l.ESCAPE&&!n.disableClose})).subscribe(function(){return n.close()}),t instanceof e.TemplateRef)o.attachTemplatePortal(new i.TemplatePortal(t,null,{$implicit:r.data,dialogRef:n}));else{var s=this._createInjector(r,n,o),c=o.attachComponentPortal(new i.ComponentPortal(t,void 0,s));n.componentInstance=c.instance}return n.updateSize(r.width,r.height).updatePosition(r.position),n},t.prototype._createInjector=function(t,e,o){var a=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=new WeakMap;return r.set(k,e),r.set(x,o),r.set(A,t.data),r.set(s.Directionality,{value:t.direction,change:u.of()}),new i.PortalInjector(a||this._injector,r)},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||this._afterAllClosed.next())},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:a.Overlay},{type:e.Injector},{type:o.Location,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Inject,args:[R]}]},{type:t,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]},t}(),j=0,S=function(){function t(t){this.dialogRef=t,this.ariaLabel="Close dialog"}return t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t.decorators=[{type:e.Directive,args:[{selector:"button[mat-dialog-close], button[matDialogClose]",exportAs:"matDialogClose",host:{"(click)":"dialogRef.close(dialogResult)","[attr.aria-label]":"ariaLabel",type:"button"}}]}],t.ctorParameters=function(){return[{type:k}]},t.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],dialogResult:[{type:e.Input,args:["mat-dialog-close"]}],_matDialogClose:[{type:e.Input,args:["matDialogClose"]}]},t}(),T=function(){function t(t){this._container=t,this.id="mat-dialog-title-"+j++}return t.prototype.ngOnInit=function(){var t=this;this._container&&!this._container._ariaLabelledBy&&Promise.resolve().then(function(){return t._container._ariaLabelledBy=t.id})},t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-title], [matDialogTitle]",exportAs:"matDialogTitle",host:{class:"mat-dialog-title","[id]":"id"}}]}],t.ctorParameters=function(){return[{type:x,decorators:[{type:e.Optional}]}]},t.propDecorators={id:[{type:e.Input}]},t}(),I=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-content], mat-dialog-content, [matDialogContent]",host:{class:"mat-dialog-content"}}]}],t.ctorParameters=function(){return[]},t}(),M=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-actions], mat-dialog-actions, [matDialogActions]",host:{class:"mat-dialog-actions"}}]}],t.ctorParameters=function(){return[]},t}(),E=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[o.CommonModule,a.OverlayModule,i.PortalModule,r.A11yModule,n.MatCommonModule],exports:[x,S,T,I,M,n.MatCommonModule],declarations:[x,S,T,M,I],providers:[P,w],entryComponents:[x]}]}],t.ctorParameters=function(){return[]},t}();t.MatDialogModule=E,t.MAT_DIALOG_DATA=A,t.MAT_DIALOG_SCROLL_STRATEGY=R,t.MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY=_,t.MAT_DIALOG_SCROLL_STRATEGY_PROVIDER=w,t.MatDialog=P,t.throwMatDialogContentAlreadyAttachedError=y,t.MatDialogContainer=x,t.MatDialogClose=S,t.MatDialogTitle=T,t.MatDialogContent=I,t.MatDialogActions=M,t.MatDialogConfig=D,t.MatDialogRef=k,Object.defineProperty(t,"__esModule",{value:!0})});
  //# sourceMappingURL=/usr/local/google/home/mmalerba/material2/dist/bundles/material-dialog.umd.min.js.map