@signalk/freeboard-sk 2.24.2 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +16 -0
  2. package/docs/screenshots/2_freeboard-sk.jpg +0 -0
  3. package/docs/screenshots/3_freeboard-sk.jpg +0 -0
  4. package/package.json +13 -8
  5. package/public/3rdpartylicenses.txt +70 -19
  6. package/public/assets/img/no-such-symbol.svg +4 -0
  7. package/public/chunk-2GXI757Z.js +1 -0
  8. package/public/chunk-7OJ7YZPE.js +1010 -0
  9. package/public/chunk-A626ZBXE.js +3871 -0
  10. package/public/chunk-CSNMIJA3.js +1612 -0
  11. package/public/chunk-EU3YXT24.js +929 -0
  12. package/public/chunk-ILSUTX3X.js +1 -0
  13. package/public/chunk-JJ245XTQ.js +1 -0
  14. package/public/chunk-NM5IDVR6.js +107 -0
  15. package/public/chunk-NMXQ543J.js +1 -0
  16. package/public/chunk-P5D5HOAL.js +1709 -0
  17. package/public/{chunk-LXUTMJYP.js → chunk-QNWLXTD7.js} +1 -1
  18. package/public/chunk-RS6VYSOP.js +1 -0
  19. package/public/chunk-VUZVHRKQ.js +1 -0
  20. package/public/chunk-WPZCQDE4.js +1 -0
  21. package/public/chunk-WRR2LL5R.js +1 -0
  22. package/public/chunk-WWDDTAFW.js +2 -0
  23. package/public/chunk-XP3I253N.js +1 -0
  24. package/public/index.html +1 -1
  25. package/public/main-IKMWD43W.js +466 -0
  26. package/public/worker-5T47RUMR.js +3 -0
  27. package/public/chunk-2AF4T5IB.js +0 -1
  28. package/public/chunk-3GHIRJ3C.js +0 -2
  29. package/public/chunk-A4TULHTL.js +0 -1
  30. package/public/chunk-AFVK3UQJ.js +0 -5482
  31. package/public/chunk-AX3UMUXB.js +0 -1
  32. package/public/chunk-EFVTFEXB.js +0 -1
  33. package/public/chunk-FALIRPMH.js +0 -1035
  34. package/public/chunk-G4GM24WE.js +0 -1
  35. package/public/chunk-NTIQMWPW.js +0 -2718
  36. package/public/chunk-QIOZNURQ.js +0 -1
  37. package/public/chunk-SBFXQ3G7.js +0 -1
  38. package/public/main-AZEF35BN.js +0 -466
  39. package/public/worker-AUTVLQL7.js +0 -3
