marketplacepos 2.9.7 → 2.9.9

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 (30) hide show
  1. package/Marketplace/103.bc1f4c51ca99f04f.js +1 -0
  2. package/Marketplace/168.daf56541dfe022d9.js +1 -0
  3. package/Marketplace/307.e009e017bc05d4a6.js +1 -0
  4. package/Marketplace/311.afcc0c4a03ea0076.js +1 -0
  5. package/Marketplace/452.98cb96aa212c291a.js +1 -0
  6. package/Marketplace/478.a63c640a3e971a16.js +1 -0
  7. package/Marketplace/527.984c24771dbd0f8e.js +1 -0
  8. package/Marketplace/687.159d5f9f932894a1.js +1 -0
  9. package/Marketplace/{699.e1f8489991913e8e.js → 699.d68a917277dbe11a.js} +1 -1
  10. package/Marketplace/726.40535ee28a35e978.js +1 -0
  11. package/Marketplace/900.b7de175b628a8dbe.js +1 -0
  12. package/Marketplace/common.f9c9a55b81e3da5a.js +1 -0
  13. package/Marketplace/index.html +2 -2
  14. package/Marketplace/main.c34694e8685f5c02.js +1 -0
  15. package/Marketplace/runtime.9be909476d078c64.js +1 -0
  16. package/Marketplace/{styles.7f496be7a7c4b295.css → styles.095460a0131dd2fc.css} +1 -1
  17. package/package.json +1 -1
  18. package/Marketplace/103.bd9a1f982b50e346.js +0 -1
  19. package/Marketplace/168.372c8292de413867.js +0 -1
  20. package/Marketplace/299.86cba892502ce6e4.js +0 -1
  21. package/Marketplace/307.494dace4c75f3987.js +0 -1
  22. package/Marketplace/311.17b5fcab2ef01d3f.js +0 -1
  23. package/Marketplace/452.12b65c3c6f144b7e.js +0 -1
  24. package/Marketplace/478.bdd1c6271d13e6fc.js +0 -1
  25. package/Marketplace/527.e23646167d384e97.js +0 -1
  26. package/Marketplace/726.318498721a0c771c.js +0 -1
  27. package/Marketplace/900.f4171c8753af159f.js +0 -1
  28. package/Marketplace/common.91711b840b02b984.js +0 -1
  29. package/Marketplace/main.9ef14d5cfe5be8d5.js +0 -1
  30. package/Marketplace/runtime.d8765e35f501b572.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[311],{6027:(we,G,_)=>{_.d(G,{Z:()=>B,e:()=>F});var S=_(6814),T=_(2596),w=_(9790),v=_(621),t=_(5879);function Y(l,m){if(1&l&&(t.ynx(0),t.TgZ(1,"a",6),t._uU(2),t.qZA(),t.BQk()),2&l){const u=t.oxw().$implicit;t.xp6(1),t.s9C("routerLink",u.Url),t.Q6J("title",u.Description?u.Description:""),t.xp6(1),t.hij(" ",u.Title," ")}}function J(l,m){if(1&l&&(t.TgZ(0,"li",4),t.YNc(1,Y,3,3,"ng-container",5),t.qZA()),2&l){const u=m.$implicit;t.xp6(1),t.Q6J("ngxPermissionsOnly",u.Permissions)}}function h(l,m){if(1&l&&(t.ynx(0),t.YNc(1,J,2,1,"li",3),t.BQk()),2&l){const u=t.oxw();t.xp6(1),t.Q6J("ngForOf",u.Tabs)}}function M(l,m){if(1&l&&(t.TgZ(0,"li",4)(1,"a",6),t._uU(2),t.qZA()()),2&l){const u=m.$implicit;t.xp6(1),t.s9C("routerLink",u.Url),t.Q6J("title",u.Description?u.Description:""),t.xp6(1),t.hij(" ",u.Title," ")}}function b(l,m){if(1&l&&t.YNc(0,M,3,3,"li",3),2&l){const u=t.oxw();t.Q6J("ngForOf",u.Tabs)}}let F=(()=>{var l;class m{constructor(){this.usePermissions=!1}}return(l=m).\u0275fac=function(k){return new(k||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["nav-tab"]],inputs:{Tabs:"Tabs",usePermissions:"usePermissions"},decls:4,vars:2,consts:[[1,"nav","navbar-nav","navbar-left","nav-tab-arrow"],[4,"ngIf","ngIfElse"],["NOT_USE_PERMISSIONS",""],["routerLinkActive","active","class","nav-item me-6",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"nav-item","me-6"],[4,"ngxPermissionsOnly"],[1,"nav-link","nav-link-arrow","mb-0",3,"routerLink","title"]],template:function(k,N){if(1&k&&(t.TgZ(0,"ul",0),t.YNc(1,h,2,1,"ng-container",1),t.YNc(2,b,1,1,"ng-template",null,2,t.W1O),t.qZA()),2&k){const q=t.MAs(3);t.xp6(1),t.Q6J("ngIf",N.usePermissions)("ngIfElse",q)}},dependencies:[S.sg,S.O5,w.rH,w.Od,v.gE]}),m})(),B=(()=>{var l;class m{}return(l=m).\u0275fac=function(k){return new(k||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[S.ez,w.Bz,T.AV,v.VI.forChild()]}),m})()},8034:(we,G,_)=>{_.d(G,{By:()=>Ae,DK:()=>Dt,FA:()=>Ct,M5:()=>yt,Mq:()=>dt,_g:()=>vt,dp:()=>bt,hl:()=>re,nW:()=>ht,wx:()=>ft,zY:()=>Ce});var S=_(4191),T=_(3651),w=_(8484),v=_(6814),t=_(5879),Y=_(2296),J=_(6672),h=_(3680),M=_(8645),b=_(7394),F=_(3019),B=_(2096),l=_(6028),m=_(9388),u=_(2831),k=_(8180),N=_(7921),q=_(2181),E=_(2495),p=_(6825),g=_(6223),Q=_(4170),ke=_(2032);const Me=["mat-calendar-body",""];function Ee(n,d){if(1&n&&(t.TgZ(0,"tr",3)(1,"td",4),t._uU(2),t.qZA()()),2&n){const s=t.oxw();t.xp6(1),t.Udp("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),t.uIk("colspan",s.numCols),t.xp6(1),t.hij(" ",s.label," ")}}function Se(n,d){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){const s=t.oxw(2);t.Udp("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),t.uIk("colspan",s._firstRowOffset),t.xp6(1),t.hij(" ",s._firstRowOffset>=s.labelMinRequiredCells?s.label:""," ")}}function Ve(n,d){if(1&n){const s=t.EpF();t.TgZ(0,"td",8)(1,"button",9),t.NdJ("click",function(a){const r=t.CHM(s).$implicit,o=t.oxw(2);return t.KtG(o._cellClicked(r,a))})("focus",function(a){const r=t.CHM(s).$implicit,o=t.oxw(2);return t.KtG(o._emitActiveDateChange(r,a))}),t.TgZ(2,"span",10),t._uU(3),t.qZA(),t._UZ(4,"span",11),t.qZA()()}if(2&n){const s=d.$implicit,e=d.index,a=t.oxw().index,i=t.oxw();t.Udp("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),t.uIk("data-mat-row",a)("data-mat-col",e),t.xp6(1),t.ekj("mat-calendar-body-disabled",!s.enabled)("mat-calendar-body-active",i._isActiveCell(a,e))("mat-calendar-body-range-start",i._isRangeStart(s.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(s.compareValue))("mat-calendar-body-in-range",i._isInRange(s.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(s.compareValue,a,e))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(s.compareValue,a,e))("mat-calendar-body-comparison-start",i._isComparisonStart(s.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(s.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(s.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(s.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(s.compareValue))("mat-calendar-body-in-preview",i._isInPreview(s.compareValue)),t.Q6J("ngClass",s.cssClasses)("tabindex",i._isActiveCell(a,e)?0:-1),t.uIk("aria-label",s.ariaLabel)("aria-disabled",!s.enabled||null)("aria-pressed",i._isSelected(s.compareValue))("aria-current",i.todayValue===s.compareValue?"date":null)("aria-describedby",i._getDescribedby(s.compareValue)),t.xp6(1),t.ekj("mat-calendar-body-selected",i._isSelected(s.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(s.compareValue))("mat-calendar-body-today",i.todayValue===s.compareValue),t.xp6(1),t.hij(" ",s.displayValue," ")}}function Ie(n,d){if(1&n&&(t.TgZ(0,"tr",5),t.YNc(1,Se,2,6,"td",6),t.YNc(2,Ve,5,48,"td",7),t.qZA()),2&n){const s=d.$implicit,e=d.index,a=t.oxw();t.xp6(1),t.Q6J("ngIf",0===e&&a._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",s)}}function xe(n,d){if(1&n&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&n){const s=d.$implicit;t.xp6(2),t.Oqu(s.long),t.xp6(2),t.Oqu(s.narrow)}}const de=["*"];function Te(n,d){}function Ye(n,d){if(1&n){const s=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i.activeDate=a)})("_userSelection",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i._dateSelected(a))})("dragStarted",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i._dragStarted(a))})("dragEnded",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i._dragEnded(a))}),t.qZA()}if(2&n){const s=t.oxw();t.Q6J("activeDate",s.activeDate)("selected",s.selected)("dateFilter",s.dateFilter)("maxDate",s.maxDate)("minDate",s.minDate)("dateClass",s.dateClass)("comparisonStart",s.comparisonStart)("comparisonEnd",s.comparisonEnd)("startDateAccessibleName",s.startDateAccessibleName)("endDateAccessibleName",s.endDateAccessibleName)("activeDrag",s._activeDrag)}}function Re(n,d){if(1&n){const s=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i.activeDate=a)})("monthSelected",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i._monthSelectedInYearView(a))})("selectedChange",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i._goToDateInView(a,"month"))}),t.qZA()}if(2&n){const s=t.oxw();t.Q6J("activeDate",s.activeDate)("selected",s.selected)("dateFilter",s.dateFilter)("maxDate",s.maxDate)("minDate",s.minDate)("dateClass",s.dateClass)}}function Oe(n,d){if(1&n){const s=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i.activeDate=a)})("yearSelected",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i._yearSelectedInMultiYearView(a))})("selectedChange",function(a){t.CHM(s);const i=t.oxw();return t.KtG(i._goToDateInView(a,"year"))}),t.qZA()}if(2&n){const s=t.oxw();t.Q6J("activeDate",s.activeDate)("selected",s.selected)("dateFilter",s.dateFilter)("maxDate",s.maxDate)("minDate",s.minDate)("dateClass",s.dateClass)}}function Fe(n,d){}const Pe=["button"];function Be(n,d){1&n&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Ne=[[["","matDatepickerToggleIcon",""]]],Le=["[matDatepickerToggleIcon]"],He=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Ke=["input[matStartDate]","input[matEndDate]"];function Ze(n,d){1&n&&(t.TgZ(0,"div",0),t.Hsn(1),t.qZA())}let L=(()=>{var n;class d{constructor(){this.changes=new M.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,a){return`${e} \u2013 ${a}`}formatYearRangeLabel(e,a){return`${e} to ${a}`}}return(n=d).\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),d})();class W{constructor(d,s,e,a,i={},r=d,o){this.value=d,this.displayValue=s,this.ariaLabel=e,this.enabled=a,this.cssClasses=i,this.compareValue=r,this.rawValue=o}}let Ue=1;const oe=(0,u.i$)({passive:!1,capture:!0}),V=(0,u.i$)({passive:!0,capture:!0}),K=(0,u.i$)({passive:!0});let P=(()=>{var n;class d{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,a){this._elementRef=e,this._ngZone=a,this._platform=(0,t.f3M)(u.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this.dragStarted=new t.vpe,this.dragEnded=new t.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=i=>{if(this._skipNextFocus&&"focus"===i.type)this._skipNextFocus=!1;else if(i.target&&this.isRange){const r=this._getCellFromElement(i.target);r&&this._ngZone.run(()=>this.previewChange.emit({value:r.enabled?r:null,event:i}))}},this._touchmoveHandler=i=>{if(!this.isRange)return;const r=le(i),o=r?this._getCellFromElement(r):null;r!==i.target&&(this._didDragSinceMouseDown=!0),$(i.target)&&i.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:i}))},this._leaveHandler=i=>{null!==this.previewEnd&&this.isRange&&("blur"!==i.type&&(this._didDragSinceMouseDown=!0),i.target&&this._getCellFromElement(i.target)&&(!i.relatedTarget||!this._getCellFromElement(i.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:i})))},this._mousedownHandler=i=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const r=i.target&&this._getCellFromElement(i.target);!r||!this._isInRange(r.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:r.rawValue,event:i})})},this._mouseupHandler=i=>{if(!this.isRange)return;const r=$(i.target);r?r.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const o=this._getCellFromElement(r);this.dragEnded.emit({value:o?.rawValue??null,event:i})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:i})})},this._touchendHandler=i=>{const r=le(i);r&&this._mouseupHandler({target:r})},this._id="mat-calendar-body-"+Ue++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,a.runOutsideAngular(()=>{const i=e.nativeElement;i.addEventListener("touchmove",this._touchmoveHandler,oe),i.addEventListener("mouseenter",this._enterHandler,V),i.addEventListener("focus",this._enterHandler,V),i.addEventListener("mouseleave",this._leaveHandler,V),i.addEventListener("blur",this._leaveHandler,V),i.addEventListener("mousedown",this._mousedownHandler,K),i.addEventListener("touchstart",this._mousedownHandler,K),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,a){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:a})}_emitActiveDateChange(e,a){e.enabled&&this.activeDateChange.emit({value:e.value,event:a})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const a=e.numCols,{rows:i,numCols:r}=this;(e.rows||a)&&(this._firstRowOffset=i&&i.length&&i[0].length?r-i[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/r+"%"),(a||!this._cellWidth)&&(this._cellWidth=100/r+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,oe),e.removeEventListener("mouseenter",this._enterHandler,V),e.removeEventListener("focus",this._enterHandler,V),e.removeEventListener("mouseleave",this._leaveHandler,V),e.removeEventListener("blur",this._leaveHandler,V),e.removeEventListener("mousedown",this._mousedownHandler,K),e.removeEventListener("touchstart",this._mousedownHandler,K),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,a){let i=e*this.numCols+a;return e&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{setTimeout(()=>{const a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(e||(this._skipNextFocus=!0),a.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return X(e,this.startValue,this.endValue)}_isRangeEnd(e){return ee(e,this.startValue,this.endValue)}_isInRange(e){return te(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return X(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,i){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[a][i-1];if(!r){const o=this.rows[a-1];r=o&&o[o.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,a,i){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[a][i+1];if(!r){const o=this.rows[a+1];r=o&&o[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return ee(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return te(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return X(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ee(e,this.previewStart,this.previewEnd)}_isInPreview(e){return te(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){const a=$(e);if(a){const i=a.getAttribute("data-mat-row"),r=a.getAttribute("data-mat-col");if(i&&r)return this.rows[parseInt(i)][parseInt(r)]}return null}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275cmp=t.Xpm({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:[t.TTD],attrs:Me,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,a){1&e&&(t.YNc(0,Ee,3,6,"tr",0),t.YNc(1,Ie,3,2,"tr",1),t.TgZ(2,"label",2),t._uU(3),t.qZA(),t.TgZ(4,"label",2),t._uU(5),t.qZA()),2&e&&(t.Q6J("ngIf",a._firstRowOffset<a.labelMinRequiredCells),t.xp6(1),t.Q6J("ngForOf",a.rows),t.xp6(1),t.Q6J("id",a._startDateLabelId),t.xp6(1),t.hij(" ",a.startDateAccessibleName,"\n"),t.xp6(1),t.Q6J("id",a._endDateLabelId),t.xp6(1),t.hij(" ",a.endDateAccessibleName,"\n"))},dependencies:[v.mk,v.sg,v.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.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){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.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){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),d})();function j(n){return"TD"===n?.nodeName}function $(n){let d;return j(n)?d=n:j(n.parentNode)?d=n.parentNode:j(n.parentNode?.parentNode)&&(d=n.parentNode.parentNode),null!=d?.getAttribute("data-mat-row")?d:null}function X(n,d,s){return null!==s&&d!==s&&n<s&&n===d}function ee(n,d,s){return null!==d&&d!==s&&n>=d&&n===s}function te(n,d,s,e){return e&&null!==d&&null!==s&&d!==s&&n>=d&&n<=s}function le(n){const d=n.changedTouches[0];return document.elementFromPoint(d.clientX,d.clientY)}class f{constructor(d,s){this.start=d,this.end=s}}let I=(()=>{var n;class d{constructor(e,a){this.selection=e,this._adapter=a,this._selectionChanged=new M.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,a){const i=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:a,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return(n=d).\u0275fac=function(e){t.$Z()},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),d})(),ze=(()=>{var n;class d extends I{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new d(this._adapter);return e.updateSelection(this.selection,this),e}}return(n=d).\u0275fac=function(e){return new(e||n)(t.LFG(h._A))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),d})(),Ge=(()=>{var n;class d extends I{constructor(e){super(new f(null,null),e)}add(e){let{start:a,end:i}=this.selection;null==a?a=e:null==i?i=e:(a=e,i=null),super.updateSelection(new f(a,i),this)}isValid(){const{start:e,end:a}=this.selection;return null==e&&null==a||(null!=e&&null!=a?this._isValidDateInstance(e)&&this._isValidDateInstance(a)&&this._adapter.compareDate(e,a)<=0:(null==e||this._isValidDateInstance(e))&&(null==a||this._isValidDateInstance(a)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new d(this._adapter);return e.updateSelection(this.selection,this),e}}return(n=d).\u0275fac=function(e){return new(e||n)(t.LFG(h._A))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),d})();const ce={provide:I,deps:[[new t.FiY,new t.tp0,I],h._A],useFactory:function Je(n,d){return n||new ze(d)}},Qe={provide:I,deps:[[new t.FiY,new t.tp0,I],h._A],useFactory:function qe(n,d){return n||new Ge(d)}},Z=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let We=(()=>{var n;class d{constructor(e){this._dateAdapter=e}selectionFinished(e,a){let{start:i,end:r}=a;return null==i?i=e:null==r&&e&&this._dateAdapter.compareDate(e,i)>=0?r=e:(i=e,r=null),new f(i,r)}createPreview(e,a){let i=null,r=null;return a.start&&!a.end&&e&&(i=a.start,r=e),new f(i,r)}createDrag(e,a,i){let r=a.start,o=a.end;if(!r||!o)return null;const c=this._dateAdapter,y=0!==c.compareDate(r,o),C=c.getYear(i)-c.getYear(e),x=c.getMonth(i)-c.getMonth(e),A=c.getDate(i)-c.getDate(e);return y&&c.sameDate(e,a.start)?(r=i,c.compareDate(i,o)>0&&(o=c.addCalendarYears(o,C),o=c.addCalendarMonths(o,x),o=c.addCalendarDays(o,A))):y&&c.sameDate(e,a.end)?(o=i,c.compareDate(i,r)<0&&(r=c.addCalendarYears(r,C),r=c.addCalendarMonths(r,x),r=c.addCalendarDays(r,A))):(r=c.addCalendarYears(r,C),r=c.addCalendarMonths(r,x),r=c.addCalendarDays(r,A),o=c.addCalendarYears(o,C),o=c.addCalendarMonths(o,x),o=c.addCalendarDays(o,A)),new f(r,o)}}return(n=d).\u0275fac=function(e){return new(e||n)(t.LFG(h._A))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),d})();const $e={provide:Z,deps:[[new t.FiY,new t.tp0,Z],h._A],useFactory:function je(n,d){return n||new We(d)}};let he=(()=>{var n;class d{get activeDate(){return this._activeDate}set activeDate(e){const a=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(a,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof f?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,a,i,r,o){this._changeDetectorRef=e,this._dateFormats=a,this._dateAdapter=i,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=b.w0.EMPTY,this.activeDrag=null,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.dragStarted=new t.vpe,this.dragEnded=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,N.O)(null)).subscribe(()=>this._init())}ngOnChanges(e){const a=e.comparisonStart||e.comparisonEnd;a&&!a.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const a=e.value,i=this._getDateFromDayOfMonth(a);let r,o;this._selected instanceof f?(r=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):r=o=this._getDateInCurrentMonth(this._selected),(r!==a||o!==a)&&this.selectedChange.emit(i),this._userSelection.emit({value:i,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const i=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const a=this._activeDate,i=this._isRtl();switch(e.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case l.Ku:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case l.VM:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case l.K5:case l.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case l.hY:return void(null!=this._previewEnd&&!(0,l.Vb)(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()));default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===l.L_||e.keyCode===l.K5)&&(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=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=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=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:a}){if(this._rangeStrategy){const i=a?a.rawValue:null,r=this._rangeStrategy.createPreview(i,this.selected,e);if(this._previewStart=this._getCellCompareValue(r.start),this._previewEnd=this._getCellCompareValue(r.end),this.activeDrag&&i){const o=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,i,e);o&&(this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){const a=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:a??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(){const e=this._dateAdapter.getFirstDayOfWeek(),a=this._dateAdapter.getDayOfWeekNames("narrow");let r=this._dateAdapter.getDayOfWeekNames("long").map((o,c)=>({long:o,narrow:a[c]}));this._weekdays=r.slice(e).concat(r.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),a=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,r=this._firstWeekOffset;i<e;i++,r++){7==r&&(this._weeks.push([]),r=0);const o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i+1),c=this._shouldEnableDate(o),y=this._dateAdapter.format(o,this._dateFormats.display.dateA11yLabel),C=this.dateClass?this.dateClass(o,"month"):void 0;this._weeks[this._weeks.length-1].push(new W(i+1,a[i],y,c,C,this._getCellCompareValue(o),o))}}_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,a){return!(!e||!a||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(a)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(a))}_getCellCompareValue(e){if(e){const a=this._dateAdapter.getYear(e),i=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(a,i,r).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof f?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(h.sG,8),t.Y36(h._A,8),t.Y36(m.Is,8),t.Y36(Z,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,a){if(1&e&&t.Gf(P,5),2&e){let i;t.iGM(i=t.CRH())&&(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:[t.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,a){1&e&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,xe,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("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)}),t.qZA()()),2&e&&(t.xp6(3),t.Q6J("ngForOf",a._weekdays),t.xp6(3),t.Q6J("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:[v.sg,P],encapsulation:2,changeDetection:0}),d})();const D=24;let _e=(()=>{var n;class d{get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),ue(this._dateAdapter,a,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof f?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,a,i){this._changeDetectorRef=e,this._dateAdapter=a,this._dir=i,this._rerenderSubscription=b.w0.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,N.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const a=this._dateAdapter.getYear(this._activeDate)-H(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let i=0,r=[];i<D;i++)r.push(a+i),4==r.length&&(this._years.push(r.map(o=>this._createCellForYear(o))),r=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const a=e.value,i=this._dateAdapter.createDate(a,0,1),r=this._getDateFromYear(a);this.yearSelected.emit(i),this.selectedChange.emit(r)}_updateActiveDate(e){const i=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const a=this._activeDate,i=this._isRtl();switch(e.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-H(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,D-H(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case l.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*-D:-D);break;case l.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*D:D);break;case l.K5:case l.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===l.L_||e.keyCode===l.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return H(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const a=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,a,1));return this._dateAdapter.createDate(e,a,Math.min(this._dateAdapter.getDate(this.activeDate),i))}_createCellForYear(e){const a=this._dateAdapter.createDate(e,0,1),i=this._dateAdapter.getYearName(a),r=this.dateClass?this.dateClass(a,"multi-year"):void 0;return new W(e,i,i,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(e){if(this._selectedYear=null,e instanceof f){const a=e.start||e.end;a&&(this._selectedYear=this._dateAdapter.getYear(a))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(h._A,8),t.Y36(m.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-multi-year-view"]],viewQuery:function(e,a){if(1&e&&t.Gf(P,5),2&e){let i;t.iGM(i=t.CRH())&&(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,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,a){1&e&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t._UZ(3,"th",2),t.qZA()(),t.TgZ(4,"tbody",3),t.NdJ("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)}),t.qZA()()),2&e&&(t.xp6(4),t.Q6J("rows",a._years)("todayValue",a._todayYear)("startValue",a._selectedYear)("endValue",a._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",a._getActiveCell()))},dependencies:[P],encapsulation:2,changeDetection:0}),d})();function ue(n,d,s,e,a){const i=n.getYear(d),r=n.getYear(s),o=pe(n,e,a);return Math.floor((i-o)/D)===Math.floor((r-o)/D)}function H(n,d,s,e){return function Xe(n,d){return(n%d+d)%d}(n.getYear(d)-pe(n,s,e),D)}function pe(n,d,s){let e=0;return s?e=n.getYear(s)-D+1:d&&(e=n.getYear(d)),e}let me=(()=>{var n;class d{get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(a)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof f?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,a,i,r){this._changeDetectorRef=e,this._dateFormats=a,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=b.w0.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,N.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const a=e.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(i);const r=this._getDateFromMonth(a);this.selectedChange.emit(r)}_updateActiveDate(e){const i=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const a=this._activeDate,i=this._isRtl();switch(e.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case l.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case l.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case l.K5:case l.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===l.L_||e.keyCode===l.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(a=>a.map(i=>this._createCellForMonth(i,e[i]))),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){const a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.getNumDaysInMonth(a);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),i))}_createCellForMonth(e,a){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(i,"year"):void 0;return new W(e,a.toLocaleUpperCase(),r,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){const a=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(a,e)||this._isYearAndMonthBeforeMinDate(a,e))return!1;if(!this.dateFilter)return!0;for(let r=this._dateAdapter.createDate(a,e,1);this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,a){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>i||e===i&&a>r}return!1}_isYearAndMonthBeforeMinDate(e,a){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e<i||e===i&&a<r}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(e){this._selectedMonth=e instanceof f?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(h.sG,8),t.Y36(h._A,8),t.Y36(m.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-year-view"]],viewQuery:function(e,a){if(1&e&&t.Gf(P,5),2&e){let i;t.iGM(i=t.CRH())&&(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,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,a){1&e&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t._UZ(3,"th",2),t.qZA()(),t.TgZ(4,"tbody",3),t.NdJ("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)}),t.qZA()()),2&e&&(t.xp6(4),t.Q6J("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:[P],encapsulation:2,changeDetection:0}),d})(),et=1,tt=(()=>{var n;class d{constructor(e,a,i,r,o){this._intl=e,this.calendar=a,this._dateAdapter=i,this._dateFormats=r,this._id="mat-calendar-header-"+et++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>o.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-D)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:D)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,a){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a):ue(this._dateAdapter,e,a,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const a=this._dateAdapter.getYear(this.calendar.activeDate)-H(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),i=a+D-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1))]}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(L),t.Y36((0,t.Gpc)(()=>ne)),t.Y36(h._A,8),t.Y36(h.sG,8),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:de,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",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"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(e,a){1&e&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return a.currentPeriodClicked()}),t.TgZ(3,"span",3),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",4),t._UZ(6,"polygon",5),t.qZA()(),t.kcU(),t._UZ(7,"div",6),t.Hsn(8),t.TgZ(9,"button",7),t.NdJ("click",function(){return a.previousClicked()}),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return a.nextClicked()}),t.qZA()()(),t.TgZ(11,"label",9),t._uU(12),t.qZA()),2&e&&(t.xp6(2),t.uIk("aria-label",a.periodButtonLabel)("aria-describedby",a._periodButtonLabelId),t.xp6(2),t.Oqu(a.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==a.calendar.currentView),t.xp6(4),t.Q6J("disabled",!a.previousEnabled()),t.uIk("aria-label",a.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!a.nextEnabled()),t.uIk("aria-label",a.nextButtonLabel),t.xp6(1),t.Q6J("id",a._periodButtonLabelId),t.xp6(1),t.Oqu(a.periodButtonDescription))},dependencies:[Y.lW,Y.RK],encapsulation:2,changeDetection:0}),d})(),ne=(()=>{var n;class d{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof f?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const a=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),a&&this.viewChanged.emit(a)}constructor(e,a,i,r){this._dateAdapter=a,this._dateFormats=i,this._changeDetectorRef=r,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this._userDragDrop=new t.vpe,this._activeDrag=null,this.stateChanges=new M.x,this._intlChanges=e.changes.subscribe(()=>{r.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new w.C5(this.headerComponent||tt),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){const a=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,i=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=a||i||e.dateFilter;if(r&&!r.firstChange){const o=this._getCurrentViewComponent();o&&(this._changeDetectorRef.detectChanges(),o._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const a=e.value;(this.selected instanceof f||a&&!this._dateAdapter.sameDate(a,this.selected))&&this.selectedChange.emit(a),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,a){this.activeDate=e,this.currentView=a}_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}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(L),t.Y36(h._A,8),t.Y36(h.sG,8),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,a){if(1&e&&(t.Gf(he,5),t.Gf(me,5),t.Gf(_e,5)),2&e){let i;t.iGM(i=t.CRH())&&(a.monthView=i.first),t.iGM(i=t.CRH())&&(a.yearView=i.first),t.iGM(i=t.CRH())&&(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:[t._Bn([ce]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,a){1&e&&(t.YNc(0,Te,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,Ye,1,11,"mat-month-view",2),t.YNc(3,Re,1,6,"mat-year-view",3),t.YNc(4,Oe,1,6,"mat-multi-year-view",4),t.qZA()),2&e&&(t.Q6J("cdkPortalOutlet",a._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",a.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[v.RF,v.n9,S.kH,w.Pl,he,me,_e],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),d})();const ge={transformPanel:(0,p.X$)("transformPanel",[(0,p.eR)("void => enter-dropdown",(0,p.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,p.F4)([(0,p.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,p.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,p.eR)("void => enter-dialog",(0,p.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,p.F4)([(0,p.oB)({opacity:0,transform:"scale(0.7)"}),(0,p.oB)({transform:"none",opacity:1})]))),(0,p.eR)("* => void",(0,p.jt)("100ms linear",(0,p.oB)({opacity:0})))]),fadeInCalendar:(0,p.X$)("fadeInCalendar",[(0,p.SB)("void",(0,p.oB)({opacity:0})),(0,p.SB)("enter",(0,p.oB)({opacity:1})),(0,p.eR)("void => *",(0,p.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let at=0;const fe=new t.OlP("mat-datepicker-scroll-strategy"),nt={provide:fe,deps:[T.aV],useFactory:function it(n){return()=>n.scrollStrategies.reposition()}},rt=(0,h.pj)(class{constructor(n){this._elementRef=n}});let st=(()=>{var n;class d extends rt{constructor(e,a,i,r,o,c){super(e),this._changeDetectorRef=a,this._globalModel=i,this._dateAdapter=r,this._rangeSelectionStrategy=o,this._subscriptions=new b.w0,this._animationDone=new M.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=c.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const a=this._model.selection,i=e.value,r=a instanceof f;if(r&&this._rangeSelectionStrategy){const o=this._rangeSelectionStrategy.selectionFinished(i,a,e.event);this._model.updateSelection(o,this)}else i&&(r||!this._dateAdapter.sameDate(i,a))&&this._model.add(i);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating="start"===e.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,a){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,a&&this._changeDetectorRef.detectChanges()}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(I),t.Y36(h._A),t.Y36(Z,8),t.Y36(L))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,a){if(1&e&&t.Gf(ne,5),2&e){let i;t.iGM(i=t.CRH())&&(a._calendar=i.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,a){1&e&&t.WFA("@transformPanel.start",function(r){return a._handleAnimationEvent(r)})("@transformPanel.done",function(r){return a._handleAnimationEvent(r)}),2&e&&(t.d8E("@transformPanel",a._animationState),t.ekj("mat-datepicker-content-touch",a.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("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)}),t.qZA(),t.YNc(2,Fe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return a._closeButtonFocused=!0})("blur",function(){return a._closeButtonFocused=!1})("click",function(){return a.datepicker.close()}),t._uU(4),t.qZA()()),2&e){let i;t.ekj("mat-datepicker-content-container-with-custom-header",a.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",a._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(i=a._dialogLabelId)&&void 0!==i?i:void 0),t.xp6(1),t.Q6J("id",a.datepicker.id)("ngClass",a.datepicker.panelClass)("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)("@fadeInCalendar","enter")("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName),t.xp6(1),t.Q6J("cdkPortalOutlet",a._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!a._closeButtonFocused),t.Q6J("color",a.color||"primary"),t.xp6(1),t.Oqu(a._closeButtonText)}},dependencies:[v.mk,Y.lW,S.mK,w.Pl,ne],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[ge.transformPanel,ge.fadeInCalendar]},changeDetection:0}),d})(),R=(()=>{var n;class d{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=(0,E.Ig)(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const a=(0,E.Ig)(e);a!==this._disabled&&(this._disabled=a,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=(0,E.Ig)(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=(0,E.du)(e)}get opened(){return this._opened}set opened(e){(0,E.Ig)(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,a,i,r,o,c,y){this._overlay=e,this._ngZone=a,this._viewContainerRef=i,this._dateAdapter=o,this._dir=c,this._model=y,this._inputStateChanges=b.w0.EMPTY,this._document=(0,t.f3M)(v.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+at++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new M.x,this._scrollStrategy=r}ngOnChanges(e){const a=e.xPosition||e.yPosition;if(a&&!a.firstChange&&this._overlayRef){const i=this._overlayRef.getConfig().positionStrategy;i instanceof T._G&&(this._setConnectedPositions(i),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._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){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._focusedElementBeforeOpen=(0,u.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,a=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:i,location:r}=this._componentRef;i._startExitAnimation(),i._animationDone.pipe((0,k.q)(1)).subscribe(()=>{const o=this._document.activeElement;e&&(!o||o===this._document.activeElement||r.nativeElement.contains(o))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(a):a()}_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();const e=this.touchUi,a=new w.C5(st,this._viewContainerRef),i=this._overlayRef=this._overlay.create(new T.X_({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(i).subscribe(r=>{r&&r.preventDefault(),this.close()}),i.keydownEvents().subscribe(r=>{const o=r.keyCode;(o===l.LH||o===l.JH||o===l.oh||o===l.SV||o===l.Ku||o===l.VM)&&r.preventDefault()}),this._componentRef=i.attach(a),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>i.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const a="end"===this.xPosition?"end":"start",i="start"===a?"end":"start",r="above"===this.yPosition?"bottom":"top",o="top"===r?"bottom":"top";return e.withPositions([{originX:a,originY:o,overlayX:a,overlayY:r},{originX:a,originY:r,overlayX:a,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:o}])}_getCloseStream(e){const a=["ctrlKey","shiftKey","metaKey"];return(0,F.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,q.h)(i=>i.keyCode===l.hY&&!(0,l.Vb)(i)||this.datepickerInput&&(0,l.Vb)(i,"altKey")&&i.keyCode===l.LH&&a.every(r=>!(0,l.Vb)(i,r)))))}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(T.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(fe),t.Y36(h._A,8),t.Y36(m.Is,8),t.Y36(I))},n.\u0275dir=t.lG2({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),d})(),dt=(()=>{var n;class d extends R{}return(n=d).\u0275fac=function(){let s;return function(a){return(s||(s=t.n5z(n)))(a||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([ce,{provide:R,useExisting:n}]),t.qOj],decls:0,vars:0,template:function(e,a){},encapsulation:2,changeDetection:0}),d})();class U{constructor(d,s){this.target=d,this.targetElement=s,this.value=this.target.value}}let ve=(()=>{var n;class d{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const a=(0,E.Ig)(e),i=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0)),a&&this._isInitialized&&i.blur&&i.blur()}_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(a=>{if(this._shouldHandleChangeEvent(a)){const i=this._getValueFromModel(a.selection);this._lastValueValid=this._isValidValue(i),this._cvaOnChange(i),this._onTouched(),this._formatValue(i),this.dateInput.emit(new U(this,this._elementRef.nativeElement)),this.dateChange.emit(new U(this,this._elementRef.nativeElement))}})}constructor(e,a,i){this._elementRef=e,this._dateAdapter=a,this._dateFormats=i,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new M.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=b.w0.EMPTY,this._localeSubscription=b.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=r=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value));return!o||this._matchesFilter(o)?null:{matDatepickerFilter:!0}},this._minValidator=r=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),c=this._getMinDate();return!c||!o||this._dateAdapter.compareDate(c,o)<=0?null:{matDatepickerMin:{min:c,actual:o}}},this._maxValidator=r=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),c=this._getMaxDate();return!c||!o||this._dateAdapter.compareDate(c,o)>=0?null:{matDatepickerMax:{max:c,actual:o}}},this._lastValueValid=!1,this._localeSubscription=a.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){De(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)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){(0,l.Vb)(e,"altKey")&&e.keyCode===l.JH&&["ctrlKey","shiftKey","metaKey"].every(r=>!(0,l.Vb)(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const a=this._lastValueValid;let i=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i);const r=!this._dateAdapter.sameDate(i,this.value);!i||r?this._cvaOnChange(i):(e&&!this.value&&this._cvaOnChange(i),a!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(i),this.dateInput.emit(new U(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new U(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?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){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const a=this._getDateFilter();return!a||a(e)}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(h._A,8),t.Y36(h.sG,8))},n.\u0275dir=t.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),d})();function De(n,d){const s=Object.keys(n);for(let e of s){const{previousValue:a,currentValue:i}=n[e];if(!d.isDateInstance(a)||!d.isDateInstance(i))return!0;if(!d.sameDate(a,i))return!0}return!1}const ot={provide:g.JU,useExisting:(0,t.Gpc)(()=>re),multi:!0},lt={provide:g.Cf,useExisting:(0,t.Gpc)(()=>re),multi:!0};let re=(()=>{var n;class d extends ve{set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._validatorOnChange())}get max(){return this._max}set max(e){const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const a=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==a&&this._validatorOnChange()}constructor(e,a,i,r){super(e,a,i),this._formField=r,this._closedSubscription=b.w0.EMPTY,this._validator=g.kI.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()}_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}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(h._A,8),t.Y36(h.sG,8),t.Y36(Q.G_,8))},n.\u0275dir=t.lG2({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,a){1&e&&t.NdJ("input",function(r){return a._onInput(r.target.value)})("change",function(){return a._onChange()})("blur",function(){return a._onBlur()})("keydown",function(r){return a._onKeydown(r)}),2&e&&(t.Ikx("disabled",a.disabled),t.uIk("aria-haspopup",a._datepicker?"dialog":null)("aria-owns",(null==a._datepicker?null:a._datepicker.opened)&&a._datepicker.id||null)("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:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([ot,lt,{provide:ke.Jk,useExisting:n}]),t.qOj]}),d})(),ct=(()=>{var n;class d{}return(n=d).\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),d})(),ht=(()=>{var n;class d{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=(0,E.Ig)(e)}constructor(e,a,i){this._intl=e,this._changeDetectorRef=a,this._stateChanges=b.w0.EMPTY;const r=Number(i);this.tabIndex=r||0===r?r: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(){const e=this.datepicker?this.datepicker.stateChanges:(0,B.of)(),a=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,B.of)(),i=this.datepicker?(0,F.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,B.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,F.T)(this._intl.changes,e,a,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(L),t.Y36(t.sBO),t.$8M("tabindex"))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,a,i){if(1&e&&t.Suo(i,ct,5),2&e){let r;t.iGM(r=t.CRH())&&(a._customIcon=r.first)}},viewQuery:function(e,a){if(1&e&&t.Gf(Pe,5),2&e){let i;t.iGM(i=t.CRH())&&(a._button=i.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,a){1&e&&t.NdJ("click",function(r){return a._open(r)}),2&e&&(t.uIk("tabindex",null)("data-mat-calendar",a.datepicker?a.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",a.datepicker&&a.datepicker.opened)("mat-accent",a.datepicker&&"accent"===a.datepicker.color)("mat-warn",a.datepicker&&"warn"===a.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:Le,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",4,"ngIf"],["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(e,a){1&e&&(t.F$t(Ne),t.TgZ(0,"button",0,1),t.YNc(2,Be,2,0,"svg",2),t.Hsn(3),t.qZA()),2&e&&(t.Q6J("disabled",a.disabled)("disableRipple",a.disableRipple),t.uIk("aria-haspopup",a.datepicker?"dialog":null)("aria-label",a.ariaLabel||a._intl.openCalendarLabel)("tabindex",a.disabled?-1:a.tabIndex),t.xp6(2),t.Q6J("ngIf",!a._customIcon))},dependencies:[v.O5,Y.RK],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),d})();function _t(n){return se(n,!0)}function be(n){return n.nodeType===Node.ELEMENT_NODE}function se(n,d){if(be(n)&&d){const e=(n.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((a,i)=>{const r=document.getElementById(i);return r&&a.push(r),a},[]);if(e.length)return e.map(a=>se(a,!1)).join(" ")}if(be(n)){const s=n.getAttribute("aria-label")?.trim();if(s)return s}if(function ut(n){return"INPUT"===n.nodeName}(n)||function pt(n){return"TEXTAREA"===n.nodeName}(n)){if(n.labels?.length)return Array.from(n.labels).map(a=>se(a,!1)).join(" ");const s=n.getAttribute("placeholder")?.trim();if(s)return s;const e=n.getAttribute("title")?.trim();if(e)return e}return(n.textContent||"").replace(/\s+/g," ").trim()}const z=new t.OlP("MAT_DATE_RANGE_INPUT_PARENT"),ye=(0,h.FD)((()=>{var n;class d extends ve{constructor(e,a,i,r,o,c,y,C){super(a,y,C),this._rangeInput=e,this._elementRef=a,this._defaultErrorStateMatcher=i,this._injector=r,this._parentForm=o,this._parentFormGroup=c,this._dir=(0,t.f3M)(m.Is,{optional:!0})}ngOnInit(){const e=this._injector.get(g.a5,null,{optional:!0,self:!0});e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const e=this._elementRef.nativeElement,a=e.value;return a.length>0?a:e.placeholder}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return _t(this._elementRef.nativeElement)}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(z),t.Y36(t.SBq),t.Y36(h.rD),t.Y36(t.zs3),t.Y36(g.F,8),t.Y36(g.sg,8),t.Y36(h._A,8),t.Y36(h.sG,8))},n.\u0275dir=t.lG2({type:n,features:[t.qOj]}),d})());let Ce=(()=>{var n;class d extends ye{constructor(e,a,i,r,o,c,y,C){super(e,a,i,r,o,c,y,C),this._startValidator=x=>{const A=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(x.value)),O=this._model?this._model.selection.end:null;return!A||!O||this._dateAdapter.compareDate(A,O)<=0?null:{matStartDateInvalid:{end:O,actual:A}}},this._validator=g.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return!(!super._shouldHandleChangeEvent(e)||(e.oldValue?.start?e.selection.start&&!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!e.selection.start))}_assignValueToModel(e){if(this._model){const a=new f(e,this._model.selection.end);this._model.updateSelection(a,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_onKeydown(e){const a=this._rangeInput._endInput,i=this._elementRef.nativeElement,r="rtl"!==this._dir?.value;(e.keyCode===l.SV&&r||e.keyCode===l.oh&&!r)&&i.selectionStart===i.value.length&&i.selectionEnd===i.value.length?(e.preventDefault(),a._elementRef.nativeElement.setSelectionRange(0,0),a.focus()):super._onKeydown(e)}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(z),t.Y36(t.SBq),t.Y36(h.rD),t.Y36(t.zs3),t.Y36(g.F,8),t.Y36(g.sg,8),t.Y36(h._A,8),t.Y36(h.sG,8))},n.\u0275dir=t.lG2({type:n,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,a){1&e&&t.NdJ("input",function(r){return a._onInput(r.target.value)})("change",function(){return a._onChange()})("keydown",function(r){return a._onKeydown(r)})("blur",function(){return a._onBlur()}),2&e&&(t.Ikx("disabled",a.disabled),t.uIk("aria-haspopup",a._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==a._rangeInput.rangePicker?null:a._rangeInput.rangePicker.opened)&&a._rangeInput.rangePicker.id||null)("min",a._getMinDate()?a._dateAdapter.toIso8601(a._getMinDate()):null)("max",a._getMaxDate()?a._dateAdapter.toIso8601(a._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t._Bn([{provide:g.JU,useExisting:n,multi:!0},{provide:g.Cf,useExisting:n,multi:!0}]),t.qOj]}),d})(),Ae=(()=>{var n;class d extends ye{constructor(e,a,i,r,o,c,y,C){super(e,a,i,r,o,c,y,C),this._endValidator=x=>{const A=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(x.value)),O=this._model?this._model.selection.start:null;return!A||!O||this._dateAdapter.compareDate(A,O)>=0?null:{matEndDateInvalid:{start:O,actual:A}}},this._validator=g.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return!(!super._shouldHandleChangeEvent(e)||(e.oldValue?.end?e.selection.end&&!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!e.selection.end))}_assignValueToModel(e){if(this._model){const a=new f(this._model.selection.start,e);this._model.updateSelection(a,this)}}_onKeydown(e){const a=this._rangeInput._startInput,i=this._elementRef.nativeElement,r="rtl"!==this._dir?.value;if(e.keyCode!==l.ZH||i.value)if((e.keyCode===l.oh&&r||e.keyCode===l.SV&&!r)&&0===i.selectionStart&&0===i.selectionEnd){e.preventDefault();const o=a._elementRef.nativeElement.value.length;a._elementRef.nativeElement.setSelectionRange(o,o),a.focus()}else super._onKeydown(e);else a.focus()}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(z),t.Y36(t.SBq),t.Y36(h.rD),t.Y36(t.zs3),t.Y36(g.F,8),t.Y36(g.sg,8),t.Y36(h._A,8),t.Y36(h.sG,8))},n.\u0275dir=t.lG2({type:n,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,a){1&e&&t.NdJ("input",function(r){return a._onInput(r.target.value)})("change",function(){return a._onChange()})("keydown",function(r){return a._onKeydown(r)})("blur",function(){return a._onBlur()}),2&e&&(t.Ikx("disabled",a.disabled),t.uIk("aria-haspopup",a._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==a._rangeInput.rangePicker?null:a._rangeInput.rangePicker.opened)&&a._rangeInput.rangePicker.id||null)("min",a._getMinDate()?a._dateAdapter.toIso8601(a._getMinDate()):null)("max",a._getMaxDate()?a._dateAdapter.toIso8601(a._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t._Bn([{provide:g.JU,useExisting:n,multi:!0},{provide:g.Cf,useExisting:n,multi:!0}]),t.qOj]}),d})(),gt=0,ft=(()=>{var n;class d{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const e=this._startInput?._getPlaceholder()||"",a=this._endInput?._getPlaceholder()||"";return e||a?`${e} ${this.separator} ${a}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=(0,E.Ig)(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const a=this._startInput,i=this._endInput,r=a&&a._matchesFilter(a.value),o=i&&i._matchesFilter(a.value);this._dateFilter=e,a&&a._matchesFilter(a.value)!==r&&a._validatorOnChange(),i&&i._matchesFilter(i.value)!==o&&i._validatorOnChange()}get min(){return this._min}set min(e){const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._revalidate())}get max(){return this._max}set max(e){const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const a=(0,E.Ig)(e);a!==this._groupDisabled&&(this._groupDisabled=a,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),a=!!this._endInput&&this._endInput.isEmpty();return e&&a}constructor(e,a,i,r,o){this._changeDetectorRef=e,this._elementRef=a,this._dateAdapter=r,this._formField=o,this._closedSubscription=b.w0.EMPTY,this.id="mat-date-range-input-"+gt++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new M.x,o?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&a.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=i}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,F.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){De(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){const a="start"===e?this._startInput:this._endInput;return a?a.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(g.kI.required)}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(g.gN,10),t.Y36(h._A,8),t.Y36(Q.G_,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-date-range-input"]],contentQueries:function(e,a,i){if(1&e&&(t.Suo(i,Ce,5),t.Suo(i,Ae,5)),2&e){let r;t.iGM(r=t.CRH())&&(a._startInput=r.first),t.iGM(r=t.CRH())&&(a._endInput=r.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,a){2&e&&(t.uIk("id",a.id)("aria-labelledby",a._getAriaLabelledby())("aria-describedby",a._ariaDescribedBy)("data-mat-calendar",a.rangePicker?a.rangePicker.id:null),t.ekj("mat-date-range-input-hide-placeholders",a._shouldHidePlaceholders())("mat-date-range-input-required",a.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[t._Bn([{provide:Q.Eo,useExisting:n},{provide:z,useExisting:n}]),t.TTD],ngContentSelectors:Ke,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(e,a){1&e&&(t.F$t(He),t.TgZ(0,"div",0),t.NdJ("cdkFocusChange",function(r){return a._updateFocus(r)}),t.TgZ(1,"div",1),t.Hsn(2),t.TgZ(3,"span",2),t._uU(4),t.qZA()(),t.TgZ(5,"span",3),t._uU(6),t.qZA(),t.TgZ(7,"div",4),t.Hsn(8,1),t.TgZ(9,"span",2),t._uU(10),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(a._getInputMirrorValue("start")),t.xp6(1),t.ekj("mat-date-range-input-separator-hidden",a._shouldHideSeparator()),t.xp6(1),t.Oqu(a.separator),t.xp6(4),t.Oqu(a._getInputMirrorValue("end")))},dependencies:[S.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color)}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color)}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),d})(),vt=(()=>{var n;class d extends R{_forwardContentValues(e){super._forwardContentValues(e);const a=this.datepickerInput;a&&(e.comparisonStart=a.comparisonStart,e.comparisonEnd=a.comparisonEnd,e.startDateAccessibleName=a._getStartDateAccessibleName(),e.endDateAccessibleName=a._getEndDateAccessibleName())}}return(n=d).\u0275fac=function(){let s;return function(a){return(s||(s=t.n5z(n)))(a||n)}}(),n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[t._Bn([Qe,$e,{provide:R,useExisting:n}]),t.qOj],decls:0,vars:0,template:function(e,a){},encapsulation:2,changeDetection:0}),d})(),Dt=(()=>{var n;class d{constructor(e){this._datepicker=e}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(R))},n.\u0275dir=t.lG2({type:n,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(e,a){1&e&&t.NdJ("click",function(){return a._applySelection()})}}),d})(),bt=(()=>{var n;class d{constructor(e){this._datepicker=e}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(R))},n.\u0275dir=t.lG2({type:n,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(e,a){1&e&&t.NdJ("click",function(){return a._datepicker.close()})}}),d})(),yt=(()=>{var n;class d{constructor(e,a){this._datepicker=e,this._viewContainerRef=a}ngAfterViewInit(){this._portal=new w.UE(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}}return(n=d).\u0275fac=function(e){return new(e||n)(t.Y36(R),t.Y36(t.s_b))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(e,a){if(1&e&&t.Gf(t.Rgc,5),2&e){let i;t.iGM(i=t.CRH())&&(a._template=i.first)}},ngContentSelectors:de,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(e,a){1&e&&(t.F$t(),t.YNc(0,Ze,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),d})(),Ct=(()=>{var n;class d{}return(n=d).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[L,nt],imports:[v.ez,Y.ot,T.U8,S.rt,w.eL,h.BQ,J.ZD]}),d})()}}]);