-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path29-es2015.0921b36e93f8920905ad.js
1 lines (1 loc) · 61.1 KB
/
29-es2015.0921b36e93f8920905ad.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{d3UM:function(e,t,i){"use strict";i.d(t,"a",function(){return Q}),i.d(t,"b",function(){return Z}),i.d(t,"c",function(){return q});var n=i("rDax"),a=i("ofXK"),r=i("fXoL"),o=i("FKr1"),l=i("kmnG"),s=i("vxfF"),c=i("u47x"),d=i("8LU1"),m=i("0EQZ"),p=i("FtGj"),h=i("XNiG"),f=i("NXyV"),u=i("VRyK"),b=i("JX91"),g=i("eIep"),_=i("IzEk"),O=i("pLZG"),y=i("lJxs"),v=i("/uUt"),C=i("1G5W"),w=i("R0Ic"),x=i("cH1L"),k=i("3Pt+");const j=["trigger"],M=["panel"];function S(e,t){if(1&e&&(r.ec(0,"span",8),r.Sc(1),r.dc()),2&e){const e=r.pc();r.Mb(1),r.Tc(e.placeholder||"\xa0")}}function I(e,t){if(1&e&&(r.ec(0,"span"),r.Sc(1),r.dc()),2&e){const e=r.pc(2);r.Mb(1),r.Tc(e.triggerValue||"\xa0")}}function F(e,t){1&e&&r.tc(0,0,["*ngSwitchCase","true"])}function L(e,t){if(1&e&&(r.ec(0,"span",9),r.Qc(1,I,2,1,"span",10),r.Qc(2,F,1,0,"ng-content",11),r.dc()),2&e){const e=r.pc();r.vc("ngSwitch",!!e.customTrigger),r.Mb(2),r.vc("ngSwitchCase",!0)}}function D(e,t){if(1&e){const e=r.fc();r.ec(0,"div",12),r.ec(1,"div",13,14),r.lc("@transformPanel.done",function(t){return r.Gc(e),r.pc()._panelDoneAnimatingStream.next(t.toState)})("keydown",function(t){return r.Gc(e),r.pc()._handleKeydown(t)}),r.tc(3,1),r.dc(),r.dc()}if(2&e){const e=r.pc();r.vc("@transformPanelWrap",void 0),r.Mb(1),r.Pb("mat-select-panel ",e._getPanelTheme(),""),r.Nc("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),r.vc("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),r.Nb("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const R=[[["mat-select-trigger"]],"*"],A=["mat-select-trigger","*"],P={transformPanelWrap:Object(w.m)("transformPanelWrap",[Object(w.l)("* => void",Object(w.h)("@transformPanel",[Object(w.f)()],{optional:!0}))]),transformPanel:Object(w.m)("transformPanel",[Object(w.j)("void",Object(w.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(w.j)("showing",Object(w.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(w.j)("showing-multiple",Object(w.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(w.l)("void => *",Object(w.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(w.l)("* => void",Object(w.e)("100ms 25ms linear",Object(w.k)({opacity:0})))])};let E=0;const z=new r.x("mat-select-scroll-strategy"),B=new r.x("MAT_SELECT_CONFIG"),T={provide:z,deps:[n.c],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class Y{constructor(e,t){this.source=e,this.value=t}}class V{constructor(e,t,i,n,a){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a}}const G=Object(o.A)(Object(o.E)(Object(o.B)(Object(o.C)(V)))),W=new r.x("MatSelectTrigger");let q=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e,selectors:[["mat-select-trigger"]],features:[r.Lb([{provide:W,useExisting:e}])]}),e})(),N=(()=>{class e extends G{constructor(e,t,i,n,a,o,l,s,c,d,m,p,v,C){var w,x,k;super(a,n,l,s,d),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=i,this._dir=o,this._parentFormField=c,this.ngControl=d,this._liveAnnouncer=v,this._defaultOptions=C,this._panelOpen=!1,this._compareWith=(e,t)=>e===t,this._uid="mat-select-"+E++,this._triggerAriaLabelledBy=null,this._destroy=new h.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+E++,this._panelDoneAnimatingStream=new h.a,this._overlayPanelClass=(null===(w=this._defaultOptions)||void 0===w?void 0:w.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(k=null===(x=this._defaultOptions)||void 0===x?void 0:x.disableOptionCentering)&&void 0!==k&&k,this.ariaLabel="",this.optionSelectionChanges=Object(f.a)(()=>{const e=this.options;return e?e.changes.pipe(Object(b.a)(e),Object(g.a)(()=>Object(u.a)(...e.map(e=>e.onSelectionChange)))):this._ngZone.onStable.pipe(Object(_.a)(1),Object(g.a)(()=>this.optionSelectionChanges))}),this.openedChange=new r.s,this._openedStream=this.openedChange.pipe(Object(O.a)(e=>e),Object(y.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(O.a)(e=>!e),Object(y.a)(()=>{})),this.selectionChange=new r.s,this.valueChange=new r.s,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=C.typeaheadDebounceInterval),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(m)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=Object(d.c)(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Object(d.c)(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Object(d.c)(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Object(d.f)(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new m.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(v.a)(),Object(C.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(C.a)(this._destroy)).subscribe(e=>{e.added.forEach(e=>e.select()),e.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(Object(b.a)(null),Object(C.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,i=t===p.e||t===p.q||t===p.j||t===p.n,n=t===p.g||t===p.o,a=this._keyManager;if(!a.isTyping()&&n&&!Object(p.t)(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){const t=this.selected;a.onKeydown(e);const i=this.selected;i&&t!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,i=e.keyCode,n=i===p.e||i===p.q,a=t.isTyping();if(n&&e.altKey)e.preventDefault(),this.close();else if(a||i!==p.g&&i!==p.o||!t.activeItem||Object(p.t)(e))if(!a&&this._multiple&&i===p.a&&e.ctrlKey){e.preventDefault();const t=this.options.some(e=>!e.disabled&&!e.selected);this.options.forEach(e=>{e.disabled||(t?e.select():e.deselect())})}else{const i=t.activeItemIndex;t.onKeydown(e),this._multiple&&n&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==i&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(_.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(e=>this._selectValue(e)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(t=>{try{return null!=t.value&&this._compareWith(t.value,e)}catch(i){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new c.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(C.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(C.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Object(u.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(C.a)(e)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(u.a)(...this.options.map(e=>e._stateChanges)).pipe(Object(C.a)(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const i=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(s.j),r.Yb(r.i),r.Yb(r.I),r.Yb(o.d),r.Yb(r.p),r.Yb(x.c,8),r.Yb(k.p,8),r.Yb(k.i,8),r.Yb(l.a,8),r.Yb(k.m,10),r.jc("tabindex"),r.Yb(z),r.Yb(c.m),r.Yb(B,8))},e.\u0275dir=r.Tb({type:e,viewQuery:function(e,t){if(1&e&&(r.Wc(j,!0),r.Wc(M,!0),r.Wc(n.a,!0)),2&e){let e;r.Bc(e=r.mc())&&(t.trigger=e.first),r.Bc(e=r.mc())&&(t.panel=e.first),r.Bc(e=r.mc())&&(t.overlayDir=e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.Jb,r.Kb]}),e})(),Q=(()=>{class e extends N{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*e-t+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(C.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(e){const t=Object(o.x)(e,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(o.y)((e+t)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new Y(this,e)}_calculateOverlayOffsetX(){const e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let a;if(this.multiple)a=40;else{let e=this._selectionModel.selected[0]||this.options.first;a=e&&e.group?32:16}i||(a*=-1);const r=0-(e.left+a-(i?n:0)),o=e.right+a-t.width+(i?0:n);r>0?a+=r+8:o>0&&(a-=o+8),this.overlayDir.offsetX=Math.round(a),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,i){const n=this._getItemHeight(),a=(n-this._triggerRect.height)/2,r=Math.floor(256/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*n:this._scrollTop===i?(e-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-256)%n):t-n/2,Math.round(-1*o-a))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,a=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-r-this._triggerRect.height;o>a?this._adjustPanelUp(o,a):r>n?this._adjustPanelDown(r,n,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const i=Math.round(e-t);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,i){const n=Math.round(e-t);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),i=Math.min(t*e,256),n=t*e-i;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=Object(o.x)(a,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(a,r,n),this._offsetY=this._calculateOverlayOffsetY(a,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return e.\u0275fac=function(t){return K(t||e)},e.\u0275cmp=r.Sb({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,i){if(1&e&&(r.Rb(i,W,!0),r.Rb(i,o.o,!0),r.Rb(i,o.g,!0)),2&e){let e;r.Bc(e=r.mc())&&(t.customTrigger=e.first),r.Bc(e=r.mc())&&(t.options=e),r.Bc(e=r.mc())&&(t.optionGroups=e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&r.lc("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(r.Nb("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),r.Qb("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r.Lb([{provide:l.d,useExisting:e},{provide:o.h,useExisting:e}]),r.Jb],ngContentSelectors:A,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(r.uc(R),r.ec(0,"div",0,1),r.lc("click",function(){return t.toggle()}),r.ec(3,"div",2),r.Qc(4,S,2,1,"span",3),r.Qc(5,L,3,2,"span",4),r.dc(),r.ec(6,"div",5),r.Zb(7,"div",6),r.dc(),r.dc(),r.Qc(8,D,4,14,"ng-template",7),r.lc("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const e=r.Cc(1);r.Nb("aria-owns",t.panelOpen?t.id+"-panel":null),r.Mb(3),r.vc("ngSwitch",t.empty),r.Nb("id",t._valueId),r.Mb(1),r.vc("ngSwitchCase",!0),r.Mb(1),r.vc("ngSwitchCase",!1),r.Mb(3),r.vc("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[n.b,a.x,a.y,n.a,a.z,a.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[P.transformPanelWrap,P.transformPanel]},changeDetection:0}),e})();const K=r.gc(Q);let Z=(()=>{class e{}return e.\u0275mod=r.Wb({type:e}),e.\u0275inj=r.Vb({factory:function(t){return new(t||e)},providers:[T],imports:[[a.c,n.f,o.p,o.j],s.c,l.e,o.p,o.j]}),e})()},kmnG:function(e,t,i){"use strict";i.d(t,"a",function(){return te}),i.d(t,"b",function(){return z}),i.d(t,"c",function(){return ie}),i.d(t,"d",function(){return T}),i.d(t,"e",function(){return ne}),i.d(t,"f",function(){return q}),i.d(t,"g",function(){return N}),i.d(t,"h",function(){return Z}),i.d(t,"i",function(){return X}),i.d(t,"j",function(){return Y}),i.d(t,"k",function(){return V}),i.d(t,"l",function(){return B});var n=i("GU7r"),a=i("ofXK"),r=i("fXoL"),o=i("FKr1"),l=i("8LU1"),s=i("XNiG"),c=i("VRyK"),d=i("xgIS"),m=i("JX91"),p=i("1G5W"),h=i("IzEk"),f=i("R0Ic"),u=i("R1ws"),b=i("cH1L"),g=i("nLfN");const _=["underline"],O=["connectionContainer"],y=["inputContainer"],v=["label"];function C(e,t){1&e&&(r.cc(0),r.ec(1,"div",14),r.Zb(2,"div",15),r.Zb(3,"div",16),r.Zb(4,"div",17),r.dc(),r.ec(5,"div",18),r.Zb(6,"div",15),r.Zb(7,"div",16),r.Zb(8,"div",17),r.dc(),r.bc())}function w(e,t){1&e&&(r.ec(0,"div",19),r.tc(1,1),r.dc())}function x(e,t){if(1&e&&(r.cc(0),r.tc(1,2),r.ec(2,"span"),r.Sc(3),r.dc(),r.bc()),2&e){const e=r.pc(2);r.Mb(3),r.Tc(e._control.placeholder)}}function k(e,t){1&e&&r.tc(0,3,["*ngSwitchCase","true"])}function j(e,t){1&e&&(r.ec(0,"span",23),r.Sc(1," *"),r.dc())}function M(e,t){if(1&e){const e=r.fc();r.ec(0,"label",20,21),r.lc("cdkObserveContent",function(){return r.Gc(e),r.pc().updateOutlineGap()}),r.Qc(2,x,4,1,"ng-container",12),r.Qc(3,k,1,0,"ng-content",12),r.Qc(4,j,2,0,"span",22),r.dc()}if(2&e){const e=r.pc();r.Qb("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),r.vc("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),r.Nb("for",e._control.id)("aria-owns",e._control.id),r.Mb(2),r.vc("ngSwitchCase",!1),r.Mb(1),r.vc("ngSwitchCase",!0),r.Mb(1),r.vc("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function S(e,t){1&e&&(r.ec(0,"div",24),r.tc(1,4),r.dc())}function I(e,t){if(1&e&&(r.ec(0,"div",25,26),r.Zb(2,"span",27),r.dc()),2&e){const e=r.pc();r.Mb(2),r.Qb("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function F(e,t){if(1&e&&(r.ec(0,"div"),r.tc(1,5),r.dc()),2&e){const e=r.pc();r.vc("@transitionMessages",e._subscriptAnimationState)}}function L(e,t){if(1&e&&(r.ec(0,"div",31),r.Sc(1),r.dc()),2&e){const e=r.pc(2);r.vc("id",e._hintLabelId),r.Mb(1),r.Tc(e.hintLabel)}}function D(e,t){if(1&e&&(r.ec(0,"div",28),r.Qc(1,L,2,2,"div",29),r.tc(2,6),r.Zb(3,"div",30),r.tc(4,7),r.dc()),2&e){const e=r.pc();r.vc("@transitionMessages",e._subscriptAnimationState),r.Mb(1),r.vc("ngIf",e.hintLabel)}}const R=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],A=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let P=0;const E=new r.x("MatError");let z=(()=>{class e{constructor(){this.id="mat-error-"+P++}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&r.Nb("id",t.id)},inputs:{id:"id"},features:[r.Lb([{provide:E,useExisting:e}])]}),e})();const B={transitionMessages:Object(f.m)("transitionMessages",[Object(f.j)("enter",Object(f.k)({opacity:1,transform:"translateY(0%)"})),Object(f.l)("void => enter",[Object(f.k)({opacity:0,transform:"translateY(-100%)"}),Object(f.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let T=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e}),e})();function Y(e){return Error(`A hint was already declared for 'align="${e}"'.`)}function V(){return Error("mat-form-field must contain a MatFormFieldControl.")}let G=0;const W=new r.x("MatHint");let q=(()=>{class e{constructor(){this.align="start",this.id="mat-hint-"+G++}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(r.Nb("id",t.id)("align",null),r.Qb("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[r.Lb([{provide:W,useExisting:e}])]}),e})(),N=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e,selectors:[["mat-label"]]}),e})(),Q=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e,selectors:[["mat-placeholder"]]}),e})();const K=new r.x("MatPrefix");let Z=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e,selectors:[["","matPrefix",""]],features:[r.Lb([{provide:K,useExisting:e}])]}),e})();const H=new r.x("MatSuffix");let X=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e,selectors:[["","matSuffix",""]],features:[r.Lb([{provide:H,useExisting:e}])]}),e})(),U=0;class J{constructor(e){this._elementRef=e}}const $=Object(o.z)(J,"primary"),ee=new r.x("MAT_FORM_FIELD_DEFAULT_OPTIONS"),te=new r.x("MatFormField");let ie=(()=>{class e extends ${constructor(e,t,i,n,a,r,o,l){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=n,this._defaults=a,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new s.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+U++,this._labelId="mat-form-field-label-"+U++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=a&&a.appearance?a.appearance:"legacy",this._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Object(l.c)(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(Object(m.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Object(p.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(p.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(c.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(m.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(m.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(p.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(d.a)(this._label.nativeElement,"transitionend").pipe(Object(h.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,i=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,i=0;const n=this._connectionContainerRef.nativeElement,a=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const a=n.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(a),o=e.children,l=this._getStartEnd(o[0].getBoundingClientRect());let s=0;for(let e=0;e<o.length;e++)s+=o[e].offsetWidth;t=Math.abs(l-r)-5,i=s>0?.75*s+10:0}for(let o=0;o<a.length;o++)a[o].style.width=t+"px";for(let o=0;o<r.length;o++)r[o].style.width=i+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.p),r.Yb(r.i),r.Yb(r.p),r.Yb(b.c,8),r.Yb(ee,8),r.Yb(g.a),r.Yb(r.I),r.Yb(u.a,8))},e.\u0275cmp=r.Sb({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,i){if(1&e&&(r.Rb(i,T,!0),r.Lc(i,T,!0),r.Rb(i,N,!0),r.Lc(i,N,!0),r.Rb(i,Q,!0),r.Rb(i,E,!0),r.Rb(i,W,!0),r.Rb(i,K,!0),r.Rb(i,H,!0)),2&e){let e;r.Bc(e=r.mc())&&(t._controlNonStatic=e.first),r.Bc(e=r.mc())&&(t._controlStatic=e.first),r.Bc(e=r.mc())&&(t._labelChildNonStatic=e.first),r.Bc(e=r.mc())&&(t._labelChildStatic=e.first),r.Bc(e=r.mc())&&(t._placeholderChild=e.first),r.Bc(e=r.mc())&&(t._errorChildren=e),r.Bc(e=r.mc())&&(t._hintChildren=e),r.Bc(e=r.mc())&&(t._prefixChildren=e),r.Bc(e=r.mc())&&(t._suffixChildren=e)}},viewQuery:function(e,t){if(1&e&&(r.Wc(_,!0),r.Mc(O,!0),r.Wc(y,!0),r.Wc(v,!0)),2&e){let e;r.Bc(e=r.mc())&&(t.underlineRef=e.first),r.Bc(e=r.mc())&&(t._connectionContainerRef=e.first),r.Bc(e=r.mc())&&(t._inputContainerRef=e.first),r.Bc(e=r.mc())&&(t._label=e.first)}},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&r.Qb("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[r.Lb([{provide:te,useExisting:e}]),r.Jb],ngContentSelectors:A,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(r.uc(R),r.ec(0,"div",0),r.ec(1,"div",1,2),r.lc("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),r.Qc(3,C,9,0,"ng-container",3),r.Qc(4,w,2,0,"div",4),r.ec(5,"div",5,6),r.tc(7),r.ec(8,"span",7),r.Qc(9,M,5,16,"label",8),r.dc(),r.dc(),r.Qc(10,S,2,0,"div",9),r.dc(),r.Qc(11,I,3,4,"div",10),r.ec(12,"div",11),r.Qc(13,F,2,1,"div",12),r.Qc(14,D,5,2,"div",13),r.dc(),r.dc()),2&e&&(r.Mb(3),r.vc("ngIf","outline"==t.appearance),r.Mb(1),r.vc("ngIf",t._prefixChildren.length),r.Mb(5),r.vc("ngIf",t._hasFloatingLabel()),r.Mb(1),r.vc("ngIf",t._suffixChildren.length),r.Mb(1),r.vc("ngIf","outline"!=t.appearance),r.Mb(1),r.vc("ngSwitch",t._getDisplayedMessages()),r.Mb(1),r.vc("ngSwitchCase","error"),r.Mb(1),r.vc("ngSwitchCase","hint"))},directives:[a.t,a.x,a.y,n.a],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}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .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:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.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 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-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-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.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}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 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 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".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 .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[B.transitionMessages]},changeDetection:0}),e})(),ne=(()=>{class e{}return e.\u0275mod=r.Wb({type:e}),e.\u0275inj=r.Vb({factory:function(t){return new(t||e)},imports:[[a.c,o.j,n.c],o.j]}),e})()},onAg:function(e,t,i){"use strict";i.r(t),i.d(t,"CdkA11yExamplesModule",function(){return f}),i.d(t,"FocusMonitorDirectivesExample",function(){return s}),i.d(t,"FocusMonitorFocusViaExample",function(){return d}),i.d(t,"FocusMonitorOverviewExample",function(){return h});var n=i("u47x"),a=i("fXoL"),r=i("d3UM"),o=i("kmnG"),l=i("FKr1");let s=(()=>{class e{constructor(e,t){this._ngZone=e,this._cdr=t,this.elementOrigin=this.formatOrigin(null),this.subtreeOrigin=this.formatOrigin(null)}formatOrigin(e){return e?e+" focused":"blurred"}markForCheck(){this._ngZone.run(()=>this._cdr.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(Object(a.Yb)(a.I),Object(a.Yb)(a.i))},e.\u0275cmp=Object(a.Sb)({type:e,selectors:[["focus-monitor-directives-example"]],decls:11,vars:2,consts:[[1,"example-focus-monitor"],["cdkMonitorSubtreeFocus","",3,"cdkFocusChange"]],template:function(e,t){1&e&&(Object(a.ec)(0,"div",0),Object(a.ec)(1,"button",1),Object(a.lc)("cdkFocusChange",function(e){return t.elementOrigin=t.formatOrigin(e),t.markForCheck()}),Object(a.Sc)(2),Object(a.dc)(),Object(a.dc)(),Object(a.ec)(3,"div",0),Object(a.ec)(4,"div",1),Object(a.lc)("cdkFocusChange",function(e){return t.subtreeOrigin=t.formatOrigin(e),t.markForCheck()}),Object(a.ec)(5,"p"),Object(a.Sc)(6),Object(a.dc)(),Object(a.ec)(7,"button"),Object(a.Sc)(8,"Child Button 1"),Object(a.dc)(),Object(a.ec)(9,"button"),Object(a.Sc)(10,"Child Button 2"),Object(a.dc)(),Object(a.dc)(),Object(a.dc)()),2&e&&(Object(a.Mb)(2),Object(a.Uc)(" Focus Monitored Element (",t.elementOrigin,") "),Object(a.Mb)(4),Object(a.Uc)("Focus Monitored Subtree (",t.subtreeOrigin,")"))},directives:[n.e],styles:[".example-focus-monitor[_ngcontent-%COMP%] {\n padding: 20px;\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-mouse-focused[_ngcontent-%COMP%] {\n background: rgba(255, 0, 0, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-keyboard-focused[_ngcontent-%COMP%] {\n background: rgba(0, 255, 0, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-touch-focused[_ngcontent-%COMP%] {\n background: rgba(0, 0, 255, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-program-focused[_ngcontent-%COMP%] {\n background: rgba(255, 0, 255, 0.5);\n}\n\nbutton[_ngcontent-%COMP%] {\n margin-right: 12px;\n}"]}),e})();const c=["monitored"];let d=(()=>{class e{constructor(e,t,i){this.focusMonitor=e,this._cdr=t,this._ngZone=i,this.origin=this.formatOrigin(null)}ngAfterViewInit(){this.focusMonitor.monitor(this.monitoredEl).subscribe(e=>this._ngZone.run(()=>{this.origin=this.formatOrigin(e),this._cdr.markForCheck()}))}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.monitoredEl)}formatOrigin(e){return e?e+" focused":"blurred"}}return e.\u0275fac=function(t){return new(t||e)(Object(a.Yb)(n.h),Object(a.Yb)(a.i),Object(a.Yb)(a.I))},e.\u0275cmp=Object(a.Sb)({type:e,selectors:[["focus-monitor-focus-via-example"]],viewQuery:function(e,t){if(1&e&&Object(a.Wc)(c,!0),2&e){let e;Object(a.Bc)(e=Object(a.mc)())&&(t.monitoredEl=e.first)}},decls:24,vars:1,consts:[[1,"example-focus-monitor"],["monitored",""],["unmonitored",""],["value","mouse"],["simulatedOrigin",""],["value","keyboard"],["value","touch"],["value","program"],[3,"click"]],template:function(e,t){if(1&e){const e=Object(a.fc)();Object(a.ec)(0,"div",0),Object(a.ec)(1,"button",null,1),Object(a.Sc)(3),Object(a.dc)(),Object(a.ec)(4,"button",null,2),Object(a.Sc)(6,"2. Not Monitored"),Object(a.dc)(),Object(a.dc)(),Object(a.ec)(7,"mat-form-field"),Object(a.ec)(8,"mat-label"),Object(a.Sc)(9,"Simulated focus origin"),Object(a.dc)(),Object(a.ec)(10,"mat-select",3,4),Object(a.ec)(12,"mat-option",3),Object(a.Sc)(13,"Mouse"),Object(a.dc)(),Object(a.ec)(14,"mat-option",5),Object(a.Sc)(15,"Keyboard"),Object(a.dc)(),Object(a.ec)(16,"mat-option",6),Object(a.Sc)(17,"Touch"),Object(a.dc)(),Object(a.ec)(18,"mat-option",7),Object(a.Sc)(19,"Programmatic"),Object(a.dc)(),Object(a.dc)(),Object(a.dc)(),Object(a.ec)(20,"button",8),Object(a.lc)("click",function(){Object(a.Gc)(e);const i=Object(a.Cc)(2),n=Object(a.Cc)(11);return t.focusMonitor.focusVia(i,n.value)}),Object(a.Sc)(21," Focus button #1\n"),Object(a.dc)(),Object(a.ec)(22,"button",8),Object(a.lc)("click",function(){Object(a.Gc)(e);const i=Object(a.Cc)(5),n=Object(a.Cc)(11);return t.focusMonitor.focusVia(i,n.value)}),Object(a.Sc)(23," Focus button #2\n"),Object(a.dc)()}2&e&&(Object(a.Mb)(3),Object(a.Uc)("1. Focus Monitored Element (",t.origin,")"))},directives:[o.c,o.g,r.a,l.o],styles:[".example-focus-monitor[_ngcontent-%COMP%] {\n padding: 20px;\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-mouse-focused[_ngcontent-%COMP%] {\n background: rgba(255, 0, 0, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-keyboard-focused[_ngcontent-%COMP%] {\n background: rgba(0, 255, 0, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-touch-focused[_ngcontent-%COMP%] {\n background: rgba(0, 0, 255, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-program-focused[_ngcontent-%COMP%] {\n background: rgba(255, 0, 255, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus {\n box-shadow: 0 0 30px cyan;\n}\n\nmat-form-field[_ngcontent-%COMP%], button[_ngcontent-%COMP%] {\n margin-right: 12px;\n}"]}),e})();const m=["element"],p=["subtree"];let h=(()=>{class e{constructor(e,t,i){this._focusMonitor=e,this._cdr=t,this._ngZone=i,this.elementOrigin=this.formatOrigin(null),this.subtreeOrigin=this.formatOrigin(null)}ngAfterViewInit(){this._focusMonitor.monitor(this.element).subscribe(e=>this._ngZone.run(()=>{this.elementOrigin=this.formatOrigin(e),this._cdr.markForCheck()})),this._focusMonitor.monitor(this.subtree,!0).subscribe(e=>this._ngZone.run(()=>{this.subtreeOrigin=this.formatOrigin(e),this._cdr.markForCheck()}))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.element),this._focusMonitor.stopMonitoring(this.subtree)}formatOrigin(e){return e?e+" focused":"blurred"}}return e.\u0275fac=function(t){return new(t||e)(Object(a.Yb)(n.h),Object(a.Yb)(a.i),Object(a.Yb)(a.I))},e.\u0275cmp=Object(a.Sb)({type:e,selectors:[["focus-monitor-overview-example"]],viewQuery:function(e,t){if(1&e&&(Object(a.Wc)(m,!0),Object(a.Wc)(p,!0)),2&e){let e;Object(a.Bc)(e=Object(a.mc)())&&(t.element=e.first),Object(a.Bc)(e=Object(a.mc)())&&(t.subtree=e.first)}},decls:13,vars:2,consts:[[1,"example-focus-monitor"],["element",""],["subtree",""]],template:function(e,t){1&e&&(Object(a.ec)(0,"div",0),Object(a.ec)(1,"button",null,1),Object(a.Sc)(3),Object(a.dc)(),Object(a.dc)(),Object(a.ec)(4,"div",0),Object(a.ec)(5,"div",null,2),Object(a.ec)(7,"p"),Object(a.Sc)(8),Object(a.dc)(),Object(a.ec)(9,"button"),Object(a.Sc)(10,"Child Button 1"),Object(a.dc)(),Object(a.ec)(11,"button"),Object(a.Sc)(12,"Child Button 2"),Object(a.dc)(),Object(a.dc)(),Object(a.dc)()),2&e&&(Object(a.Mb)(3),Object(a.Uc)("Focus Monitored Element (",t.elementOrigin,")"),Object(a.Mb)(5),Object(a.Uc)("Focus Monitored Subtree (",t.subtreeOrigin,")"))},styles:[".example-focus-monitor[_ngcontent-%COMP%] {\n padding: 20px;\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-mouse-focused[_ngcontent-%COMP%] {\n background: rgba(255, 0, 0, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-keyboard-focused[_ngcontent-%COMP%] {\n background: rgba(0, 255, 0, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-touch-focused[_ngcontent-%COMP%] {\n background: rgba(0, 0, 255, 0.5);\n}\n\n.example-focus-monitor[_ngcontent-%COMP%] .cdk-program-focused[_ngcontent-%COMP%] {\n background: rgba(255, 0, 255, 0.5);\n}\n\nbutton[_ngcontent-%COMP%] {\n margin-right: 12px;\n}"]}),e})(),f=(()=>{class e{}return e.\u0275mod=Object(a.Wb)({type:e}),e.\u0275inj=Object(a.Vb)({factory:function(t){return new(t||e)},imports:[[n.a,r.b]]}),e})()}}]);