@angular/material
Version:
Angular Material
9 lines • 50.8 kB
JavaScript
/**
* @license
* Copyright Google Inc. 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/core"),require("@angular/cdk/coercion"),require("@angular/forms"),require("@angular/cdk/platform"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/platform-browser"),require("rxjs/Subject"),require("@angular/cdk/keycodes"),require("@angular/common"),require("@angular/cdk/scrolling"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/cdk/rxjs"),require("@angular/animations"),require("rxjs/observable/fromEvent")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/cdk/coercion","@angular/forms","@angular/cdk/platform","@angular/cdk/a11y","@angular/cdk/bidi","@angular/platform-browser","rxjs/Subject","@angular/cdk/keycodes","@angular/common","@angular/cdk/scrolling","@angular/cdk/overlay","@angular/cdk/portal","@angular/cdk/rxjs","@angular/animations","rxjs/observable/fromEvent"],t):t((e.ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.input=e.ng.material.input||{}),e.ng.core,e.ng.cdk.coercion,e.ng.forms,e.ng.cdk.platform,e.ng.cdk.a11y,e.ng.cdk.bidi,e.ng.platformBrowser,e.Rx,e.ng.cdk.keycodes,e.ng.common,e.ng.cdk.scrolling,e.ng.cdk.overlay,e.ng.cdk.portal,e.ng.cdk.rxjs,e.ng.animations,e.Rx.Observable)}(this,function(e,t,n,r,o,i,a,s,l,c,p,d,u,m,h,f,g){"use strict";function y(e,t){function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function b(e,t){return Error('The "'+e+'-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "'+t.toLowerCase()+'" element.')}function _(e){return e||new z}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var r=0,o=t;r<o.length;r++){var i=o[r];if(null!=i)for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a])}return e}function w(e,t){for(var n=Array(e),r=0;r<e;r++)n[r]=t(r);return n}function C(e,t){var n=t&&t.submitted;return!(!e.invalid||!e.touched&&!n)}function D(e){window.getComputedStyle(e).getPropertyValue("opacity")}function x(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),o=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+o*o)}function I(){return Error("Placeholder attribute and child element were both specified.")}function R(e){return Error("A hint was already declared for 'align=\""+e+"\"'.")}function k(){return Error("md-form-field must contain a MdFormFieldControl. Did you forget to add mdInput to the native input or textarea element?")}function M(e){return Error('Input type "'+e+"\" isn't supported by mdInput.")}var P=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=function(){function e(){}return e}();E.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",E.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",E.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",E.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var O=function(){function e(){}return e}();O.COMPLEX="375ms",O.ENTERING="225ms",O.EXITING="195ms";var S=new t.InjectionToken("md-compatibility-mode"),T=function(){function e(e,t){if(!e)throw b("mat",t.nativeElement.nodeName)}return e}();T.decorators=[{type:t.Directive,args:[{selector:"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matCellDef],\n [matColumnDef],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matHeaderCellDef],\n [matHeaderRowDef],\n [matLine],\n [matRowDef],\n [matStepLabel],\n [matStepperNext],\n [matStepperPrevious],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n [matInput],\n [matPrefix],\n [matSuffix],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-cell,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-header-cell,\n mat-header-row,\n mat-hint,\n mat-horizontal-stepper,\n mat-icon,\n mat-input-container,\n mat-form-field,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-row,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-step,\n mat-tab,\n mat-table,\n mat-tab-group,\n mat-toolbar,\n mat-vertical-stepper"}]}],T.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[S]}]},{type:t.ElementRef}]};var A=function(){function e(e,t){if(e)throw b("md",t.nativeElement.nodeName)}return e}();A.decorators=[{type:t.Directive,args:[{selector:"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdCellDef],\n [mdColumnDef],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdHeaderCellDef],\n [mdHeaderRowDef],\n [mdLine],\n [mdRowDef],\n [mdStepLabel],\n [mdStepperNext],\n [mdStepperPrevious],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n [mdInput],\n [mdPrefix],\n [mdSuffix],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-cell,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-header-cell,\n md-header-row,\n md-hint,\n md-horizontal-stepper,\n md-icon,\n md-input-container,\n md-form-field,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-row,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-step,\n md-tab,\n md-table,\n md-tab-group,\n md-toolbar,\n md-vertical-stepper"}]}],A.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[S]}]},{type:t.ElementRef}]};var F=function(){function e(){}return e}();F.decorators=[{type:t.NgModule,args:[{declarations:[T,A],exports:[T,A]}]}],F.ctorParameters=function(){return[]};var N=function(){function e(){}return e}();N.decorators=[{type:t.NgModule,args:[{providers:[{provide:S,useValue:!0}]}]}],N.ctorParameters=function(){return[]};var j=new t.InjectionToken("md-sanity-checks"),L=function(){function e(e,n){this._document=e,this._hasDoneGlobalChecks=!1,n&&!this._hasDoneGlobalChecks&&e&&t.isDevMode()&&(this._checkDoctype(),this._checkTheme(),this._hasDoneGlobalChecks=!0)}return e.prototype._checkDoctype=function(){this._document.doctype||console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},e.prototype._checkTheme=function(){if("function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e),"none"!==getComputedStyle(e).display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}},e}();L.decorators=[{type:t.NgModule,args:[{imports:[F,a.BidiModule],exports:[F,a.BidiModule],providers:[{provide:j,useValue:!0}]}]}],L.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[s.DOCUMENT]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[j]}]}]};var z=function(){function e(){this._listeners=[]}return e.prototype.notify=function(e,t){for(var n=0,r=this._listeners;n<r.length;n++){(0,r[n])(e,t)}},e.prototype.listen=function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter(function(t){return e!==t})}},e}();z.decorators=[{type:t.Injectable}],z.ctorParameters=function(){return[]};var H=(new t.Optional,new t.SkipSelf,new t.InjectionToken("MAT_DATE_LOCALE")),V={provide:H,useExisting:t.LOCALE_ID},q=function(){function e(){this._localeChanges=new l.Subject}return Object.defineProperty(e.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),e.prototype.getYear=function(e){},e.prototype.getMonth=function(e){},e.prototype.getDate=function(e){},e.prototype.getDayOfWeek=function(e){},e.prototype.getMonthNames=function(e){},e.prototype.getDateNames=function(){},e.prototype.getDayOfWeekNames=function(e){},e.prototype.getYearName=function(e){},e.prototype.getFirstDayOfWeek=function(){},e.prototype.getNumDaysInMonth=function(e){},e.prototype.clone=function(e){},e.prototype.createDate=function(e,t,n){},e.prototype.today=function(){},e.prototype.parse=function(e,t){},e.prototype.format=function(e,t){},e.prototype.addCalendarYears=function(e,t){},e.prototype.addCalendarMonths=function(e,t){},e.prototype.addCalendarDays=function(e,t){},e.prototype.toIso8601=function(e){},e.prototype.fromIso8601=function(e){},e.prototype.isDateInstance=function(e){},e.prototype.isValid=function(e){},e.prototype.setLocale=function(e){this.locale=e,this._localeChanges.next()},e.prototype.compareDate=function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)},e.prototype.sameDate=function(e,t){return e&&t?!this.compareDate(e,t):e==t},e.prototype.clampDate=function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e},e}(),B="undefined"!=typeof Intl,W={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Y=w(31,function(e){return String(e+1)}),U={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},G=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,J=function(e){function t(t){var n=e.call(this)||this;return n.useUtcForDisplay=!0,e.prototype.setLocale.call(n,t),n}return y(t,e),t.prototype.getYear=function(e){return e.getFullYear()},t.prototype.getMonth=function(e){return e.getMonth()},t.prototype.getDate=function(e){return e.getDate()},t.prototype.getDayOfWeek=function(e){return e.getDay()},t.prototype.getMonthNames=function(e){var t=this;if(B){var n=new Intl.DateTimeFormat(this.locale,{month:e});return w(12,function(e){return t._stripDirectionalityCharacters(n.format(new Date(2017,e,1)))})}return W[e]},t.prototype.getDateNames=function(){var e=this;if(B){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return w(31,function(n){return e._stripDirectionalityCharacters(t.format(new Date(2017,0,n+1)))})}return Y},t.prototype.getDayOfWeekNames=function(e){var t=this;if(B){var n=new Intl.DateTimeFormat(this.locale,{weekday:e});return w(7,function(e){return t._stripDirectionalityCharacters(n.format(new Date(2017,0,e+1)))})}return U[e]},t.prototype.getYearName=function(e){if(B){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric"});return this._stripDirectionalityCharacters(t.format(e))}return String(this.getYear(e))},t.prototype.getFirstDayOfWeek=function(){return 0},t.prototype.getNumDaysInMonth=function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))},t.prototype.clone=function(e){return this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e))},t.prototype.createDate=function(e,t,n){if(t<0||t>11)throw Error('Invalid month index "'+t+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var r=this._createDateWithOverflow(e,t,n);if(r.getMonth()!=t)throw Error('Invalid date "'+n+'" for month with index "'+t+'".');return r},t.prototype.today=function(){return new Date},t.prototype.parse=function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null},t.prototype.format=function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(B){this.useUtcForDisplay&&(e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),t=v({},t,{timeZone:"utc"}));var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(n.format(e))}return this._stripDirectionalityCharacters(e.toDateString())},t.prototype.addCalendarYears=function(e,t){return this.addCalendarMonths(e,12*t)},t.prototype.addCalendarMonths=function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},t.prototype.addCalendarDays=function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)},t.prototype.toIso8601=function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")},t.prototype.fromIso8601=function(e){if(G.test(e)){var t=new Date(e);if(this.isValid(t))return t}return null},t.prototype.isDateInstance=function(e){return e instanceof Date},t.prototype.isValid=function(e){return!isNaN(e.getTime())},t.prototype._createDateWithOverflow=function(e,t,n){var r=new Date(e,t,n);return e>=0&&e<100&&r.setFullYear(this.getYear(r)-1900),r},t.prototype._2digit=function(e){return("00"+e).slice(-2)},t.prototype._stripDirectionalityCharacters=function(e){return e.replace(/[\u200e\u200f]/g,"")},t}(q);J.decorators=[{type:t.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[H]}]}]};var Z=new t.InjectionToken("md-date-formats"),X={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},K=function(){function e(){}return e}();K.decorators=[{type:t.NgModule,args:[{providers:[{provide:q,useClass:J},V]}]}],K.ctorParameters=function(){return[]};var $=function(){function e(){}return e}();$.decorators=[{type:t.NgModule,args:[{imports:[K],providers:[{provide:Z,useValue:X}]}]}],$.ctorParameters=function(){return[]};var Q=new t.InjectionToken("md-error-global-options"),ee=function(e){function n(){var n=e.call(this)||this;return n._hammer="undefined"!=typeof window?window.Hammer:null,n.events=n._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],!n._hammer&&t.isDevMode()&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),n}return y(n,e),n.prototype.buildHammer=function(e){var t=new this._hammer(e),n=new this._hammer.Pan,r=new this._hammer.Swipe,o=new this._hammer.Press,i=this._createRecognizer(n,{event:"slide",threshold:0},r),a=this._createRecognizer(o,{event:"longpress",time:500});return n.recognizeWith(r),t.add([r,o,n,i,a]),t},n.prototype._createRecognizer=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=new e.constructor(t);return n.push(e),n.forEach(function(e){return o.recognizeWith(e)}),o},n}(s.HammerGestureConfig);ee.decorators=[{type:t.Injectable}],ee.ctorParameters=function(){return[]};var te=function(){function e(){}return e}();te.decorators=[{type:t.Directive,args:[{selector:"[md-line], [mat-line], [mdLine], [matLine]",host:{class:"mat-line"}}]}],te.ctorParameters=function(){return[]};var ne=function(){function e(){}return e}();ne.decorators=[{type:t.NgModule,args:[{imports:[L],exports:[te,L],declarations:[te]}]}],ne.ctorParameters=function(){return[]};var re={};re.FADING_IN=0,re.VISIBLE=1,re.FADING_OUT=2,re.HIDDEN=3,re[re.FADING_IN]="FADING_IN",re[re.VISIBLE]="VISIBLE",re[re.FADING_OUT]="FADING_OUT",re[re.HIDDEN]="HIDDEN";var oe=function(){function e(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=re.HIDDEN}return e.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},e}(),ie=function(){function e(e,t,n,r){this._ngZone=t,this._ruler=n,this._isMousedown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this.rippleConfig={},this.rippleDisabled=!1,r.isBrowser&&(this._containerElement=e.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown.bind(this)),this._triggerEvents.set("mouseup",this.onMouseup.bind(this)),this._triggerEvents.set("mouseleave",this.onMouseLeave.bind(this)),this.setTriggerElement(this._containerElement))}return e.prototype.fadeInRipple=function(e,t,n){var r=this;void 0===n&&(n={});var o=this._containerElement.getBoundingClientRect();if(n.centered)e=o.left+o.width/2,t=o.top+o.height/2;else{var i=this._ruler.getViewportScrollPosition();e-=i.left,t-=i.top}var a=n.radius||x(e,t,o),s=1/(n.speedFactor||1)*450,l=e-o.left,c=t-o.top,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=l-a+"px",p.style.top=c-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",p.style.backgroundColor=n.color||null,p.style.transitionDuration=s+"ms",this._containerElement.appendChild(p),D(p),p.style.transform="scale(1)";var d=new oe(this,p,n);return d.state=re.FADING_IN,this._activeRipples.add(d),this.runTimeoutOutsideZone(function(){d.state=re.VISIBLE,n.persistent||r._isMousedown||d.fadeOut()},s),d},e.prototype.fadeOutRipple=function(e){if(this._activeRipples.delete(e)){var t=e.element;t.style.transitionDuration="400ms",t.style.opacity="0",e.state=re.FADING_OUT,this.runTimeoutOutsideZone(function(){e.state=re.HIDDEN,t.parentNode.removeChild(t)},400)}},e.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(e){return e.fadeOut()})},e.prototype.setTriggerElement=function(e){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(e,n){t._triggerElement.removeEventListener(n,e)}),e&&this._ngZone.runOutsideAngular(function(){t._triggerEvents.forEach(function(t,n){return e.addEventListener(n,t)})}),this._triggerElement=e},e.prototype.onMousedown=function(e){this.rippleDisabled||(this._isMousedown=!0,this.fadeInRipple(e.pageX,e.pageY,this.rippleConfig))},e.prototype.onMouseup=function(){this._isMousedown=!1,this._activeRipples.forEach(function(e){e.config.persistent||e.state!==re.VISIBLE||e.fadeOut()})},e.prototype.onMouseLeave=function(){this._isMousedown&&this.onMouseup()},e.prototype.runTimeoutOutsideZone=function(e,t){void 0===t&&(t=0),this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})},e}(),ae=new t.InjectionToken("md-ripple-global-options"),se=function(){function e(e,t,n,r,o){this.radius=0,this.speedFactor=1,this._rippleRenderer=new ie(e,t,n,r),this._globalOptions=o||{},this._updateRippleRenderer()}return Object.defineProperty(e.prototype,"_matRippleTrigger",{get:function(){return this.trigger},set:function(e){this.trigger=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleCentered",{get:function(){return this.centered},set:function(e){this.centered=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleDisabled",{get:function(){return this.disabled},set:function(e){this.disabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleRadius",{get:function(){return this.radius},set:function(e){this.radius=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleSpeedFactor",{get:function(){return this.speedFactor},set:function(e){this.speedFactor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleColor",{get:function(){return this.color},set:function(e){this.color=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleUnbounded",{get:function(){return this.unbounded},set:function(e){this.unbounded=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.trigger||e._matRippleTrigger)&&this.trigger&&this._rippleRenderer.setTriggerElement(this.trigger),this._updateRippleRenderer()},e.prototype.ngOnDestroy=function(){this._rippleRenderer.setTriggerElement(null)},e.prototype.launch=function(e,t,n){return void 0===n&&(n=this.rippleConfig),this._rippleRenderer.fadeInRipple(e,t,n)},e.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(e.prototype,"rippleConfig",{get:function(){return{centered:this.centered,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1),radius:this.radius,color:this.color}},enumerable:!0,configurable:!0}),e.prototype._updateRippleRenderer=function(){this._rippleRenderer.rippleDisabled=this._globalOptions.disabled||this.disabled,this._rippleRenderer.rippleConfig=this.rippleConfig},e}();se.decorators=[{type:t.Directive,args:[{selector:"[md-ripple], [mat-ripple], [mdRipple], [matRipple]",exportAs:"mdRipple, matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],se.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone},{type:d.ViewportRuler},{type:o.Platform},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ae]}]}]},se.propDecorators={trigger:[{type:t.Input,args:["mdRippleTrigger"]}],centered:[{type:t.Input,args:["mdRippleCentered"]}],disabled:[{type:t.Input,args:["mdRippleDisabled"]}],radius:[{type:t.Input,args:["mdRippleRadius"]}],speedFactor:[{type:t.Input,args:["mdRippleSpeedFactor"]}],color:[{type:t.Input,args:["mdRippleColor"]}],unbounded:[{type:t.Input,args:["mdRippleUnbounded"]}],_matRippleTrigger:[{type:t.Input,args:["matRippleTrigger"]}],_matRippleCentered:[{type:t.Input,args:["matRippleCentered"]}],_matRippleDisabled:[{type:t.Input,args:["matRippleDisabled"]}],_matRippleRadius:[{type:t.Input,args:["matRippleRadius"]}],_matRippleSpeedFactor:[{type:t.Input,args:["matRippleSpeedFactor"]}],_matRippleColor:[{type:t.Input,args:["matRippleColor"]}],_matRippleUnbounded:[{type:t.Input,args:["matRippleUnbounded"]}]};var le=function(){function e(){}return e}();le.decorators=[{type:t.NgModule,args:[{imports:[L,o.PlatformModule,d.ScrollDispatchModule],exports:[se,L],declarations:[se],providers:[d.VIEWPORT_RULER_PROVIDER]}]}],le.ctorParameters=function(){return[]};var ce=function(){function e(){this.state="unchecked",this.disabled=!1}return e}();ce.decorators=[{type:t.Component,args:[{encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,selector:"md-pseudo-checkbox, mat-pseudo-checkbox",styles:[".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:9px;left:2px;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:5px;left:3px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled"}}]}],ce.ctorParameters=function(){return[]},ce.propDecorators={state:[{type:t.Input}],disabled:[{type:t.Input}]};var pe=function(){function e(){}return e}();pe.decorators=[{type:t.NgModule,args:[{exports:[ce],declarations:[ce]}]}],pe.ctorParameters=function(){return[]};var de=function(){function e(){}return e}(),ue=function(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t)||this;return r._disabled=!1,r}return y(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),t}(e)}(de),me=0,he=function(e){function t(){var t=e.apply(this,arguments)||this;return t._labelId="mat-optgroup-label-"+me++,t}return y(t,e),t}(ue);he.decorators=[{type:t.Component,args:[{selector:"md-optgroup, mat-optgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label><ng-content select="md-option, mat-option"></ng-content>',encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],he.ctorParameters=function(){return[]},he.propDecorators={label:[{type:t.Input}]};var fe=0,ge=function(){function e(e,t){void 0===t&&(t=!1),this.source=e,this.isUserInput=t}return e}(),ye=function(){function e(e,n,r){this._element=e,this._changeDetectorRef=n,this.group=r,this._selected=!1,this._active=!1,this._multiple=!1,this._disableRipple=!1,this._disabled=!1,this._id="md-option-"+fe++,this.onSelectionChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){e!==this._multiple&&(this._multiple=e,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(e){this._disableRipple=e,this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),e.prototype.select=function(){this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},e.prototype.deselect=function(){this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},e.prototype.focus=function(){var e=this._getHostElement();"function"==typeof e.focus&&e.focus()},e.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},e.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},e.prototype.getLabel=function(){return this.viewValue},e.prototype._handleKeydown=function(e){e.keyCode!==c.ENTER&&e.keyCode!==c.SPACE||(this._selectViaInteraction(),e.preventDefault())},e.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._element.nativeElement},e.prototype._emitSelectionChangeEvent=function(e){void 0===e&&(e=!1),this.onSelectionChange.emit(new ge(this,e))},e.countGroupLabelsBeforeOption=function(e,t,n){if(n.length){for(var r=t.toArray(),o=n.toArray(),i=0,a=0;a<e+1;a++)r[a].group&&r[a].group===o[i]&&i++;return i}return 0},e}();ye.decorators=[{type:t.Component,args:[{selector:"md-option, mat-option",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"selected.toString()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option"},template:'<span *ngIf="multiple"><mat-pseudo-checkbox class="mat-option-pseudo-checkbox" [state]="selected ? \'checked\' : \'\'" [disabled]="disabled"></mat-pseudo-checkbox></span><ng-content></ng-content><div class="mat-option-ripple" mat-ripple [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="disabled || disableRipple"></div>',encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,viewProviders:[{provide:S,useValue:!0}]}]}],ye.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:he,decorators:[{type:t.Optional}]}]},ye.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}],onSelectionChange:[{type:t.Output}]};var be=function(){function e(){}return e}();be.decorators=[{type:t.NgModule,args:[{imports:[le,p.CommonModule,pe],exports:[ye,he],declarations:[ye,he]}]}],be.ctorParameters=function(){return[]};var _e=new t.InjectionToken("md-placeholder-global-options"),ve=function(){function e(){}return e}();ve.decorators=[{type:t.NgModule,args:[{imports:[i.A11yModule],exports:[i.A11yModule]}]}],ve.ctorParameters=function(){return[]};var we=0,Ce=function(){function e(){this.id="mat-error-"+we++}return e}();Ce.decorators=[{type:t.Directive,args:[{selector:"md-error, mat-error",host:{class:"mat-error",role:"alert","[attr.id]":"id"}}]}],Ce.ctorParameters=function(){return[]},Ce.propDecorators={id:[{type:t.Input}]};var De=function(){function e(){}return e.prototype.setDescribedByIds=function(e){},e.prototype.focus=function(){},e}(),xe=0,Ie=function(){function e(){this.align="start",this.id="mat-hint-"+xe++}return e}();Ie.decorators=[{type:t.Directive,args:[{selector:"md-hint, mat-hint",host:{class:"mat-hint","[class.mat-right]":'align == "end"',"[attr.id]":"id","[attr.align]":"null"}}]}],Ie.ctorParameters=function(){return[]},Ie.propDecorators={align:[{type:t.Input}],id:[{type:t.Input}]};var Re=function(){function e(){}return e}();Re.decorators=[{type:t.Directive,args:[{selector:"md-placeholder, mat-placeholder"}]}],Re.ctorParameters=function(){return[]};var ke=function(){function e(){}return e}();ke.decorators=[{type:t.Directive,args:[{selector:"[mdPrefix], [matPrefix]"}]}],ke.ctorParameters=function(){return[]};var Me=function(){function e(){}return e}();Me.decorators=[{type:t.Directive,args:[{selector:"[mdSuffix], [matSuffix]"}]}],Me.ctorParameters=function(){return[]};var Pe=0,Ee=function(){function e(e,t,n){this._elementRef=e,this._changeDetectorRef=t,this.color="primary",this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="md-hint-"+Pe++,this._placeholderOptions=n||{},this.floatPlaceholder=this._placeholderOptions.float||"auto"}return Object.defineProperty(e.prototype,"dividerColor",{get:function(){return this.color},set:function(e){this.color=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(e){
this._hideRequiredMarker=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatPlaceholder&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canPlaceholderFloat",{get:function(){return"never"!==this._floatPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatPlaceholder",{get:function(){return this._floatPlaceholder},set:function(e){e!==this._floatPlaceholder&&(this._floatPlaceholder=e||this._placeholderOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._validateControlChild(),h.startWith.call(this._control.stateChanges,null).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()});var t=this._control.ngControl;t&&t.valueChanges&&t.valueChanges.subscribe(function(){e._changeDetectorRef.markForCheck()}),h.startWith.call(this._hintChildren.changes,null).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),h.startWith.call(this._errorChildren.changes,null).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})},e.prototype.ngAfterContentChecked=function(){this._validateControlChild()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype._shouldForward=function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]},e.prototype._hasPlaceholder=function(){return!(!this._control.placeholder&&!this._placeholderChild)},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockPlaceholder=function(){var e=this;this._placeholder&&this._canPlaceholderFloat&&(this._showAlwaysAnimate=!0,this._floatPlaceholder="always",h.first.call(g.fromEvent(this._placeholder.nativeElement,"transitionend")).subscribe(function(){e._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw I()},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var e=this;if(this._hintChildren){var t,n;this._hintChildren.forEach(function(r){if("start"==r.align){if(t||e.hintLabel)throw R("start");t=r}else if("end"==r.align){if(n)throw R("end");n=r}})}},e.prototype._syncDescribedByIds=function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(function(e){return e.id}));this._control.setDescribedByIds(e)}},e.prototype._validateControlChild=function(){if(!this._control)throw k()},e}();Ee.decorators=[{type:t.Component,args:[{selector:"md-input-container, mat-input-container, md-form-field, mat-form-field",template:'<div class="mat-input-wrapper mat-form-field-wrapper"><div class="mat-input-flex mat-form-field-flex" #connectionContainer><div class="mat-input-prefix mat-form-field-prefix" *ngIf="_prefixChildren.length"><ng-content select="[mdPrefix], [matPrefix]"></ng-content></div><div class="mat-input-infix mat-form-field-infix"><ng-content></ng-content><span class="mat-input-placeholder-wrapper mat-form-field-placeholder-wrapper"><label class="mat-input-placeholder mat-form-field-placeholder" [attr.for]="_control.id" [attr.aria-owns]="_control.id" [class.mat-empty]="_control.empty && !_shouldAlwaysFloat" [class.mat-form-field-empty]="_control.empty && !_shouldAlwaysFloat" [class.mat-float]="_canPlaceholderFloat" [class.mat-form-field-float]="_canPlaceholderFloat" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'" #placeholder *ngIf="_hasPlaceholder()"><ng-content select="md-placeholder, mat-placeholder"></ng-content>{{_control.placeholder}} <span class="mat-placeholder-required mat-form-field-required-marker" aria-hidden="true" *ngIf="!hideRequiredMarker && _control.required">*</span></label></span></div><div class="mat-input-suffix mat-form-field-suffix" *ngIf="_suffixChildren.length"><ng-content select="[mdSuffix], [matSuffix]"></ng-content></div></div><div class="mat-input-underline mat-form-field-underline" #underline [class.mat-disabled]="_control.disabled"><span class="mat-input-ripple mat-form-field-ripple" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'"></span></div><div class="mat-input-subscript-wrapper mat-form-field-subscript-wrapper" [ngSwitch]="_getDisplayedMessages()"><div *ngSwitchCase="\'error\'" [@transitionMessages]="_subscriptAnimationState"><ng-content select="md-error, mat-error"></ng-content></div><div class="mat-input-hint-wrapper mat-form-field-hint-wrapper" *ngSwitchCase="\'hint\'" [@transitionMessages]="_subscriptAnimationState"><div *ngIf="hintLabel" [id]="_hintLabelId" class="mat-hint">{{hintLabel}}</div><ng-content select="md-hint:not([align=\'end\']), mat-hint:not([align=\'end\'])"></ng-content><div class="mat-input-hint-spacer mat-form-field-hint-spacer"></div><ng-content select="md-hint[align=\'end\'], mat-hint[align=\'end\']"></ng-content></div></div></div>',styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-infix{display:block;position:relative;flex:auto}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:none}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-placeholder-wrapper .mat-form-field-float{display:block;transition:none}.mat-form-field-placeholder-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-placeholder{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}.mat-focused .mat-form-field-placeholder.mat-form-field-float,.mat-form-field-placeholder.mat-form-field-empty,.mat-form-field-placeholder.mat-form-field-float:not(.mat-form-field-empty){display:block}[dir=rtl] .mat-form-field-placeholder{transform-origin:100% 0;left:auto;right:0}.mat-form-field-placeholder:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;height:1px;width:100%}.mat-form-field-underline.mat-disabled{background-position:0;background-color:transparent}.mat-form-field-underline .mat-form-field-ripple{position:absolute;height:1px;top:0;left:0;width:100%;transform-origin:50%;transform:scaleX(.5);visibility:hidden;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-focused .mat-form-field-underline .mat-form-field-ripple{height:2px}.mat-focused .mat-form-field-underline .mat-form-field-ripple,.mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;transform:scaleX(1);transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-form-field-placeholder-wrapper .mat-icon,.mat-form-field-subscript-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block} .mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::placeholder{color:transparent!important}.mat-input-element::-moz-placeholder{color:transparent!important}.mat-input-element::-webkit-input-placeholder{color:transparent!important}.mat-input-element:-ms-input-placeholder{color:transparent!important}textarea.mat-input-element{resize:vertical;overflow:auto}"],animations:[f.trigger("transitionMessages",[f.state("enter",f.style({opacity:1,transform:"translateY(0%)"})),f.transition("void => enter",[f.style({opacity:0,transform:"translateY(-100%)"}),f.animate("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])],host:{class:"mat-input-container mat-form-field","[class.mat-input-invalid]":"_control.errorState","[class.mat-form-field-invalid]":"_control.errorState","[class.mat-focused]":"_control.focused","[class.ng-untouched]":'_shouldForward("untouched")',"[class.ng-touched]":'_shouldForward("touched")',"[class.ng-pristine]":'_shouldForward("pristine")',"[class.ng-dirty]":'_shouldForward("dirty")',"[class.ng-valid]":'_shouldForward("valid")',"[class.ng-invalid]":'_shouldForward("invalid")',"[class.ng-pending]":'_shouldForward("pending")',"(click)":"_control.focus()"},encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush}]}],Ee.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[_e]}]}]},Ee.propDecorators={color:[{type:t.Input}],dividerColor:[{type:t.Input}],hideRequiredMarker:[{type:t.Input}],hintLabel:[{type:t.Input}],floatPlaceholder:[{type:t.Input}],underlineRef:[{type:t.ViewChild,args:["underline"]}],_connectionContainerRef:[{type:t.ViewChild,args:["connectionContainer"]}],_placeholder:[{type:t.ViewChild,args:["placeholder"]}],_control:[{type:t.ContentChild,args:[De]}],_placeholderChild:[{type:t.ContentChild,args:[Re]}],_errorChildren:[{type:t.ContentChildren,args:[Ce]}],_hintChildren:[{type:t.ContentChildren,args:[Ie]}],_prefixChildren:[{type:t.ContentChildren,args:[ke]}],_suffixChildren:[{type:t.ContentChildren,args:[Me]}]};var Oe=function(){function e(){}return e}();Oe.decorators=[{type:t.NgModule,args:[{declarations:[Ce,Ie,Ee,Re,ke,Me],imports:[p.CommonModule,o.PlatformModule],exports:[Ce,Ie,Ee,Re,ke,Me]}]}],Oe.ctorParameters=function(){return[]};var Se=["button","checkbox","color","file","hidden","image","radio","range","reset","submit"],Te=0,Ae=function(){function e(e,t,n,r,i,a,s){this._elementRef=e,this._renderer=t,this._platform=n,this.ngControl=r,this._parentForm=i,this._parentFormGroup=a,this._type="text",this._disabled=!1,this._required=!1,this._uid="md-input-"+Te++,this._previousNativeValue=this.value,this.focused=!1,this.errorState=!1,this.stateChanges=new l.Subject,this.placeholder="",this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return o.getSupportedInputTypes().has(e)}),this.id=this.id,this._errorOptions=s||{},this.errorStateMatcher=this._errorOptions.errorStateMatcher||C,n.IOS&&t.listen(e.nativeElement,"keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&o.getSupportedInputTypes().has(this._type)&&this._renderer.setProperty(this._elementRef.nativeElement,"type",this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._elementRef.nativeElement.value},set:function(e){e!==this.value&&(this._elementRef.nativeElement.value=e,this.stateChanges.next())},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},e.prototype.ngDoCheck=function(){this.ngControl?this._updateErrorState():this._dirtyCheckNativeValue()},e.prototype._focusChanged=function(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._updateErrorState=function(){var e=this.errorState,t=this.ngControl,n=this._parentFormGroup||this._parentForm,r=t&&this.errorStateMatcher(t.control,n);r!==e&&(this.errorState=r,this.stateChanges.next())},e.prototype._dirtyCheckNativeValue=function(){var e=this.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())},e.prototype._validateType=function(){if(Se.indexOf(this._type)>-1)throw M(this._type)},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput},e.prototype._isTextarea=function(){var e=this._elementRef.nativeElement,t=this._platform.isBrowser?e.nodeName:e.name;return!!t&&"textarea"===t.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||null!=this.value&&""!==this.value||this._isBadInput())},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e}();Ae.decorators=[{type:t.Directive,args:[{selector:"input[mdInput], textarea[mdInput], input[matInput], textarea[matInput]",host:{class:"mat-input-element mat-form-field-autofill-control","[id]":"id","[placeholder]":"placeholder","[disabled]":"disabled","[required]":"required","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-invalid]":"errorState","(blur)":"_focusChanged(false)","(focus)":"_focusChanged(true)","(input)":"_onInput()"},providers:[{provide:De,useExisting:Ae}]}]}],Ae.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:o.Platform},{type:r.NgControl,decorators:[{type:t.Optional},{type:t.Self}]},{type:r.NgForm,decorators:[{type:t.Optional}]},{type:r.FormGroupDirective,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Q]}]}]},Ae.propDecorators={disabled:[{type:t.Input}],id:[{type:t.Input}],placeholder:[{type:t.Input}],required:[{type:t.Input}],type:[{type:t.Input}],errorStateMatcher:[{type:t.Input}]};var Fe=function(){function e(e,t){this._elementRef=e,this._platform=t}return Object.defineProperty(e.prototype,"minRows",{get:function(){return this._minRows},set:function(e){this._minRows=e,this._setMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxRows",{get:function(){return this._maxRows},set:function(e){this._maxRows=e,this._setMaxHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matAutosizeMinRows",{get:function(){return this.minRows},set:function(e){this.minRows=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matAutosizeMaxRows",{get:function(){return this.maxRows},set:function(e){this.maxRows=e},enumerable:!0,configurable:!0}),e.prototype._setMinHeight=function(){var e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&this._setTextareaStyle("minHeight",e)},e.prototype._setMaxHeight=function(){var e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&this._setTextareaStyle("maxHeight",e)},e.prototype.ngAfterViewInit=function(){this._platform.isBrowser&&(this._cacheTextareaLineHeight(),this.resizeToFitContent())},e.prototype._setTextareaStyle=function(e,t){this._elementRef.nativeElement.style[e]=t},e.prototype._cacheTextareaLineHeight=function(){var e=this._elementRef.nativeElement,t=e.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",e.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,e.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()},e.prototype.ngDoCheck=function(){this.resizeToFitContent()},e.prototype.resizeToFitContent=function(){var e=this._elementRef.nativeElement,t=e.value;t!==this._previousValue&&(e.style.height="auto",e.style.overflow="hidden",e.style.height=e.scrollHeight+"px",e.style.overflow="",this._previousValue=t)},e}();Fe.decorators=[{type:t.Directive,args:[{selector:"textarea[md-autosize], textarea[mdTextareaAutosize],\n textarea[mat-autosize], textarea[matTextareaAutosize]",exportAs:"mdTextareaAutosize, matTextareaAutosize",