@angular/material
Version:
Angular Material
9 lines • 562 kB
JavaScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("rxjs"),require("@angular/cdk/platform"),require("@angular/platform-browser"),require("@angular/cdk/keycodes"),require("@angular/common"),require("@angular/animations"),require("rxjs/operators"),require("@angular/cdk/a11y"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/forms"),require("@angular/cdk/layout"),require("@angular/cdk/collections"),require("@angular/cdk/observers"),require("@angular/cdk/text-field"),require("@angular/cdk/accordion"),require("@angular/common/http"),require("@angular/cdk/scrolling"),require("@angular/cdk/table"),require("@angular/cdk/stepper"),require("@angular/cdk/tree")):"function"==typeof define&&define.amd?define("@angular/material",["exports","@angular/core","@angular/cdk/bidi","@angular/cdk/coercion","rxjs","@angular/cdk/platform","@angular/platform-browser","@angular/cdk/keycodes","@angular/common","@angular/animations","rxjs/operators","@angular/cdk/a11y","@angular/cdk/overlay","@angular/cdk/portal","@angular/forms","@angular/cdk/layout","@angular/cdk/collections","@angular/cdk/observers","@angular/cdk/text-field","@angular/cdk/accordion","@angular/common/http","@angular/cdk/scrolling","@angular/cdk/table","@angular/cdk/stepper","@angular/cdk/tree"],e):e((t.ng=t.ng||{},t.ng.material={}),t.ng.core,t.ng.cdk.bidi,t.ng.cdk.coercion,t.Rx,t.ng.cdk.platform,t.ng.platformBrowser,t.ng.cdk.keycodes,t.ng.common,t.ng.animations,t.Rx.operators,t.ng.cdk.a11y,t.ng.cdk.overlay,t.ng.cdk.portal,t.ng.forms,t.ng.cdk.layout,t.ng.cdk.collections,t.ng.cdk.observers,t.ng.cdk.textField,t.ng.cdk.accordion,t.ng.common.http,t.ng.cdk.scrolling,t.ng.cdk.table,t.ng.cdk.stepper,t.ng.cdk.tree)}(this,function(t,e,i,a,n,o,r,s,l,c,p,d,m,u,h,f,g,b,_,y,v,x,C,k,w){"use strict";function D(t,e){function i(){this.constructor=t}Ft(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function S(){return!0}function I(t){return function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=t.apply(this,e)||this;return a._disabled=!1,a}return D(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=a.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function O(t,e){return function(t){function i(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var n=t.apply(this,i)||this;return n.color=e,n}return D(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._elementRef.nativeElement.classList.remove("mat-"+this._color),i&&this._elementRef.nativeElement.classList.add("mat-"+i),this._color=i)},enumerable:!0,configurable:!0}),i}(t)}function E(t){return function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=t.apply(this,e)||this;return a._disableRipple=!1,a}return D(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=a.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function A(t,e){return void 0===e&&(e=0),function(t){function i(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var n=t.apply(this,i)||this;return n._tabIndex=e,n}return D(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 M(t){return function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=t.apply(this,e)||this;return a.errorState=!1,a.stateChanges=new n.Subject,a}return D(e,t),e.prototype.updateErrorState=function(){var t=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.errorStateMatcher||this._defaultErrorStateMatcher,a=this.ngControl?this.ngControl.control:null,n=i.isErrorState(a,e);n!==t&&(this.errorState=n,this.stateChanges.next())},e}(t)}function R(t){return function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=t.apply(this,e)||this;return a._isInitialized=!1,a._pendingSubscribers=[],a.initialized=new n.Observable(function(t){a._isInitialized?a._notifySubscriber(t):a._pendingSubscribers.push(t)}),a}return D(e,t),e.prototype._markInitialized=function(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null},e.prototype._notifySubscriber=function(t){t.next(),t.complete()},e}(t)}function P(){return e.inject(e.LOCALE_ID)}function T(t,e){for(var i=Array(t),a=0;a<t;a++)i[a]=e(a);return i}function L(t){window.getComputedStyle(t).getPropertyValue("opacity")}function F(t,e,i){var a=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),n=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(a*a+n*n)}function z(t,e,i){if(i.length){for(var a=e.toArray(),n=i.toArray(),o=0,r=0;r<t+1;r++)a[r].group&&a[r].group===n[o]&&o++;return o}return 0}function N(t,e,i,a){var n=t*e;return n<i?n:n+e>i+a?Math.max(0,n-a+e):i}function B(){return Error("Placeholder attribute and child element were both specified.")}function V(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}function j(){return Error("mat-form-field must contain a MatFormFieldControl.")}function H(){return{autoActiveFirstOption:!1}}function Y(){var t=e.inject(m.Overlay);return function(){return t.scrollStrategies.reposition()}}function W(){return Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}function U(t){return zt({},new ri,t)}function G(){throw Error("Attempting to attach dialog content after content is already attached")}function q(){var t=e.inject(m.Overlay);return function(){return t.scrollStrategies.block()}}function X(t){return function(){return t.scrollStrategies.block()}}function K(t,e){return zt({},e,t)}function $(t,e){for(var i=t.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(function(t){return t.id===i.id}):null}function Z(t){return Error('Input type "'+t+"\" isn't supported by matInput.")}function J(t){return Error("MatDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}function Q(){var t=e.inject(m.Overlay);return function(){return t.scrollStrategies.reposition()}}function tt(t){return""+(t||"")}function et(t){return"string"==typeof t?parseInt(t,10):t}function it(t){return"calc("+t+")"}function at(t){return t.match(/px|em|rem/)?t:t+"px"}function nt(t){return Error('Unable to find icon with the name "'+t+'"')}function ot(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function rt(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function st(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+t+'".')}function lt(t,e,i,a){return t||new jn(e,i,a)}function ct(t){return t.cloneNode(!0)}function pt(t,e){return t+":"+e}function dt(){throw Error('mat-menu-trigger: must pass in an mat-menu instance.\n\n Example:\n <mat-menu #menu="matMenu"></mat-menu>\n <button [matMenuTriggerFor]="menu"></button>')}function mt(){throw Error('x-position value must be either \'before\' or after\'.\n Example: <mat-menu x-position="before" #menu="matMenu"></mat-menu>')}function ut(){throw Error('y-position value must be either \'above\' or below\'.\n Example: <mat-menu y-position="above" #menu="matMenu"></mat-menu>')}function ht(){return{overlapTrigger:!0,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}function ft(){var t=e.inject(m.Overlay);return function(){return t.scrollStrategies.reposition()}}function gt(){return Error("Cannot change `multiple` mode of select after initialization.")}function bt(){return Error("Value must be an array in multiple-selection mode.")}function _t(){return Error("`compareWith` must be a function.")}function yt(t){return function(){return t.scrollStrategies.reposition()}}function vt(t){return Error('Tooltip position "'+t+'" is invalid.')}function xt(){var t=e.inject(m.Overlay);return function(){return t.scrollStrategies.reposition({scrollThrottle:Bo})}}function Ct(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}function kt(t){return t||new Uo}function wt(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=100),Math.max(e,Math.min(i,t))}function Dt(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}function St(){return!1}function It(){return new Wr}function Ot(t){return Error("Cannot have two MatSortables with the same id ("+t+").")}function Et(){return Error("MatSortHeader must be placed within a parent element with the MatSort directive.")}function At(){return Error("MatSortHeader must be provided with a unique id.")}function Mt(t){return Error(t+" is not a valid sort direction ('asc' or 'desc').")}function Rt(t,e){var i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}function Pt(t){return t||new is}function Tt(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}function Lt(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}var Ft=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])},zt=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++){e=arguments[i];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Nt=function(){function t(){}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),Bt=function(){function t(){}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),Vt=new e.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:S}),jt=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&e.isDevMode()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!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._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==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(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t.decorators=[{type:e.NgModule,args:[{imports:[i.BidiModule],exports:[i.BidiModule]}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Vt]}]}]},t}(),Ht=new e.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:P}),Yt={provide:Ht,useExisting:e.LOCALE_ID},Wt=function(){function t(){this._localeChanges=new n.Subject}return Object.defineProperty(t.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),t.prototype.deserialize=function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()},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){if(t&&e){var i=this.isValid(t),a=this.isValid(e);return i&&a?!this.compareDate(t,e):i==a}return 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}(),Ut=new e.InjectionToken("mat-date-formats"),Gt="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"]},Xt=function(t){return String(t+1)},Kt=T(31,Xt),$t={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Zt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,Jt=function(t){function i(e,i){var a=t.call(this)||this;return a.useUtcForDisplay=!0,t.prototype.setLocale.call(a,e),a.useUtcForDisplay=!i.TRIDENT,a._clampDate=i.TRIDENT||i.EDGE,a}return D(i,t),i.prototype.getYear=function(t){return t.getFullYear()},i.prototype.getMonth=function(t){return t.getMonth()},i.prototype.getDate=function(t){return t.getDate()},i.prototype.getDayOfWeek=function(t){return t.getDay()},i.prototype.getMonthNames=function(t){var e=this;if(Gt){var i=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return T(12,function(t){return e._stripDirectionalityCharacters(e._format(i,new Date(2017,t,1)))})}return qt[t]},i.prototype.getDateNames=function(){var t=this;if(Gt){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return T(31,function(i){return t._stripDirectionalityCharacters(t._format(e,new Date(2017,0,i+1)))})}return Kt},i.prototype.getDayOfWeekNames=function(t){var e=this;if(Gt){var i=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return T(7,function(t){return e._stripDirectionalityCharacters(e._format(i,new Date(2017,0,t+1)))})}return $t[t]},i.prototype.getYearName=function(t){if(Gt){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))},i.prototype.getFirstDayOfWeek=function(){return 0},i.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},i.prototype.clone=function(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t))},i.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 a=this._createDateWithOverflow(t,e,i);if(a.getMonth()!=e)throw Error('Invalid date "'+i+'" for month with index "'+e+'".');return a},i.prototype.today=function(){return new Date},i.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},i.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Gt){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t),t.setFullYear(Math.max(1,Math.min(9999,t.getFullYear())))),e=zt({},e,{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())},i.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},i.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},i.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},i.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},i.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(Zt.test(e)){var i=new Date(e);if(this.isValid(i))return i}}return t.prototype.deserialize.call(this,e)},i.prototype.isDateInstance=function(t){return t instanceof Date},i.prototype.isValid=function(t){return!isNaN(t.getTime())},i.prototype.invalid=function(){return new Date(NaN)},i.prototype._createDateWithOverflow=function(t,e,i){var a=new Date(t,e,i);return t>=0&&t<100&&a.setFullYear(this.getYear(a)-1900),a},i.prototype._2digit=function(t){return("00"+t).slice(-2)},i.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},i.prototype._format=function(t,e){var i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)},i.decorators=[{type:e.Injectable}],i.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ht]}]},{type:o.Platform}]},i}(Wt),Qt={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"}}},te=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[o.PlatformModule],providers:[{provide:Wt,useClass:Jt}]}]}],t}(),ee=Qt,ie=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[te],providers:[{provide:Ut,useValue:ee}]}]}],t}(),ae=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.dirty||e&&e.submitted))},t.decorators=[{type:e.Injectable}],t}(),ne=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),oe=new e.InjectionToken("MAT_HAMMER_OPTIONS"),re=function(t){function i(e,i){var a=t.call(this)||this;return a._hammerOptions=e,a._hammer="undefined"!=typeof window?window.Hammer:null,a.events=a._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],i&&i._checkHammerIsAvailable(),a}return D(i,t),i.prototype.buildHammer=function(t){var e=new this._hammer(t,this._hammerOptions||void 0),i=new this._hammer.Pan,a=new this._hammer.Swipe,n=new this._hammer.Press,o=this._createRecognizer(i,{event:"slide",threshold:0},a),r=this._createRecognizer(n,{event:"longpress",time:500});return i.recognizeWith(a),e.add([a,n,i,o,r]),e},i.prototype._createRecognizer=function(t,e){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var n=new t.constructor(e);return i.push(t),i.forEach(function(t){return n.recognizeWith(t)}),n},i.decorators=[{type:e.Injectable}],i.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[oe]}]},{type:jt,decorators:[{type:e.Optional}]}]},i}(r.HammerGestureConfig),se=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-line], [matLine]",host:{class:"mat-line"}}]}],t}(),le=function(){function t(t,e){var i=this;this._lines=t,this._element=e,this._setLineClass(this._lines.length),this._lines.changes.subscribe(function(){i._setLineClass(i._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._element.nativeElement.classList.add(t):this._element.nativeElement.classList.remove(t)},t}(),ce=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[jt],exports:[se,jt],declarations:[se]}]}],t}(),pe={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};pe[pe.FADING_IN]="FADING_IN",pe[pe.VISIBLE]="VISIBLE",pe[pe.FADING_OUT]="FADING_OUT",pe[pe.HIDDEN]="HIDDEN";var de=function(){function t(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=pe.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),me={enterDuration:450,exitDuration:400},ue=800,he=function(){function t(t,e,i,a){var n=this;this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._eventOptions=!!o.supportsPassiveEventListeners()&&{passive:!0},this.onMousedown=function(t){var e=n._lastTouchStartEvent&&Date.now()<n._lastTouchStartEvent+ue;n._target.rippleDisabled||e||(n._isPointerDown=!0,n.fadeInRipple(t.clientX,t.clientY,n._target.rippleConfig))},this.onTouchStart=function(t){n._target.rippleDisabled||(n._lastTouchStartEvent=Date.now(),n._isPointerDown=!0,n.fadeInRipple(t.touches[0].clientX,t.touches[0].clientY,n._target.rippleConfig))},this.onPointerUp=function(){n._isPointerDown&&(n._isPointerDown=!1,n._activeRipples.forEach(function(t){var e=t.state===pe.VISIBLE||t.config.terminateOnPointerUp&&t.state===pe.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))},a.isBrowser&&(this._containerElement=i.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown),this._triggerEvents.set("mouseup",this.onPointerUp),this._triggerEvents.set("mouseleave",this.onPointerUp),this._triggerEvents.set("touchstart",this.onTouchStart),this._triggerEvents.set("touchend",this.onPointerUp))}return t.prototype.fadeInRipple=function(t,e,i){var a=this;void 0===i&&(i={});var n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=zt({},me,i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);var r=i.radius||F(t,e,n),s=t-n.left,l=e-n.top,c=o.enterDuration/(i.speedFactor||1),p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=s-r+"px",p.style.top=l-r+"px",p.style.height=2*r+"px",p.style.width=2*r+"px",p.style.backgroundColor=i.color||null,p.style.transitionDuration=c+"ms",this._containerElement.appendChild(p),L(p),p.style.transform="scale(1)";var d=new de(this,p,i);return d.state=pe.FADING_IN,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this.runTimeoutOutsideZone(function(){var t=d===a._mostRecentTransientRipple;d.state=pe.VISIBLE,i.persistent||t&&a._isPointerDown||d.fadeOut()},c),d},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var i=t.element,a=zt({},me,t.config.animation);i.style.transitionDuration=a.exitDuration+"ms",i.style.opacity="0",t.state=pe.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=pe.HIDDEN,i.parentNode.removeChild(i)},a.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setupTriggerEvents=function(t){var e=this;t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(i,a){return t.addEventListener(a,i,e._eventOptions)})}),this._triggerElement=t)},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(e,i){t._triggerElement.removeEventListener(i,e,t._eventOptions)})},t}(),fe=new e.InjectionToken("mat-ripple-global-options"),ge=function(){function t(t,e,i,a){this._elementRef=t,this.radius=0,this.speedFactor=1,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new he(this,e,t,i)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:zt({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,e,i){return void 0===e&&(e=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,zt({},this.rippleConfig,i)):this._rippleRenderer.fadeInRipple(0,0,zt({},this.rippleConfig,t))},t.decorators=[{type:e.Directive,args:[{selector:"[mat-ripple], [matRipple]",exportAs:"matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:o.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[fe]}]}]},t.propDecorators={color:[{type:e.Input,args:["matRippleColor"]}],unbounded:[{type:e.Input,args:["matRippleUnbounded"]}],centered:[{type:e.Input,args:["matRippleCentered"]}],radius:[{type:e.Input,args:["matRippleRadius"]}],speedFactor:[{type:e.Input,args:["matRippleSpeedFactor"]}],animation:[{type:e.Input,args:["matRippleAnimation"]}],disabled:[{type:e.Input,args:["matRippleDisabled"]}],trigger:[{type:e.Input,args:["matRippleTrigger"]}]},t}(),be=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[jt,o.PlatformModule],exports:[ge,jt],declarations:[ge]}]}],t}(),_e=function(){function t(){this.state="unchecked",this.disabled=!1}return t.decorators=[{type:e.Component,args:[{encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"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"}}]}],t.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]},t}(),ye=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[_e],declarations:[_e]}]}],t}(),ve=function(){function t(){}return t}(),xe=I(ve),Ce=0,ke=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+Ce++,e}return D(i,t),i.decorators=[{type:e.Component,args:[{selector:"mat-optgroup",exportAs:"matOptgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label><ng-content select="mat-option, ng-container"></ng-content>',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],i.propDecorators={label:[{type:e.Input}]},i}(xe),we=0,De=function(){function t(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e}return t}(),Se=new e.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),Ie=function(){function t(t,i,a,o){this._element=t,this._changeDetectorRef=i,this._parent=a,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._id="mat-option-"+we++,this._mostRecentViewValue="",this.onSelectionChange=new e.EventEmitter,this._stateChanges=new n.Subject}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},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=a.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._parent&&this._parent.disableRipple},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.ngAfterViewChecked=function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new De(this,t))},t.decorators=[{type:e.Component,args:[{selector:"mat-option",exportAs:"matOption",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"},styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}@media screen and (-ms-high-contrast:active){.mat-option{margin:0 1px}.mat-option.mat-active{border:solid 1px currentColor;margin:0}}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}@media screen and (-ms-high-contrast:active){.mat-option-ripple{opacity:.5}}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],template:'<mat-pseudo-checkbox *ngIf="multiple" class="mat-option-pseudo-checkbox" [state]="selected ? \'checked\' : \'\'" [disabled]="disabled"></mat-pseudo-checkbox><span class="mat-option-text"><ng-content></ng-content></span><div class="mat-option-ripple" mat-ripple [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="disabled || disableRipple"></div>',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Se]}]},{type:ke,decorators:[{type:e.Optional}]}]},t.propDecorators={value:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]},t}(),Oe=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[be,l.CommonModule,ye],exports:[Ie,ke],declarations:[Ie,ke]}]}],t}(),Ee=new e.InjectionToken("mat-label-global-options"),Ae=0,Me=function(){function t(){this.id="mat-error-"+Ae++}return t.decorators=[{type:e.Directive,args:[{selector:"mat-error",host:{class:"mat-error",role:"alert","[attr.id]":"id"}}]}],t.propDecorators={id:[{type:e.Input}]},t}(),Re={transitionMessages:c.trigger("transitionMessages",[c.state("enter",c.style({opacity:1,transform:"translateY(0%)"})),c.transition("void => enter",[c.style({opacity:0,transform:"translateY(-100%)"}),c.animate("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Pe=function(){function t(){}return t}(),Te=0,Le=function(){function t(){this.align="start",this.id="mat-hint-"+Te++}return t.decorators=[{type:e.Directive,args:[{selector:"mat-hint",host:{class:"mat-hint","[class.mat-right]":'align == "end"',"[attr.id]":"id","[attr.align]":"null"}}]}],t.propDecorators={align:[{type:e.Input}],id:[{type:e.Input}]},t}(),Fe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-label"}]}],t}(),ze=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-placeholder"}]}],t}(),Ne=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[matPrefix]"}]}],t}(),Be=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[matSuffix]"}]}],t}(),Ve=0,je=function(){function t(t){this._elementRef=t}return t}(),He=O(je,"primary"),Ye=new e.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"),We=function(t){function r(e,i,a,n,o,r){var s=t.call(this,e)||this;return s._elementRef=e,s._changeDetectorRef=i,s._dir=n,s._defaultOptions=o,s._platform=r,s._showAlwaysAnimate=!1,s._subscriptAnimationState="",s._hintLabel="",s._hintLabelId="mat-hint-"+Ve++,s._outlineGapWidth=0,s._outlineGapStart=0,s._initialGapCalculated=!1,s._labelOptions=a||{},s.floatLabel=s._labelOptions.float||"auto",s}return D(r,t),Object.defineProperty(r.prototype,"appearance",{get:function(){return this._appearance||this._defaultOptions&&this._defaultOptions.appearance||"legacy"},set:function(t){this._appearance=t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=a.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),r.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},r.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(p.startWith(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()});var e=this._control.ngControl&&this._control.ngControl.valueChanges||n.EMPTY;n.merge(e,this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(p.startWith(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(p.startWith(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})},r.prototype.ngAfterContentChecked=function(){var t=this;this._validateControlChild(),this._initialGapCalculated||Promise.resolve().then(function(){return t.updateOutlineGap()})},r.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},r.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},r.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},r.prototype._hasLabel=function(){return!!this._labelChild},r.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},r.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},r.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},r.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},r.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._showAlwaysAnimate=!0,this.floatLabel="always",n.fromEvent(this._label.nativeElement,"transitionend").pipe(p.take(1)).subscribe(function(){t._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},r.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw B()},r.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},r.prototype._validateHints=function(){var t=this;if(this._hintChildren){var e,i;this._hintChildren.forEach(function(a){if("start"===a.align){if(e||t.hintLabel)throw V("start");e=a}else if("end"===a.align){if(i)throw V("end");i=a}})}},r.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)}},r.prototype._validateControlChild=function(){if(!this._control)throw j()},r.prototype.updateOutlineGap=function(){if("outline"===this.appearance&&this._label&&this._label.nativeElement.children.length){if(this._platform&&!this._platform.isBrowser)return void(this._initialGapCalculated=!0);if(!document.contains(this._elementRef.nativeElement))return;for(var t=this._getStartEnd(this._connectionContainerRef.nativeElement.getBoundingClientRect()),e=this._getStartEnd(this._label.nativeElement.children[0].getBoundingClientRect()),i=0,a=0,n=this._label.nativeElement.children;a<n.length;a++){i+=n[a].offsetWidth}this._outlineGapStart=e-t-5,this._outlineGapWidth=.75*i+10}else this._outlineGapStart=0,this._outlineGapWidth=0;this._initialGapCalculated=!0,this._changeDetectorRef.markForCheck()},r.prototype._getStartEnd=function(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left},r.decorators=[{type:e.Component,args:[{selector:"mat-form-field",exportAs:"matFormField",template:'<div class="mat-form-field-wrapper"><div class="mat-form-field-flex" #connectionContainer (click)="_control.onContainerClick && _control.onContainerClick($event)"><div class="mat-form-field-prefix" *ngIf="_prefixChildren.length"><ng-content select="[matPrefix]"></ng-content></div><div class="mat-form-field-infix" #inputContainer><ng-content></ng-content><span class="mat-form-field-label-wrapper"><label class="mat-form-field-label" [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-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'" #label *ngIf="_hasFloatingLabel()" [ngSwitch]="_hasLabel()"><ng-container *ngSwitchCase="false"><ng-content select="mat-placeholder"></ng-content>{{_control.placeholder}}</ng-container><ng-content select="mat-label" *ngSwitchCase="true"></ng-content><span class="mat-placeholder-required mat-form-field-required-marker" aria-hidden="true" *ngIf="!hideRequiredMarker && _control.required && !_control.disabled"> *</span></label></span></div><div class="mat-form-field-suffix" *ngIf="_suffixChildren.length"><ng-content select="[matSuffix]"></ng-content></div></div><div class="mat-form-field-underline" #underline *ngIf="appearance != \'outline\'"><span class="mat-form-field-ripple" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'"></span></div><ng-container *ngIf="appearance == \'outline\'"><div class="mat-form-field-outline"><div class="mat-form-field-outline-start" [style.width.px]="_outlineGapStart"></div><div class="mat-form-field-outline-gap" [style.width.px]="_outlineGapWidth"></div><div class="mat-form-field-outline-end"></div></div><div class="mat-form-field-outline mat-form-field-outline-thick"><div class="mat-form-field-outline-start" [style.width.px]="_outlineGapStart"></div><div class="mat-form-field-outline-gap" [style.width.px]="_outlineGapWidth"></div><div class="mat-form-field-outline-end"></div></div></ng-container><div class="mat-form-field-subscript-wrapper" [ngSwitch]="_getDisplayedMessages()"><div *ngSwitchCase="\'error\'" [@transitionMessages]="_subscriptAnimationState"><ng-content select="mat-error"></ng-content></div><div class="mat-form-field-hint-wrapper" *ngSwitchCase="\'hint\'" [@transitionMessages]="_subscriptAnimationState"><div *ngIf="hintLabel" [id]="_hintLabelId" class="mat-hint">{{hintLabel}}</div><ng-content select="mat-hint:not([align=\'end\'])"></ng-content><div class="mat-form-field-hint-spacer"></div><ng-content select="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;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;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}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-empty.mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scaleY(1.0001)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(.5);opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-label-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-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:'';display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity .6s cubic-bezier(.25,.8,.25,1)}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em} .mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy