UNPKG

@angular/material

Version:
9 lines 441 kB
/** * @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(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/platform-browser"),require("@angular/cdk/coercion"),require("rxjs/Subject"),require("@angular/cdk/keycodes"),require("@angular/common"),require("@angular/cdk/scrolling"),require("@angular/cdk/platform"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/cdk/rxjs"),require("@angular/forms"),require("@angular/animations"),require("rxjs/observable/fromEvent"),require("rxjs/observable/merge"),require("rxjs/observable/of"),require("@angular/cdk/observers"),require("@angular/cdk/collections"),require("rxjs/Subscription"),require("rxjs/observable/defer"),require("@angular/http"),require("rxjs/Observable"),require("rxjs/observable/forkJoin"),require("rxjs/observable/throw"),require("rxjs/operator/first"),require("@angular/cdk/table"),require("@angular/cdk/stepper")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/cdk/a11y","@angular/cdk/bidi","@angular/platform-browser","@angular/cdk/coercion","rxjs/Subject","@angular/cdk/keycodes","@angular/common","@angular/cdk/scrolling","@angular/cdk/platform","@angular/cdk/overlay","@angular/cdk/portal","@angular/cdk/rxjs","@angular/forms","@angular/animations","rxjs/observable/fromEvent","rxjs/observable/merge","rxjs/observable/of","@angular/cdk/observers","@angular/cdk/collections","rxjs/Subscription","rxjs/observable/defer","@angular/http","rxjs/Observable","rxjs/observable/forkJoin","rxjs/observable/throw","rxjs/operator/first","@angular/cdk/table","@angular/cdk/stepper"],e):e((t.ng=t.ng||{},t.ng.material=t.ng.material||{}),t.ng.core,t.ng.cdk.a11y,t.ng.cdk.bidi,t.ng.platformBrowser,t.ng.cdk.coercion,t.Rx,t.ng.cdk.keycodes,t.ng.common,t.ng.cdk.scrolling,t.ng.cdk.platform,t.ng.cdk.overlay,t.ng.cdk.portal,t.ng.cdk.rxjs,t.ng.forms,t.ng.animations,t.Rx.Observable,t.Rx.Observable,t.Rx.Observable,t.ng.cdk.observers,t.ng.cdk.collections,t.Rx,t.Rx.Observable,t.ng.http,t.Rx,t.Rx.Observable,t.Rx.Observable,t.Rx.Observable.prototype,t.ng.cdk.table,t.ng.cdk.stepper)}(this,function(t,e,i,n,a,r,o,s,l,c,p,d,u,m,h,g,f,b,_,y,v,x,C,k,w,D,M,S,I,O){"use strict";function P(t,e){function i(){this.constructor=t}Lt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function R(t,e){return Error('The "'+t+'-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "'+e.toLowerCase()+'" element.')}function E(t){return function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=t.apply(this,e)||this;return n._disabled=!1,n}return P(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function T(t,e){return function(t){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var a=t.apply(this,i)||this;return a.color=e,a}return P(i,t),Object.defineProperty(i.prototype,"color",{get:function(){return this._color},set:function(t){var i=t||e;i!==this._color&&(this._color&&this._renderer.removeClass(this._elementRef.nativeElement,"mat-"+this._color),i&&this._renderer.addClass(this._elementRef.nativeElement,"mat-"+i),this._color=i)},enumerable:!0,configurable:!0}),i}(t)}function A(t){return function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=t.apply(this,e)||this;return n._disableRipple=!1,n}return P(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function L(t,e){return void 0===e&&(e=0),function(t){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var a=t.apply(this,i)||this;return a._tabIndex=e,a}return P(i,t),Object.defineProperty(i.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e},enumerable:!0,configurable:!0}),i}(t)}function F(t){return t||new qt}function B(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var n=0,a=e;n<a.length;n++){var r=a[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}function V(t,e){for(var i=Array(t),n=0;n<t;n++)i[n]=e(n);return i}function j(t,e){var i=e&&e.submitted;return!(!t.invalid||!t.touched&&!i)}function z(t,e){var i=e&&e.submitted;return!(!t.invalid||!t.dirty&&!i)}function N(t){window.getComputedStyle(t).getPropertyValue("opacity")}function W(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),a=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+a*a)}function H(t,e){var i=e.trim();t.style.transform=i,t.style.webkitTransform=i}function G(){return Error("Placeholder attribute and child element were both specified.")}function Y(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}function U(){return Error("md-form-field must contain a MdFormFieldControl. Did you forget to add mdInput to the native input or textarea element?")}function q(t){return function(){return t.scrollStrategies.reposition()}}function K(){return Error("Attempting to open an undefined instance of `md-autocomplete`. Make sure that the id passed to the `mdAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}function X(){throw Error("Attempting to attach dialog content after content is already attached")}function $(t){return function(){return t.scrollStrategies.block()}}function Z(t){return B(new tn,t)}function J(t){return Error('Unable to find icon with the name "'+t+'"')}function Q(){return Error("Could not find Http provider for use with Angular Material icons. Please include the HttpModule from @angular/http in your app imports.")}function tt(t){return Error("The URL provided to MdIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function et(t,e,i){return t||new fn(e,i)}function it(t){return t.cloneNode(!0)}function nt(t,e){return t+":"+e}function at(t,e){if("string"==typeof e&&(e=""==e?null:t.fromIso8601(e)||e),null==e||t.isDateInstance(e))return e;throw Error("Datepicker: Value must be either a date object recognized by the DateAdapter or an ISO 8601 string. Instead got: "+e)}function rt(t){return Error("MdDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MdNativeDateModule, or provide a custom implementation.")}function ot(t){return function(){return t.scrollStrategies.reposition()}}function st(t){return""+(t||"")}function lt(t){return"string"==typeof t?parseInt(t,10):t}function ct(t){return"calc("+t+")"}function pt(t){return t.match(/px|em|rem/)?t:t+"px"}function dt(t){return Error('Input type "'+t+"\" isn't supported by mdInput.")}function ut(){throw Error('md-menu-trigger: must pass in an md-menu instance.\n\n Example:\n <md-menu #menu="mdMenu"></md-menu>\n <button [mdMenuTriggerFor]="menu"></button>')}function mt(){throw Error('x-position value must be either \'before\' or after\'.\n Example: <md-menu x-position="before" #menu="mdMenu"></md-menu>')}function ht(){throw Error('y-position value must be either \'above\' or below\'.\n Example: <md-menu y-position="above" #menu="mdMenu"></md-menu>')}function gt(t){return function(){return t.scrollStrategies.reposition()}}function ft(){return Error("Cannot change `multiple` mode of select after initialization.")}function bt(){return Error("Cannot assign truthy non-array value to select in `multiple` mode.")}function _t(){return Error("Cannot assign a non-function value to `compareWith`.")}function yt(t){return function(){return t.scrollStrategies.reposition()}}function vt(t,e,i){return Math.min(Math.max(t,e),i)}function xt(t){return Error('Tooltip position "'+t+'" is invalid.')}function Ct(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:rr})}}function kt(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=100),Math.max(e,Math.min(i,t))}function wt(t){return Math.max(0,Math.min(100,t))}function Dt(t,e,i){var n=(i-90)*br;return t+e*Math.cos(n)+","+(t+e*Math.sin(n))}function Mt(t,e,i,n){return i*t/n+e}function St(t,e,i,n){var a=t/n,r=Math.pow(a,3),o=Math.pow(a,4);return e+i*(6*Math.pow(a,5)+-15*o+10*r)}function It(t,e,i){var n,a=e||0,r=50-i,o=a*_r,s=t*_r,l=Dt(50,r,o),c=Dt(50,r,s+o),p=s<0?0:1;return n=s<0?s>=-180?0:1:s<=180?0:1,"M"+l+"A"+r+","+r+" 0 "+n+","+p+" "+c}function Ot(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}function Pt(t){return B(new ao,t)}function Rt(t){return Error("Cannot have two MdSortables with the same id ("+t+").")}function Et(){return Error("MdSortHeader must be placed within a parent element with the MdSort directive.")}function Tt(){return Error("MdSortHeader must be provided with a unique id.")}function At(t,e){var i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}var Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Ft=function(){function t(){}return t}();Ft.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ft.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ft.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ft.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var Bt=function(){function t(){}return t}();Bt.COMPLEX="375ms",Bt.ENTERING="225ms",Bt.EXITING="195ms";var Vt=new e.InjectionToken("md-compatibility-mode"),jt="\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",zt="\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",Nt=function(){function t(t,e){if(!t)throw R("mat",e.nativeElement.nodeName)}return t}();Nt.decorators=[{type:e.Directive,args:[{selector:jt}]}],Nt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Vt]}]},{type:e.ElementRef}]};var Wt=function(){function t(t,e){if(t)throw R("md",e.nativeElement.nodeName)}return t}();Wt.decorators=[{type:e.Directive,args:[{selector:zt}]}],Wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Vt]}]},{type:e.ElementRef}]};var Ht=function(){function t(){}return t}();Ht.decorators=[{type:e.NgModule,args:[{declarations:[Nt,Wt],exports:[Nt,Wt]}]}],Ht.ctorParameters=function(){return[]};var Gt=function(){function t(){}return t}();Gt.decorators=[{type:e.NgModule,args:[{providers:[{provide:Vt,useValue:!0}]}]}],Gt.ctorParameters=function(){return[]};var Yt=new e.InjectionToken("md-sanity-checks"),Ut=function(){function t(t,i){this._document=t,this._hasDoneGlobalChecks=!1,i&&!this._hasDoneGlobalChecks&&t&&e.isDevMode()&&(this._checkDoctype(),this._checkTheme(),this._hasDoneGlobalChecks=!0)}return t.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.")},t.prototype._checkTheme=function(){if("function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t),"none"!==getComputedStyle(t).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(t)}},t}();Ut.decorators=[{type:e.NgModule,args:[{imports:[Ht,n.BidiModule],exports:[Ht,n.BidiModule],providers:[{provide:Yt,useValue:!0}]}]}],Ut.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Yt]}]}]};var qt=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var i=0,n=this._listeners;i<n.length;i++){(0,n[i])(t,e)}},t.prototype.listen=function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter(function(e){return t!==e})}},t}();qt.decorators=[{type:e.Injectable}],qt.ctorParameters=function(){return[]};var Kt={provide:qt,deps:[[new e.Optional,new e.SkipSelf,qt]],useFactory:F},Xt=new e.InjectionToken("MAT_DATE_LOCALE"),$t={provide:Xt,useExisting:e.LOCALE_ID},Zt=function(){function t(){this._localeChanges=new o.Subject}return Object.defineProperty(t.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),t.prototype.getYear=function(t){},t.prototype.getMonth=function(t){},t.prototype.getDate=function(t){},t.prototype.getDayOfWeek=function(t){},t.prototype.getMonthNames=function(t){},t.prototype.getDateNames=function(){},t.prototype.getDayOfWeekNames=function(t){},t.prototype.getYearName=function(t){},t.prototype.getFirstDayOfWeek=function(){},t.prototype.getNumDaysInMonth=function(t){},t.prototype.clone=function(t){},t.prototype.createDate=function(t,e,i){},t.prototype.today=function(){},t.prototype.parse=function(t,e){},t.prototype.format=function(t,e){},t.prototype.addCalendarYears=function(t,e){},t.prototype.addCalendarMonths=function(t,e){},t.prototype.addCalendarDays=function(t,e){},t.prototype.toIso8601=function(t){},t.prototype.fromIso8601=function(t){},t.prototype.isDateInstance=function(t){},t.prototype.isValid=function(t){},t.prototype.setLocale=function(t){this.locale=t,this._localeChanges.next()},t.prototype.compareDate=function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)},t.prototype.sameDate=function(t,e){return t&&e?!this.compareDate(t,e):t==e},t.prototype.clampDate=function(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t},t}(),Jt="undefined"!=typeof Intl,Qt={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"]},te=V(31,function(t){return String(t+1)}),ee={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ie=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,ne=function(t){function e(e){var i=t.call(this)||this;return i.useUtcForDisplay=!0,t.prototype.setLocale.call(i,e),i}return P(e,t),e.prototype.getYear=function(t){return t.getFullYear()},e.prototype.getMonth=function(t){return t.getMonth()},e.prototype.getDate=function(t){return t.getDate()},e.prototype.getDayOfWeek=function(t){return t.getDay()},e.prototype.getMonthNames=function(t){var e=this;if(Jt){var i=new Intl.DateTimeFormat(this.locale,{month:t});return V(12,function(t){return e._stripDirectionalityCharacters(i.format(new Date(2017,t,1)))})}return Qt[t]},e.prototype.getDateNames=function(){var t=this;if(Jt){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return V(31,function(i){return t._stripDirectionalityCharacters(e.format(new Date(2017,0,i+1)))})}return te},e.prototype.getDayOfWeekNames=function(t){var e=this;if(Jt){var i=new Intl.DateTimeFormat(this.locale,{weekday:t});return V(7,function(t){return e._stripDirectionalityCharacters(i.format(new Date(2017,0,t+1)))})}return ee[t]},e.prototype.getYearName=function(t){if(Jt){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric"});return this._stripDirectionalityCharacters(e.format(t))}return String(this.getYear(t))},e.prototype.getFirstDayOfWeek=function(){return 0},e.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},e.prototype.clone=function(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t))},e.prototype.createDate=function(t,e,i){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(i<1)throw Error('Invalid date "'+i+'". Date has to be greater than 0.');var n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error('Invalid date "'+i+'" for month with index "'+e+'".');return n},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Jt){this.useUtcForDisplay&&(t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())),e=B({},e,{timeZone:"utc"}));var i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(i.format(t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.fromIso8601=function(t){if(ie.test(t)){var e=new Date(t);if(this.isValid(e))return e}return null},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype._createDateWithOverflow=function(t,e,i){var n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e}(Zt);ne.decorators=[{type:e.Injectable}],ne.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Xt]}]}]};var ae=new e.InjectionToken("md-date-formats"),re={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"}}},oe=function(){function t(){}return t}();oe.decorators=[{type:e.NgModule,args:[{providers:[{provide:Zt,useClass:ne},$t]}]}],oe.ctorParameters=function(){return[]};var se=function(){function t(){}return t}();se.decorators=[{type:e.NgModule,args:[{imports:[oe],providers:[{provide:ae,useValue:re}]}]}],se.ctorParameters=function(){return[]};var le=new e.InjectionToken("md-error-global-options"),ce=function(t){function i(){var i=t.call(this)||this;return i._hammer="undefined"!=typeof window?window.Hammer:null,i.events=i._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],!i._hammer&&e.isDevMode()&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),i}return P(i,t),i.prototype.buildHammer=function(t){var e=new this._hammer(t),i=new this._hammer.Pan,n=new this._hammer.Swipe,a=new this._hammer.Press,r=this._createRecognizer(i,{event:"slide",threshold:0},n),o=this._createRecognizer(a,{event:"longpress",time:500});return i.recognizeWith(n),e.add([n,a,i,r,o]),e},i.prototype._createRecognizer=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var a=new t.constructor(e);return i.push(t),i.forEach(function(t){return a.recognizeWith(t)}),a},i}(a.HammerGestureConfig);ce.decorators=[{type:e.Injectable}],ce.ctorParameters=function(){return[]};var pe=function(){function t(){}return t}();pe.decorators=[{type:e.Directive,args:[{selector:"[md-line], [mat-line], [mdLine], [matLine]",host:{class:"mat-line"}}]}],pe.ctorParameters=function(){return[]};var de=function(){function t(t,e,i){var n=this;this._lines=t,this._renderer=e,this._element=i,this._setLineClass(this._lines.length),this._lines.changes.subscribe(function(){n._setLineClass(n._lines.length)})}return t.prototype._setLineClass=function(t){this._resetClasses(),2===t||3===t?this._setClass("mat-"+t+"-line",!0):t>3&&this._setClass("mat-multi-line",!0)},t.prototype._resetClasses=function(){this._setClass("mat-2-line",!1),this._setClass("mat-3-line",!1),this._setClass("mat-multi-line",!1)},t.prototype._setClass=function(t,e){e?this._renderer.addClass(this._element.nativeElement,t):this._renderer.removeClass(this._element.nativeElement,t)},t}(),ue=function(){function t(){}return t}();ue.decorators=[{type:e.NgModule,args:[{imports:[Ut],exports:[pe,Ut],declarations:[pe]}]}],ue.ctorParameters=function(){return[]};var me={};me.FADING_IN=0,me.VISIBLE=1,me.FADING_OUT=2,me.HIDDEN=3,me[me.FADING_IN]="FADING_IN",me[me.VISIBLE]="VISIBLE",me[me.FADING_OUT]="FADING_OUT",me[me.HIDDEN]="HIDDEN";var he=function(){function t(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=me.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),ge=function(){function t(t,e,i,n){this._ngZone=e,this._ruler=i,this._isMousedown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this.rippleConfig={},this.rippleDisabled=!1,n.isBrowser&&(this._containerElement=t.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 t.prototype.fadeInRipple=function(t,e,i){var n=this;void 0===i&&(i={});var a=this._containerElement.getBoundingClientRect();if(i.centered)t=a.left+a.width/2,e=a.top+a.height/2;else{var r=this._ruler.getViewportScrollPosition();t-=r.left,e-=r.top}var o=i.radius||W(t,e,a),s=1/(i.speedFactor||1)*450,l=t-a.left,c=e-a.top,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=l-o+"px",p.style.top=c-o+"px",p.style.height=2*o+"px",p.style.width=2*o+"px",p.style.backgroundColor=i.color||null,p.style.transitionDuration=s+"ms",this._containerElement.appendChild(p),N(p),p.style.transform="scale(1)";var d=new he(this,p,i);return d.state=me.FADING_IN,this._activeRipples.add(d),this.runTimeoutOutsideZone(function(){d.state=me.VISIBLE,i.persistent||n._isMousedown||d.fadeOut()},s),d},t.prototype.fadeOutRipple=function(t){if(this._activeRipples.delete(t)){var e=t.element;e.style.transitionDuration="400ms",e.style.opacity="0",t.state=me.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=me.HIDDEN,e.parentNode.removeChild(e)},400)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setTriggerElement=function(t){var e=this;this._triggerElement&&this._triggerEvents.forEach(function(t,i){e._triggerElement.removeEventListener(i,t)}),t&&this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(e,i){return t.addEventListener(i,e)})}),this._triggerElement=t},t.prototype.onMousedown=function(t){this.rippleDisabled||(this._isMousedown=!0,this.fadeInRipple(t.pageX,t.pageY,this.rippleConfig))},t.prototype.onMouseup=function(){this._isMousedown=!1,this._activeRipples.forEach(function(t){t.config.persistent||t.state!==me.VISIBLE||t.fadeOut()})},t.prototype.onMouseLeave=function(){this._isMousedown&&this.onMouseup()},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t}(),fe=new e.InjectionToken("md-ripple-global-options"),be=function(){function t(t,e,i,n,a){this.radius=0,this.speedFactor=1,this._rippleRenderer=new ge(t,e,i,n),this._globalOptions=a||{},this._updateRippleRenderer()}return Object.defineProperty(t.prototype,"_matRippleTrigger",{get:function(){return this.trigger},set:function(t){this.trigger=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleCentered",{get:function(){return this.centered},set:function(t){this.centered=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleDisabled",{get:function(){return this.disabled},set:function(t){this.disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleRadius",{get:function(){return this.radius},set:function(t){this.radius=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleSpeedFactor",{get:function(){return this.speedFactor},set:function(t){this.speedFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleColor",{get:function(){return this.color},set:function(t){this.color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleUnbounded",{get:function(){return this.unbounded},set:function(t){this.unbounded=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){(t.trigger||t._matRippleTrigger)&&this.trigger&&this._rippleRenderer.setTriggerElement(this.trigger),this._updateRippleRenderer()},t.prototype.ngOnDestroy=function(){this._rippleRenderer.setTriggerElement(null)},t.prototype.launch=function(t,e,i){return void 0===i&&(i=this.rippleConfig),this._rippleRenderer.fadeInRipple(t,e,i)},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.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}),t.prototype._updateRippleRenderer=function(){this._rippleRenderer.rippleDisabled=this._globalOptions.disabled||this.disabled,this._rippleRenderer.rippleConfig=this.rippleConfig},t}();be.decorators=[{type:e.Directive,args:[{selector:"[md-ripple], [mat-ripple], [mdRipple], [matRipple]",exportAs:"mdRipple, matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],be.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:c.ViewportRuler},{type:p.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[fe]}]}]},be.propDecorators={trigger:[{type:e.Input,args:["mdRippleTrigger"]}],centered:[{type:e.Input,args:["mdRippleCentered"]}],disabled:[{type:e.Input,args:["mdRippleDisabled"]}],radius:[{type:e.Input,args:["mdRippleRadius"]}],speedFactor:[{type:e.Input,args:["mdRippleSpeedFactor"]}],color:[{type:e.Input,args:["mdRippleColor"]}],unbounded:[{type:e.Input,args:["mdRippleUnbounded"]}],_matRippleTrigger:[{type:e.Input,args:["matRippleTrigger"]}],_matRippleCentered:[{type:e.Input,args:["matRippleCentered"]}],_matRippleDisabled:[{type:e.Input,args:["matRippleDisabled"]}],_matRippleRadius:[{type:e.Input,args:["matRippleRadius"]}],_matRippleSpeedFactor:[{type:e.Input,args:["matRippleSpeedFactor"]}],_matRippleColor:[{type:e.Input,args:["matRippleColor"]}],_matRippleUnbounded:[{type:e.Input,args:["matRippleUnbounded"]}]};var _e=function(){function t(){}return t}();_e.decorators=[{type:e.NgModule,args:[{imports:[Ut,p.PlatformModule,c.ScrollDispatchModule],exports:[be,Ut],declarations:[be],providers:[c.VIEWPORT_RULER_PROVIDER]}]}],_e.ctorParameters=function(){return[]};var ye=function(){function t(){this.state="unchecked",this.disabled=!1}return t}();ye.decorators=[{type:e.Component,args:[{encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.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"}}]}],ye.ctorParameters=function(){return[]},ye.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]};var ve=function(){function t(){}return t}();ve.decorators=[{type:e.NgModule,args:[{exports:[ye],declarations:[ye]}]}],ve.ctorParameters=function(){return[]};var xe=function(){function t(){}return t}(),Ce=E(xe),ke=0,we=function(t){function e(){var e=t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+ke++,e}return P(e,t),e}(Ce) ;we.decorators=[{type:e.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:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],we.ctorParameters=function(){return[]},we.propDecorators={label:[{type:e.Input}]};var De=0,Me=function(){function t(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e}return t}(),Se=function(){function t(t,i,n){this._element=t,this._changeDetectorRef=i,this.group=n,this._selected=!1,this._active=!1,this._multiple=!1,this._disableRipple=!1,this._disabled=!1,this._id="md-option-"+De++,this.onSelectionChange=new e.EventEmitter}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(t){t!==this._multiple&&(this._multiple=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=t,this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},t.prototype.deselect=function(){this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},t.prototype.focus=function(){var t=this._getHostElement();"function"==typeof t.focus&&t.focus()},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){t.keyCode!==s.ENTER&&t.keyCode!==s.SPACE||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new Me(this,t))},t.countGroupLabelsBeforeOption=function(t,e,i){if(i.length){for(var n=e.toArray(),a=i.toArray(),r=0,o=0;o<t+1;o++)n[o].group&&n[o].group===a[r]&&r++;return r}return 0},t}();Se.decorators=[{type:e.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:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,viewProviders:[{provide:Vt,useValue:!0}]}]}],Se.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:we,decorators:[{type:e.Optional}]}]},Se.propDecorators={value:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]};var Ie=function(){function t(){}return t}();Ie.decorators=[{type:e.NgModule,args:[{imports:[_e,l.CommonModule,ve],exports:[Se,we],declarations:[Se,we]}]}],Ie.ctorParameters=function(){return[]};var Oe=new e.InjectionToken("md-placeholder-global-options"),Pe=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)},t}(),Re=function(){function t(){}return t}();Re.decorators=[{type:e.NgModule,args:[{imports:[i.A11yModule],exports:[i.A11yModule]}]}],Re.ctorParameters=function(){return[]};var Ee=0,Te=function(){function t(){this.id="mat-error-"+Ee++}return t}();Te.decorators=[{type:e.Directive,args:[{selector:"md-error, mat-error",host:{class:"mat-error",role:"alert","[attr.id]":"id"}}]}],Te.ctorParameters=function(){return[]},Te.propDecorators={id:[{type:e.Input}]};var Ae=function(){function t(){}return t.prototype.setDescribedByIds=function(t){},t.prototype.focus=function(){},t}(),Le=0,Fe=function(){function t(){this.align="start",this.id="mat-hint-"+Le++}return t}();Fe.decorators=[{type:e.Directive,args:[{selector:"md-hint, mat-hint",host:{class:"mat-hint","[class.mat-right]":'align == "end"',"[attr.id]":"id","[attr.align]":"null"}}]}],Fe.ctorParameters=function(){return[]},Fe.propDecorators={align:[{type:e.Input}],id:[{type:e.Input}]};var Be=function(){function t(){}return t}();Be.decorators=[{type:e.Directive,args:[{selector:"md-placeholder, mat-placeholder"}]}],Be.ctorParameters=function(){return[]};var Ve=function(){function t(){}return t}();Ve.decorators=[{type:e.Directive,args:[{selector:"[mdPrefix], [matPrefix]"}]}],Ve.ctorParameters=function(){return[]};var je=function(){function t(){}return t}();je.decorators=[{type:e.Directive,args:[{selector:"[mdSuffix], [matSuffix]"}]}],je.ctorParameters=function(){return[]};var ze=0,Ne=function(){function t(t,e,i){this._elementRef=t,this._changeDetectorRef=e,this.color="primary",this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="md-hint-"+ze++,this._placeholderOptions=i||{},this.floatPlaceholder=this._placeholderOptions.float||"auto"}return Object.defineProperty(t.prototype,"dividerColor",{get:function(){return this.color},set:function(t){this.color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatPlaceholder&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canPlaceholderFloat",{get:function(){return"never"!==this._floatPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatPlaceholder",{get:function(){return this._floatPlaceholder},set:function(t){t!==this._floatPlaceholder&&(this._floatPlaceholder=t||this._placeholderOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild(),m.startWith.call(this._control.stateChanges,null).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()});var e=this._control.ngControl;e&&e.valueChanges&&e.valueChanges.subscribe(function(){t._changeDetectorRef.markForCheck()}),m.startWith.call(this._hintChildren.changes,null).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),m.startWith.call(this._errorChildren.changes,null).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})},t.prototype.ngAfterContentChecked=function(){this._validateControlChild()},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},t.prototype._hasPlaceholder=function(){return!(!this._control.placeholder&&!this._placeholderChild)},t.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},t.prototype._animateAndLockPlaceholder=function(){var t=this;this._placeholder&&this._canPlaceholderFloat&&(this._showAlwaysAnimate=!0,this._floatPlaceholder="always",m.first.call(f.fromEvent(this._placeholder.nativeElement,"transitionend")).subscribe(function(){t._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},t.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw G()},t.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},t.prototype._validateHints=function(){var t=this;if(this._hintChildren){var e,i;this._hintChildren.forEach(function(n){if("start"==n.align){if(e||t.hintLabel)throw Y("start");e=n}else if("end"==n.align){if(i)throw Y("end");i=n}})}},t.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,i=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},t.prototype._validateControlChild=function(){if(!this._control)throw U()},t}();Ne.decorators=[{type:e.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:[g.trigger("transitionMessages",[g.state("enter",g.style({opacity:1,transform:"translateY(0%)"})),g.transition("void => enter",[g.style({opacity:0,transform:"translateY(-100%)"}),g.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:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],Ne.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Oe]}]}]},Ne.propDecorators={color:[{type:e.Input}],dividerColor:[{type:e.Input}],hideRequiredMarker:[{type:e.Input}],hintLabel:[{type:e.Input}],floatPlaceholder:[{type:e.Input}],underlineRef:[{type:e.ViewChild,args:["underline"]}],_connectionContainerRef:[{type:e.ViewChild,args:["connectionContainer"]}],_placeholder:[{type:e.ViewChild,args:["placeholder"]}],_control:[{type:e.ContentChild,args:[Ae]}],_placeholderChild:[{type:e.ContentChild,args:[Be]}],_errorChildren:[{type:e.ContentChildren,args:[T