UNPKG

@angular/material

Version:
9 lines 601 kB
/** * @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/platform-browser"),require("@angular/cdk/bidi"),require("@angular/cdk"),require("@angular/cdk/coercion"),require("rxjs"),require("@angular/cdk/platform"),require("rxjs/operators"),require("@angular/cdk/a11y"),require("@angular/platform-browser/animations"),require("@angular/cdk/keycodes"),require("@angular/common"),require("@angular/animations"),require("@angular/cdk/observers"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/cdk/scrolling"),require("@angular/forms"),require("@angular/cdk/layout"),require("@angular/cdk/collections"),require("@angular/cdk/text-field"),require("@angular/cdk/accordion"),require("@angular/common/http"),require("@angular/cdk/stepper"),require("@angular/cdk/table"),require("@angular/cdk/tree")):"function"==typeof define&&define.amd?define("@angular/material",["exports","@angular/core","@angular/platform-browser","@angular/cdk/bidi","@angular/cdk","@angular/cdk/coercion","rxjs","@angular/cdk/platform","rxjs/operators","@angular/cdk/a11y","@angular/platform-browser/animations","@angular/cdk/keycodes","@angular/common","@angular/animations","@angular/cdk/observers","@angular/cdk/overlay","@angular/cdk/portal","@angular/cdk/scrolling","@angular/forms","@angular/cdk/layout","@angular/cdk/collections","@angular/cdk/text-field","@angular/cdk/accordion","@angular/common/http","@angular/cdk/stepper","@angular/cdk/table","@angular/cdk/tree"],e):e((t.ng=t.ng||{},t.ng.material={}),t.ng.core,t.ng.platformBrowser,t.ng.cdk.bidi,t.ng.cdk,t.ng.cdk.coercion,t.rxjs,t.ng.cdk.platform,t.rxjs.operators,t.ng.cdk.a11y,t.ng.platformBrowser.animations,t.ng.cdk.keycodes,t.ng.common,t.ng.animations,t.ng.cdk.observers,t.ng.cdk.overlay,t.ng.cdk.portal,t.ng.cdk.scrolling,t.ng.forms,t.ng.cdk.layout,t.ng.cdk.collections,t.ng.cdk.textField,t.ng.cdk.accordion,t.ng.common.http,t.ng.cdk.stepper,t.ng.cdk.table,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,w,k,D,O){"use strict";function I(t,e){function i(){this.constructor=t}Xt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function S(){return!0}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._disabled=!1,a}return I(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function A(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 I(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 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._disableRipple=!1,a}return I(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function R(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 I(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 P(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 r.Subject,a}return I(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 T(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 r.Observable(function(t){a._isInitialized?a._notifySubscriber(t):a._pendingSubscribers.push(t)}),a}return I(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 L(){return e.inject(e.LOCALE_ID)}function N(t,e){for(var i=Array(t),a=0;a<t;a++)i[a]=e(a);return i}function F(t,e){t.changes.pipe(l.startWith(t)).subscribe(function(t){var i=t.length;z(e,"mat-2-line",!1),z(e,"mat-3-line",!1),z(e,"mat-multi-line",!1),2===i||3===i?z(e,"mat-"+i+"-line",!0):i>3&&z(e,"mat-multi-line",!0)})}function z(t,e,i){var a=t.nativeElement.classList;i?a.add(e):a.remove(e)}function j(t){window.getComputedStyle(t).getPropertyValue("opacity")}function V(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 B(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 H(t,e,i,a){var n=t*e;return n<i?n:n+e>i+a?Math.max(0,n-a+e):i}function Y(){return Error("Placeholder attribute and child element were both specified.")}function U(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}function W(){return Error("mat-form-field must contain a MatFormFieldControl.")}function G(){return{autoActiveFirstOption:!1}}function q(t){return function(){return t.scrollStrategies.reposition()}}function K(){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 X(t,e){return Zt({},t,e)}function Z(){throw Error("Attempting to attach dialog content after content is already attached")}function $(t){return function(){return t.scrollStrategies.block()}}function J(t){return function(){return t.scrollStrategies.block()}}function Q(t,e){return Zt({},e,t)}function tt(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 et(t){return Error('Input type "'+t+"\" isn't supported by matInput.")}function it(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 at(t,e,i,a,n){var o=t.getYear(e),r=t.getYear(i),s=ot(t,a,n);return Math.floor((o-s)/vn)===Math.floor((r-s)/vn)}function nt(t,e,i,a){return rt(t.getYear(e)-ot(t,i,a),vn)}function ot(t,e,i){var a=0;if(i){a=t.getYear(i)-vn+1}else e&&(a=t.getYear(e));return a}function rt(t,e){return(t%e+e)%e}function st(t){return function(){return t.scrollStrategies.reposition()}}function lt(t){return"calc("+t+")"}function ct(t){return t.match(/([A-Za-z%]+)$/)?t:t+"px"}function pt(t){return Error('Unable to find icon with the name "'+t+'"')}function dt(){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 mt(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function ut(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+t+'".')}function ht(t,e,i,a,n){return t||new bo(e,i,a,n)}function ft(t){return t.cloneNode(!0)}function gt(t,e){return t+":"+e}function bt(){var t=e.inject(m.DOCUMENT),i=t?t.location:null;return{getPathname:function(){return i?i.pathname+i.search:""}}}function _t(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n <mat-menu #menu="matMenu"></mat-menu>\n <button [matMenuTriggerFor]="menu"></button>')}function yt(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>')}function vt(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>')}function xt(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}function Ct(t){return function(){return t.scrollStrategies.reposition()}}function wt(){return Error("Cannot change `multiple` mode of select after initialization.")}function kt(){return Error("Value must be an array in multiple-selection mode.")}function Dt(){return Error("`compareWith` must be a function.")}function Ot(t){return function(){return t.scrollStrategies.reposition()}}function It(t){return Error('Tooltip position "'+t+'" is invalid.')}function St(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:kr})}}function Et(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}function At(t){return t||new Mr}function Mt(){var t=e.inject(m.DOCUMENT),i=t?t.location:null;return{getPathname:function(){return i?i.pathname+i.search:""}}}function Rt(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=100),Math.max(e,Math.min(i,t))}function Pt(){return{diameter:Ur}}function Tt(t,e){if("undefined"!=typeof window){var i=e.head;if(i&&(i.createShadowRoot||i.attachShadow)){var a=t.getRootNode?t.getRootNode():null;if(a instanceof window.ShadowRoot)return a}}return null}function Lt(){return{color:"accent"}}function Nt(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}function Ft(){return!1}function zt(){return new Ls}function jt(t){return Error("Cannot have two MatSortables with the same id ("+t+").")}function Vt(){return Error("MatSortHeader must be placed within a parent element with the MatSort directive.")}function Bt(){return Error("MatSortHeader must be provided with a unique id.")}function Ht(t){return Error(t+" is not a valid sort direction ('asc' or 'desc').")}function Yt(t,e){var i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}function Ut(t){return t||new qs}function Wt(t){return t||new tl}function Gt(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}function qt(){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 Kt,Xt=function(t,e){return(Xt=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])})(t,e)},Zt=function(){return 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},Zt.apply(this,arguments)},$t=new e.Version("8.2.3"),Jt=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}(),Qt=function(){function t(){}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),te=new e.Version("8.2.3"),ee=new e.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:S}),ie=function(){function t(t,e){this._sanityChecksEnabled=t,this._hammerLoader=e,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._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&e.isDevMode()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){var t=this._window;return t&&(t.__karma__||t.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&&this._document.body&&"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._checkCdkVersionMatch=function(){te.full!==n.VERSION.full&&console.warn("The Angular Material version ("+te.full+") does not match the Angular CDK version ("+n.VERSION.full+").\nPlease ensure the versions of these two packages exactly match.")},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(!this._areChecksEnabled()||this._window.Hammer||this._hammerLoader||console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t.decorators=[{type:e.NgModule,args:[{imports:[a.BidiModule],exports:[a.BidiModule]}]}],t.ctorParameters=function(){return[{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[ee]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[i.HAMMER_LOADER]}]}]},t}(),ae=new e.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:L}),ne={provide:ae,useExisting:e.LOCALE_ID},oe=function(){function t(){this._localeChanges=new r.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}(),re=new e.InjectionToken("mat-date-formats");try{Kt="undefined"!=typeof Intl}catch(t){Kt=!1}var se={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"]},le=function(t){return String(t+1)},ce=N(31,le),pe={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},de=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,me=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 I(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(Kt){var i=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return N(12,function(t){return e._stripDirectionalityCharacters(e._format(i,new Date(2017,t,1)))})}return se[t]},i.prototype.getDateNames=function(){var t=this;if(Kt){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return N(31,function(i){return t._stripDirectionalityCharacters(t._format(e,new Date(2017,0,i+1)))})}return ce},i.prototype.getDayOfWeekNames=function(t){var e=this;if(Kt){var i=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return N(7,function(t){return e._stripDirectionalityCharacters(e._format(i,new Date(2017,0,t+1)))})}return pe[t]},i.prototype.getYearName=function(t){if(Kt){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 new Date(t.getTime())},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(Kt){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(de.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:String,decorators:[{type:e.Optional},{type:e.Inject,args:[ae]}]},{type:s.Platform}]},i}(oe),ue={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"}}},he=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[s.PlatformModule],providers:[{provide:oe,useClass:me}]}]}],t}(),fe=ue,ge=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[he],providers:[{provide:re,useValue:fe}]}]}],t}(),be=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}(),_e=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}(),ye=new e.InjectionToken("MAT_HAMMER_OPTIONS"),ve=["longpress","slide","slidestart","slideend","slideright","slideleft"],xe=function(){},Ce=function(){},we={on:xe,off:Ce},ke=function(t){function i(e,i){var a=t.call(this)||this;return a._hammerOptions=e,a.events=ve,i&&i._checkHammerIsAvailable(),a}return I(i,t),i.prototype.buildHammer=function(t){var e="undefined"!=typeof window?window.Hammer:null;if(!e)return we;var i=new e(t,this._hammerOptions||void 0),a=new e.Pan,n=new e.Swipe,o=new e.Press,r=this._createRecognizer(a,{event:"slide",threshold:0},n),s=this._createRecognizer(o,{event:"longpress",time:500});return a.recognizeWith(n),s.recognizeWith(r),i.add([n,o,a,r,s]),i},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:[ye]}]},{type:ie,decorators:[{type:e.Optional}]}]},i}(i.HammerGestureConfig),De=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-line], [matLine]",host:{class:"mat-line"}}]}],t}(),Oe=function(){function t(t,e){F(t,e)}return t}(),Ie=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[ie],exports:[De,ie],declarations:[De]}]}],t}(),Se={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};Se[Se.FADING_IN]="FADING_IN",Se[Se.VISIBLE]="VISIBLE",Se[Se.FADING_OUT]="FADING_OUT",Se[Se.HIDDEN]="HIDDEN";var Ee=function(){function t(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=Se.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),Ae={enterDuration:450,exitDuration:400},Me=800,Re=s.normalizePassiveListenerOptions({passive:!0}),Pe=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._onMousedown=function(t){var e=c.isFakeMousedownFromScreenReader(t),i=n._lastTouchStartEvent&&Date.now()<n._lastTouchStartEvent+Me;n._target.rippleDisabled||e||i||(n._isPointerDown=!0,n.fadeInRipple(t.clientX,t.clientY,n._target.rippleConfig))},this._onTouchStart=function(t){if(!n._target.rippleDisabled){n._lastTouchStartEvent=Date.now(),n._isPointerDown=!0;for(var e=t.changedTouches,i=0;i<e.length;i++)n.fadeInRipple(e[i].clientX,e[i].clientY,n._target.rippleConfig)}},this._onPointerUp=function(){n._isPointerDown&&(n._isPointerDown=!1,n._activeRipples.forEach(function(t){var e=t.state===Se.VISIBLE||t.config.terminateOnPointerUp&&t.state===Se.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))},a.isBrowser&&(this._containerElement=o.coerceElement(i),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",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({},Ae,i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);var r=i.radius||V(t,e,n),s=t-n.left,l=e-n.top,c=o.enterDuration,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),j(p),p.style.transform="scale(1)";var d=new Ee(this,p,i);return d.state=Se.FADING_IN,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var t=d===a._mostRecentTransientRipple;d.state=Se.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({},Ae,t.config.animation);i.style.transitionDuration=a.exitDuration+"ms",i.style.opacity="0",t.state=Se.FADING_OUT,this._runTimeoutOutsideZone(function(){t.state=Se.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,i=o.coerceElement(t);i&&i!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(t,e){i.addEventListener(e,t,Re)})}),this._triggerElement=i)},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,Re)})},t}(),Te=new e.InjectionToken("mat-ripple-global-options"),Le=function(){function t(t,e,i,a,n){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Pe(this,e,t,i),"NoopAnimations"===n&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}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}},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:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Te]}]},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},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"]}],animation:[{type:e.Input,args:["matRippleAnimation"]}],disabled:[{type:e.Input,args:["matRippleDisabled"]}],trigger:[{type:e.Input,args:["matRippleTrigger"]}]},t}(),Ne=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[ie,s.PlatformModule],exports:[Le,ie],declarations:[Le]}]}],t}(),Fe=function(){function t(t){this._animationMode=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:16px;height:16px;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-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}"],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","[class._mat-animation-noopable]":'_animationMode === "NoopAnimations"'}}]}],t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},t.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]},t}(),ze=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[Fe],declarations:[Fe]}]}],t}(),je=function(){function t(){}return t}(),Ve=E(je),Be=0,He=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+Be++,e}return I(i,t),i.decorators=[{type:e.Component,args:[{selector:"mat-optgroup",exportAs:"matOptgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }}<ng-content></ng-content></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;max-width:100%;-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}(Ve),Ye=0,Ue=function(){function t(t,e){ void 0===e&&(e=!1),this.source=t,this.isUserInput=e}return t}(),We=new e.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),Ge=function(){function t(t,i,a,n){this._element=t,this._changeDetectorRef=i,this._parent=a,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ye++,this.onSelectionChange=new e.EventEmitter,this._stateChanges=new r.Subject}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},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=o.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||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.focus=function(t,e){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)},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!==d.ENTER&&t.keyCode!==d.SPACE||d.hasModifierKey(t)||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getAriaSelected=function(){return this.selected||!this.multiple&&null},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 Ue(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]":"_getAriaSelected()","[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;max-width:100%;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.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 (-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 .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}@media (-ms-high-contrast:active){.mat-option .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:[We]}]},{type:He,decorators:[{type:e.Optional}]}]},t.propDecorators={value:[{type:e.Input}],id:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]},t}(),qe=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Ne,m.CommonModule,ze],exports:[Ge,He],declarations:[Ge,He]}]}],t}(),Ke=new e.InjectionToken("mat-label-global-options"),Xe=0,Ze=function(){function t(){this.id="mat-error-"+Xe++}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}(),$e={transitionMessages:u.trigger("transitionMessages",[u.state("enter",u.style({opacity:1,transform:"translateY(0%)"})),u.transition("void => enter",[u.style({opacity:0,transform:"translateY(-100%)"}),u.animate("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Je=function(){function t(){}return t}(),Qe=0,ti=function(){function t(){this.align="start",this.id="mat-hint-"+Qe++}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}(),ei=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-label"}]}],t}(),ii=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-placeholder"}]}],t}(),ai=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[matPrefix]"}]}],t}(),ni=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[matSuffix]"}]}],t}(),oi=0,ri=function(){function t(t){this._elementRef=t}return t}(),si=A(ri,"primary"),li=new e.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ci=function(t){function i(e,i,a,n,o,s,l,c){var p=t.call(this,e)||this;return p._elementRef=e,p._changeDetectorRef=i,p._dir=n,p._defaults=o,p._platform=s,p._ngZone=l,p._outlineGapCalculationNeededImmediately=!1,p._outlineGapCalculationNeededOnStable=!1,p._destroyed=new r.Subject,p._showAlwaysAnimate=!1,p._subscriptAnimationState="",p._hintLabel="",p._hintLabelId="mat-hint-"+oi++,p._labelId="mat-form-field-label-"+oi++,p._previousDirection="ltr",p._labelOptions=a||{},p.floatLabel=p._labelOptions.float||"auto",p._animationsEnabled="NoopAnimations"!==c,p.appearance=o&&o.appearance?o.appearance:"legacy",p._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,p}return I(i,t),Object.defineProperty(i.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(i.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}),Object.defineProperty(i.prototype,"_control",{get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_labelChild",{get:function(){return this._labelChildNonStatic||this._labelChildStatic},enumerable:!0,configurable:!0}),i.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},i.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(l.startWith(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(l.takeUntil(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.asObservable().pipe(l.takeUntil(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),r.merge(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(l.startWith(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(l.startWith(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(l.takeUntil(this._destroyed)).subscribe(function(){t.updateOutlineGap(),t._previousDirection=t._dir.value})},i.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},i.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},i.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},i.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},i.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},i.prototype._hasLabel=function(){return!!this._labelChild},i.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},i.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},i.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},i.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},i.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,r.fromEvent(this._label.nativeElement,"transitionend").pipe(l.take(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},i.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Y()},i.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},i.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 U("start");e=a}else if("end"===a.align){if(i)throw U("end");i=a}})}},i.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)}},i.prototype._validateControlChild=function(){if(!this._control)throw W()},i.prototype.updateOutlineGap=function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser){if(!document.documentElement.contains(this._elementRef.nativeElement))return void(this._outlineGapCalculationNeededImmediately=!0);var e=0,i=0,a=this._connectionContainerRef.nativeElement,n=a.querySelectorAll(".mat-form-field-outline-start"),o=a.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var r=a.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(r),l=this._getStartEnd(t.children[0].getBoundingClientRect()),c=0,p=0,d=t.children;p<d.length;p++){c+=d[p].offsetWidth}e=l-s-5,i=c>0?.75*c+10:0}for(var m=0;m<n.length;m++)n.item(m).style.width=e+"px";for(var m=0;m<o.length;m++)o.item(m).style.width=i+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}},i.prototype._getStartEnd=function(t){return"rtl"===this._previousDirection?t.right:t.left},i.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)"><ng-container *ngIf="appearance == \'outline\'"><div class="mat-form-field-outline"><div class="mat-form-field-outline-start"></div><div class="mat-form-field-outline-gap"></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"></div><div class="mat-form-field-outline-gap"></div><div class="mat-form-field-outline-end"></div></div></ng-container><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" (cdkObserveContent)="updateOutlineGap()" [cdkObserveContentDisabled]="appearance != \'outline\'" [id]="_labelId" [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><span>{{_control.placeholder}}</span></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">&#32;*</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><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}@media (-ms-high-contrast:active){.mat-form-field-infix{border-image:linea