@@ -0,0 +1,929 @@
1
+ import{a as Ra,c as za,d as Wa}from"./chunk-NM5IDVR6.js";import{c as ja,e as Ka,f as Ga,g as Tt,h as st,i as qa,j as lt,k as Qa,l as Ua,m as Xa,n as $a,o as Za}from"./chunk-7OJ7YZPE.js";import{$a as v,$c as fa,$d as Et,Ad as Aa,Ba as M,Bc as le,Bd as Sa,Ca as B,Cc as Ye,Cd as xa,Da as H,Dd as Ea,E as ue,F as ut,Fa as Ne,Fb as ra,G as R,Ga as J,Ha as ee,Hc as Ct,I as _t,Ia as u,Ic as da,Id as Ia,J as De,Ja as d,Jb as Ze,Jc as O,K as _e,Ka as c,Kc as ca,Kd as nt,L as S,La as k,Lc as Me,Ld as St,M as Jt,Ma as F,Mc as pa,Md as Ta,N as s,Na as L,Nd as Be,O as b,Oa as ia,Oc as tt,P as y,Pc as ha,Q as ge,Qc as ma,Qd as rt,R as gt,Rc as ua,S as X,Sa as te,Sc as at,Sd as Va,T as Ge,Ta as ae,Tb as V,Tc as wt,Td as Oa,Ua as g,Uc as Mt,Ud as Fa,V as h,Va as Qe,Vb as A,Vc as it,Vd as Pa,W as Pe,Wa as m,Wb as yt,Wd as La,X as f,Xa as ye,Xd as ot,Ya as ie,Yc as _a,Z as $,Za as Ue,Zc as ga,Zd as xt,_ as ea,_a as N,_c as ke,_d as Na,a as K,aa as P,ab as D,be as Ya,c as C,eb as Xe,ee as It,fb as $e,fd as ba,gb as x,gd as ya,h as je,ha as l,hd as va,he as Ba,ia as Ce,ib as oe,ic as Je,jb as p,je as Ha,k as mt,kb as E,kc as vt,la as fe,lb as se,lc as oa,ld as kt,mb as bt,mc as ve,md as Da,n as Zt,na as ta,nb as G,oa as qe,ob as q,oc as Dt,pa as w,pb as Q,pd as de,qa as be,qc as ne,qd as Ca,r as re,ra as Z,s as Fe,sc as we,ta as ft,ua as Le,ub as U,uc as sa,ud as wa,vb as na,vd as At,wa as aa,wc as la,wd as Ma,x as Ke,xd as ka,zc as et}from"./chunk-P5D5HOAL.js";import{a as me,b as $t}from"./chunk-EQVTEUXC.js";var ki=["text"],Ai=[[["mat-icon"]],"*"],Si=["mat-icon","*"];function xi(n,o){if(n&1&&k(0,"mat-pseudo-checkbox",1),n&2){let e=m();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function Ei(n,o){if(n&1&&k(0,"mat-pseudo-checkbox",3),n&2){let e=m();u("disabled",e.disabled)}}function Ii(n,o){if(n&1&&(d(0,"span",4),p(1),c()),n&2){let e=m();l(),se("(",e.group.label,")")}}var Ot=new S("MAT_OPTION_PARENT_COMPONENT"),Rt=new S("MatOptgroup");var Vt=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},Se=(()=>{class n{_element=s(P);_changeDetectorRef=s(V);_parent=s(Ot,{optional:!0});group=s(Rt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=s(le).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=f(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new h;_text;_stateChanges=new C;constructor(){let e=s(ve);e.load(nt),e.load(ke),this._signalDisableRipple=!!this._parent&&aa(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!O(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Vt(this,e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&N(ki,7),t&2){let i;v(i=D())&&(a._text=i.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&g("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(ae("id",a.id),M("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),x("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",A]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Si,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(ye(Ai),B(0,xi,1,2,"mat-pseudo-checkbox",1),ie(1),d(2,"span",2,0),ie(4,1),c(),B(5,Ei,1,1,"mat-pseudo-checkbox",3),B(6,Ii,2,1,"span",4),k(7,"div",5)),t&2&&(H(a.multiple?0:-1),l(5),H(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),H(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[za,Ia],styles:[`.mat-mdc-option {
2
+ -webkit-user-select: none;
3
+ user-select: none;
4
+ -moz-osx-font-smoothing: grayscale;
5
+ -webkit-font-smoothing: antialiased;
6
+ display: flex;
7
+ position: relative;
8
+ align-items: center;
9
+ justify-content: flex-start;
10
+ overflow: hidden;
11
+ min-height: 48px;
12
+ padding: 0 16px;
13
+ cursor: pointer;
14
+ -webkit-tap-highlight-color: transparent;
15
+ color: var(--mat-option-label-text-color, var(--mat-sys-on-surface));
16
+ font-family: var(--mat-option-label-text-font, var(--mat-sys-label-large-font));
17
+ line-height: var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));
18
+ font-size: var(--mat-option-label-text-size, var(--mat-sys-body-large-size));
19
+ letter-spacing: var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));
20
+ font-weight: var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight));
21
+ }
22
+ .mat-mdc-option:hover:not(.mdc-list-item--disabled) {
23
+ background-color: var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
24
+ }
25
+ .mat-mdc-option:focus.mdc-list-item, .mat-mdc-option.mat-mdc-option-active.mdc-list-item {
26
+ background-color: var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
27
+ outline: 0;
28
+ }
29
+ .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) {
30
+ background-color: var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container));
31
+ }
32
+ .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) .mdc-list-item__primary-text {
33
+ color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container));
34
+ }
35
+ .mat-mdc-option .mat-pseudo-checkbox {
36
+ --mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container));
37
+ }
38
+ .mat-mdc-option.mdc-list-item {
39
+ align-items: center;
40
+ background: transparent;
41
+ }
42
+ .mat-mdc-option.mdc-list-item--disabled {
43
+ cursor: default;
44
+ pointer-events: none;
45
+ }
46
+ .mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox, .mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text, .mat-mdc-option.mdc-list-item--disabled > mat-icon {
47
+ opacity: 0.38;
48
+ }
49
+ .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
50
+ padding-left: 32px;
51
+ }
52
+ [dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
53
+ padding-left: 16px;
54
+ padding-right: 32px;
55
+ }
56
+ .mat-mdc-option .mat-icon,
57
+ .mat-mdc-option .mat-pseudo-checkbox-full {
58
+ margin-right: 16px;
59
+ flex-shrink: 0;
60
+ }
61
+ [dir=rtl] .mat-mdc-option .mat-icon,
62
+ [dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full {
63
+ margin-right: 0;
64
+ margin-left: 16px;
65
+ }
66
+ .mat-mdc-option .mat-pseudo-checkbox-minimal {
67
+ margin-left: 16px;
68
+ flex-shrink: 0;
69
+ }
70
+ [dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal {
71
+ margin-right: 16px;
72
+ margin-left: 0;
73
+ }
74
+ .mat-mdc-option .mat-mdc-option-ripple {
75
+ top: 0;
76
+ left: 0;
77
+ right: 0;
78
+ bottom: 0;
79
+ position: absolute;
80
+ pointer-events: none;
81
+ }
82
+ .mat-mdc-option .mdc-list-item__primary-text {
83
+ white-space: normal;
84
+ font-size: inherit;
85
+ font-weight: inherit;
86
+ letter-spacing: inherit;
87
+ line-height: inherit;
88
+ font-family: inherit;
89
+ text-decoration: inherit;
90
+ text-transform: inherit;
91
+ margin-right: auto;
92
+ }
93
+ [dir=rtl] .mat-mdc-option .mdc-list-item__primary-text {
94
+ margin-right: 0;
95
+ margin-left: auto;
96
+ }
97
+ @media (forced-colors: active) {
98
+ .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
99
+ content: "";
100
+ position: absolute;
101
+ top: 50%;
102
+ right: 16px;
103
+ transform: translateY(-50%);
104
+ width: 10px;
105
+ height: 0;
106
+ border-bottom: solid 10px;
107
+ border-radius: 10px;
108
+ }
109
+ [dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
110
+ right: auto;
111
+ left: 16px;
112
+ }
113
+ }
114
+
115
+ .mat-mdc-option-multiple {
116
+ --mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent);
117
+ }
118
+
119
+ .mat-mdc-option-active .mat-focus-indicator::before {
120
+ content: "";
121
+ }
122
+ `],encapsulation:2,changeDetection:0})}return n})();function Ja(n,o,e){if(e.length){let t=o.toArray(),a=e.toArray(),i=0;for(let r=0;r<n+1;r++)t[r].group&&t[r].group===a[i]&&i++;return i}return 0}function ei(n,o,e,t){return n<e?n:n+o>e+t?Math.max(0,n-t+o):e}var Ft=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=be({type:n});static \u0275inj=_e({imports:[Ta,Wa,Se,we]})}return n})();var Vi=["trigger"],Oi=["panel"],Ri=[[["mat-select-trigger"]],"*"],Fi=["mat-select-trigger","*"];function Pi(n,o){if(n&1&&(d(0,"span",4),p(1),c()),n&2){let e=m();l(),E(e.placeholder)}}function Li(n,o){n&1&&ie(0)}function Ni(n,o){if(n&1&&(d(0,"span",11),p(1),c()),n&2){let e=m(2);l(),E(e.triggerValue)}}function Yi(n,o){if(n&1&&(d(0,"span",5),B(1,Li,1,0)(2,Ni,2,1,"span",11),c()),n&2){let e=m();l(),H(e.customTrigger?1:2)}}function Bi(n,o){if(n&1){let e=te();d(0,"div",12,1),g("keydown",function(a){b(e);let i=m();return y(i._handleKeydown(a))}),ie(2,1),c()}if(n&2){let e=m();oe(e.panelClass),x("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),M("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Hi=new S("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=s(X);return()=>Me(n)}}),zi=new S("MAT_SELECT_CONFIG"),ti=new S("MatSelectTrigger"),Pt=class{source;value;constructor(o,e){this.source=o,this.value=e}},ai=(()=>{class n{_viewportRuler=s(la);_changeDetectorRef=s(V);_elementRef=s(P);_dir=s(ne,{optional:!0});_idGenerator=s(le);_renderer=s(fe);_parentFormField=s(st,{optional:!0});ngControl=s(xt,{self:!0,optional:!0});_liveAnnouncer=s(ya);_defaultOptions=s(zi,{optional:!0});_animationsDisabled=de();_popoverLocation;_initialized=new C;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let a=this.panel.nativeElement,i=Ja(e,this.options,this.optionGroups),r=t._getHostElement();e===0&&i===1?a.scrollTop=0:a.scrollTop=ei(r.offsetTop,r.offsetHeight,a.scrollTop,a.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Pt(this,e)}_scrollStrategyFactory=s(Hi);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new C;_errorStateTracker;stateChanges=new C;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=f(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ot.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=Zt(()=>{let e=this.options;return e?e.changes.pipe(ue(e),ut(()=>re(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(ut(()=>this.optionSelectionChanges))});openedChange=new h;_openedStream=this.openedChange.pipe(Fe(e=>e),mt(()=>{}));_closedStream=this.openedChange.pipe(Fe(e=>!e),mt(()=>{}));selectionChange=new h;valueChange=new h;constructor(){let e=s(Ua),t=s(Et,{optional:!0}),a=s(It,{optional:!0}),i=s(new Ze("tabindex"),{optional:!0}),r=s(ua,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Xa(e,this.ngControl,a,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=i==null?0:parseInt(i)||0,this._popoverLocation=r?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new Ra(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(R(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(R(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ue(null),R(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let a=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?a.setAttribute("aria-labelledby",e):a.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(Ke(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&At(this._trackedModal,"aria-owns",t),wa(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;At(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(a),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",i=>{i.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),a=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(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){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,a=t===40||t===38||t===37||t===39,i=t===13||t===32,r=this._keyManager;if(!r.isTyping()&&i&&!O(e)||(this.multiple||e.altKey)&&a)e.preventDefault(),this.open();else if(!this.multiple){let _=this.selected;r.onKeydown(e);let T=this.selected;T&&_!==T&&this._liveAnnouncer.announce(T.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,a=e.keyCode,i=a===40||a===38,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(!r&&(a===13||a===32)&&t.activeItem&&!O(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!r&&this._multiple&&a===65&&e.ctrlKey){e.preventDefault();let _=this.options.some(T=>!T.disabled&&!T.selected);this.options.forEach(T=>{T.disabled||(_?T.select():T.deselect())})}else{let _=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==_&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!O(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(a=>{if(this._selectionModel.isSelected(a))return!1;try{return(a.value!=null||this.canSelectNullableOptions)&&this._compareWith(a.value,e)}catch(i){return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof wt?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Ca(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=re(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(R(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),re(...this.options.map(t=>t._stateChanges)).pipe(R(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let a=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(a!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),a!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,a)=>this.sortComparator?this.sortComparator(t,a,e):e.indexOf(t)-e.indexOf(a)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(a=>a.value):t=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(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(e){let t=oa(e);t&&(t.tagName==="MAT-OPTION"||t.classList.contains("cdk-overlay-backdrop")||t.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-select"]],contentQueries:function(t,a,i){if(t&1&&Ue(i,ti,5)(i,Se,5)(i,Rt,5),t&2){let r;v(r=D())&&(a.customTrigger=r.first),v(r=D())&&(a.options=r),v(r=D())&&(a.optionGroups=r)}},viewQuery:function(t,a){if(t&1&&N(Vi,5)(Oi,5)(Mt,5),t&2){let i;v(i=D())&&(a.trigger=i.first),v(i=D())&&(a.panel=i.first),v(i=D())&&(a._overlayDir=i.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,a){t&1&&g("keydown",function(r){return a._handleKeydown(r)})("focus",function(){return a._onFocus()})("blur",function(){return a._onBlur()}),t&2&&(M("id",a.id)("tabindex",a.disabled?-1:a.tabIndex)("aria-controls",a.panelOpen?a.id+"-panel":null)("aria-expanded",a.panelOpen)("aria-label",a.ariaLabel||null)("aria-required",a.required.toString())("aria-disabled",a.disabled.toString())("aria-invalid",a.errorState)("aria-activedescendant",a._getAriaActiveDescendant()),x("mat-mdc-select-disabled",a.disabled)("mat-mdc-select-invalid",a.errorState)("mat-mdc-select-required",a.required)("mat-mdc-select-empty",a.empty)("mat-mdc-select-multiple",a.multiple)("mat-select-open",a.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",A],disableRipple:[2,"disableRipple","disableRipple",A],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:yt(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",A],placeholder:"placeholder",required:[2,"required","required",A],multiple:[2,"multiple","multiple",A],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",A],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",yt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",A]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[U([{provide:Tt,useExisting:n},{provide:Ot,useExisting:n}]),$],ngContentSelectors:Fi,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(t,a){if(t&1&&(ye(Ri),d(0,"div",2,0),g("click",function(){return a.open()}),d(3,"div",3),B(4,Pi,2,1,"span",4)(5,Yi,3,1,"span",5),c(),d(6,"div",6)(7,"div",7),ge(),d(8,"svg",8),k(9,"path",9),c()()()(),Le(10,Bi,3,16,"ng-template",10),g("detach",function(){return a.close()})("backdropClick",function(){return a.close()})("overlayKeydown",function(r){return a._handleOverlayKeydown(r)})),t&2){let i=Xe(1);l(3),M("id",a._valueId),l(),H(a.empty?4:5),l(6),u("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",a._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",a._scrollStrategy)("cdkConnectedOverlayOrigin",a._preferredOverlayOrigin||i)("cdkConnectedOverlayPositions",a._positions)("cdkConnectedOverlayWidth",a._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",a._popoverLocation)}},dependencies:[wt,Mt],styles:[`@keyframes _mat-select-enter {
123
+ from {
124
+ opacity: 0;
125
+ transform: scaleY(0.8);
126
+ }
127
+ to {
128
+ opacity: 1;
129
+ transform: none;
130
+ }
131
+ }
132
+ @keyframes _mat-select-exit {
133
+ from {
134
+ opacity: 1;
135
+ }
136
+ to {
137
+ opacity: 0;
138
+ }
139
+ }
140
+ .mat-mdc-select {
141
+ display: inline-block;
142
+ width: 100%;
143
+ outline: none;
144
+ -moz-osx-font-smoothing: grayscale;
145
+ -webkit-font-smoothing: antialiased;
146
+ color: var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));
147
+ font-family: var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));
148
+ line-height: var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));
149
+ font-size: var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));
150
+ font-weight: var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));
151
+ letter-spacing: var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking));
152
+ }
153
+
154
+ div.mat-mdc-select-panel {
155
+ box-shadow: var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
156
+ }
157
+
158
+ .mat-mdc-select-disabled {
159
+ color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
160
+ }
161
+ .mat-mdc-select-disabled .mat-mdc-select-placeholder {
162
+ color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
163
+ }
164
+
165
+ .mat-mdc-select-trigger {
166
+ display: inline-flex;
167
+ align-items: center;
168
+ cursor: pointer;
169
+ position: relative;
170
+ box-sizing: border-box;
171
+ width: 100%;
172
+ }
173
+ .mat-mdc-select-disabled .mat-mdc-select-trigger {
174
+ -webkit-user-select: none;
175
+ user-select: none;
176
+ cursor: default;
177
+ }
178
+
179
+ .mat-mdc-select-value {
180
+ width: 100%;
181
+ overflow: hidden;
182
+ text-overflow: ellipsis;
183
+ white-space: nowrap;
184
+ }
185
+
186
+ .mat-mdc-select-value-text {
187
+ white-space: nowrap;
188
+ overflow: hidden;
189
+ text-overflow: ellipsis;
190
+ }
191
+
192
+ .mat-mdc-select-arrow-wrapper {
193
+ height: 24px;
194
+ flex-shrink: 0;
195
+ display: inline-flex;
196
+ align-items: center;
197
+ }
198
+ .mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper {
199
+ transform: none;
200
+ }
201
+
202
+ .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,
203
+ .mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after {
204
+ color: var(--mat-select-invalid-arrow-color, var(--mat-sys-error));
205
+ }
206
+
207
+ .mat-mdc-select-arrow {
208
+ width: 10px;
209
+ height: 5px;
210
+ position: relative;
211
+ color: var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant));
212
+ }
213
+ .mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
214
+ color: var(--mat-select-focused-arrow-color, var(--mat-sys-primary));
215
+ }
216
+ .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow {
217
+ color: var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
218
+ }
219
+ .mat-select-open .mat-mdc-select-arrow {
220
+ transform: rotate(180deg);
221
+ }
222
+ .mat-form-field-animations-enabled .mat-mdc-select-arrow {
223
+ transition: transform 80ms linear;
224
+ }
225
+ .mat-mdc-select-arrow svg {
226
+ fill: currentColor;
227
+ position: absolute;
228
+ top: 50%;
229
+ left: 50%;
230
+ transform: translate(-50%, -50%);
231
+ }
232
+ @media (forced-colors: active) {
233
+ .mat-mdc-select-arrow svg {
234
+ fill: CanvasText;
235
+ }
236
+ .mat-mdc-select-disabled .mat-mdc-select-arrow svg {
237
+ fill: GrayText;
238
+ }
239
+ }
240
+
241
+ div.mat-mdc-select-panel {
242
+ width: 100%;
243
+ max-height: 275px;
244
+ outline: 0;
245
+ overflow: auto;
246
+ padding: 8px 0;
247
+ box-sizing: border-box;
248
+ transform-origin: top center;
249
+ border-radius: 0 0 4px 4px;
250
+ position: relative;
251
+ background-color: var(--mat-select-panel-background-color, var(--mat-sys-surface-container));
252
+ }
253
+ .mat-mdc-select-panel-above div.mat-mdc-select-panel {
254
+ border-radius: 4px 4px 0 0;
255
+ transform-origin: bottom center;
256
+ }
257
+ @media (forced-colors: active) {
258
+ div.mat-mdc-select-panel {
259
+ outline: solid 1px;
260
+ }
261
+ }
262
+
263
+ .mat-select-panel-animations-enabled {
264
+ animation: _mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1);
265
+ }
266
+ .mat-select-panel-animations-enabled.mat-select-panel-exit {
267
+ animation: _mat-select-exit 100ms linear;
268
+ }
269
+
270
+ .mat-mdc-select-placeholder {
271
+ transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);
272
+ color: var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant));
273
+ }
274
+ .mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder, ._mat-animation-noopable .mat-mdc-select-placeholder {
275
+ transition: none;
276
+ }
277
+ .mat-form-field-hide-placeholder .mat-mdc-select-placeholder {
278
+ color: transparent;
279
+ -webkit-text-fill-color: transparent;
280
+ transition: none;
281
+ display: block;
282
+ }
283
+
284
+ .mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper {
285
+ cursor: pointer;
286
+ }
287
+ .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label {
288
+ max-width: calc(100% - 18px);
289
+ }
290
+ .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above {
291
+ max-width: calc(100% / 0.75 - 24px);
292
+ }
293
+ .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch {
294
+ max-width: calc(100% - 60px);
295
+ }
296
+ .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch {
297
+ max-width: calc(100% - 24px);
298
+ }
299
+
300
+ .mat-mdc-select-min-line:empty::before {
301
+ content: " ";
302
+ white-space: pre;
303
+ width: 1px;
304
+ display: inline-block;
305
+ visibility: hidden;
306
+ }
307
+
308
+ .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
309
+ transform: var(--mat-select-arrow-transform, translateY(-8px));
310
+ }
311
+ `],encapsulation:2,changeDetection:0})}return n})(),Rr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=Z({type:n,selectors:[["mat-select-trigger"]],features:[U([{provide:ti,useExisting:n}])]})}return n})(),ii=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=be({type:n});static \u0275inj=_e({imports:[it,Ft,we,et,lt,Ft]})}return n})();var Lt=new S("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>s(ra)}),Te="Method not implemented",I=class{locale;_localeChanges=new C;localeChanges=this._localeChanges;setTime(o,e,t,a){throw new Error(Te)}getHours(o){throw new Error(Te)}getMinutes(o){throw new Error(Te)}getSeconds(o){throw new Error(Te)}parseTime(o,e){throw new Error(Te)}addSeconds(o,e){throw new Error(Te)}getValidDateOrNull(o){return this.isDateInstance(o)&&this.isValid(o)?o:null}deserialize(o){return o==null||this.isDateInstance(o)&&this.isValid(o)?o:this.invalid()}setLocale(o){this.locale=o,this._localeChanges.next()}compareDate(o,e){return this.getYear(o)-this.getYear(e)||this.getMonth(o)-this.getMonth(e)||this.getDate(o)-this.getDate(e)}compareTime(o,e){return this.getHours(o)-this.getHours(e)||this.getMinutes(o)-this.getMinutes(e)||this.getSeconds(o)-this.getSeconds(e)}sameDate(o,e){if(o&&e){let t=this.isValid(o),a=this.isValid(e);return t&&a?!this.compareDate(o,e):t==a}return o==e}sameTime(o,e){if(o&&e){let t=this.isValid(o),a=this.isValid(e);return t&&a?!this.compareTime(o,e):t==a}return o==e}clampDate(o,e,t){return e&&this.compareDate(o,e)<0?e:t&&this.compareDate(o,t)>0?t:o}},he=new S("mat-date-formats");var ji=["tooltip"],Ki=20;var Gi=new S("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=s(X);return()=>Me(n,{scrollThrottle:Ki})}}),qi=new S("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var ni="tooltip-panel",Qi={passive:!0},Ui=8,Xi=8,$i=24,Zi=200,ri=(()=>{class n{_elementRef=s(P);_ngZone=s(Pe);_platform=s(Je);_ariaDescriber=s(Ma);_focusMonitor=s(_a);_dir=s(ne);_injector=s(X);_viewContainerRef=s(qe);_mediaMatcher=s(fa);_document=s(Ge);_renderer=s(fe);_animationsDisabled=de();_defaultOptions=s(qi,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Ji;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=kt(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=kt(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Dt(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Dt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new C;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=Ui}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(R(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(t=>t()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let a=this._createOverlay(t);this._detach(),this._portal=this._portal||new Ye(this._tooltipComponent,this._viewContainerRef);let i=this._tooltipInstance=a.attach(this._portal).instance;i._triggerElement=this._elementRef.nativeElement,i._mouseLeaveHideDelay=this._hideDelay,i.afterHidden().pipe(R(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),i.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof P)return this._overlayRef;this._detach()}let t=this._injector.get(sa).getAncestorScrollContainers(this._elementRef),a=`${this._cssClassPrefix}-${ni}`,i=tt(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t).withPopoverLocation("global");return i.positionChanges.pipe(R(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=at(this._injector,{direction:this._dir,positionStrategy:i,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,a]:a,scrollStrategy:this._injector.get(Gi)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(R(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(R(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(R(this._destroyed)).subscribe(r=>{r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(R(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let t=e.getConfig().positionStrategy,a=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(me(me({},a.main),i.main)),this._addOffset(me(me({},a.fallback),i.fallback))])}_addOffset(e){let t=Xi,a=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=a?-t:t:e.originX==="end"&&(e.offsetX=a?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,a;t=="above"||t=="below"?a={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?a={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(a={originX:"end",originY:"center"});let{x:i,y:r}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:i,originY:r}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,a;t=="above"?a={overlayX:"center",overlayY:"bottom"}:t=="below"?a={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?a={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(a={overlayX:"start",overlayY:"center"});let{x:i,y:r}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ce(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:a,originY:i}=e,r;if(t==="center"?this._dir&&this._dir.value==="rtl"?r=a==="end"?"left":"right":r=a==="start"?"left":"right":r=t==="bottom"&&i==="top"?"above":"below",r!==this._currentPosition){let _=this._overlayRef;if(_){let T=`${this._cssClassPrefix}-${ni}-`;_.removePanelClass(T+this._currentPosition),_.addPanelClass(T+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let t=e.targetTouches?.[0],a=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let i=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,a)},this._defaultOptions?.touchLongPressShowDelay??i)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let t=e.relatedTarget;(!t||!this._overlayRef?.overlayElement.contains(t))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,t){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,t,Qi))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,a=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),(e==="on"||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Ce({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!O(e):!0;static \u0275fac=function(t){return new(t||n)};static \u0275dir=Z({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,a){t&2&&x("mat-mdc-tooltip-disabled",a.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return n})(),Ji=(()=>{class n{_changeDetectorRef=s(V);_elementRef=s(P);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=de();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new C;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>$i&&e.width>=Zi}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,a=this._showAnimation,i=this._hideAnimation;if(t.classList.remove(e?i:a),t.classList.add(e?a:i),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let r=getComputedStyle(t);(r.getPropertyValue("animation-duration")==="0s"||r.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(t,a){if(t&1&&N(ji,7),t&2){let i;v(i=D())&&(a._tooltip=i.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,a){t&1&&g("mouseleave",function(r){return a._handleMouseLeave(r)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,a){t&1&&(F(0,"div",1,0),Qe("animationend",function(r){return a._handleAnimationEnd(r)}),F(2,"div",2),p(3),L()()),t&2&&(oe(a.tooltipClass),x("mdc-tooltip--multiline",a._isMultiline),l(3),E(a.message))},styles:[`.mat-mdc-tooltip {
312
+ position: relative;
313
+ transform: scale(0);
314
+ display: inline-flex;
315
+ }
316
+ .mat-mdc-tooltip::before {
317
+ content: "";
318
+ top: 0;
319
+ right: 0;
320
+ bottom: 0;
321
+ left: 0;
322
+ z-index: -1;
323
+ position: absolute;
324
+ }
325
+ .mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before {
326
+ top: -8px;
327
+ }
328
+ .mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before {
329
+ bottom: -8px;
330
+ }
331
+ .mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before {
332
+ left: -8px;
333
+ }
334
+ .mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before {
335
+ right: -8px;
336
+ }
337
+ .mat-mdc-tooltip._mat-animation-noopable {
338
+ animation: none;
339
+ transform: scale(1);
340
+ }
341
+
342
+ .mat-mdc-tooltip-surface {
343
+ word-break: normal;
344
+ overflow-wrap: anywhere;
345
+ padding: 4px 8px;
346
+ min-width: 40px;
347
+ max-width: 200px;
348
+ min-height: 24px;
349
+ max-height: 40vh;
350
+ box-sizing: border-box;
351
+ overflow: hidden;
352
+ text-align: center;
353
+ will-change: transform, opacity;
354
+ background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));
355
+ color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));
356
+ border-radius: var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));
357
+ font-family: var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));
358
+ font-size: var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));
359
+ font-weight: var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));
360
+ line-height: var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));
361
+ letter-spacing: var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking));
362
+ }
363
+ .mat-mdc-tooltip-surface::before {
364
+ position: absolute;
365
+ box-sizing: border-box;
366
+ width: 100%;
367
+ height: 100%;
368
+ top: 0;
369
+ left: 0;
370
+ border: 1px solid transparent;
371
+ border-radius: inherit;
372
+ content: "";
373
+ pointer-events: none;
374
+ }
375
+ .mdc-tooltip--multiline .mat-mdc-tooltip-surface {
376
+ text-align: left;
377
+ }
378
+ [dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface {
379
+ text-align: right;
380
+ }
381
+
382
+ .mat-mdc-tooltip-panel {
383
+ line-height: normal;
384
+ }
385
+ .mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive {
386
+ pointer-events: none;
387
+ }
388
+
389
+ @keyframes mat-mdc-tooltip-show {
390
+ 0% {
391
+ opacity: 0;
392
+ transform: scale(0.8);
393
+ }
394
+ 100% {
395
+ opacity: 1;
396
+ transform: scale(1);
397
+ }
398
+ }
399
+ @keyframes mat-mdc-tooltip-hide {
400
+ 0% {
401
+ opacity: 1;
402
+ transform: scale(1);
403
+ }
404
+ 100% {
405
+ opacity: 0;
406
+ transform: scale(0.8);
407
+ }
408
+ }
409
+ .mat-mdc-tooltip-show {
410
+ animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
411
+ }
412
+
413
+ .mat-mdc-tooltip-hide {
414
+ animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
415
+ }
416
+ `],encapsulation:2,changeDetection:0})}return n})();var en=["mat-calendar-body",""];function tn(n,o){return this._trackRow(o)}var hi=(n,o)=>o.id;function an(n,o){if(n&1&&(F(0,"tr",0)(1,"td",3),p(2),L()()),n&2){let e=m();l(),$e("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),M("colspan",e.numCols),l(),se(" ",e.label," ")}}function nn(n,o){if(n&1&&(F(0,"td",3),p(1),L()),n&2){let e=m(2);$e("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),M("colspan",e._firstRowOffset),l(),se(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function rn(n,o){if(n&1){let e=te();F(0,"td",6)(1,"button",7),Qe("click",function(a){let i=b(e).$implicit,r=m(2);return y(r._cellClicked(i,a))})("focus",function(a){let i=b(e).$implicit,r=m(2);return y(r._emitActiveDateChange(i,a))}),F(2,"span",8),p(3),L(),ia(4,"span",9),L()()}if(n&2){let e=o.$implicit,t=o.$index,a=m().$index,i=m();$e("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),M("data-mat-row",a)("data-mat-col",t),l(),oe(e.cssClasses),x("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",i._isActiveCell(a,t))("mat-calendar-body-range-start",i._isRangeStart(e.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",i._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(e.compareValue,a,t))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(e.compareValue,a,t))("mat-calendar-body-comparison-start",i._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",i._isInPreview(e.compareValue)),ae("tabIndex",i._isActiveCell(a,t)?0:-1),M("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",i._isSelected(e.compareValue))("aria-current",i.todayValue===e.compareValue?"date":null)("aria-describedby",i._getDescribedby(e.compareValue)),l(),x("mat-calendar-body-selected",i._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",i.todayValue===e.compareValue),l(),se(" ",e.displayValue," ")}}function on(n,o){if(n&1&&(F(0,"tr",1),B(1,nn,2,6,"td",4),J(2,rn,5,49,"td",5,hi),L()),n&2){let e=o.$implicit,t=o.$index,a=m();l(),H(t===0&&a._firstRowOffset?1:-1),l(),ee(e)}}function sn(n,o){if(n&1&&(d(0,"th",2)(1,"span",6),p(2),c(),d(3,"span",3),p(4),c()()),n&2){let e=o.$implicit;l(2),E(e.long),l(2),E(e.narrow)}}var ln=["*"];function dn(n,o){}function cn(n,o){if(n&1){let e=te();d(0,"mat-month-view",4),Q("activeDateChange",function(a){b(e);let i=m();return q(i.activeDate,a)||(i.activeDate=a),y(a)}),g("_userSelection",function(a){b(e);let i=m();return y(i._dateSelected(a))})("dragStarted",function(a){b(e);let i=m();return y(i._dragStarted(a))})("dragEnded",function(a){b(e);let i=m();return y(i._dragEnded(a))}),c()}if(n&2){let e=m();G("activeDate",e.activeDate),u("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function pn(n,o){if(n&1){let e=te();d(0,"mat-year-view",5),Q("activeDateChange",function(a){b(e);let i=m();return q(i.activeDate,a)||(i.activeDate=a),y(a)}),g("monthSelected",function(a){b(e);let i=m();return y(i._monthSelectedInYearView(a))})("selectedChange",function(a){b(e);let i=m();return y(i._goToDateInView(a,"month"))}),c()}if(n&2){let e=m();G("activeDate",e.activeDate),u("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function hn(n,o){if(n&1){let e=te();d(0,"mat-multi-year-view",6),Q("activeDateChange",function(a){b(e);let i=m();return q(i.activeDate,a)||(i.activeDate=a),y(a)}),g("yearSelected",function(a){b(e);let i=m();return y(i._yearSelectedInMultiYearView(a))})("selectedChange",function(a){b(e);let i=m();return y(i._goToDateInView(a,"year"))}),c()}if(n&2){let e=m();G("activeDate",e.activeDate),u("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function mn(n,o){}var un=["button"],_n=[[["","matDatepickerToggleIcon",""]]],gn=["[matDatepickerToggleIcon]"];function fn(n,o){n&1&&(ge(),d(0,"svg",2),k(1,"path",3),c())}var Re=(()=>{class n{changes=new C;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=De({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),bn=0,ze=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=bn++;cssClasses;constructor(o,e,t,a,i,r=o,_){this.value=o,this.displayValue=e,this.ariaLabel=t,this.enabled=a,this.compareValue=r,this.rawValue=_,this.cssClasses=i instanceof Set?Array.from(i):i}},yn={passive:!1,capture:!0},dt={passive:!0,capture:!0},oi={passive:!0},Oe=(()=>{class n{_elementRef=s(P);_ngZone=s(Pe);_platform=s(Je);_intl=s(Re);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new h;previewChange=new h;activeDateChange=new h;dragStarted=new h;dragEnded=new h;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=s(X);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=s(fe),t=s(le);this._startDateLabelId=t.getId("mat-calendar-body-start-"),this._endDateLabelId=t.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=t.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=t.getId("mat-calendar-body-comparison-end-"),s(ve).load(nt),this._ngZone.runOutsideAngular(()=>{let a=this._elementRef.nativeElement,i=[e.listen(a,"touchmove",this._touchmoveHandler,yn),e.listen(a,"mouseenter",this._enterHandler,dt),e.listen(a,"focus",this._enterHandler,dt),e.listen(a,"mouseleave",this._leaveHandler,dt),e.listen(a,"blur",this._leaveHandler,dt),e.listen(a,"mousedown",this._mousedownHandler,oi),e.listen(a,"touchstart",this._mousedownHandler,oi)];this._platform.isBrowser&&i.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=i})}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let t=e.numCols,{rows:a,numCols:i}=this;(e.rows||t)&&(this._firstRowOffset=a&&a.length&&a[0].length?i-a[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(t||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,t){let a=e*this.numCols+t;return e&&(a-=this._firstRowOffset),a==this.activeCell}_focusActiveCell(e=!0){Ce(()=>{setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Bt(e,this.startValue,this.endValue)}_isRangeEnd(e){return Ht(e,this.startValue,this.endValue)}_isInRange(e){return zt(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Bt(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,a){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[t][a-1];if(!i){let r=this.rows[t-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,t,a){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[t][a+1];if(!i){let r=this.rows[t+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return Ht(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return zt(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Bt(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Ht(e,this.previewStart,this.previewEnd)}_isInPreview(e){return zt(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let t=this._getCellFromElement(e.target);t&&this._ngZone.run(()=>this.previewChange.emit({value:t.enabled?t:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let t=si(e),a=t?this._getCellFromElement(t):null;t!==e.target&&(this._didDragSinceMouseDown=!0),Yt(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:a?.enabled?a:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let t=e.target&&this._getCellFromElement(e.target);!t||!this._isInRange(t.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:t.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let t=Yt(e.target);if(!t){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}t.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let a=this._getCellFromElement(t);this.dragEnded.emit({value:a?.rawValue??null,event:e})})};_touchendHandler=e=>{let t=si(e);t&&this._mouseupHandler({target:t})};_getCellFromElement(e){let t=Yt(e);if(t){let a=t.getAttribute("data-mat-row"),i=t.getAttribute("data-mat-col");if(a&&i)return this.rows[parseInt(a)]?.[parseInt(i)]||null}return null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[$],attrs:en,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,a){t&1&&(B(0,an,3,6,"tr",0),J(1,on,4,1,"tr",1,tn,!0),F(3,"span",2),p(4),L(),F(5,"span",2),p(6),L(),F(7,"span",2),p(8),L(),F(9,"span",2),p(10),L()),t&2&&(H(a._firstRowOffset<a.labelMinRequiredCells?0:-1),l(),ee(a.rows),l(2),ae("id",a._startDateLabelId),l(),se(" ",a.startDateAccessibleName,`
417
+ `),l(),ae("id",a._endDateLabelId),l(),se(" ",a.endDateAccessibleName,`
418
+ `),l(),ae("id",a._comparisonStartDateLabelId),l(),bt(" ",a.comparisonDateAccessibleName," ",a.startDateAccessibleName,`
419
+ `),l(),ae("id",a._comparisonEndDateLabelId),l(),bt(" ",a.comparisonDateAccessibleName," ",a.endDateAccessibleName,`
420
+ `))},styles:[`.mat-calendar-body {
421
+ min-width: 224px;
422
+ }
423
+
424
+ .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
425
+ border-color: var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary));
426
+ }
427
+
428
+ .mat-calendar-body-label {
429
+ height: 0;
430
+ line-height: 0;
431
+ text-align: start;
432
+ padding-left: 4.7142857143%;
433
+ padding-right: 4.7142857143%;
434
+ font-size: var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size));
435
+ font-weight: var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight));
436
+ color: var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface));
437
+ }
438
+
439
+ .mat-calendar-body-hidden-label {
440
+ display: none;
441
+ }
442
+
443
+ .mat-calendar-body-cell-container {
444
+ position: relative;
445
+ height: 0;
446
+ line-height: 0;
447
+ }
448
+
449
+ .mat-calendar-body-cell {
450
+ position: absolute;
451
+ top: 0;
452
+ left: 0;
453
+ width: 100%;
454
+ height: 100%;
455
+ background: none;
456
+ text-align: center;
457
+ outline: none;
458
+ margin: 0;
459
+ font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));
460
+ font-size: var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));
461
+ -webkit-user-select: none;
462
+ user-select: none;
463
+ cursor: pointer;
464
+ outline: none;
465
+ border: none;
466
+ -webkit-tap-highlight-color: transparent;
467
+ }
468
+ .mat-calendar-body-cell::-moz-focus-inner {
469
+ border: 0;
470
+ }
471
+
472
+ .mat-calendar-body-cell::before,
473
+ .mat-calendar-body-cell::after,
474
+ .mat-calendar-body-cell-preview {
475
+ content: "";
476
+ position: absolute;
477
+ top: 5%;
478
+ left: 0;
479
+ z-index: 0;
480
+ box-sizing: border-box;
481
+ display: block;
482
+ height: 90%;
483
+ width: 100%;
484
+ }
485
+
486
+ .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,
487
+ .mat-calendar-body-range-start::after,
488
+ .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,
489
+ .mat-calendar-body-comparison-start::after,
490
+ .mat-calendar-body-preview-start .mat-calendar-body-cell-preview {
491
+ left: 5%;
492
+ width: 95%;
493
+ border-top-left-radius: 999px;
494
+ border-bottom-left-radius: 999px;
495
+ }
496
+ [dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,
497
+ [dir=rtl] .mat-calendar-body-range-start::after,
498
+ [dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,
499
+ [dir=rtl] .mat-calendar-body-comparison-start::after,
500
+ [dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview {
501
+ left: 0;
502
+ border-radius: 0;
503
+ border-top-right-radius: 999px;
504
+ border-bottom-right-radius: 999px;
505
+ }
506
+
507
+ .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,
508
+ .mat-calendar-body-range-end::after,
509
+ .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,
510
+ .mat-calendar-body-comparison-end::after,
511
+ .mat-calendar-body-preview-end .mat-calendar-body-cell-preview {
512
+ width: 95%;
513
+ border-top-right-radius: 999px;
514
+ border-bottom-right-radius: 999px;
515
+ }
516
+ [dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,
517
+ [dir=rtl] .mat-calendar-body-range-end::after,
518
+ [dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,
519
+ [dir=rtl] .mat-calendar-body-comparison-end::after,
520
+ [dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview {
521
+ left: 5%;
522
+ border-radius: 0;
523
+ border-top-left-radius: 999px;
524
+ border-bottom-left-radius: 999px;
525
+ }
526
+
527
+ [dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,
528
+ [dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after {
529
+ width: 95%;
530
+ border-top-right-radius: 999px;
531
+ border-bottom-right-radius: 999px;
532
+ }
533
+
534
+ .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after, [dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,
535
+ .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,
536
+ [dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after {
537
+ width: 90%;
538
+ }
539
+
540
+ .mat-calendar-body-in-preview {
541
+ color: var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary));
542
+ }
543
+ .mat-calendar-body-in-preview .mat-calendar-body-cell-preview {
544
+ border-top: dashed 1px;
545
+ border-bottom: dashed 1px;
546
+ }
547
+
548
+ .mat-calendar-body-preview-start .mat-calendar-body-cell-preview {
549
+ border-left: dashed 1px;
550
+ }
551
+ [dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview {
552
+ border-left: 0;
553
+ border-right: dashed 1px;
554
+ }
555
+
556
+ .mat-calendar-body-preview-end .mat-calendar-body-cell-preview {
557
+ border-right: dashed 1px;
558
+ }
559
+ [dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview {
560
+ border-right: 0;
561
+ border-left: dashed 1px;
562
+ }
563
+
564
+ .mat-calendar-body-disabled {
565
+ cursor: default;
566
+ }
567
+ .mat-calendar-body-disabled > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
568
+ color: var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
569
+ }
570
+ .mat-calendar-body-disabled > .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
571
+ border-color: var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
572
+ }
573
+ @media (forced-colors: active) {
574
+ .mat-calendar-body-disabled {
575
+ opacity: 0.5;
576
+ }
577
+ }
578
+
579
+ .mat-calendar-body-cell-content {
580
+ top: 5%;
581
+ left: 5%;
582
+ z-index: 1;
583
+ display: flex;
584
+ align-items: center;
585
+ justify-content: center;
586
+ box-sizing: border-box;
587
+ width: 90%;
588
+ height: 90%;
589
+ line-height: 1;
590
+ border-width: 1px;
591
+ border-style: solid;
592
+ border-radius: 999px;
593
+ color: var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));
594
+ border-color: var(--mat-datepicker-calendar-date-outline-color, transparent);
595
+ }
596
+ .mat-calendar-body-cell-content.mat-focus-indicator {
597
+ position: absolute;
598
+ }
599
+ @media (forced-colors: active) {
600
+ .mat-calendar-body-cell-content {
601
+ border: none;
602
+ }
603
+ }
604
+
605
+ .cdk-keyboard-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), .cdk-program-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
606
+ background-color: var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
607
+ }
608
+
609
+ @media (hover: hover) {
610
+ .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
611
+ background-color: var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
612
+ }
613
+ }
614
+ .mat-calendar-body-selected {
615
+ background-color: var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));
616
+ color: var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary));
617
+ }
618
+ .mat-calendar-body-disabled > .mat-calendar-body-selected {
619
+ background-color: var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
620
+ }
621
+ .mat-calendar-body-selected.mat-calendar-body-today {
622
+ box-shadow: inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary));
623
+ }
624
+
625
+ .mat-calendar-body-in-range::before {
626
+ background: var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container));
627
+ }
628
+
629
+ .mat-calendar-body-comparison-identical,
630
+ .mat-calendar-body-in-comparison-range::before {
631
+ background: var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container));
632
+ }
633
+
634
+ .mat-calendar-body-comparison-identical,
635
+ .mat-calendar-body-in-comparison-range::before {
636
+ background: var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container));
637
+ }
638
+
639
+ .mat-calendar-body-comparison-bridge-start::before,
640
+ [dir=rtl] .mat-calendar-body-comparison-bridge-end::before {
641
+ background: linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%);
642
+ }
643
+
644
+ .mat-calendar-body-comparison-bridge-end::before,
645
+ [dir=rtl] .mat-calendar-body-comparison-bridge-start::before {
646
+ background: linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%);
647
+ }
648
+
649
+ .mat-calendar-body-in-range > .mat-calendar-body-comparison-identical,
650
+ .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after {
651
+ background: var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container));
652
+ }
653
+
654
+ .mat-calendar-body-comparison-identical.mat-calendar-body-selected,
655
+ .mat-calendar-body-in-comparison-range > .mat-calendar-body-selected {
656
+ background: var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary));
657
+ }
658
+
659
+ @media (forced-colors: active) {
660
+ .mat-datepicker-popup:not(:empty),
661
+ .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected {
662
+ outline: solid 1px;
663
+ }
664
+ .mat-calendar-body-today {
665
+ outline: dotted 1px;
666
+ }
667
+ .mat-calendar-body-cell::before,
668
+ .mat-calendar-body-cell::after,
669
+ .mat-calendar-body-selected {
670
+ background: none;
671
+ }
672
+ .mat-calendar-body-in-range::before,
673
+ .mat-calendar-body-comparison-bridge-start::before,
674
+ .mat-calendar-body-comparison-bridge-end::before {
675
+ border-top: solid 1px;
676
+ border-bottom: solid 1px;
677
+ }
678
+ .mat-calendar-body-range-start::before {
679
+ border-left: solid 1px;
680
+ }
681
+ [dir=rtl] .mat-calendar-body-range-start::before {
682
+ border-left: 0;
683
+ border-right: solid 1px;
684
+ }
685
+ .mat-calendar-body-range-end::before {
686
+ border-right: solid 1px;
687
+ }
688
+ [dir=rtl] .mat-calendar-body-range-end::before {
689
+ border-right: 0;
690
+ border-left: solid 1px;
691
+ }
692
+ .mat-calendar-body-in-comparison-range::before {
693
+ border-top: dashed 1px;
694
+ border-bottom: dashed 1px;
695
+ }
696
+ .mat-calendar-body-comparison-start::before {
697
+ border-left: dashed 1px;
698
+ }
699
+ [dir=rtl] .mat-calendar-body-comparison-start::before {
700
+ border-left: 0;
701
+ border-right: dashed 1px;
702
+ }
703
+ .mat-calendar-body-comparison-end::before {
704
+ border-right: dashed 1px;
705
+ }
706
+ [dir=rtl] .mat-calendar-body-comparison-end::before {
707
+ border-right: 0;
708
+ border-left: dashed 1px;
709
+ }
710
+ }
711
+ `],encapsulation:2,changeDetection:0})}return n})();function Nt(n){return n?.nodeName==="TD"}function Yt(n){let o;return Nt(n)?o=n:Nt(n.parentNode)?o=n.parentNode:Nt(n.parentNode?.parentNode)&&(o=n.parentNode.parentNode),o?.getAttribute("data-mat-row")!=null?o:null}function Bt(n,o,e){return e!==null&&o!==e&&n<e&&n===o}function Ht(n,o,e){return o!==null&&o!==e&&n>=o&&n===e}function zt(n,o,e,t){return t&&o!==null&&e!==null&&o!==e&&n>=o&&n<=e}function si(n){let o=n.changedTouches[0];return document.elementFromPoint(o.clientX,o.clientY)}var z=class{start;end;_disableStructuralEquivalency;constructor(o,e){this.start=o,this.end=e}},We=(()=>{class n{selection;_adapter;_selectionChanged=new C;selectionChanged=this._selectionChanged;constructor(e,t){this.selection=e,this._adapter=t,this.selection=e}updateSelection(e,t){let a=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:a})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(t){ta()};static \u0275prov=De({token:n,factory:n.\u0275fac})}return n})(),vn=(()=>{class n extends We{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(t){return new(t||n)(Jt(I))};static \u0275prov=De({token:n,factory:n.\u0275fac})}return n})();var mi={provide:We,useFactory:()=>s(We,{optional:!0,skipSelf:!0})||new vn(s(I))};var ui=new S("MAT_DATE_RANGE_SELECTION_STRATEGY");var Wt=7,Dn=0,li=(()=>{class n{_changeDetectorRef=s(V);_dateFormats=s(he,{optional:!0});_dateAdapter=s(I,{optional:!0});_dir=s(ne,{optional:!0});_rangeStrategy=s(ui,{optional:!0});_rerenderSubscription=K.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof z?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new h;_userSelection=new h;dragStarted=new h;dragEnded=new h;activeDateChange=new h;_matCalendarBody;_monthLabel=f("");_weeks=f([]);_firstWeekOffset=f(0);_rangeStart=f(null);_rangeEnd=f(null);_comparisonRangeStart=f(null);_comparisonRangeEnd=f(null);_previewStart=f(null);_previewEnd=f(null);_isRange=f(!1);_todayDate=f(null);_weekdays=f([]);constructor(){s(ve).load(ke),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ue(null)).subscribe(()=>this._init())}ngOnChanges(e){let t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let t=e.value,a=this._getDateFromDayOfMonth(t),i,r;this._selected instanceof z?(i=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):i=r=this._getDateInCurrentMonth(this._selected),(i!==t||r!==t)&&this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let t=e.value,a=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,a=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,a?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,a?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!O(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((Wt+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%Wt),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){let a=t?t.rawValue:null,i=this._rangeStrategy.createPreview(a,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(i.start)),this._previewEnd.set(this._getCellCompareValue(i.end)),this.activeDrag&&a){let r=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,a,e);r&&(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let t=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:t??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map((r,_)=>({long:r,narrow:t[_],id:Dn++}));this._weekdays.set(i.slice(e).concat(i.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames(),a=[[]];for(let i=0,r=this._firstWeekOffset();i<e;i++,r++){r==Wt&&(a.push([]),r=0);let _=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i+1),T=this._shouldEnableDate(_),wi=this._dateAdapter.format(_,this._dateFormats.display.dateA11yLabel),Mi=this.dateClass?this.dateClass(_,"month"):void 0;a[a.length-1].push(new ze(i+1,t[i],wi,T,Mi,this._getCellCompareValue(_),_))}this._weeks.set(a)}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!!(e&&t&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){let t=this._dateAdapter.getYear(e),a=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(t,a,i).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof z?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-month-view"]],viewQuery:function(t,a){if(t&1&&N(Oe,5),t&2){let i;v(i=D())&&(a._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[$],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(t,a){t&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),J(3,sn,5,2,"th",2,hi),c(),d(5,"tr",3),k(6,"th",4),c()(),d(7,"tbody",5),g("selectedValueChange",function(r){return a._dateSelected(r)})("activeDateChange",function(r){return a._updateActiveDate(r)})("previewChange",function(r){return a._previewChanged(r)})("dragStarted",function(r){return a.dragStarted.emit(r)})("dragEnded",function(r){return a._dragEnded(r)})("keyup",function(r){return a._handleCalendarBodyKeyup(r)})("keydown",function(r){return a._handleCalendarBodyKeydown(r)}),c()()),t&2&&(l(3),ee(a._weekdays()),l(4),u("label",a._monthLabel())("rows",a._weeks())("todayValue",a._todayDate())("startValue",a._rangeStart())("endValue",a._rangeEnd())("comparisonStart",a._comparisonRangeStart())("comparisonEnd",a._comparisonRangeEnd())("previewStart",a._previewStart())("previewEnd",a._previewEnd())("isRange",a._isRange())("labelMinRequiredCells",3)("activeCell",a._dateAdapter.getDate(a.activeDate)-1)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName))},dependencies:[Oe],encapsulation:2,changeDetection:0})}return n})(),Y=24,jt=4,di=(()=>{class n{_changeDetectorRef=s(V);_dateAdapter=s(I,{optional:!0});_dir=s(ne,{optional:!0});_rerenderSubscription=K.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),_i(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof z?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new h;yearSelected=new h;activeDateChange=new h;_matCalendarBody;_years=f([]);_todayYear=f(0);_selectedYear=f(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ue(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let t=this._dateAdapter.getYear(this._activeDate)-He(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),a=[];for(let i=0,r=[];i<Y;i++)r.push(t+i),r.length==jt&&(a.push(r.map(_=>this._createCellForYear(_))),r=[]);this._years.set(a),this._changeDetectorRef.markForCheck()}_yearSelected(e){let t=e.value,a=this._dateAdapter.createDate(t,0,1),i=this._getDateFromYear(t);this.yearSelected.emit(a),this.selectedChange.emit(i)}_updateActiveDate(e){let t=e.value,a=this._activeDate;this.activeDate=this._getDateFromYear(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,a=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-jt);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,jt);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-He(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Y-He(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Y*10:-Y);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Y*10:Y);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return He(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let t=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),a))}_createCellForYear(e){let t=this._dateAdapter.createDate(e,0,1),a=this._dateAdapter.getYearName(t),i=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new ze(e,a,a,this._shouldEnableYear(e),i)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let t=this._dateAdapter.createDate(e,0,1);for(let a=t;this._dateAdapter.getYear(a)==e;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear.set(null),e instanceof z){let t=e.start||e.end;t&&this._selectedYear.set(this._dateAdapter.getYear(t))}else e&&this._selectedYear.set(this._dateAdapter.getYear(e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-multi-year-view"]],viewQuery:function(t,a){if(t&1&&N(Oe,5),t&2){let i;v(i=D())&&(a._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(t,a){t&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),k(3,"th",2),c()(),d(4,"tbody",3),g("selectedValueChange",function(r){return a._yearSelected(r)})("activeDateChange",function(r){return a._updateActiveDate(r)})("keyup",function(r){return a._handleCalendarBodyKeyup(r)})("keydown",function(r){return a._handleCalendarBodyKeydown(r)}),c()()),t&2&&(l(4),u("rows",a._years())("todayValue",a._todayYear())("startValue",a._selectedYear())("endValue",a._selectedYear())("numCols",4)("cellAspectRatio",4/7)("activeCell",a._getActiveCell()))},dependencies:[Oe],encapsulation:2,changeDetection:0})}return n})();function _i(n,o,e,t,a){let i=n.getYear(o),r=n.getYear(e),_=gi(n,t,a);return Math.floor((i-_)/Y)===Math.floor((r-_)/Y)}function He(n,o,e,t){let a=n.getYear(o);return Cn(a-gi(n,e,t),Y)}function gi(n,o,e){let t=0;return e?t=n.getYear(e)-Y+1:o&&(t=n.getYear(o)),t}function Cn(n,o){return(n%o+o)%o}var ci=(()=>{class n{_changeDetectorRef=s(V);_dateFormats=s(he,{optional:!0});_dateAdapter=s(I,{optional:!0});_dir=s(ne,{optional:!0});_rerenderSubscription=K.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof z?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new h;monthSelected=new h;activeDateChange=new h;_matCalendarBody;_months=f([]);_yearLabel=f("");_todayMonth=f(null);_selectedMonth=f(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ue(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let t=e.value,a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(a);let i=this._getDateFromMonth(t);this.selectedChange.emit(i)}_updateActiveDate(e){let t=e.value,a=this._activeDate;this.activeDate=this._getDateFromMonth(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,a=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,a?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,a?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(a=>this._createCellForMonth(a,e[a])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),a=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),a))}_createCellForMonth(e,t){let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(a,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(a,"year"):void 0;return new ze(e,t.toLocaleUpperCase(),i,this._shouldEnableMonth(e),r)}_shouldEnableMonth(e){let t=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;let a=this._dateAdapter.createDate(t,e,1);for(let i=a;this._dateAdapter.getMonth(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){let a=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>a||e===a&&t>i}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){let a=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<a||e===a&&t<i}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof z?this._selectedMonth.set(this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end)):this._selectedMonth.set(this._getMonthInCurrentYear(e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-year-view"]],viewQuery:function(t,a){if(t&1&&N(Oe,5),t&2){let i;v(i=D())&&(a._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(t,a){t&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),k(3,"th",2),c()(),d(4,"tbody",3),g("selectedValueChange",function(r){return a._monthSelected(r)})("activeDateChange",function(r){return a._updateActiveDate(r)})("keyup",function(r){return a._handleCalendarBodyKeyup(r)})("keydown",function(r){return a._handleCalendarBodyKeydown(r)}),c()()),t&2&&(l(4),u("label",a._yearLabel())("rows",a._months())("todayValue",a._todayMonth())("startValue",a._selectedMonth())("endValue",a._selectedMonth())("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",a._dateAdapter.getMonth(a.activeDate)))},dependencies:[Oe],encapsulation:2,changeDetection:0})}return n})(),fi=(()=>{class n{_intl=s(Re);calendar=s(Kt);_dateAdapter=s(I,{optional:!0});_dateFormats=s(he,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){s(ve).load(ke);let e=s(V);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Y))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Y))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,t=this._intl,a=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=a.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=a.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=t.switchToMultiYearViewLabel,this._prevButtonLabel=t.prevMonthLabel,this._nextButtonLabel=t.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=a.getYearName(e.activeDate),this._periodButtonDescription=a.getYearName(e.activeDate),this._periodButtonLabel=t.switchToMonthViewLabel,this._prevButtonLabel=t.prevYearLabel,this._nextButtonLabel=t.nextYearLabel):(this._periodButtonText=t.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=t.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=t.switchToMonthViewLabel,this._prevButtonLabel=t.prevMultiYearLabel,this._nextButtonLabel=t.nextMultiYearLabel)}_isSameView(e,t){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):_i(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let t=this._dateAdapter.getYear(this.calendar.activeDate)-He(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),a=t+Y-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),r=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1));return[i,r]}_periodButtonLabelId=s(le).getId("mat-calendar-period-label-");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ln,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(t,a){t&1&&(ye(),d(0,"div",0)(1,"div",1)(2,"span",2),p(3),c(),d(4,"button",3),g("click",function(){return a.currentPeriodClicked()}),d(5,"span",4),p(6),c(),ge(),d(7,"svg",5),k(8,"polygon",6),c()(),gt(),k(9,"div",7),ie(10),d(11,"button",8),g("click",function(){return a.previousClicked()}),ge(),d(12,"svg",9),k(13,"path",10),c()(),gt(),d(14,"button",11),g("click",function(){return a.nextClicked()}),ge(),d(15,"svg",9),k(16,"path",12),c()()()()),t&2&&(l(2),u("id",a._periodButtonLabelId),l(),E(a.periodButtonDescription),l(),M("aria-label",a.periodButtonLabel)("aria-describedby",a._periodButtonLabelId),l(2),E(a.periodButtonText),l(),x("mat-calendar-invert",a.calendar.currentView!=="month"),l(4),u("disabled",!a.previousEnabled())("matTooltip",a.prevButtonLabel),M("aria-label",a.prevButtonLabel),l(3),u("disabled",!a.nextEnabled())("matTooltip",a.nextButtonLabel),M("aria-label",a.nextButtonLabel))},dependencies:[Be,St,ri],encapsulation:2,changeDetection:0})}return n})(),Kt=(()=>{class n{_dateAdapter=s(I,{optional:!0});_dateFormats=s(he,{optional:!0});_changeDetectorRef=s(V);_elementRef=s(P);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof z?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new h;yearSelected=new h;monthSelected=new h;viewChanged=new h(!0);_userSelection=new h;_userDragDrop=new h;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&(this.stateChanges.next(),this.viewChanged.emit(t))}_currentView;_activeDrag=null;stateChanges=new C;constructor(){this._intlChanges=s(Re).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Ye(this.headerComponent||fi),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,a=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,i=t||a||e.dateFilter;if(i&&!i.firstChange){let r=this._getCurrentViewComponent();r&&(this._elementRef.nativeElement.contains(vt())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let t=e.value;(this.selected instanceof z||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-calendar"]],viewQuery:function(t,a){if(t&1&&N(li,5)(ci,5)(di,5),t&2){let i;v(i=D())&&(a.monthView=i.first),v(i=D())&&(a.yearView=i.first),v(i=D())&&(a.multiYearView=i.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[U([mi]),$],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(t,a){if(t&1&&(Le(0,dn,0,0,"ng-template",0),d(1,"div",1),B(2,cn,1,11,"mat-month-view",2)(3,pn,1,6,"mat-year-view",3)(4,hn,1,6,"mat-multi-year-view",3),c()),t&2){let i;u("cdkPortalOutlet",a._calendarHeaderPortal),l(2),H((i=a.currentView)==="month"?2:i==="year"?3:i==="multi-year"?4:-1)}},dependencies:[Ct,ga,li,ci,di],styles:[`.mat-calendar {
712
+ display: block;
713
+ line-height: normal;
714
+ font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));
715
+ font-size: var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));
716
+ }
717
+
718
+ .mat-calendar-header {
719
+ padding: 8px 8px 0 8px;
720
+ }
721
+
722
+ .mat-calendar-content {
723
+ padding: 0 8px 8px 8px;
724
+ outline: none;
725
+ }
726
+
727
+ .mat-calendar-controls {
728
+ display: flex;
729
+ align-items: center;
730
+ margin: 5% calc(4.7142857143% - 16px);
731
+ }
732
+
733
+ .mat-calendar-spacer {
734
+ flex: 1 1 auto;
735
+ }
736
+
737
+ .mat-calendar-period-button {
738
+ min-width: 0;
739
+ margin: 0 8px;
740
+ font-size: var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));
741
+ font-weight: var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));
742
+ --mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant));
743
+ }
744
+
745
+ .mat-calendar-arrow {
746
+ display: inline-block;
747
+ width: 10px;
748
+ height: 5px;
749
+ margin: 0 0 0 5px;
750
+ vertical-align: middle;
751
+ fill: var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant));
752
+ }
753
+ .mat-calendar-arrow.mat-calendar-invert {
754
+ transform: rotate(180deg);
755
+ }
756
+ [dir=rtl] .mat-calendar-arrow {
757
+ margin: 0 5px 0 0;
758
+ }
759
+ @media (forced-colors: active) {
760
+ .mat-calendar-arrow {
761
+ fill: CanvasText;
762
+ }
763
+ }
764
+
765
+ .mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),
766
+ .mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled) {
767
+ color: var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant));
768
+ }
769
+ [dir=rtl] .mat-calendar-previous-button,
770
+ [dir=rtl] .mat-calendar-next-button {
771
+ transform: rotate(180deg);
772
+ }
773
+
774
+ .mat-calendar-table {
775
+ border-spacing: 0;
776
+ border-collapse: collapse;
777
+ width: 100%;
778
+ }
779
+
780
+ .mat-calendar-table-header th {
781
+ text-align: center;
782
+ padding: 0 0 8px 0;
783
+ color: var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));
784
+ font-size: var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));
785
+ font-weight: var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight));
786
+ }
787
+
788
+ .mat-calendar-table-header-divider {
789
+ position: relative;
790
+ height: 1px;
791
+ }
792
+ .mat-calendar-table-header-divider::after {
793
+ content: "";
794
+ position: absolute;
795
+ top: 0;
796
+ left: -8px;
797
+ right: -8px;
798
+ height: 1px;
799
+ background: var(--mat-datepicker-calendar-header-divider-color, transparent);
800
+ }
801
+
802
+ .mat-calendar-body-cell-content::before {
803
+ margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1);
804
+ }
805
+
806
+ .mat-calendar-body-cell:focus-visible .mat-focus-indicator::before {
807
+ content: "";
808
+ }
809
+ `],encapsulation:2,changeDetection:0})}return n})(),wn=new S("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let n=s(X);return()=>Me(n)}}),bi=(()=>{class n{_elementRef=s(P);_animationsDisabled=de();_changeDetectorRef=s(V);_globalModel=s(We);_dateAdapter=s(I);_ngZone=s(Pe);_rangeSelectionStrategy=s(ui,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new C;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(s(ve).load(ke),this._closeButtonText=s(Re).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,t=s(fe);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"animationstart",this._handleAnimationEvent),t.listen(e,"animationend",this._handleAnimationEvent),t.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let t=this._model.selection,a=e.value,i=t instanceof z;if(i&&this._rangeSelectionStrategy){let r=this._rangeSelectionStrategy.selectionFinished(a,t,e.event);this._model.updateSelection(r,this)}else a&&(i||!this._dateAdapter.sameDate(a,t))&&this._model.add(a);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let t=this._elementRef.nativeElement;e.target!==t||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",t.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(t,a){if(t&1&&N(Kt,5),t&2){let i;v(i=D())&&(a._calendar=i.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(t,a){t&2&&(oe(a.color?"mat-"+a.color:""),x("mat-datepicker-content-touch",a.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!a._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(t,a){t&1&&(d(0,"div",0)(1,"mat-calendar",1),g("yearSelected",function(r){return a.datepicker._selectYear(r)})("monthSelected",function(r){return a.datepicker._selectMonth(r)})("viewChanged",function(r){return a.datepicker._viewChanged(r)})("_userSelection",function(r){return a._handleUserSelection(r)})("_userDragDrop",function(r){return a._handleUserDragDrop(r)}),c(),Le(2,mn,0,0,"ng-template",2),d(3,"button",3),g("focus",function(){return a._closeButtonFocused=!0})("blur",function(){return a._closeButtonFocused=!1})("click",function(){return a.datepicker.close()}),p(4),c()()),t&2&&(x("mat-datepicker-content-container-with-custom-header",a.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",a._actionsPortal),M("aria-modal",!0)("aria-labelledby",a._dialogLabelId??void 0),l(),oe(a.datepicker.panelClass),u("id",a.datepicker.id)("startAt",a.datepicker.startAt)("startView",a.datepicker.startView)("minDate",a.datepicker._getMinDate())("maxDate",a.datepicker._getMaxDate())("dateFilter",a.datepicker._getDateFilter())("headerComponent",a.datepicker.calendarHeaderComponent)("selected",a._getSelected())("dateClass",a.datepicker.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName),l(),u("cdkPortalOutlet",a._actionsPortal),l(),x("cdk-visually-hidden",!a._closeButtonFocused),u("color",a.color||"primary"),l(),E(a._closeButtonText))},dependencies:[ba,Kt,Ct,Be],styles:[`@keyframes _mat-datepicker-content-dropdown-enter {
810
+ from {
811
+ opacity: 0;
812
+ transform: scaleY(0.8);
813
+ }
814
+ to {
815
+ opacity: 1;
816
+ transform: none;
817
+ }
818
+ }
819
+ @keyframes _mat-datepicker-content-dialog-enter {
820
+ from {
821
+ opacity: 0;
822
+ transform: scale(0.8);
823
+ }
824
+ to {
825
+ opacity: 1;
826
+ transform: none;
827
+ }
828
+ }
829
+ @keyframes _mat-datepicker-content-exit {
830
+ from {
831
+ opacity: 1;
832
+ }
833
+ to {
834
+ opacity: 0;
835
+ }
836
+ }
837
+ .mat-datepicker-content {
838
+ display: block;
839
+ background-color: var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));
840
+ color: var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));
841
+ box-shadow: var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));
842
+ border-radius: var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large));
843
+ }
844
+ .mat-datepicker-content.mat-datepicker-content-animations-enabled {
845
+ animation: _mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1);
846
+ }
847
+ .mat-datepicker-content .mat-calendar {
848
+ width: 296px;
849
+ height: 354px;
850
+ }
851
+ .mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar {
852
+ height: auto;
853
+ }
854
+ .mat-datepicker-content .mat-datepicker-close-button {
855
+ position: absolute;
856
+ top: 100%;
857
+ left: 0;
858
+ margin-top: 8px;
859
+ }
860
+ .mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button {
861
+ display: none;
862
+ }
863
+
864
+ .mat-datepicker-content-container {
865
+ display: flex;
866
+ flex-direction: column;
867
+ justify-content: space-between;
868
+ }
869
+
870
+ .mat-datepicker-content-touch {
871
+ display: block;
872
+ max-height: 80vh;
873
+ box-shadow: var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));
874
+ border-radius: var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));
875
+ position: relative;
876
+ overflow: visible;
877
+ min-height: fit-content;
878
+ }
879
+ .mat-datepicker-content-touch.mat-datepicker-content-animations-enabled {
880
+ animation: _mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1);
881
+ }
882
+ .mat-datepicker-content-touch .mat-datepicker-content-container {
883
+ min-height: 312px;
884
+ max-height: 788px;
885
+ min-width: 250px;
886
+ max-width: 750px;
887
+ }
888
+ .mat-datepicker-content-touch .mat-calendar {
889
+ width: 100%;
890
+ height: auto;
891
+ }
892
+
893
+ .mat-datepicker-content-exit.mat-datepicker-content-animations-enabled {
894
+ animation: _mat-datepicker-content-exit 100ms linear;
895
+ }
896
+
897
+ @media all and (orientation: landscape) {
898
+ .mat-datepicker-content-touch .mat-datepicker-content-container {
899
+ width: 64vh;
900
+ height: 80vh;
901
+ }
902
+ }
903
+ @media all and (orientation: portrait) {
904
+ .mat-datepicker-content-touch .mat-datepicker-content-container {
905
+ width: 80vw;
906
+ height: 100vw;
907
+ }
908
+ .mat-datepicker-content-touch .mat-datepicker-content-container-with-actions {
909
+ height: 115vw;
910
+ }
911
+ }
912
+ `],encapsulation:2,changeDetection:0})}return n})(),pi=(()=>{class n{_injector=s(X);_viewContainerRef=s(qe);_dateAdapter=s(I,{optional:!0});_dir=s(ne,{optional:!0});_model=s(We);_animationsDisabled=de();_scrollStrategy=s(wn);_inputStateChanges=K.EMPTY;_document=s(Ge);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new h;monthSelected=new h;viewChanged=new h(!0);dateClass;openedStream=new h;closedStream=new h;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Da(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=s(le).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new C;_changeDetectorRef=s(V);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;a instanceof ha&&(this._setConnectedPositions(a),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=vt(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:a,location:i}=this._componentRef;a._animationDone.pipe(Ke(1)).subscribe(()=>{let r=this._document.activeElement;e&&(!r||r===this._document.activeElement||i.nativeElement.contains(r))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),a._startExitAnimation()}e?setTimeout(t):t()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,t=new Ye(bi,this._viewContainerRef),a=this._overlayRef=at(this._injector,new pa({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?ca(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(a).subscribe(i=>{i&&i.preventDefault(),this.close()}),a.keydownEvents().subscribe(i=>{let r=i.keyCode;(r===38||r===40||r===37||r===39||r===33||r===34)&&i.preventDefault()}),this._componentRef=a.attach(t),this._forwardContentValues(this._componentRef.instance),e||Ce(()=>{a.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return ma(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=tt(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let t=this.xPosition==="end"?"end":"start",a=t==="start"?"end":"start",i=this.yPosition==="above"?"bottom":"top",r=i==="top"?"bottom":"top";return e.withPositions([{originX:t,originY:r,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:r},{originX:a,originY:r,overlayX:a,overlayY:i},{originX:a,originY:i,overlayX:a,overlayY:r}])}_getCloseStream(e){let t=["ctrlKey","shiftKey","metaKey"];return re(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Fe(a=>a.keyCode===27&&!O(a)||this.datepickerInput&&O(a,"altKey")&&a.keyCode===38&&t.every(i=>!O(a,i)))))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=Z({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",A],disabled:[2,"disabled","disabled",A],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",A],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",A]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[$]})}return n})(),yi=(()=>{class n extends pi{static \u0275fac=(()=>{let e;return function(a){return(e||(e=ea(n)))(a||n)}})();static \u0275cmp=w({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[U([mi,{provide:pi,useExisting:n}]),ft],decls:0,vars:0,template:function(t,a){},encapsulation:2,changeDetection:0})}return n})(),Ve=class{target;targetElement;value=null;constructor(o,e){this.target=o,this.targetElement=e,this.value=this.target.value}},Mn=(()=>{class n{_elementRef=s(P);_dateAdapter=s(I,{optional:!0});_dateFormats=s(he,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let t=e,a=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&a.blur&&a.blur()}_disabled;dateChange=new h;dateInput=new h;stateChanges=new C;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=K.EMPTY;_localeSubscription=K.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!t||this._matchesFilter(t)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),a=this._getMinDate();return!a||!t||this._dateAdapter.compareDate(a,t)<=0?null:{matDatepickerMin:{min:a,actual:t}}};_maxValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),a=this._getMaxDate();return!a||!t||this._dateAdapter.compareDate(a,t)>=0?null:{matDatepickerMax:{max:a,actual:t}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){let a=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(a),this._cvaOnChange(a),this._onTouched(),this._formatValue(a),this.dateInput.emit(new Ve(this,this._elementRef.nativeElement)),this.dateChange.emit(new Ve(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){kn(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let t=["ctrlKey","shiftKey","metaKey"];O(e,"altKey")&&e.keyCode===40&&t.every(i=>!O(e,i))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let t=e.target.value,a=this._lastValueValid,i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i);let r=!this._dateAdapter.sameDate(i,this.value);!i||r?this._cvaOnChange(i):(t&&!this.value&&this._cvaOnChange(i),a!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(i),this.dateInput.emit(new Ve(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Ve(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,t){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),t&&this._formatValue(e)}_matchesFilter(e){let t=this._getDateFilter();return!t||t(e)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=Z({type:n,inputs:{value:"value",disabled:[2,"disabled","disabled",A]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[$]})}return n})();function kn(n,o){let e=Object.keys(n);for(let t of e){let{previousValue:a,currentValue:i}=n[t];if(o.isDateInstance(a)&&o.isDateInstance(i)){if(!o.sameDate(a,i))return!0}else return!0}return!1}var An={provide:Fa,useExisting:_t(()=>ht),multi:!0},Sn={provide:La,useExisting:_t(()=>ht),multi:!0},ht=(()=>{class n extends Mn{_formField=s(st,{optional:!0});_closedSubscription=K.EMPTY;_openedSubscription=K.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=f(null);get min(){return this._min}set min(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=ot.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(t){return new(t||n)};static \u0275dir=Z({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,a){t&1&&g("input",function(r){return a._onInput(r)})("change",function(){return a._onChange()})("blur",function(){return a._onBlur()})("keydown",function(r){return a._onKeydown(r)}),t&2&&(ae("disabled",a.disabled),M("aria-haspopup",a._datepicker?"dialog":null)("aria-owns",a._ariaOwns())("min",a.min?a._dateAdapter.toIso8601(a.min):null)("max",a.max?a._dateAdapter.toIso8601(a.max):null)("data-mat-calendar",a._datepicker?a._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[U([An,Sn,{provide:Qa,useExisting:n}]),ft]})}return n})(),xn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=Z({type:n,selectors:[["","matDatepickerToggleIcon",""]]})}return n})(),Qt=(()=>{class n{_intl=s(Re);_changeDetectorRef=s(V);_stateChanges=K.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=s(new Ze("tabindex"),{optional:!0}),t=Number(e);this.tabIndex=t||t===0?t:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:je(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:je(),a=this.datepicker?re(this.datepicker.openedStream,this.datepicker.closedStream):je();this._stateChanges.unsubscribe(),this._stateChanges=re(this._intl.changes,e,t,a).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,a,i){if(t&1&&Ue(i,xn,5),t&2){let r;v(r=D())&&(a._customIcon=r.first)}},viewQuery:function(t,a){if(t&1&&N(un,5),t&2){let i;v(i=D())&&(a._button=i.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,a){t&1&&g("click",function(r){return a._open(r)}),t&2&&(M("tabindex",null)("data-mat-calendar",a.datepicker?a.datepicker.id:null),x("mat-datepicker-toggle-active",a.datepicker&&a.datepicker.opened)("mat-accent",a.datepicker&&a.datepicker.color==="accent")("mat-warn",a.datepicker&&a.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",A],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[$],ngContentSelectors:gn,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,a){t&1&&(ye(_n),d(0,"button",1,0),B(2,fn,2,0,":svg:svg",2),ie(3),c()),t&2&&(u("tabIndex",a.disabled?-1:a.tabIndex)("disabled",a.disabled)("disableRipple",a.disableRipple),M("aria-haspopup",a.datepicker?"dialog":null)("aria-label",a.ariaLabel||a._intl.openCalendarLabel)("aria-expanded",a.datepicker?a.datepicker.opened:null),l(2),H(a._customIcon?-1:2))},dependencies:[St],styles:[`.mat-datepicker-toggle {
913
+ pointer-events: auto;
914
+ color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant));
915
+ }
916
+ .mat-datepicker-toggle button {
917
+ color: inherit;
918
+ }
919
+
920
+ .mat-datepicker-toggle-active {
921
+ color: var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary));
922
+ }
923
+
924
+ @media (forced-colors: active) {
925
+ .mat-datepicker-toggle-default-icon {
926
+ color: CanvasText;
927
+ }
928
+ }
929
+ `],encapsulation:2,changeDetection:0})}return n})();var vi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=be({type:n});static \u0275inj=_e({providers:[Re],imports:[rt,it,va,da,bi,Qt,fi,we,et]})}return n})();var In=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,Tn=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Ut(n,o){let e=Array(n);for(let t=0;t<n;t++)e[t]=o(t);return e}var Vn=(()=>{class n extends I{_matDateLocale=s(Lt,{optional:!0});constructor(){super();let e=s(Lt,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ut(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ut(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){let t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ut(7,a=>this._format(t,new Date(2017,0,a+1)))}getYearName(e){let t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),t=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return t===7?0:t}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,a){let i=this._createDateWithOverflow(e,t,a);return i.getMonth()!=t,i}today(){return new Date}parse(e,t){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let a=new Intl.DateTimeFormat(this.locale,$t(me({},t),{timeZone:"utc"}));return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,t*12)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(In.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,t,a,i){let r=this.clone(e);return r.setHours(t,a,i,0),r}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,t){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let a=e.trim();if(a.length===0)return null;let i=this._parseTimeString(a);if(i===null){let r=a.replace(/[^0-9:(AM|PM)]/gi,"").trim();r.length>0&&(i=this._parseTimeString(r))}return i||this.invalid()}addSeconds(e,t){return new Date(e.getTime()+t*1e3)}_createDateWithOverflow(e,t,a){let i=new Date;return i.setFullYear(e,t,a),i.setHours(0,0,0,0),i}_2digit(e){return("00"+e).slice(-2)}_format(e,t){let a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}_parseTimeString(e){let t=e.toUpperCase().match(Tn);if(t){let a=parseInt(t[1]),i=parseInt(t[2]),r=t[3]==null?void 0:parseInt(t[3]),_=t[4];if(a===12?a=_==="AM"?0:a:_==="PM"&&(a+=12),Xt(a,0,23)&&Xt(i,0,59)&&(r==null||Xt(r,0,59)))return this.setTime(this.today(),a,i,r||0)}return null}static \u0275fac=function(t){return new(t||n)};static \u0275prov=De({token:n,factory:n.\u0275fac})}return n})();function Xt(n,o,e){return!isNaN(n)&&n>=o&&n<=e}var On={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};function Di(n=On){return[{provide:I,useClass:Vn},{provide:he,useValue:n}]}var Rn=()=>["self","all"];function Fn(n,o){if(n&1&&(d(0,"mat-option",5),p(1),c()),n&2){let e=o.$implicit;u("value",e),l(),E(e)}}function Pn(n,o){if(n&1&&(d(0,"mat-option",5),p(1),c()),n&2){let e=o.$implicit;u("value",e),l(),E(e)}}function Ln(n,o){if(n&1&&(d(0,"mat-option",5),p(1),c()),n&2){let e=o.$implicit;u("value",e),l(),E(e)}}function Nn(n,o){if(n&1&&(d(0,"mat-option",5),p(1),c()),n&2){let e=o.$implicit;u("value",e),l(),E(e)}}var Ci=class n{hour;minute;formData={context:"all",startTimeHr:"00",startTimeMin:"00",startDate:null,playbackRate:1};maxDate=new Date;dialogRef=s(ka);constructor(){}submit(o=!1){let e={},t="";o||(this.formData.startDate.setHours(parseInt(this.formData.startTimeHr)),this.formData.startDate.setMinutes(parseInt(this.formData.startTimeMin)),t=this.formData.startDate.toISOString(),t=t.slice(0,t.indexOf("."))+"Z",e={subscribe:this.formData.context,startTime:t,playbackRate:this.formData.playbackRate}),this.dialogRef.close({result:!o,query:e,startTime:t})}hrValues(){let o=[];for(let e=0;e<24;e++)o.push(("00"+e).slice(-2));return o}minValues(){let o=[];for(let e=0;e<59;e++)o.push(("00"+e).slice(-2));return o}rateValues(){return[.5,1,2,5,10]}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=w({type:n,selectors:[["ap-playbackdialog"]],features:[U([Di()])],decls:57,vars:10,consts:[["picker",""],[1,"_ap-playback"],["mat-dialog-title",""],[2,"display","flex"],[3,"ngModelChange","ngModel"],[3,"value"],["floatLabel","always"],["matInput","","required","",3,"ngModelChange","max","matDatepicker","ngModel"],["matSuffix","",3,"for"],[2,"font-size","10pt"],[2,"width","100px"],["matTooltip","Advance stream the selected number of seconds for every second of playback",2,"width","150px"],[2,"text-align","center","width","100%"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","",3,"click"]],template:function(e,t){if(e&1){let a=te();d(0,"div",1)(1,"div")(2,"h1",2)(3,"mat-icon"),p(4,"history"),c(),p(5,"\xA0 \xA0\xA0History Playback "),c()(),d(6,"mat-dialog-content")(7,"div",3)(8,"div")(9,"div")(10,"mat-form-field")(11,"mat-label"),p(12,"Context"),c(),d(13,"mat-select",4),Q("ngModelChange",function(r){return b(a),q(t.formData.context,r)||(t.formData.context=r),y(r)}),J(14,Fn,2,2,"mat-option",5,Ne),c()()(),d(16,"div")(17,"mat-form-field",6)(18,"mat-label"),p(19,"Start date"),c(),d(20,"input",7),Q("ngModelChange",function(r){return b(a),q(t.formData.startDate,r)||(t.formData.startDate=r),y(r)}),c(),d(21,"mat-hint"),p(22,"MM/DD/YYYY"),c(),k(23,"mat-datepicker-toggle",8)(24,"mat-datepicker",null,0),c()(),d(26,"div",9)(27,"b"),p(28,"Start Time:"),c(),k(29,"br"),d(30,"mat-form-field",10)(31,"mat-label"),p(32,"Hour"),c(),d(33,"mat-select",4),Q("ngModelChange",function(r){return b(a),q(t.formData.startTimeHr,r)||(t.formData.startTimeHr=r),y(r)}),J(34,Pn,2,2,"mat-option",5,Ne),c()(),d(36,"b"),p(37,": "),c(),d(38,"mat-form-field",10)(39,"mat-label"),p(40,"Minutes"),c(),d(41,"mat-select",4),Q("ngModelChange",function(r){return b(a),q(t.formData.startTimeMin,r)||(t.formData.startTimeMin=r),y(r)}),J(42,Ln,2,2,"mat-option",5,Ne),c()()(),d(44,"div")(45,"mat-form-field",11)(46,"mat-label"),p(47,"Playback Rate"),c(),d(48,"mat-select",4),Q("ngModelChange",function(r){return b(a),q(t.formData.playbackRate,r)||(t.formData.playbackRate=r),y(r)}),J(49,Nn,2,2,"mat-option",5,Ne),c()()()()()(),d(51,"mat-dialog-actions")(52,"div",12)(53,"button",13),g("click",function(){return t.submit()}),p(54," START "),c(),d(55,"button",14),g("click",function(){return t.submit(!0)}),p(56,"CANCEL"),c()()()()}if(e&2){let a=Xe(25);l(13),G("ngModel",t.formData.context),l(),ee(na(9,Rn)),l(6),u("max",t.maxDate)("matDatepicker",a),G("ngModel",t.formData.startDate),l(3),u("for",a),l(10),G("ngModel",t.formData.startTimeHr),l(),ee(t.hrValues()),l(7),G("ngModel",t.formData.startTimeMin),l(),ee(t.minValues()),l(6),G("ngModel",t.formData.playbackRate),l(),ee(t.rateValues()),l(4),u("disabled",!t.formData.startDate)}},dependencies:[Ha,Pa,Na,Ba,Ya,Ea,Aa,xa,Sa,Oa,Va,rt,Be,lt,qa,ja,Ka,Ga,ii,ai,Se,Za,$a,vi,yi,ht,Qt],styles:["._ap-playback[_ngcontent-%COMP%]{font-family:arial;min-width:300px}"]})};export{ri as a,Se as b,ai as c,Rr as d,ii as e,yi as f,ht as g,Qt as h,vi as i,Di as j,Ci as k};