marketplacepos 3.19.3 → 3.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/Marketplace/3rdpartylicenses.txt +12 -12
  2. package/Marketplace/{chunk-O5MOPAT5.js → chunk-2E5AKA74.js} +1 -1
  3. package/Marketplace/chunk-2FRMUOJY.js +15 -0
  4. package/Marketplace/{chunk-ZWDUUAFA.js → chunk-2L6CZFW7.js} +1 -1
  5. package/Marketplace/{chunk-CTKEWRX4.js → chunk-2SC3HO66.js} +1 -1
  6. package/Marketplace/chunk-2V4K6SEC.js +1 -0
  7. package/Marketplace/{chunk-CHPESC5O.js → chunk-33L2SBIN.js} +1 -1
  8. package/Marketplace/chunk-47PEHCOU.js +1 -0
  9. package/Marketplace/{chunk-3XWOT6GZ.js → chunk-4CEFDQPI.js} +1 -1
  10. package/Marketplace/{chunk-E4XM7VHY.js → chunk-4O74KBBT.js} +1 -1
  11. package/Marketplace/{chunk-JKF36COK.js → chunk-5HY6FBUD.js} +1 -1
  12. package/Marketplace/{chunk-S36U4I4O.js → chunk-65RMQ5Q5.js} +1 -1
  13. package/Marketplace/{chunk-ATJPUUZQ.js → chunk-6UDYSYXW.js} +1 -1
  14. package/Marketplace/{chunk-AHA2WBEK.js → chunk-7V2SU4MA.js} +1 -1
  15. package/Marketplace/{chunk-WVKDNFEM.js → chunk-7VKIP3Z6.js} +2 -2
  16. package/Marketplace/chunk-7WUKCDMC.js +1 -0
  17. package/Marketplace/{chunk-K6H25CD6.js → chunk-7YWHTN3X.js} +1 -1
  18. package/Marketplace/{chunk-W3POM6UQ.js → chunk-A37OKNC2.js} +1 -1
  19. package/Marketplace/{chunk-HRB6G2LU.js → chunk-ALKBIH7J.js} +2 -2
  20. package/Marketplace/{chunk-4URWFKAM.js → chunk-BGWVHGAY.js} +1 -1
  21. package/Marketplace/{chunk-3LSSEMTW.js → chunk-BKFG7NIB.js} +1 -1
  22. package/Marketplace/{chunk-M4JG6342.js → chunk-BTY6PS53.js} +1 -1
  23. package/Marketplace/chunk-BZPMSXEO.js +9 -0
  24. package/Marketplace/{chunk-4QK7Y7R2.js → chunk-C6QIBOCB.js} +1 -1
  25. package/Marketplace/{chunk-3TNPJNQS.js → chunk-CJILX5R7.js} +1 -1
  26. package/Marketplace/{chunk-PYBQPNRY.js → chunk-D6L7HUOY.js} +1 -1
  27. package/Marketplace/{chunk-3ZQBMP7R.js → chunk-D76K4RZ7.js} +1 -1
  28. package/Marketplace/chunk-DA5WII5E.js +2 -0
  29. package/Marketplace/{chunk-GXHE2CDH.js → chunk-DQIP7MCZ.js} +1 -1
  30. package/Marketplace/{chunk-73DE2GZF.js → chunk-DYLT6RRK.js} +1 -1
  31. package/Marketplace/{chunk-GP6U42SV.js → chunk-E5BOLHDG.js} +1 -1
  32. package/Marketplace/{chunk-3UKBESDQ.js → chunk-EGYILQWG.js} +1 -1
  33. package/Marketplace/{chunk-6NTRXLMW.js → chunk-EIBGI6U2.js} +1 -1
  34. package/Marketplace/{chunk-GEOZCTY6.js → chunk-EN6KXWCY.js} +1 -1
  35. package/Marketplace/chunk-EXZPDDOY.js +1 -0
  36. package/Marketplace/{chunk-X4WLRMDP.js → chunk-FTHTFVHH.js} +1 -1
  37. package/Marketplace/{chunk-XNGU3O4O.js → chunk-GNY5TY3R.js} +1 -1
  38. package/Marketplace/{chunk-RVVTVU4B.js → chunk-GQG2K3LS.js} +1 -1
  39. package/Marketplace/{chunk-2ORPFPW3.js → chunk-HCJ6C5OR.js} +1 -1
  40. package/Marketplace/{chunk-PBJG5QAA.js → chunk-HHIG3XFB.js} +1 -1
  41. package/Marketplace/{chunk-G3NZDAHG.js → chunk-HOTEJTGP.js} +1 -1
  42. package/Marketplace/chunk-IG57OCJS.js +9 -0
  43. package/Marketplace/{chunk-FZDYEHNC.js → chunk-IIPI4CHY.js} +1 -1
  44. package/Marketplace/chunk-JEC3SZTG.js +1 -0
  45. package/Marketplace/{chunk-NVF24LK5.js → chunk-JHYIHRQH.js} +1 -1
  46. package/Marketplace/{chunk-IIANF3VA.js → chunk-JUWM7ABO.js} +1 -1
  47. package/Marketplace/{chunk-WH3FZ3VM.js → chunk-JY3L4RUM.js} +1 -1
  48. package/Marketplace/{chunk-44IWQ2WK.js → chunk-KZ6AD6KW.js} +1 -1
  49. package/Marketplace/{chunk-KGSUB5OH.js → chunk-L4BFVIW5.js} +1 -1
  50. package/Marketplace/{chunk-2C32PU5X.js → chunk-LAQL3BQZ.js} +1 -1
  51. package/Marketplace/chunk-MADSP2BP.js +52 -0
  52. package/Marketplace/{chunk-VZHIFACR.js → chunk-MKJON4UM.js} +1 -1
  53. package/Marketplace/{chunk-BH2R22DH.js → chunk-ML2BGDS4.js} +1 -1
  54. package/Marketplace/{chunk-3ORAGDUV.js → chunk-MZNSPLFO.js} +1 -1
  55. package/Marketplace/{chunk-XMQ2CMLS.js → chunk-NAZU3HCR.js} +1 -1
  56. package/Marketplace/chunk-NNXYTNL6.js +1 -0
  57. package/Marketplace/{chunk-OIQXRKAG.js → chunk-OTR5MBON.js} +1 -1
  58. package/Marketplace/{chunk-BTXJZOGD.js → chunk-PTFQX4VB.js} +1 -1
  59. package/Marketplace/{chunk-ACYUSHMS.js → chunk-PYD2YWAN.js} +1 -1
  60. package/Marketplace/chunk-QNEE46MU.js +3 -0
  61. package/Marketplace/{chunk-NF2ANZGK.js → chunk-QYY5XVLP.js} +1 -1
  62. package/Marketplace/{chunk-LVFJFYVO.js → chunk-RDSLGGC4.js} +1 -1
  63. package/Marketplace/{chunk-4ULJZM2I.js → chunk-SQTY2CZY.js} +1 -1
  64. package/Marketplace/{chunk-AUCIW6VR.js → chunk-TE62OPBT.js} +1 -1
  65. package/Marketplace/{chunk-IDJG7E4L.js → chunk-TVRLQACG.js} +1 -1
  66. package/Marketplace/{chunk-FMYZSZEX.js → chunk-ULELZXI5.js} +1 -1
  67. package/Marketplace/{chunk-R6PEAOIJ.js → chunk-V64ZU2C6.js} +1 -1
  68. package/Marketplace/{chunk-ONKOEBKR.js → chunk-VBCIYCOF.js} +1 -1
  69. package/Marketplace/{chunk-4YCZLOHQ.js → chunk-WKSTGJK5.js} +1 -1
  70. package/Marketplace/{chunk-I7OLAB5O.js → chunk-WTMUHE4V.js} +1 -1
  71. package/Marketplace/{chunk-WUCXNOY6.js → chunk-XG2DR4LW.js} +1 -1
  72. package/Marketplace/{chunk-URIDNNCK.js → chunk-XQQPMC44.js} +1 -1
  73. package/Marketplace/chunk-XUOIJTB4.js +1 -0
  74. package/Marketplace/{chunk-LV34VUJQ.js → chunk-XUSY2QT2.js} +1 -1
  75. package/Marketplace/{chunk-JHJNKEH6.js → chunk-XWXDJLRN.js} +1 -1
  76. package/Marketplace/{chunk-K62KUEI5.js → chunk-XYJNR26Y.js} +1 -1
  77. package/Marketplace/{chunk-YJFARXIC.js → chunk-YCTTFHDT.js} +1 -1
  78. package/Marketplace/{chunk-CGUWFGH3.js → chunk-YCVNABR6.js} +1 -1
  79. package/Marketplace/chunk-YVTEU2IF.js +14 -0
  80. package/Marketplace/chunk-ZA7FXMFZ.js +3 -0
  81. package/Marketplace/chunk-ZIZWZZ4E.js +8 -0
  82. package/Marketplace/chunk-ZX3SBNZT.js +3 -0
  83. package/Marketplace/index.html +3 -3
  84. package/Marketplace/{main-UMNDP57A.js → main-AEC57EMC.js} +1 -1
  85. package/package.json +1 -1
  86. package/Marketplace/chunk-6UK5EDKC.js +0 -5
  87. package/Marketplace/chunk-76GYL4GA.js +0 -1
  88. package/Marketplace/chunk-BFEEK5YU.js +0 -1
  89. package/Marketplace/chunk-BLH75XXY.js +0 -9
  90. package/Marketplace/chunk-CSYQB3ZA.js +0 -1
  91. package/Marketplace/chunk-HSFUKC7R.js +0 -8
  92. package/Marketplace/chunk-KRKQFGMS.js +0 -1
  93. package/Marketplace/chunk-NEQN5BMS.js +0 -15
  94. package/Marketplace/chunk-SNTDL3ZC.js +0 -22
  95. package/Marketplace/chunk-X6J6RWD3.js +0 -1
  96. package/Marketplace/chunk-XH22CID4.js +0 -2
  97. package/Marketplace/chunk-ZPFSBV72.js +0 -3
@@ -1,3 +1,3 @@
1
- import{a as Zt}from"./chunk-73DE2GZF.js";import{a as ct,b as ht,c as Xt}from"./chunk-M4JG6342.js";import{c as Ut,d as lt}from"./chunk-6NTRXLMW.js";import{f as zt,g as dt,j as ot,k as Kt,l as Qt,o as qt,p as fe,s as $t}from"./chunk-CTKEWRX4.js";import{E as st,F as Ht,G as ee,K as Wt,L as Gt,N as _,O as T,Q as Ke,f as Nt,g as J,h as Lt,j as ze,o as jt,z as Bt}from"./chunk-GXHE2CDH.js";import{a as Le,d as je,e as me,f as Pt,g as Yt,k as Be,p as He}from"./chunk-O5MOPAT5.js";import{$ as te,$a as f,A as le,B as wt,Bb as Oe,Cb as P,Db as V,Dc as Ot,Eb as E,I as At,Ia as c,Ib as D,Ja as o,Jb as Y,Ka as Vt,Kb as ae,Mb as Pe,Nb as Ye,Ob as Ne,Pa as Je,Pb as Q,Qb as x,Ra as et,S as Ae,Sa as Et,Ua as tt,Wa as X,Ya as ce,Za as Z,_ as ke,_a as b,a as y,aa as kt,ab as Ee,ad as it,ba as Me,bb as R,bd as _e,c as j,ca as Se,da as B,db as at,ea as Ie,ed as q,fa as Ve,fd as nt,ga as I,gb as he,gd as rt,ha as Mt,hd as ge,ia as H,jb as xe,jc as F,kb as Fe,kc as N,lb as h,mb as u,n as we,na as z,nb as K,oa as C,pa as w,qa as Xe,ra as St,rb as ue,rc as Rt,sa as Ze,sb as Re,ta as It,tb as xt,tc as Tt,ua as U,ub as v,vb as Ft,wb as m,xb as Te,ya as O,yb as pe,za as p}from"./chunk-HSFUKC7R.js";var ba=["mat-calendar-body",""];function Da(r,n){return this._trackRow(n)}var da=(r,n)=>n.id;function ya(r,n){if(r&1&&(h(0,"tr",0)(1,"td",3),D(2),u()()),r&2){let d=m();c(),Ee("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),b("colspan",d.numCols),c(),ae(" ",d.label," ")}}function Ca(r,n){if(r&1&&(h(0,"td",3),D(1),u()),r&2){let d=m(2);Ee("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),b("colspan",d._firstRowOffset),c(),ae(" ",d._firstRowOffset>=d.labelMinRequiredCells?d.label:""," ")}}function wa(r,n){if(r&1){let d=ue();h(0,"td",6)(1,"button",7),v("click",function(a){let t=C(d).$implicit,i=m(2);return w(i._cellClicked(t,a))})("focus",function(a){let t=C(d).$implicit,i=m(2);return w(i._emitActiveDateChange(t,a))}),h(2,"span",8),D(3),u(),K(4,"span",9),u()()}if(r&2){let d=n.$implicit,e=n.$index,a=m().$index,t=m();Ee("width",t._cellWidth)("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),b("data-mat-row",a)("data-mat-col",e),c(),R("mat-calendar-body-disabled",!d.enabled)("mat-calendar-body-active",t._isActiveCell(a,e))("mat-calendar-body-range-start",t._isRangeStart(d.compareValue))("mat-calendar-body-range-end",t._isRangeEnd(d.compareValue))("mat-calendar-body-in-range",t._isInRange(d.compareValue))("mat-calendar-body-comparison-bridge-start",t._isComparisonBridgeStart(d.compareValue,a,e))("mat-calendar-body-comparison-bridge-end",t._isComparisonBridgeEnd(d.compareValue,a,e))("mat-calendar-body-comparison-start",t._isComparisonStart(d.compareValue))("mat-calendar-body-comparison-end",t._isComparisonEnd(d.compareValue))("mat-calendar-body-in-comparison-range",t._isInComparisonRange(d.compareValue))("mat-calendar-body-preview-start",t._isPreviewStart(d.compareValue))("mat-calendar-body-preview-end",t._isPreviewEnd(d.compareValue))("mat-calendar-body-in-preview",t._isInPreview(d.compareValue)),f("ngClass",d.cssClasses)("tabindex",t._isActiveCell(a,e)?0:-1),b("aria-label",d.ariaLabel)("aria-disabled",!d.enabled||null)("aria-pressed",t._isSelected(d.compareValue))("aria-current",t.todayValue===d.compareValue?"date":null)("aria-describedby",t._getDescribedby(d.compareValue)),c(),R("mat-calendar-body-selected",t._isSelected(d.compareValue))("mat-calendar-body-comparison-identical",t._isComparisonIdentical(d.compareValue))("mat-calendar-body-today",t.todayValue===d.compareValue),c(),ae(" ",d.displayValue," ")}}function Aa(r,n){if(r&1&&(h(0,"tr",1),Z(1,Ca,2,6,"td",4),xe(2,wa,5,48,"td",5,da),u()),r&2){let d=n.$implicit,e=n.$index,a=m();c(),he(e===0&&a._firstRowOffset?1:-1),c(),Fe(d)}}function ka(r,n){if(r&1&&(h(0,"th",2)(1,"span",6),D(2),u(),h(3,"span",3),D(4),u()()),r&2){let d=n.$implicit;c(2),Y(d.long),c(2),Y(d.narrow)}}var Ma=["*"];function Sa(r,n){}function Ia(r,n){if(r&1){let d=ue();h(0,"mat-month-view",4),Ne("activeDateChange",function(a){C(d);let t=m();return Ye(t.activeDate,a)||(t.activeDate=a),w(a)}),v("_userSelection",function(a){C(d);let t=m();return w(t._dateSelected(a))})("dragStarted",function(a){C(d);let t=m();return w(t._dragStarted(a))})("dragEnded",function(a){C(d);let t=m();return w(t._dragEnded(a))}),u()}if(r&2){let d=m();Pe("activeDate",d.activeDate),f("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)("comparisonStart",d.comparisonStart)("comparisonEnd",d.comparisonEnd)("startDateAccessibleName",d.startDateAccessibleName)("endDateAccessibleName",d.endDateAccessibleName)("activeDrag",d._activeDrag)}}function Va(r,n){if(r&1){let d=ue();h(0,"mat-year-view",5),Ne("activeDateChange",function(a){C(d);let t=m();return Ye(t.activeDate,a)||(t.activeDate=a),w(a)}),v("monthSelected",function(a){C(d);let t=m();return w(t._monthSelectedInYearView(a))})("selectedChange",function(a){C(d);let t=m();return w(t._goToDateInView(a,"month"))}),u()}if(r&2){let d=m();Pe("activeDate",d.activeDate),f("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)}}function Ea(r,n){if(r&1){let d=ue();h(0,"mat-multi-year-view",6),Ne("activeDateChange",function(a){C(d);let t=m();return Ye(t.activeDate,a)||(t.activeDate=a),w(a)}),v("yearSelected",function(a){C(d);let t=m();return w(t._yearSelectedInMultiYearView(a))})("selectedChange",function(a){C(d);let t=m();return w(t._goToDateInView(a,"year"))}),u()}if(r&2){let d=m();Pe("activeDate",d.activeDate),f("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)}}function xa(r,n){}var Fa=["button"],Ra=[[["","matDatepickerToggleIcon",""]]],Ta=["[matDatepickerToggleIcon]"];function Oa(r,n){r&1&&(Xe(),h(0,"svg",2),K(1,"path",3),u())}var Pa=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Ya=["input[matStartDate]","input[matEndDate]"];var Ce=(()=>{let n=class n{constructor(){this.changes=new j,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}`}};n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})(),Na=0,De=class{constructor(n,d,e,a,t={},i=n,s){this.value=n,this.displayValue=d,this.ariaLabel=e,this.enabled=a,this.cssClasses=t,this.compareValue=i,this.rawValue=s,this.id=Na++}},La=1,Jt=ze({passive:!1,capture:!0}),$=ze({passive:!0,capture:!0}),Qe=ze({passive:!0}),se=(()=>{let n=class n{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,a){this._elementRef=e,this._ngZone=a,this._platform=B(Lt),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p,this.previewChange=new p,this.activeDateChange=new p,this.dragStarted=new p,this.dragEnded=new p,this._didDragSinceMouseDown=!1,this._injector=B(U),this._trackRow=t=>t,this._enterHandler=t=>{if(this._skipNextFocus&&t.type==="focus"){this._skipNextFocus=!1;return}if(t.target&&this.isRange){let i=this._getCellFromElement(t.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:t}))}},this._touchmoveHandler=t=>{if(!this.isRange)return;let i=ea(t),s=i?this._getCellFromElement(i):null;i!==t.target&&(this._didDragSinceMouseDown=!0),pt(t.target)&&t.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:t}))},this._leaveHandler=t=>{this.previewEnd!==null&&this.isRange&&(t.type!=="blur"&&(this._didDragSinceMouseDown=!0),t.target&&this._getCellFromElement(t.target)&&!(t.relatedTarget&&this._getCellFromElement(t.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t})))},this._mousedownHandler=t=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=t.target&&this._getCellFromElement(t.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:t})})},this._mouseupHandler=t=>{if(!this.isRange)return;let i=pt(t.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:t})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(i);this.dragEnded.emit({value:s?.rawValue??null,event:t})})},this._touchendHandler=t=>{let i=ea(t);i&&this._mouseupHandler({target:i})},this._id=`mat-calendar-body-${La++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,a.runOutsideAngular(()=>{let t=e.nativeElement;t.addEventListener("touchmove",this._touchmoveHandler,Jt),t.addEventListener("mouseenter",this._enterHandler,$),t.addEventListener("focus",this._enterHandler,$),t.addEventListener("mouseleave",this._leaveHandler,$),t.addEventListener("blur",this._leaveHandler,$),t.addEventListener("mousedown",this._mousedownHandler,Qe),t.addEventListener("touchstart",this._mousedownHandler,Qe),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){let a=e.numCols,{rows:t,numCols:i}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?i-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Jt),e.removeEventListener("mouseenter",this._enterHandler,$),e.removeEventListener("focus",this._enterHandler,$),e.removeEventListener("mouseleave",this._leaveHandler,$),e.removeEventListener("blur",this._leaveHandler,$),e.removeEventListener("mousedown",this._mousedownHandler,Qe),e.removeEventListener("touchstart",this._mousedownHandler,Qe),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,a){let t=e*this.numCols+a;return e&&(t-=this._firstRowOffset),t==this.activeCell}_focusActiveCell(e=!0){et(()=>{setTimeout(()=>{let a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(e||(this._skipNextFocus=!0),a.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return mt(e,this.startValue,this.endValue)}_isRangeEnd(e){return _t(e,this.startValue,this.endValue)}_isInRange(e){return gt(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return mt(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[a][t-1];if(!i){let s=this.rows[a-1];i=s&&s[s.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[a][t+1];if(!i){let s=this.rows[a+1];i=s&&s[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return _t(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return gt(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return mt(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return _t(e,this.previewStart,this.previewEnd)}_isInPreview(e){return gt(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){let a=pt(e);if(a){let t=a.getAttribute("data-mat-row"),i=a.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}};n.\u0275fac=function(a){return new(a||n)(o(O),o(Je))},n.\u0275cmp=I({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"],standalone:!0,features:[z,x],attrs:ba,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,t){a&1&&(Z(0,ya,3,6,"tr",0),xe(1,Aa,4,1,"tr",1,Da,!0),h(3,"label",2),D(4),u(),h(5,"label",2),D(6),u()),a&2&&(he(t._firstRowOffset<t.labelMinRequiredCells?0:-1),c(),Fe(t.rows),c(2),f("id",t._startDateLabelId),c(),ae(" ",t.startDateAccessibleName,`
1
+ import{a as Zt}from"./chunk-DYLT6RRK.js";import{a as ct,b as ht,c as Xt}from"./chunk-BTY6PS53.js";import{c as Ut,d as lt}from"./chunk-EIBGI6U2.js";import{f as zt,g as dt,j as ot,k as Kt,l as Qt,o as qt,p as fe,s as $t}from"./chunk-2SC3HO66.js";import{E as st,F as Ht,G as ee,K as Wt,L as Gt,N as _,O as T,Q as Ke,f as Nt,g as J,h as Lt,j as ze,o as jt,z as Bt}from"./chunk-DQIP7MCZ.js";import{a as Le,d as je,e as me,f as Pt,g as Yt,k as Be,p as He}from"./chunk-2E5AKA74.js";import{$ as te,$a as b,A as le,B as wt,Cb as Oe,Db as P,Eb as V,Fb as E,Fc as Ot,I as At,Ja as c,Jb as D,Ka as o,Kb as Y,La as Vt,Lb as ae,Nb as Pe,Ob as Ye,Pb as Ne,Qa as Je,Qb as Q,Rb as x,S as Ae,Sa as et,Ta as Et,Va as tt,Xa as X,Za as ce,_ as ke,_a as Z,a as y,aa as kt,ab as f,ba as Me,bb as Ee,c as j,ca as Se,cb as R,cd as it,da as B,dd as _e,ea as Ie,eb as at,fa as Ve,ga as I,gd as q,ha as Mt,hb as he,hd as nt,ia as H,id as rt,jd as ge,kb as xe,lb as Fe,lc as F,mb as h,mc as N,n as we,na as z,nb as u,oa as C,ob as K,pa as w,qa as Xe,ra as St,sa as Ze,sb as ue,ta as It,tb as Re,tc as Rt,ua as U,ub as xt,vb as v,vc as Tt,wb as Ft,xb as m,ya as O,yb as Te,za as p,zb as pe}from"./chunk-ZIZWZZ4E.js";var ba=["mat-calendar-body",""];function Da(r,n){return this._trackRow(n)}var da=(r,n)=>n.id;function ya(r,n){if(r&1&&(h(0,"tr",0)(1,"td",3),D(2),u()()),r&2){let d=m();c(),Ee("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),b("colspan",d.numCols),c(),ae(" ",d.label," ")}}function Ca(r,n){if(r&1&&(h(0,"td",3),D(1),u()),r&2){let d=m(2);Ee("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),b("colspan",d._firstRowOffset),c(),ae(" ",d._firstRowOffset>=d.labelMinRequiredCells?d.label:""," ")}}function wa(r,n){if(r&1){let d=ue();h(0,"td",6)(1,"button",7),v("click",function(a){let t=C(d).$implicit,i=m(2);return w(i._cellClicked(t,a))})("focus",function(a){let t=C(d).$implicit,i=m(2);return w(i._emitActiveDateChange(t,a))}),h(2,"span",8),D(3),u(),K(4,"span",9),u()()}if(r&2){let d=n.$implicit,e=n.$index,a=m().$index,t=m();Ee("width",t._cellWidth)("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),b("data-mat-row",a)("data-mat-col",e),c(),R("mat-calendar-body-disabled",!d.enabled)("mat-calendar-body-active",t._isActiveCell(a,e))("mat-calendar-body-range-start",t._isRangeStart(d.compareValue))("mat-calendar-body-range-end",t._isRangeEnd(d.compareValue))("mat-calendar-body-in-range",t._isInRange(d.compareValue))("mat-calendar-body-comparison-bridge-start",t._isComparisonBridgeStart(d.compareValue,a,e))("mat-calendar-body-comparison-bridge-end",t._isComparisonBridgeEnd(d.compareValue,a,e))("mat-calendar-body-comparison-start",t._isComparisonStart(d.compareValue))("mat-calendar-body-comparison-end",t._isComparisonEnd(d.compareValue))("mat-calendar-body-in-comparison-range",t._isInComparisonRange(d.compareValue))("mat-calendar-body-preview-start",t._isPreviewStart(d.compareValue))("mat-calendar-body-preview-end",t._isPreviewEnd(d.compareValue))("mat-calendar-body-in-preview",t._isInPreview(d.compareValue)),f("ngClass",d.cssClasses)("tabindex",t._isActiveCell(a,e)?0:-1),b("aria-label",d.ariaLabel)("aria-disabled",!d.enabled||null)("aria-pressed",t._isSelected(d.compareValue))("aria-current",t.todayValue===d.compareValue?"date":null)("aria-describedby",t._getDescribedby(d.compareValue)),c(),R("mat-calendar-body-selected",t._isSelected(d.compareValue))("mat-calendar-body-comparison-identical",t._isComparisonIdentical(d.compareValue))("mat-calendar-body-today",t.todayValue===d.compareValue),c(),ae(" ",d.displayValue," ")}}function Aa(r,n){if(r&1&&(h(0,"tr",1),Z(1,Ca,2,6,"td",4),xe(2,wa,5,48,"td",5,da),u()),r&2){let d=n.$implicit,e=n.$index,a=m();c(),he(e===0&&a._firstRowOffset?1:-1),c(),Fe(d)}}function ka(r,n){if(r&1&&(h(0,"th",2)(1,"span",6),D(2),u(),h(3,"span",3),D(4),u()()),r&2){let d=n.$implicit;c(2),Y(d.long),c(2),Y(d.narrow)}}var Ma=["*"];function Sa(r,n){}function Ia(r,n){if(r&1){let d=ue();h(0,"mat-month-view",4),Ne("activeDateChange",function(a){C(d);let t=m();return Ye(t.activeDate,a)||(t.activeDate=a),w(a)}),v("_userSelection",function(a){C(d);let t=m();return w(t._dateSelected(a))})("dragStarted",function(a){C(d);let t=m();return w(t._dragStarted(a))})("dragEnded",function(a){C(d);let t=m();return w(t._dragEnded(a))}),u()}if(r&2){let d=m();Pe("activeDate",d.activeDate),f("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)("comparisonStart",d.comparisonStart)("comparisonEnd",d.comparisonEnd)("startDateAccessibleName",d.startDateAccessibleName)("endDateAccessibleName",d.endDateAccessibleName)("activeDrag",d._activeDrag)}}function Va(r,n){if(r&1){let d=ue();h(0,"mat-year-view",5),Ne("activeDateChange",function(a){C(d);let t=m();return Ye(t.activeDate,a)||(t.activeDate=a),w(a)}),v("monthSelected",function(a){C(d);let t=m();return w(t._monthSelectedInYearView(a))})("selectedChange",function(a){C(d);let t=m();return w(t._goToDateInView(a,"month"))}),u()}if(r&2){let d=m();Pe("activeDate",d.activeDate),f("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)}}function Ea(r,n){if(r&1){let d=ue();h(0,"mat-multi-year-view",6),Ne("activeDateChange",function(a){C(d);let t=m();return Ye(t.activeDate,a)||(t.activeDate=a),w(a)}),v("yearSelected",function(a){C(d);let t=m();return w(t._yearSelectedInMultiYearView(a))})("selectedChange",function(a){C(d);let t=m();return w(t._goToDateInView(a,"year"))}),u()}if(r&2){let d=m();Pe("activeDate",d.activeDate),f("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)}}function xa(r,n){}var Fa=["button"],Ra=[[["","matDatepickerToggleIcon",""]]],Ta=["[matDatepickerToggleIcon]"];function Oa(r,n){r&1&&(Xe(),h(0,"svg",2),K(1,"path",3),u())}var Pa=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Ya=["input[matStartDate]","input[matEndDate]"];var Ce=(()=>{let n=class n{constructor(){this.changes=new j,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}`}};n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})(),Na=0,De=class{constructor(n,d,e,a,t={},i=n,s){this.value=n,this.displayValue=d,this.ariaLabel=e,this.enabled=a,this.cssClasses=t,this.compareValue=i,this.rawValue=s,this.id=Na++}},La=1,Jt=ze({passive:!1,capture:!0}),$=ze({passive:!0,capture:!0}),Qe=ze({passive:!0}),se=(()=>{let n=class n{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,a){this._elementRef=e,this._ngZone=a,this._platform=B(Lt),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p,this.previewChange=new p,this.activeDateChange=new p,this.dragStarted=new p,this.dragEnded=new p,this._didDragSinceMouseDown=!1,this._injector=B(U),this._trackRow=t=>t,this._enterHandler=t=>{if(this._skipNextFocus&&t.type==="focus"){this._skipNextFocus=!1;return}if(t.target&&this.isRange){let i=this._getCellFromElement(t.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:t}))}},this._touchmoveHandler=t=>{if(!this.isRange)return;let i=ea(t),s=i?this._getCellFromElement(i):null;i!==t.target&&(this._didDragSinceMouseDown=!0),pt(t.target)&&t.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:t}))},this._leaveHandler=t=>{this.previewEnd!==null&&this.isRange&&(t.type!=="blur"&&(this._didDragSinceMouseDown=!0),t.target&&this._getCellFromElement(t.target)&&!(t.relatedTarget&&this._getCellFromElement(t.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t})))},this._mousedownHandler=t=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=t.target&&this._getCellFromElement(t.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:t})})},this._mouseupHandler=t=>{if(!this.isRange)return;let i=pt(t.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:t})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(i);this.dragEnded.emit({value:s?.rawValue??null,event:t})})},this._touchendHandler=t=>{let i=ea(t);i&&this._mouseupHandler({target:i})},this._id=`mat-calendar-body-${La++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,a.runOutsideAngular(()=>{let t=e.nativeElement;t.addEventListener("touchmove",this._touchmoveHandler,Jt),t.addEventListener("mouseenter",this._enterHandler,$),t.addEventListener("focus",this._enterHandler,$),t.addEventListener("mouseleave",this._leaveHandler,$),t.addEventListener("blur",this._leaveHandler,$),t.addEventListener("mousedown",this._mousedownHandler,Qe),t.addEventListener("touchstart",this._mousedownHandler,Qe),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){let a=e.numCols,{rows:t,numCols:i}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?i-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Jt),e.removeEventListener("mouseenter",this._enterHandler,$),e.removeEventListener("focus",this._enterHandler,$),e.removeEventListener("mouseleave",this._leaveHandler,$),e.removeEventListener("blur",this._leaveHandler,$),e.removeEventListener("mousedown",this._mousedownHandler,Qe),e.removeEventListener("touchstart",this._mousedownHandler,Qe),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,a){let t=e*this.numCols+a;return e&&(t-=this._firstRowOffset),t==this.activeCell}_focusActiveCell(e=!0){et(()=>{setTimeout(()=>{let a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(e||(this._skipNextFocus=!0),a.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return mt(e,this.startValue,this.endValue)}_isRangeEnd(e){return _t(e,this.startValue,this.endValue)}_isInRange(e){return gt(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return mt(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[a][t-1];if(!i){let s=this.rows[a-1];i=s&&s[s.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[a][t+1];if(!i){let s=this.rows[a+1];i=s&&s[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return _t(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return gt(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return mt(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return _t(e,this.previewStart,this.previewEnd)}_isInPreview(e){return gt(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){let a=pt(e);if(a){let t=a.getAttribute("data-mat-row"),i=a.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}};n.\u0275fac=function(a){return new(a||n)(o(O),o(Je))},n.\u0275cmp=I({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"],standalone:!0,features:[z,x],attrs:ba,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,t){a&1&&(Z(0,ya,3,6,"tr",0),xe(1,Aa,4,1,"tr",1,Da,!0),h(3,"label",2),D(4),u(),h(5,"label",2),D(6),u()),a&2&&(he(t._firstRowOffset<t.labelMinRequiredCells?0:-1),c(),Fe(t.rows),c(2),f("id",t._startDateLabelId),c(),ae(" ",t.startDateAccessibleName,`
2
2
  `),c(),f("id",t._endDateLabelId),c(),ae(" ",t.endDateAccessibleName,`
3
3
  `))},dependencies:[Tt],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:start;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}'],encapsulation:2,changeDetection:0});let r=n;return r})();function ut(r){return r?.nodeName==="TD"}function pt(r){let n;return ut(r)?n=r:ut(r.parentNode)?n=r.parentNode:ut(r.parentNode?.parentNode)&&(n=r.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function mt(r,n,d){return d!==null&&n!==d&&r<d&&r===n}function _t(r,n,d){return n!==null&&n!==d&&r>=n&&r===d}function gt(r,n,d,e){return e&&n!==null&&d!==null&&n!==d&&r>=n&&r<=d}function ea(r){let n=r.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var g=class{constructor(n,d){this.start=n,this.end=d}},W=(()=>{let n=class n{constructor(e,a){this.selection=e,this._adapter=a,this._selectionChanged=new j,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,a){let t=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:a,oldValue:t})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}};n.\u0275fac=function(a){Vt()},n.\u0275prov=te({token:n,factory:n.\u0275fac});let r=n;return r})(),ja=(()=>{let n=class n extends W{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}};n.\u0275fac=function(a){return new(a||n)(Se(_))},n.\u0275prov=te({token:n,factory:n.\u0275fac});let r=n;return r})(),Ba=(()=>{let n=class n extends W{constructor(e){super(new g(null,null),e)}add(e){let{start:a,end:t}=this.selection;a==null?a=e:t==null?t=e:(a=e,t=null),super.updateSelection(new g(a,t),this)}isValid(){let{start:e,end:a}=this.selection;return e==null&&a==null?!0:e!=null&&a!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(a)&&this._adapter.compareDate(e,a)<=0:(e==null||this._isValidDateInstance(e))&&(a==null||this._isValidDateInstance(a))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}};n.\u0275fac=function(a){return new(a||n)(Se(_))},n.\u0275prov=te({token:n,factory:n.\u0275fac});let r=n;return r})();function Ha(r,n){return r||new ja(n)}var oa={provide:W,deps:[[new Ie,new Ve,W],_],useFactory:Ha};function za(r,n){return r||new Ba(n)}var Ka={provide:W,deps:[[new Ie,new Ve,W],_],useFactory:za},qe=new Me("MAT_DATE_RANGE_SELECTION_STRATEGY"),Qa=(()=>{let n=class n{constructor(e){this._dateAdapter=e}selectionFinished(e,a){let{start:t,end:i}=a;return t==null?t=e:i==null&&e&&this._dateAdapter.compareDate(e,t)>=0?i=e:(t=e,i=null),new g(t,i)}createPreview(e,a){let t=null,i=null;return a.start&&!a.end&&e&&(t=a.start,i=e),new g(t,i)}createDrag(e,a,t){let i=a.start,s=a.end;if(!i||!s)return null;let l=this._dateAdapter,k=l.compareDate(i,s)!==0,M=l.getYear(t)-l.getYear(e),L=l.getMonth(t)-l.getMonth(e),S=l.getDate(t)-l.getDate(e);return k&&l.sameDate(e,a.start)?(i=t,l.compareDate(t,s)>0&&(s=l.addCalendarYears(s,M),s=l.addCalendarMonths(s,L),s=l.addCalendarDays(s,S))):k&&l.sameDate(e,a.end)?(s=t,l.compareDate(t,i)<0&&(i=l.addCalendarYears(i,M),i=l.addCalendarMonths(i,L),i=l.addCalendarDays(i,S))):(i=l.addCalendarYears(i,M),i=l.addCalendarMonths(i,L),i=l.addCalendarDays(i,S),s=l.addCalendarYears(s,M),s=l.addCalendarMonths(s,L),s=l.addCalendarDays(s,S)),new g(i,s)}};n.\u0275fac=function(a){return new(a||n)(Se(_))},n.\u0275prov=te({token:n,factory:n.\u0275fac});let r=n;return r})();function qa(r,n){return r||new Qa(n)}var $a={provide:qe,deps:[[new Ie,new Ve,qe],_],useFactory:qa},ft=7,Wa=0,ta=(()=>{let n=class n{get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._hasSameMonthAndYear(a,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof g?this._selected=e:this._selected=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,t,i,s){this._changeDetectorRef=e,this._dateFormats=a,this._dateAdapter=t,this._dir=i,this._rangeStrategy=s,this._rerenderSubscription=y.EMPTY,this.activeDrag=null,this.selectedChange=new p,this._userSelection=new p,this.dragStarted=new p,this.dragEnded=new p,this.activeDateChange=new p,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ae(null)).subscribe(()=>this._init())}ngOnChanges(e){let a=e.comparisonStart||e.comparisonEnd;a&&!a.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let a=e.value,t=this._getDateFromDayOfMonth(a),i,s;this._selected instanceof g?(i=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):i=s=this._getDateInCurrentMonth(this._selected),(i!==a||s!==a)&&this.selectedChange.emit(t),this._userSelection.emit({value:t,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!J(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=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=(ft+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%ft,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){let t=a?a.rawValue:null,i=this._rangeStrategy.createPreview(t,this.selected,e);if(this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this.activeDrag&&t){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,t,e);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let 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(){let e=this._dateAdapter.getFirstDayOfWeek(),a=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map((s,l)=>({long:s,narrow:a[l],id:Wa++}));this._weekdays=i.slice(e).concat(i.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),a=this._dateAdapter.getDateNames();this._weeks=[[]];for(let t=0,i=this._firstWeekOffset;t<e;t++,i++){i==ft&&(this._weeks.push([]),i=0);let s=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t+1),l=this._shouldEnableDate(s),k=this._dateAdapter.format(s,this._dateFormats.display.dateA11yLabel),M=this.dateClass?this.dateClass(s,"month"):void 0;this._weeks[this._weeks.length-1].push(new De(t+1,a[t],k,l,M,this._getCellCompareValue(s),s))}}_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){let a=this._dateAdapter.getYear(e),t=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(a,t,i).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof g?(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}};n.\u0275fac=function(a){return new(a||n)(o(F),o(T,8),o(_,8),o(ee,8),o(qe,8))},n.\u0275cmp=I({type:n,selectors:[["mat-month-view"]],viewQuery:function(a,t){if(a&1&&P(se,5),a&2){let i;V(i=E())&&(t._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"],standalone:!0,features:[z,x],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(a,t){a&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),xe(3,ka,5,2,"th",2,da),u(),h(5,"tr",3),K(6,"th",4),u()(),h(7,"tbody",5),v("selectedValueChange",function(s){return t._dateSelected(s)})("activeDateChange",function(s){return t._updateActiveDate(s)})("previewChange",function(s){return t._previewChanged(s)})("dragStarted",function(s){return t.dragStarted.emit(s)})("dragEnded",function(s){return t._dragEnded(s)})("keyup",function(s){return t._handleCalendarBodyKeyup(s)})("keydown",function(s){return t._handleCalendarBodyKeydown(s)}),u()()),a&2&&(c(3),Fe(t._weekdays),c(4),f("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName))},dependencies:[se],encapsulation:2,changeDetection:0});let r=n;return r})(),A=24,vt=4,aa=(()=>{let n=class n{get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),la(this._dateAdapter,a,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof g?this._selected=e:this._selected=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,t){this._changeDetectorRef=e,this._dateAdapter=a,this._dir=t,this._rerenderSubscription=y.EMPTY,this.selectedChange=new p,this.yearSelected=new p,this.activeDateChange=new p,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ae(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let a=this._dateAdapter.getYear(this._activeDate)-ve(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let t=0,i=[];t<A;t++)i.push(a+t),i.length==vt&&(this._years.push(i.map(s=>this._createCellForYear(s))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let a=e.value,t=this._dateAdapter.createDate(a,0,1),i=this._getDateFromYear(a);this.yearSelected.emit(t),this.selectedChange.emit(i)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromYear(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-vt);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ve(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,A-ve(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-A*10:-A);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?A*10:A);break;case 13:case 32: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===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return ve(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let a=this._dateAdapter.getMonth(this.activeDate),t=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,a,1));return this._dateAdapter.createDate(e,a,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForYear(e){let a=this._dateAdapter.createDate(e,0,1),t=this._dateAdapter.getYearName(a),i=this.dateClass?this.dateClass(a,"multi-year"):void 0;return new De(e,t,t,this._shouldEnableYear(e),i)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let a=this._dateAdapter.createDate(e,0,1);for(let t=a;this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear=null,e instanceof g){let a=e.start||e.end;a&&(this._selectedYear=this._dateAdapter.getYear(a))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}};n.\u0275fac=function(a){return new(a||n)(o(F),o(_,8),o(ee,8))},n.\u0275cmp=I({type:n,selectors:[["mat-multi-year-view"]],viewQuery:function(a,t){if(a&1&&P(se,5),a&2){let i;V(i=E())&&(t._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"],standalone:!0,features:[x],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(a,t){a&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),K(3,"th",2),u()(),h(4,"tbody",3),v("selectedValueChange",function(s){return t._yearSelected(s)})("activeDateChange",function(s){return t._updateActiveDate(s)})("keyup",function(s){return t._handleCalendarBodyKeyup(s)})("keydown",function(s){return t._handleCalendarBodyKeydown(s)}),u()()),a&2&&(c(4),f("rows",t._years)("todayValue",t._todayYear)("startValue",t._selectedYear)("endValue",t._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._getActiveCell()))},dependencies:[se],encapsulation:2,changeDetection:0});let r=n;return r})();function la(r,n,d,e,a){let t=r.getYear(n),i=r.getYear(d),s=ca(r,e,a);return Math.floor((t-s)/A)===Math.floor((i-s)/A)}function ve(r,n,d,e){let a=r.getYear(n);return Ga(a-ca(r,d,e),A)}function ca(r,n,d){let e=0;return d?e=r.getYear(d)-A+1:n&&(e=r.getYear(n)),e}function Ga(r,n){return(r%n+n)%n}var ia=(()=>{let n=class n{get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._dateAdapter.getYear(a)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){e instanceof g?this._selected=e:this._selected=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,t,i){this._changeDetectorRef=e,this._dateFormats=a,this._dateAdapter=t,this._dir=i,this._rerenderSubscription=y.EMPTY,this.selectedChange=new p,this.monthSelected=new p,this.activeDateChange=new p,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ae(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let a=e.value,t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(t);let i=this._getDateFromMonth(a);this.selectedChange.emit(i)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=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(t=>this._createCellForMonth(t,e[t]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),t=this._dateAdapter.getNumDaysInMonth(a);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForMonth(e,a){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(t,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(t,"year"):void 0;return new De(e,a.toLocaleUpperCase(),i,this._shouldEnableMonth(e),s)}_shouldEnableMonth(e){let a=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(a,e)||this._isYearAndMonthBeforeMinDate(a,e))return!1;if(!this.dateFilter)return!0;let t=this._dateAdapter.createDate(a,e,1);for(let i=t;this._dateAdapter.getMonth(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(e,a){if(this.maxDate){let t=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>t||e===t&&a>i}return!1}_isYearAndMonthBeforeMinDate(e,a){if(this.minDate){let t=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<t||e===t&&a<i}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof g?this._selectedMonth=this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._selectedMonth=this._getMonthInCurrentYear(e)}};n.\u0275fac=function(a){return new(a||n)(o(F),o(T,8),o(_,8),o(ee,8))},n.\u0275cmp=I({type:n,selectors:[["mat-year-view"]],viewQuery:function(a,t){if(a&1&&P(se,5),a&2){let i;V(i=E())&&(t._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"],standalone:!0,features:[x],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(a,t){a&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),K(3,"th",2),u()(),h(4,"tbody",3),v("selectedValueChange",function(s){return t._monthSelected(s)})("activeDateChange",function(s){return t._updateActiveDate(s)})("keyup",function(s){return t._handleCalendarBodyKeyup(s)})("keydown",function(s){return t._handleCalendarBodyKeydown(s)}),u()()),a&2&&(c(4),f("label",t._yearLabel)("rows",t._months)("todayValue",t._todayMonth)("startValue",t._selectedMonth)("endValue",t._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._dateAdapter.getMonth(t.activeDate)))},dependencies:[se],encapsulation:2,changeDetection:0});let r=n;return r})(),Ua=1,ha=(()=>{let n=class n{constructor(e,a,t,i,s){this._intl=e,this.calendar=a,this._dateAdapter=t,this._dateFormats=i,this._id=`mat-calendar-header-${Ua++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?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=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-A)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:A)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,a){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a):la(this._dateAdapter,e,a,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let a=this._dateAdapter.getYear(this.calendar.activeDate)-ve(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=a+A-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return[i,s]}};n.\u0275fac=function(a){return new(a||n)(o(Ce),o(ke(()=>bt)),o(_,8),o(T,8),o(F))},n.\u0275cmp=I({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[x],ngContentSelectors:Ma,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(a,t){a&1&&(Te(),h(0,"div",0)(1,"div",1)(2,"label",2),D(3),u(),h(4,"button",3),v("click",function(){return t.currentPeriodClicked()}),h(5,"span",4),D(6),u(),Xe(),h(7,"svg",5),K(8,"polygon",6),u()(),St(),K(9,"div",7),pe(10),h(11,"button",8),v("click",function(){return t.previousClicked()}),u(),h(12,"button",9),v("click",function(){return t.nextClicked()}),u()()()),a&2&&(c(2),f("id",t._periodButtonLabelId),c(),Y(t.periodButtonDescription),c(),b("aria-label",t.periodButtonLabel)("aria-describedby",t._periodButtonLabelId),c(2),Y(t.periodButtonText),c(),R("mat-calendar-invert",t.calendar.currentView!=="month"),c(4),f("disabled",!t.previousEnabled()),b("aria-label",t.prevButtonLabel),c(),f("disabled",!t.nextEnabled()),b("aria-label",t.nextButtonLabel))},dependencies:[ct,ht],encapsulation:2,changeDetection:0});let r=n;return r})(),bt=(()=>{let n=class n{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){e instanceof g?this._selected=e:this._selected=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){let a=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),a&&this.viewChanged.emit(a)}constructor(e,a,t,i){this._dateAdapter=a,this._dateFormats=t,this._changeDetectorRef=i,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p,this.yearSelected=new p,this.monthSelected=new p,this.viewChanged=new p(!0),this._userSelection=new p,this._userDragDrop=new p,this._activeDrag=null,this.stateChanges=new j,this._intlChanges=e.changes.subscribe(()=>{i.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new dt(this.headerComponent||ha),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let a=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,t=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,i=a||t||e.dateFilter;if(i&&!i.firstChange){let s=this._getCurrentViewComponent();s&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let a=e.value;(this.selected instanceof g||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}};n.\u0275fac=function(a){return new(a||n)(o(Ce),o(_,8),o(T,8),o(F))},n.\u0275cmp=I({type:n,selectors:[["mat-calendar"]],viewQuery:function(a,t){if(a&1&&(P(ta,5),P(ia,5),P(aa,5)),a&2){let i;V(i=E())&&(t.monthView=i.first),V(i=E())&&(t.yearView=i.first),V(i=E())&&(t.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"],standalone:!0,features:[Q([oa]),z,x],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(a,t){if(a&1&&(Z(0,Sa,0,0,"ng-template",0),h(1,"div",1),Z(2,Ia,1,11,"mat-month-view",2)(3,Va,1,6,"mat-year-view",3)(4,Ea,1,6,"mat-multi-year-view",3),u()),a&2){let i;f("cdkPortalOutlet",t._calendarHeaderPortal),c(2),he((i=t.currentView)==="month"?2:i==="year"?3:i==="multi-year"?4:-1)}},dependencies:[ot,st,ta,ia,aa],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);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.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:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){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:""}'],encapsulation:2,changeDetection:0});let r=n;return r})(),na={transformPanel:it("transformPanel",[ge("void => enter-dropdown",_e("120ms cubic-bezier(0, 0, 0.2, 1)",rt([q({opacity:0,transform:"scale(1, 0.8)"}),q({opacity:1,transform:"scale(1, 1)"})]))),ge("void => enter-dialog",_e("150ms cubic-bezier(0, 0, 0.2, 1)",rt([q({opacity:0,transform:"scale(0.7)"}),q({transform:"none",opacity:1})]))),ge("* => void",_e("100ms linear",q({opacity:0})))]),fadeInCalendar:it("fadeInCalendar",[nt("void",q({opacity:0})),nt("enter",q({opacity:1})),ge("void => *",_e("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Xa=0,ua=new Me("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let r=B(fe);return()=>r.scrollStrategies.reposition()}});function Za(r){return()=>r.scrollStrategies.reposition()}var Ja={provide:ua,deps:[fe],useFactory:Za},pa=(()=>{let n=class n{constructor(e,a,t,i,s,l){this._elementRef=e,this._changeDetectorRef=a,this._globalModel=t,this._dateAdapter=i,this._rangeSelectionStrategy=s,this._subscriptions=new y,this._animationDone=new j,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.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){let a=this._model.selection,t=e.value,i=a instanceof g;if(i&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(t,a,e.event);this._model.updateSelection(s,this)}else t&&(i||!this._dateAdapter.sameDate(t,a))&&this._model.add(t);(!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=e.phaseName==="start",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()}};n.\u0275fac=function(a){return new(a||n)(o(O),o(F),o(W),o(_),o(qe,8),o(Ce))},n.\u0275cmp=I({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(a,t){if(a&1&&P(bt,5),a&2){let i;V(i=E())&&(t._calendar=i.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(a,t){a&1&&Ft("@transformPanel.start",function(s){return t._handleAnimationEvent(s)})("@transformPanel.done",function(s){return t._handleAnimationEvent(s)}),a&2&&(xt("@transformPanel",t._animationState),at(t.color?"mat-"+t.color:""),R("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[x],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(a,t){if(a&1&&(h(0,"div",0)(1,"mat-calendar",1),v("yearSelected",function(s){return t.datepicker._selectYear(s)})("monthSelected",function(s){return t.datepicker._selectMonth(s)})("viewChanged",function(s){return t.datepicker._viewChanged(s)})("_userSelection",function(s){return t._handleUserSelection(s)})("_userDragDrop",function(s){return t._handleUserDragDrop(s)}),u(),Z(2,xa,0,0,"ng-template",2),h(3,"button",3),v("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),D(4),u()()),a&2){let i;R("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),b("aria-modal",!0)("aria-labelledby",(i=t._dialogLabelId)!==null&&i!==void 0?i:void 0),c(),at(t.datepicker.panelClass),f("id",t.datepicker.id)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName),c(),f("cdkPortalOutlet",t._actionsPortal),c(),R("cdk-visually-hidden",!t._closeButtonFocused),f("color",t.color||"primary"),c(),Y(t._closeButtonText)}},dependencies:[Bt,bt,ot,ct],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.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{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);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:[na.transformPanel,na.fadeInCalendar]},changeDetection:0});let r=n;return r})(),$e=(()=>{let n=class n{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 disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Nt(e)}get opened(){return this._opened}set opened(e){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,t,i,s,l,k){this._overlay=e,this._viewContainerRef=t,this._dateAdapter=s,this._dir=l,this._model=k,this._inputStateChanges=y.EMPTY,this._document=B(Rt),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new p,this.monthSelected=new p,this.viewChanged=new p(!0),this.openedStream=new p,this.closedStream=new p,this._opened=!1,this.id=`mat-datepicker-${Xa++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new j,this._injector=B(U),this._changeDetectorRef=B(F),this._dateAdapter,this._scrollStrategy=i,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let a=e.xPosition||e.yPosition;if(a&&!a.firstChange&&this._overlayRef){let t=this._overlayRef.getConfig().positionStrategy;t instanceof qt&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=jt(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",a=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:t,location:i}=this._componentRef;t._startExitAnimation(),t._animationDone.pipe(At(1)).subscribe(()=>{let s=this._document.activeElement;e&&(!s||s===this._document.activeElement||i.nativeElement.contains(s))&&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();let e=this.touchUi,a=new dt(pa,this._viewContainerRef),t=this._overlayRef=this._overlay.create(new Qt({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(t).subscribe(i=>{i&&i.preventDefault(),this.close()}),t.keydownEvents().subscribe(i=>{let s=i.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&i.preventDefault()}),this._componentRef=t.attach(a),this._forwardContentValues(this._componentRef.instance),e||et(()=>{t.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let a=this.xPosition==="end"?"end":"start",t=a==="start"?"end":"start",i=this.yPosition==="above"?"bottom":"top",s=i==="top"?"bottom":"top";return e.withPositions([{originX:a,originY:s,overlayX:a,overlayY:i},{originX:a,originY:i,overlayX:a,overlayY:s},{originX:t,originY:s,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:s}])}_getCloseStream(e){let a=["ctrlKey","shiftKey","metaKey"];return le(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(wt(t=>t.keyCode===27&&!J(t)||this.datepickerInput&&J(t,"altKey")&&t.keyCode===38&&a.every(i=>!J(t,i)))))}};n.\u0275fac=function(a){return new(a||n)(o(fe),o(Je),o(Et),o(ua),o(_,8),o(ee,8),o(W))},n.\u0275dir=H({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",N],disabled:[2,"disabled","disabled",N],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",N],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",N]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ce,z]});let r=n;return r})(),Wi=(()=>{let n=class n extends $e{};n.\u0275fac=(()=>{let e;return function(t){return(e||(e=Ze(n)))(t||n)}})(),n.\u0275cmp=I({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[Q([oa,{provide:$e,useExisting:n}]),X,x],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0});let r=n;return r})(),ie=class{constructor(n,d){this.target=n,this.targetElement=d,this.value=this.target.value}},ma=(()=>{let n=class n{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){let a=e,t=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0)),a&&this._isInitialized&&t.blur&&t.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)){let t=this._getValueFromModel(a.selection);this._lastValueValid=this._isValidValue(t),this._cvaOnChange(t),this._onTouched(),this._formatValue(t),this.dateInput.emit(new ie(this,this._elementRef.nativeElement)),this.dateChange.emit(new ie(this,this._elementRef.nativeElement))}})}constructor(e,a,t){this._elementRef=e,this._dateAdapter=a,this._dateFormats=t,this.dateChange=new p,this.dateInput=new p,this.stateChanges=new j,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=y.EMPTY,this._localeSubscription=y.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=i=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=i=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i.value)),l=this._getMinDate();return!l||!s||this._dateAdapter.compareDate(l,s)<=0?null:{matDatepickerMin:{min:l,actual:s}}},this._maxValidator=i=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i.value)),l=this._getMaxDate();return!l||!s||this._dateAdapter.compareDate(l,s)>=0?null:{matDatepickerMax:{max:l,actual:s}}},this._lastValueValid=!1,this._localeSubscription=a.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){_a(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){let a=["ctrlKey","shiftKey","metaKey"];J(e,"altKey")&&e.keyCode===40&&a.every(i=>!J(e,i))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let a=this._lastValueValid,t=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t);let i=!this._dateAdapter.sameDate(t,this.value);!t||i?this._cvaOnChange(t):(e&&!this.value&&this._cvaOnChange(t),a!==this._lastValueValid&&this._validatorOnChange()),i&&(this._assignValue(t),this.dateInput.emit(new ie(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ie(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let a=this._getDateFilter();return!a||a(e)}};n.\u0275fac=function(a){return new(a||n)(o(O),o(_,8),o(T,8))},n.\u0275dir=H({type:n,inputs:{value:"value",disabled:[2,"disabled","disabled",N]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[ce,z]});let r=n;return r})();function _a(r,n){let d=Object.keys(r);for(let e of d){let{previousValue:a,currentValue:t}=r[e];if(n.isDateInstance(a)&&n.isDateInstance(t)){if(!n.sameDate(a,t))return!0}else return!0}return!1}var ei={provide:Le,useExisting:ke(()=>ga),multi:!0},ti={provide:je,useExisting:ke(()=>ga),multi:!0},ga=(()=>{let n=class n extends ma{set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){let 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){let 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){let a=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==a&&this._validatorOnChange()}constructor(e,a,t,i){super(e,a,t),this._formField=i,this._closedSubscription=y.EMPTY,this._openedSubscription=y.EMPTY,this._ariaOwns=tt(null),this._validator=me.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}};n.\u0275fac=function(a){return new(a||n)(o(O),o(_,8),o(T,8),o(lt,8))},n.\u0275dir=H({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,t){a&1&&v("input",function(s){return t._onInput(s.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(s){return t._onKeydown(s)}),a&2&&(Re("disabled",t.disabled),b("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",t._ariaOwns())("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[Q([ei,ti,{provide:Zt,useExisting:n}]),X]});let r=n;return r})(),ai=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275dir=H({type:n,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let r=n;return r})(),ii=(()=>{let n=class n{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,a,t){this._intl=e,this._changeDetectorRef=a,this._stateChanges=y.EMPTY;let i=Number(t);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:we(),a=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:we(),t=this.datepicker?le(this.datepicker.openedStream,this.datepicker.closedStream):we();this._stateChanges.unsubscribe(),this._stateChanges=le(this._intl.changes,e,a,t).subscribe(()=>this._changeDetectorRef.markForCheck())}};n.\u0275fac=function(a){return new(a||n)(o(Ce),o(F),It("tabindex"))},n.\u0275cmp=I({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,t,i){if(a&1&&Oe(i,ai,5),a&2){let s;V(s=E())&&(t._customIcon=s.first)}},viewQuery:function(a,t){if(a&1&&P(Fa,5),a&2){let i;V(i=E())&&(t._button=i.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,t){a&1&&v("click",function(s){return t._open(s)}),a&2&&(b("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),R("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&t.datepicker.color==="accent")("mat-warn",t.datepicker&&t.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",N],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[ce,z,x],ngContentSelectors:Ta,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(a,t){a&1&&(Te(Ra),h(0,"button",1,0),Z(2,Oa,2,0,":svg:svg",2),pe(3),u()),a&2&&(f("disabled",t.disabled)("disableRipple",t.disableRipple),b("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),c(2),he(t._customIcon?-1:2))},dependencies:[ht],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});let r=n;return r})();function ni(r){return Dt(r,!0)}function ra(r){return r.nodeType===Node.ELEMENT_NODE}function ri(r){return r.nodeName==="INPUT"}function si(r){return r.nodeName==="TEXTAREA"}function Dt(r,n){if(ra(r)&&n){let e=(r.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((a,t)=>{let i=document.getElementById(t);return i&&a.push(i),a},[]);if(e.length)return e.map(a=>Dt(a,!1)).join(" ")}if(ra(r)){let d=r.getAttribute("aria-label")?.trim();if(d)return d}if(ri(r)||si(r)){if(r.labels?.length)return Array.from(r.labels).map(a=>Dt(a,!1)).join(" ");let d=r.getAttribute("placeholder")?.trim();if(d)return d;let e=r.getAttribute("title")?.trim();if(e)return e}return(r.textContent||"").replace(/\s+/g," ").trim()}var Ue=new Me("MAT_DATE_RANGE_INPUT_PARENT"),fa=(()=>{let n=class n extends ma{get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,a,t,i,s,l,k,M){super(a,k,M),this._rangeInput=e,this._elementRef=a,this._defaultErrorStateMatcher=t,this._injector=i,this._parentForm=s,this._parentFormGroup=l,this._dir=B(ee,{optional:!0}),this._errorStateTracker=new Gt(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges)}ngOnInit(){let e=this._injector.get(Yt,null,{optional:!0,self:!0});e&&(this.ngControl=e,this._errorStateTracker.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return this._elementRef.nativeElement.value.length===0}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){let e=this._elementRef.nativeElement,a=e.value;return a.length>0?a:e.placeholder}updateErrorState(){this._errorStateTracker.updateErrorState()}_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 ni(this._elementRef.nativeElement)}};n.\u0275fac=function(a){return new(a||n)(o(Ue),o(O),o(Ke),o(U),o(Be,8),o(He,8),o(_,8),o(T,8))},n.\u0275dir=H({type:n,inputs:{errorStateMatcher:"errorStateMatcher"},standalone:!0,features:[X]});let r=n;return r})(),di=(()=>{let n=class n extends fa{constructor(e,a,t,i,s,l,k,M){super(e,a,t,i,s,l,k,M),this._startValidator=L=>{let S=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(L.value)),G=this._model?this._model.selection.end:null;return!S||!G||this._dateAdapter.compareDate(S,G)<=0?null:{matStartDateInvalid:{end:G,actual:S}}},this._validator=me.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:!1}_assignValueToModel(e){if(this._model){let a=new g(e,this._model.selection.end);this._model.updateSelection(a,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_onKeydown(e){let a=this._rangeInput._endInput,t=this._elementRef.nativeElement,i=this._dir?.value!=="rtl";(e.keyCode===39&&i||e.keyCode===37&&!i)&&t.selectionStart===t.value.length&&t.selectionEnd===t.value.length?(e.preventDefault(),a._elementRef.nativeElement.setSelectionRange(0,0),a.focus()):super._onKeydown(e)}};n.\u0275fac=function(a){return new(a||n)(o(Ue),o(O),o(Ke),o(U),o(Be,8),o(He,8),o(_,8),o(T,8))},n.\u0275dir=H({type:n,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(a,t){a&1&&v("input",function(s){return t._onInput(s.target.value)})("change",function(){return t._onChange()})("keydown",function(s){return t._onKeydown(s)})("blur",function(){return t._onBlur()}),a&2&&(Re("disabled",t.disabled),b("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",t._rangeInput._ariaOwns?t._rangeInput._ariaOwns():(t._rangeInput.rangePicker==null?null:t._rangeInput.rangePicker.opened)&&t._rangeInput.rangePicker.id||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[Q([{provide:Le,useExisting:n,multi:!0},{provide:je,useExisting:n,multi:!0}]),X]});let r=n;return r})(),oi=(()=>{let n=class n extends fa{constructor(e,a,t,i,s,l,k,M){super(e,a,t,i,s,l,k,M),this._endValidator=L=>{let S=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(L.value)),G=this._model?this._model.selection.start:null;return!S||!G||this._dateAdapter.compareDate(S,G)>=0?null:{matEndDateInvalid:{start:G,actual:S}}},this._validator=me.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:!1}_assignValueToModel(e){if(this._model){let a=new g(this._model.selection.start,e);this._model.updateSelection(a,this)}}_moveCaretToEndOfStartInput(){let e=this._rangeInput._startInput._elementRef.nativeElement,a=e.value;a.length>0&&e.setSelectionRange(a.length,a.length),e.focus()}_onKeydown(e){let a=this._elementRef.nativeElement,t=this._dir?.value!=="rtl";e.keyCode===8&&!a.value?this._moveCaretToEndOfStartInput():(e.keyCode===37&&t||e.keyCode===39&&!t)&&a.selectionStart===0&&a.selectionEnd===0?(e.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(e)}};n.\u0275fac=function(a){return new(a||n)(o(Ue),o(O),o(Ke),o(U),o(Be,8),o(He,8),o(_,8),o(T,8))},n.\u0275dir=H({type:n,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(a,t){a&1&&v("input",function(s){return t._onInput(s.target.value)})("change",function(){return t._onChange()})("keydown",function(s){return t._onKeydown(s)})("blur",function(){return t._onBlur()}),a&2&&(Re("disabled",t.disabled),b("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",t._rangeInput._ariaOwns?t._rangeInput._ariaOwns():(t._rangeInput.rangePicker==null?null:t._rangeInput.rangePicker.opened)&&t._rangeInput.rangePicker.id||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[Q([{provide:Le,useExisting:n,multi:!0},{provide:je,useExisting:n,multi:!0}]),X]});let r=n;return r})(),li=0,Gi=(()=>{let n=class n{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){let 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._openedSubscription.unsubscribe(),this._ariaOwns.set(this.rangePicker.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),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=e}get dateFilter(){return this._dateFilter}set dateFilter(e){let a=this._startInput,t=this._endInput,i=a&&a._matchesFilter(a.value),s=t&&t._matchesFilter(a.value);this._dateFilter=e,a&&a._matchesFilter(a.value)!==i&&a._validatorOnChange(),t&&t._matchesFilter(t.value)!==s&&t._validatorOnChange()}get min(){return this._min}set min(e){let 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){let 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){e!==this._groupDisabled&&(this._groupDisabled=e,this.stateChanges.next(void 0))}get errorState(){return this._startInput&&this._endInput?this._startInput.errorState||this._endInput.errorState:!1}get empty(){let e=this._startInput?this._startInput.isEmpty():!1,a=this._endInput?this._endInput.isEmpty():!1;return e&&a}constructor(e,a,t,i,s){this._changeDetectorRef=e,this._elementRef=a,this._dateAdapter=i,this._formField=s,this._closedSubscription=y.EMPTY,this._openedSubscription=y.EMPTY,this.id=`mat-date-range-input-${li++}`,this.focused=!1,this.controlType="mat-date-range-input",this._ariaOwns=tt(null),this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new j,this.disableAutomaticLabeling=!0,s?._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=t}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(!this._model||!this._model.selection.start?this._startInput.focus():this._endInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),le(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){_a(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this._openedSubscription.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){let a=e==="start"?this._startInput:this._endInput;return a?a.getMirrorValue():""}_shouldHidePlaceholders(){return this._startInput?!this._startInput.isEmpty():!1}_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(){let e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=e!==null,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(me.required)}};n.\u0275fac=function(a){return new(a||n)(o(F),o(O),o(Pt,10),o(_,8),o(lt,8))},n.\u0275cmp=I({type:n,selectors:[["mat-date-range-input"]],contentQueries:function(a,t,i){if(a&1&&(Oe(i,di,5),Oe(i,oi,5)),a&2){let s;V(s=E())&&(t._startInput=s.first),V(s=E())&&(t._endInput=s.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(a,t){a&2&&(b("id",t.id)("aria-labelledby",t._getAriaLabelledby())("aria-describedby",t._ariaDescribedBy)("data-mat-calendar",t.rangePicker?t.rangePicker.id:null),R("mat-date-range-input-hide-placeholders",t._shouldHidePlaceholders())("mat-date-range-input-required",t.required))},inputs:{rangePicker:"rangePicker",required:[2,"required","required",N],dateFilter:"dateFilter",min:"min",max:"max",disabled:[2,"disabled","disabled",N],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],standalone:!0,features:[Q([{provide:Ut,useExisting:n},{provide:Ue,useExisting:n}]),ce,z,x],ngContentSelectors:Ya,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(a,t){a&1&&(Te(Pa),h(0,"div",0),v("cdkFocusChange",function(s){return t._updateFocus(s)}),h(1,"div",1),pe(2),h(3,"span",2),D(4),u()(),h(5,"span",3),D(6),u(),h(7,"div",4),pe(8,1),h(9,"span",2),D(10),u()()()),a&2&&(c(4),Y(t._getInputMirrorValue("start")),c(),R("mat-date-range-input-separator-hidden",t._shouldHideSeparator()),c(),Y(t.separator),c(4),Y(t._getInputMirrorValue("end")))},dependencies:[st],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});let r=n;return r})(),Ui=(()=>{let n=class n extends $e{_forwardContentValues(e){super._forwardContentValues(e);let a=this.datepickerInput;a&&(e.comparisonStart=a.comparisonStart,e.comparisonEnd=a.comparisonEnd,e.startDateAccessibleName=a._getStartDateAccessibleName(),e.endDateAccessibleName=a._getEndDateAccessibleName())}};n.\u0275fac=(()=>{let e;return function(t){return(e||(e=Ze(n)))(t||n)}})(),n.\u0275cmp=I({type:n,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],standalone:!0,features:[Q([Ka,$a,{provide:$e,useExisting:n}]),X,x],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0});let r=n;return r})();var Xi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=Mt({type:n}),n.\u0275inj=kt({providers:[Ce,Ja],imports:[Ot,Xt,$t,Ht,Kt,Wt,pa,ii,ha,zt]});let r=n;return r})();export{ha as a,bt as b,Wi as c,ga as d,ii as e,di as f,oi as g,Gi as h,Ui as i,Xi as j};
@@ -1 +1 @@
1
- import{a as Je,b as Xe}from"./chunk-XNGU3O4O.js";import{h as Ge,j as Ke,k as We}from"./chunk-CTKEWRX4.js";import{D as Ue,G as te,H as qe,K as ve,Q as q,S as Ye,T as Ze,g as Ve,h as Qe,o as Be,w as $e}from"./chunk-GXHE2CDH.js";import{$ as Ee,$a as m,Aa as N,Bb as g,Cb as ee,Db as f,Dc as He,Eb as _,Hb as se,Ia as s,Ib as I,Ja as l,Jb as C,K as Me,La as D,Pb as le,Qb as z,S as w,Sa as Pe,Sb as pe,T as Te,Tb as $,V as S,Wa as j,Ya as ae,Za as u,_ as G,_a as H,a as Ce,aa as K,ad as de,ba as we,bb as x,bc as Ne,bd as he,c as P,cd as me,da as ke,db as Ae,ea as Oe,eb as Le,ed as T,fa as Re,fd as E,ga as k,gb as v,ha as W,hd as ue,ia as y,ib as Y,jb as Z,jc as U,jd as fe,kb as J,kc as F,lb as c,lc as je,ld as _e,mb as h,n as Se,na as ze,nb as oe,oa as A,pa as L,q as De,qb as M,rb as X,sa as Fe,ub as V,wb as p,xb as Q,ya as O,yb as B,yc as ce,za as R}from"./chunk-HSFUKC7R.js";var ut=["*"];function ft(n,i){n&1&&B(0)}var ge=(()=>{let i=class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}};i.\u0275fac=function(t){return new(t||i)(l(O))},i.\u0275dir=y({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let n=i;return n})(),be=(()=>{let i=class i{constructor(e){this.template=e}};i.\u0275fac=function(t){return new(t||i)(l(D))},i.\u0275dir=y({type:i,selectors:[["","cdkStepLabel",""]],standalone:!0});let n=i;return n})(),_t=0;var b={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},ye=new we("STEPPER_GLOBAL_OPTIONS"),ie=(()=>{let i=class i{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new R,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}};i.\u0275fac=function(t){return new(t||i)(l(G(()=>ne)),l(ye,8))},i.\u0275cmp=k({type:i,selectors:[["cdk-step"]],contentQueries:function(t,r,o){if(t&1&&g(o,be,5),t&2){let d;f(d=_())&&(r.stepLabel=d.first)}},viewQuery:function(t,r){if(t&1&&ee(D,7),t&2){let o;f(o=_())&&(r.content=o.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",F],optional:[2,"optional","optional",F],completed:[2,"completed","completed",F],hasError:[2,"hasError","hasError",F]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[ae,ze,z],ngContentSelectors:ut,decls:1,vars:0,template:function(t,r){t&1&&(Q(),u(0,ft,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let n=i;return n})(),ne=(()=>{let i=class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new P,this.steps=new N,this._sortedHeaders=new N,this.linear=!1,this._selectedIndex=0,this.selectionChange=new R,this.selectedIndexChange=new R,this._orientation="horizontal",this._groupId=_t++}ngAfterContentInit(){this._steps.changes.pipe(w(this._steps),S(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(w(this._stepHeader),S(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new $e(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:Se()).pipe(w(this._layoutDirection()),S(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=b.NUMBER){let r=this.steps.toArray()[e],o=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,o):this._getGuidelineLogic(r,o,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?b.ERROR:!e.completed||t?b.NUMBER:e.editable?b.EDIT:b.DONE}_getGuidelineLogic(e,t,r=b.NUMBER){return e._showError()&&e.hasError&&!t?b.ERROR:e.completed&&!t?b.DONE:e.completed&&t?r:e.editable&&t?b.EDIT:r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Ve(e),r=e.keyCode,o=this._keyManager;o.activeItemIndex!=null&&!t&&(r===32||r===13)?(this.selectedIndex=o.activeItemIndex,e.preventDefault()):o.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Be();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}};i.\u0275fac=function(t){return new(t||i)(l(te,8),l(U),l(O))},i.\u0275dir=y({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,r,o){if(t&1&&(g(o,ie,5),g(o,ge,5)),t&2){let d;f(d=_())&&(r._steps=d),f(d=_())&&(r._stepHeader=d)}},inputs:{linear:[2,"linear","linear",F],selectedIndex:[2,"selectedIndex","selectedIndex",je],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"],standalone:!0,features:[ae]});let n=i;return n})();var et=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=W({type:i}),i.\u0275inj=K({imports:[qe]});let n=i;return n})();function vt(n,i){if(n&1&&M(0,2),n&2){let a=p();m("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",a._getIconContext())}}function gt(n,i){if(n&1&&(c(0,"span",7),I(1),h()),n&2){let a=p(2);s(),C(a._getDefaultTextForState(a.state))}}function bt(n,i){if(n&1&&(c(0,"span",8),I(1),h()),n&2){let a=p(3);s(),C(a._intl.completedLabel)}}function yt(n,i){if(n&1&&(c(0,"span",8),I(1),h()),n&2){let a=p(3);s(),C(a._intl.editableLabel)}}function xt(n,i){if(n&1&&(u(0,bt,2,1,"span",8)(1,yt,2,1,"span",8),c(2,"mat-icon",7),I(3),h()),n&2){let a=p(2);v(a.state==="done"?0:a.state==="edit"?1:-1),s(3),C(a._getDefaultTextForState(a.state))}}function It(n,i){if(n&1&&u(0,gt,2,1,"span",7)(1,xt,4,2,"mat-icon",7),n&2){let a,e=p();v((a=e.state)==="number"?0:1)}}function Ct(n,i){n&1&&(c(0,"div",4),M(1,9),h()),n&2&&(s(),m("ngTemplateOutlet",i.template))}function St(n,i){if(n&1&&(c(0,"div",4),I(1),h()),n&2){let a=p();s(),C(a.label)}}function Dt(n,i){if(n&1&&(c(0,"div",5),I(1),h()),n&2){let a=p();s(),C(a._intl.optionalLabel)}}function Mt(n,i){if(n&1&&(c(0,"div",6),I(1),h()),n&2){let a=p();s(),C(a.errorMessage)}}var it=["*"];function Tt(n,i){}function Et(n,i){if(n&1&&(B(0),u(1,Tt,0,0,"ng-template",0)),n&2){let a=p();s(),m("cdkPortalOutlet",a._portal)}}var nt=(n,i)=>({step:n,i}),rt=n=>({animationDuration:n}),at=(n,i)=>({value:n,params:i});function wt(n,i){n&1&&B(0)}function kt(n,i){n&1&&oe(0,"div",6)}function Ot(n,i){if(n&1&&(M(0,5),u(1,kt,1,0,"div",6)),n&2){let a=i.$implicit,e=i.$index,t=i.$count;p(2);let r=se(4);m("ngTemplateOutlet",r)("ngTemplateOutletContext",$(3,nt,a,e)),s(),v(e!==t-1?1:-1)}}function Rt(n,i){if(n&1){let a=X();c(0,"div",7),V("@horizontalStepTransition.done",function(t){A(a);let r=p(2);return L(r._animationDone.next(t))}),M(1,8),h()}if(n&2){let a=i.$implicit,e=i.$index,t=p(2);x("mat-horizontal-stepper-content-inactive",t.selectedIndex!==e),m("@horizontalStepTransition",$(8,at,t._getAnimationDirection(e),pe(6,rt,t._getAnimationDuration())))("id",t._getStepContentId(e)),H("aria-labelledby",t._getStepLabelId(e)),s(),m("ngTemplateOutlet",a.content)}}function zt(n,i){if(n&1&&(c(0,"div",1)(1,"div",2),Z(2,Ot,2,6,null,null,Y),h(),c(4,"div",3),Z(5,Rt,2,11,"div",4,Y),h()()),n&2){let a=p();s(2),J(a.steps),s(3),J(a.steps)}}function Ft(n,i){if(n&1){let a=X();c(0,"div",9),M(1,5),c(2,"div",10)(3,"div",11),V("@verticalStepTransition.done",function(t){A(a);let r=p(2);return L(r._animationDone.next(t))}),c(4,"div",12),M(5,8),h()()()()}if(n&2){let a=i.$implicit,e=i.$index,t=i.$count,r=p(2),o=se(4);s(),m("ngTemplateOutlet",o)("ngTemplateOutletContext",$(10,nt,a,e)),s(),x("mat-stepper-vertical-line",e!==t-1),s(),x("mat-vertical-stepper-content-inactive",r.selectedIndex!==e),m("@verticalStepTransition",$(15,at,r._getAnimationDirection(e),pe(13,rt,r._getAnimationDuration())))("id",r._getStepContentId(e)),H("aria-labelledby",r._getStepLabelId(e)),s(2),m("ngTemplateOutlet",a.content)}}function Pt(n,i){if(n&1&&Z(0,Ft,6,18,"div",9,Y),n&2){let a=p();J(a.steps)}}function At(n,i){if(n&1){let a=X();c(0,"mat-step-header",13),V("click",function(){let t=A(a).step;return L(t.select())})("keydown",function(t){A(a);let r=p();return L(r._onKeydown(t))}),h()}if(n&2){let a=i.step,e=i.i,t=p();x("mat-horizontal-stepper-header",t.orientation==="horizontal")("mat-vertical-stepper-header",t.orientation==="vertical"),m("tabIndex",t._getFocusIndex()===e?0:-1)("id",t._getStepLabelId(e))("index",e)("state",t._getIndicatorType(e,a.state))("label",a.stepLabel||a.label)("selected",t.selectedIndex===e)("active",t._stepIsNavigable(e,a))("optional",a.optional)("errorMessage",a.errorMessage)("iconOverrides",t._iconOverrides)("disableRipple",t.disableRipple||!t._stepIsNavigable(e,a))("color",a.color||t.color),H("aria-posinset",e+1)("aria-setsize",t.steps.length)("aria-controls",t._getStepContentId(e))("aria-selected",t.selectedIndex==e)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null)("aria-disabled",t._stepIsNavigable(e,a)?null:!0)}}var xe=(()=>{let i=class i extends be{};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Fe(i)))(r||i)}})(),i.\u0275dir=y({type:i,selectors:[["","matStepLabel",""]],standalone:!0,features:[j]});let n=i;return n})(),re=(()=>{let i=class i{constructor(){this.changes=new P,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ee({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();function Lt(n){return n||new re}var Nt={provide:re,deps:[[new Oe,new Re,re]],useFactory:Lt},Ie=(()=>{let i=class i extends ge{constructor(e,t,r,o){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>o.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof xe?null:this.label}_templateLabel(){return this.label instanceof xe?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}};i.\u0275fac=function(t){return new(t||i)(l(re),l(Ue),l(O),l(U))},i.\u0275cmp=k({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,r){t&2&&Ae("mat-"+(r.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[j,z],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,r){if(t&1&&(oe(0,"div",0),c(1,"div")(2,"div",1),u(3,vt,1,2,"ng-container",2)(4,It,2,1),h()(),c(5,"div",3),u(6,Ct,2,1,"div",4)(7,St,2,1,"div",4)(8,Dt,2,1,"div",5)(9,Mt,2,1,"div",6),h()),t&2){let o;m("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),s(),Le("mat-step-icon-state-",r.state," mat-step-icon"),x("mat-step-icon-selected",r.selected),s(2),v(r.iconOverrides&&r.iconOverrides[r.state]?3:4),s(2),x("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error",r.state=="error"),s(),v((o=r._templateLabel())?6:r._stringLabel()?7:-1,o),s(2),v(r.optional&&r.state!="error"?8:-1),s(),v(r.state==="error"?9:-1)}},dependencies:[Ye,ce,Je],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0});let n=i;return n})(),ot="500ms",st="225ms",tt={horizontalStepTransition:de("horizontalStepTransition",[E("previous",T({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),E("current",T({transform:"none",visibility:"inherit"})),E("next",T({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),ue("* => *",me([he("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),_e("@*",fe(),{optional:!0})]),{params:{animationDuration:ot}})]),verticalStepTransition:de("verticalStepTransition",[E("previous",T({height:"0px",visibility:"hidden"})),E("next",T({height:"0px",visibility:"hidden"})),E("current",T({height:"*",visibility:"inherit"})),ue("* <=> current",me([he("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),_e("@*",fe(),{optional:!0})]),{params:{animationDuration:st}})])},jt=(()=>{let i=class i{constructor(e){this.templateRef=e}};i.\u0275fac=function(t){return new(t||i)(l(D))},i.\u0275dir=y({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let n=i;return n})(),Ht=(()=>{let i=class i{constructor(e){this._template=e}};i.\u0275fac=function(t){return new(t||i)(l(D))},i.\u0275dir=y({type:i,selectors:[["ng-template","matStepContent",""]],standalone:!0});let n=i;return n})(),Vt=(()=>{let i=class i extends ie{constructor(e,t,r,o){super(e,o),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=Ce.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Te(()=>this._stepper.selectionChange.pipe(De(e=>e.selectedStep===this),w(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Ge(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let r=this._errorStateMatcher.isErrorState(e,t),o=!!(e&&e.invalid&&this.interacted);return r||o}};i.\u0275fac=function(t){return new(t||i)(l(G(()=>lt)),l(q,4),l(Pe),l(ye,8))},i.\u0275cmp=k({type:i,selectors:[["mat-step"]],contentQueries:function(t,r,o){if(t&1&&(g(o,xe,5),g(o,Ht,5)),t&2){let d;f(d=_())&&(r.stepLabel=d.first),f(d=_())&&(r._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[le([{provide:q,useExisting:i},{provide:ie,useExisting:i}]),j,z],ngContentSelectors:it,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,r){t&1&&(Q(),u(0,Et,2,1,"ng-template"))},dependencies:[Ke],encapsulation:2,changeDetection:0});let n=i;return n})(),lt=(()=>{let i=class i extends ne{get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}constructor(e,t,r){super(e,t,r),this._stepHeader=void 0,this._steps=void 0,this.steps=new N,this.animationDone=new R,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P,this._animationDuration="",this._isServer=!ke(Qe).isBrowser;let o=r.nativeElement.nodeName.toLowerCase();this.orientation=o==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(S(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Me((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),S(this._destroyed)).subscribe(e=>{e.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?ot:st}};i.\u0275fac=function(t){return new(t||i)(l(te,8),l(U),l(O))},i.\u0275cmp=k({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,r,o){if(t&1&&(g(o,Vt,5),g(o,jt,5)),t&2){let d;f(d=_())&&(r._steps=d),f(d=_())&&(r._icons=d)}},viewQuery:function(t,r){if(t&1&&ee(Ie,5),t&2){let o;f(o=_())&&(r._stepHeader=o)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(t,r){t&2&&(H("aria-orientation",r.orientation),x("mat-stepper-horizontal",r.orientation==="horizontal")("mat-stepper-vertical",r.orientation==="vertical")("mat-stepper-label-position-end",r.orientation==="horizontal"&&r.labelPosition=="end")("mat-stepper-label-position-bottom",r.orientation==="horizontal"&&r.labelPosition=="bottom")("mat-stepper-header-position-bottom",r.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[le([{provide:ne,useExisting:i}]),j,z],ngContentSelectors:it,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,r){if(t&1&&(Q(),u(0,wt,1,0)(1,zt,7,0,"div",1)(2,Pt,2,0)(3,At,1,23,"ng-template",null,0,Ne)),t&2){let o;v(r._isServer?0:-1),s(),v((o=r.orientation)==="horizontal"?1:o==="vertical"?2:-1)}},dependencies:[ce,Ie],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[tt.horizontalStepTransition,tt.verticalStepTransition]},changeDetection:0});let n=i;return n})();var Fi=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=W({type:i}),i.\u0275inj=K({providers:[Nt,q],imports:[ve,He,We,et,Xe,Ze,lt,Ie,ve]});let n=i;return n})();export{ye as a,xe as b,jt as c,Ht as d,Vt as e,lt as f,Fi as g};
1
+ import{a as Je,b as Xe}from"./chunk-GNY5TY3R.js";import{h as Ge,j as Ke,k as We}from"./chunk-2SC3HO66.js";import{D as Ue,G as te,H as qe,K as ve,Q as q,S as Ye,T as Ze,g as Ve,h as Qe,o as Be,w as $e}from"./chunk-DQIP7MCZ.js";import{$ as Ee,$a as H,Aa as N,Ac as ce,Cb as g,Db as ee,Eb as f,Fb as _,Fc as He,Ib as se,Ja as s,Jb as I,K as Me,Ka as l,Kb as C,Ma as D,Qb as le,Rb as z,S as w,T as Te,Ta as Pe,Tb as pe,Ub as $,V as S,Xa as j,Za as ae,_ as G,_a as u,a as Ce,aa as K,ab as m,ba as we,c as P,cb as x,cd as de,da as ke,dc as Ne,dd as he,ea as Oe,eb as Ae,ed as me,fa as Re,fb as Le,ga as k,gd as T,ha as W,hb as v,hd as E,ia as y,jb as Y,jd as ue,kb as Z,lb as J,lc as U,ld as fe,mb as c,mc as F,n as Se,na as ze,nb as h,nc as je,nd as _e,oa as A,ob as oe,pa as L,q as De,rb as M,sa as Fe,sb as X,vb as V,xb as p,ya as O,yb as Q,za as R,zb as B}from"./chunk-ZIZWZZ4E.js";var ut=["*"];function ft(n,i){n&1&&B(0)}var ge=(()=>{let i=class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}};i.\u0275fac=function(t){return new(t||i)(l(O))},i.\u0275dir=y({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let n=i;return n})(),be=(()=>{let i=class i{constructor(e){this.template=e}};i.\u0275fac=function(t){return new(t||i)(l(D))},i.\u0275dir=y({type:i,selectors:[["","cdkStepLabel",""]],standalone:!0});let n=i;return n})(),_t=0;var b={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},ye=new we("STEPPER_GLOBAL_OPTIONS"),ie=(()=>{let i=class i{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new R,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}};i.\u0275fac=function(t){return new(t||i)(l(G(()=>ne)),l(ye,8))},i.\u0275cmp=k({type:i,selectors:[["cdk-step"]],contentQueries:function(t,r,o){if(t&1&&g(o,be,5),t&2){let d;f(d=_())&&(r.stepLabel=d.first)}},viewQuery:function(t,r){if(t&1&&ee(D,7),t&2){let o;f(o=_())&&(r.content=o.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",F],optional:[2,"optional","optional",F],completed:[2,"completed","completed",F],hasError:[2,"hasError","hasError",F]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[ae,ze,z],ngContentSelectors:ut,decls:1,vars:0,template:function(t,r){t&1&&(Q(),u(0,ft,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let n=i;return n})(),ne=(()=>{let i=class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new P,this.steps=new N,this._sortedHeaders=new N,this.linear=!1,this._selectedIndex=0,this.selectionChange=new R,this.selectedIndexChange=new R,this._orientation="horizontal",this._groupId=_t++}ngAfterContentInit(){this._steps.changes.pipe(w(this._steps),S(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(w(this._stepHeader),S(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new $e(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:Se()).pipe(w(this._layoutDirection()),S(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=b.NUMBER){let r=this.steps.toArray()[e],o=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,o):this._getGuidelineLogic(r,o,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?b.ERROR:!e.completed||t?b.NUMBER:e.editable?b.EDIT:b.DONE}_getGuidelineLogic(e,t,r=b.NUMBER){return e._showError()&&e.hasError&&!t?b.ERROR:e.completed&&!t?b.DONE:e.completed&&t?r:e.editable&&t?b.EDIT:r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Ve(e),r=e.keyCode,o=this._keyManager;o.activeItemIndex!=null&&!t&&(r===32||r===13)?(this.selectedIndex=o.activeItemIndex,e.preventDefault()):o.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Be();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}};i.\u0275fac=function(t){return new(t||i)(l(te,8),l(U),l(O))},i.\u0275dir=y({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,r,o){if(t&1&&(g(o,ie,5),g(o,ge,5)),t&2){let d;f(d=_())&&(r._steps=d),f(d=_())&&(r._stepHeader=d)}},inputs:{linear:[2,"linear","linear",F],selectedIndex:[2,"selectedIndex","selectedIndex",je],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"],standalone:!0,features:[ae]});let n=i;return n})();var et=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=W({type:i}),i.\u0275inj=K({imports:[qe]});let n=i;return n})();function vt(n,i){if(n&1&&M(0,2),n&2){let a=p();m("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",a._getIconContext())}}function gt(n,i){if(n&1&&(c(0,"span",7),I(1),h()),n&2){let a=p(2);s(),C(a._getDefaultTextForState(a.state))}}function bt(n,i){if(n&1&&(c(0,"span",8),I(1),h()),n&2){let a=p(3);s(),C(a._intl.completedLabel)}}function yt(n,i){if(n&1&&(c(0,"span",8),I(1),h()),n&2){let a=p(3);s(),C(a._intl.editableLabel)}}function xt(n,i){if(n&1&&(u(0,bt,2,1,"span",8)(1,yt,2,1,"span",8),c(2,"mat-icon",7),I(3),h()),n&2){let a=p(2);v(a.state==="done"?0:a.state==="edit"?1:-1),s(3),C(a._getDefaultTextForState(a.state))}}function It(n,i){if(n&1&&u(0,gt,2,1,"span",7)(1,xt,4,2,"mat-icon",7),n&2){let a,e=p();v((a=e.state)==="number"?0:1)}}function Ct(n,i){n&1&&(c(0,"div",4),M(1,9),h()),n&2&&(s(),m("ngTemplateOutlet",i.template))}function St(n,i){if(n&1&&(c(0,"div",4),I(1),h()),n&2){let a=p();s(),C(a.label)}}function Dt(n,i){if(n&1&&(c(0,"div",5),I(1),h()),n&2){let a=p();s(),C(a._intl.optionalLabel)}}function Mt(n,i){if(n&1&&(c(0,"div",6),I(1),h()),n&2){let a=p();s(),C(a.errorMessage)}}var it=["*"];function Tt(n,i){}function Et(n,i){if(n&1&&(B(0),u(1,Tt,0,0,"ng-template",0)),n&2){let a=p();s(),m("cdkPortalOutlet",a._portal)}}var nt=(n,i)=>({step:n,i}),rt=n=>({animationDuration:n}),at=(n,i)=>({value:n,params:i});function wt(n,i){n&1&&B(0)}function kt(n,i){n&1&&oe(0,"div",6)}function Ot(n,i){if(n&1&&(M(0,5),u(1,kt,1,0,"div",6)),n&2){let a=i.$implicit,e=i.$index,t=i.$count;p(2);let r=se(4);m("ngTemplateOutlet",r)("ngTemplateOutletContext",$(3,nt,a,e)),s(),v(e!==t-1?1:-1)}}function Rt(n,i){if(n&1){let a=X();c(0,"div",7),V("@horizontalStepTransition.done",function(t){A(a);let r=p(2);return L(r._animationDone.next(t))}),M(1,8),h()}if(n&2){let a=i.$implicit,e=i.$index,t=p(2);x("mat-horizontal-stepper-content-inactive",t.selectedIndex!==e),m("@horizontalStepTransition",$(8,at,t._getAnimationDirection(e),pe(6,rt,t._getAnimationDuration())))("id",t._getStepContentId(e)),H("aria-labelledby",t._getStepLabelId(e)),s(),m("ngTemplateOutlet",a.content)}}function zt(n,i){if(n&1&&(c(0,"div",1)(1,"div",2),Z(2,Ot,2,6,null,null,Y),h(),c(4,"div",3),Z(5,Rt,2,11,"div",4,Y),h()()),n&2){let a=p();s(2),J(a.steps),s(3),J(a.steps)}}function Ft(n,i){if(n&1){let a=X();c(0,"div",9),M(1,5),c(2,"div",10)(3,"div",11),V("@verticalStepTransition.done",function(t){A(a);let r=p(2);return L(r._animationDone.next(t))}),c(4,"div",12),M(5,8),h()()()()}if(n&2){let a=i.$implicit,e=i.$index,t=i.$count,r=p(2),o=se(4);s(),m("ngTemplateOutlet",o)("ngTemplateOutletContext",$(10,nt,a,e)),s(),x("mat-stepper-vertical-line",e!==t-1),s(),x("mat-vertical-stepper-content-inactive",r.selectedIndex!==e),m("@verticalStepTransition",$(15,at,r._getAnimationDirection(e),pe(13,rt,r._getAnimationDuration())))("id",r._getStepContentId(e)),H("aria-labelledby",r._getStepLabelId(e)),s(2),m("ngTemplateOutlet",a.content)}}function Pt(n,i){if(n&1&&Z(0,Ft,6,18,"div",9,Y),n&2){let a=p();J(a.steps)}}function At(n,i){if(n&1){let a=X();c(0,"mat-step-header",13),V("click",function(){let t=A(a).step;return L(t.select())})("keydown",function(t){A(a);let r=p();return L(r._onKeydown(t))}),h()}if(n&2){let a=i.step,e=i.i,t=p();x("mat-horizontal-stepper-header",t.orientation==="horizontal")("mat-vertical-stepper-header",t.orientation==="vertical"),m("tabIndex",t._getFocusIndex()===e?0:-1)("id",t._getStepLabelId(e))("index",e)("state",t._getIndicatorType(e,a.state))("label",a.stepLabel||a.label)("selected",t.selectedIndex===e)("active",t._stepIsNavigable(e,a))("optional",a.optional)("errorMessage",a.errorMessage)("iconOverrides",t._iconOverrides)("disableRipple",t.disableRipple||!t._stepIsNavigable(e,a))("color",a.color||t.color),H("aria-posinset",e+1)("aria-setsize",t.steps.length)("aria-controls",t._getStepContentId(e))("aria-selected",t.selectedIndex==e)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null)("aria-disabled",t._stepIsNavigable(e,a)?null:!0)}}var xe=(()=>{let i=class i extends be{};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Fe(i)))(r||i)}})(),i.\u0275dir=y({type:i,selectors:[["","matStepLabel",""]],standalone:!0,features:[j]});let n=i;return n})(),re=(()=>{let i=class i{constructor(){this.changes=new P,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ee({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();function Lt(n){return n||new re}var Nt={provide:re,deps:[[new Oe,new Re,re]],useFactory:Lt},Ie=(()=>{let i=class i extends ge{constructor(e,t,r,o){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>o.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof xe?null:this.label}_templateLabel(){return this.label instanceof xe?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}};i.\u0275fac=function(t){return new(t||i)(l(re),l(Ue),l(O),l(U))},i.\u0275cmp=k({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,r){t&2&&Ae("mat-"+(r.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[j,z],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,r){if(t&1&&(oe(0,"div",0),c(1,"div")(2,"div",1),u(3,vt,1,2,"ng-container",2)(4,It,2,1),h()(),c(5,"div",3),u(6,Ct,2,1,"div",4)(7,St,2,1,"div",4)(8,Dt,2,1,"div",5)(9,Mt,2,1,"div",6),h()),t&2){let o;m("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),s(),Le("mat-step-icon-state-",r.state," mat-step-icon"),x("mat-step-icon-selected",r.selected),s(2),v(r.iconOverrides&&r.iconOverrides[r.state]?3:4),s(2),x("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error",r.state=="error"),s(),v((o=r._templateLabel())?6:r._stringLabel()?7:-1,o),s(2),v(r.optional&&r.state!="error"?8:-1),s(),v(r.state==="error"?9:-1)}},dependencies:[Ye,ce,Je],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0});let n=i;return n})(),ot="500ms",st="225ms",tt={horizontalStepTransition:de("horizontalStepTransition",[E("previous",T({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),E("current",T({transform:"none",visibility:"inherit"})),E("next",T({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),ue("* => *",me([he("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),_e("@*",fe(),{optional:!0})]),{params:{animationDuration:ot}})]),verticalStepTransition:de("verticalStepTransition",[E("previous",T({height:"0px",visibility:"hidden"})),E("next",T({height:"0px",visibility:"hidden"})),E("current",T({height:"*",visibility:"inherit"})),ue("* <=> current",me([he("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),_e("@*",fe(),{optional:!0})]),{params:{animationDuration:st}})])},jt=(()=>{let i=class i{constructor(e){this.templateRef=e}};i.\u0275fac=function(t){return new(t||i)(l(D))},i.\u0275dir=y({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let n=i;return n})(),Ht=(()=>{let i=class i{constructor(e){this._template=e}};i.\u0275fac=function(t){return new(t||i)(l(D))},i.\u0275dir=y({type:i,selectors:[["ng-template","matStepContent",""]],standalone:!0});let n=i;return n})(),Vt=(()=>{let i=class i extends ie{constructor(e,t,r,o){super(e,o),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=Ce.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Te(()=>this._stepper.selectionChange.pipe(De(e=>e.selectedStep===this),w(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Ge(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let r=this._errorStateMatcher.isErrorState(e,t),o=!!(e&&e.invalid&&this.interacted);return r||o}};i.\u0275fac=function(t){return new(t||i)(l(G(()=>lt)),l(q,4),l(Pe),l(ye,8))},i.\u0275cmp=k({type:i,selectors:[["mat-step"]],contentQueries:function(t,r,o){if(t&1&&(g(o,xe,5),g(o,Ht,5)),t&2){let d;f(d=_())&&(r.stepLabel=d.first),f(d=_())&&(r._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[le([{provide:q,useExisting:i},{provide:ie,useExisting:i}]),j,z],ngContentSelectors:it,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,r){t&1&&(Q(),u(0,Et,2,1,"ng-template"))},dependencies:[Ke],encapsulation:2,changeDetection:0});let n=i;return n})(),lt=(()=>{let i=class i extends ne{get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}constructor(e,t,r){super(e,t,r),this._stepHeader=void 0,this._steps=void 0,this.steps=new N,this.animationDone=new R,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P,this._animationDuration="",this._isServer=!ke(Qe).isBrowser;let o=r.nativeElement.nodeName.toLowerCase();this.orientation=o==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(S(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Me((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),S(this._destroyed)).subscribe(e=>{e.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?ot:st}};i.\u0275fac=function(t){return new(t||i)(l(te,8),l(U),l(O))},i.\u0275cmp=k({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,r,o){if(t&1&&(g(o,Vt,5),g(o,jt,5)),t&2){let d;f(d=_())&&(r._steps=d),f(d=_())&&(r._icons=d)}},viewQuery:function(t,r){if(t&1&&ee(Ie,5),t&2){let o;f(o=_())&&(r._stepHeader=o)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(t,r){t&2&&(H("aria-orientation",r.orientation),x("mat-stepper-horizontal",r.orientation==="horizontal")("mat-stepper-vertical",r.orientation==="vertical")("mat-stepper-label-position-end",r.orientation==="horizontal"&&r.labelPosition=="end")("mat-stepper-label-position-bottom",r.orientation==="horizontal"&&r.labelPosition=="bottom")("mat-stepper-header-position-bottom",r.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[le([{provide:ne,useExisting:i}]),j,z],ngContentSelectors:it,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,r){if(t&1&&(Q(),u(0,wt,1,0)(1,zt,7,0,"div",1)(2,Pt,2,0)(3,At,1,23,"ng-template",null,0,Ne)),t&2){let o;v(r._isServer?0:-1),s(),v((o=r.orientation)==="horizontal"?1:o==="vertical"?2:-1)}},dependencies:[ce,Ie],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[tt.horizontalStepTransition,tt.verticalStepTransition]},changeDetection:0});let n=i;return n})();var Fi=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=W({type:i}),i.\u0275inj=K({providers:[Nt,q],imports:[ve,He,We,et,Xe,Ze,lt,Ie,ve]});let n=i;return n})();export{ye as a,xe as b,jt as c,Ht as d,Vt as e,lt as f,Fi as g};
@@ -1,4 +1,4 @@
1
- import{e as Ke}from"./chunk-NVF24LK5.js";import{a as Fe,b as ue,c as Le,d as He,e as de,f as $e,g as he,h as We,i as q,j as pe,k as E}from"./chunk-KCDL7SWP.js";import{b as le,c as z,d as Ue}from"./chunk-X4WLRMDP.js";import{$ as b,A as Pe,B as De,Ca as H,Dc as Oe,Ec as Me,Fc as Be,I as ie,N as _e,Pa as $,Q as se,T as _,U as ae,Wc as Ne,X as U,aa as F,b as g,ba as y,c as X,ca as h,cc as Re,dc as je,ea as xe,g as Ee,h as Te,ha as L,ic as ce,k as M,l as N,m as x,n as K,q as P,r as Ce}from"./chunk-HSFUKC7R.js";import{a as oe,i as I}from"./chunk-GNOSNGXM.js";var ze={production:!0,version:"3.19.3",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:omni&sort=sortOrder:asc"};var pt="firebase",ft="10.12.1";q(pt,ft,"app");var G=new Re("ANGULARFIRE2_VERSION");var gt=(r,i)=>{let t=i?[i]:We(),e=[];return t.forEach(n=>{n.container.getProvider(r).instances.forEach(s=>{e.includes(s)||e.push(s)})}),e},V=class{constructor(){return gt(mt)}},mt="app-check";function fe(){}var Y=class{zone;delegate;constructor(i,t=Te){this.zone=i,this.delegate=t}now(){return this.delegate.now()}schedule(i,t,e){let n=this.zone,o=function(s){n.runGuarded(()=>{i.apply(this,[s])})};return this.delegate.schedule(o,t,e)}},ge=class{zone;task=null;constructor(i){this.zone=i}call(i,t){let e=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",fe,{},fe,fe)),t.pipe(U({next:e,complete:e,error:e})).subscribe(i).add(e)}unscheduleTask(){setTimeout(()=>{this.task!=null&&this.task.state==="scheduled"&&(this.task.invoke(),this.task=null)},10)}},qe=(()=>{class r{ngZone;outsideAngular;insideAngular;constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new Y(Zone.current)),this.insideAngular=t.run(()=>new Y(Zone.current,Ee)),globalThis.\u0275AngularFireScheduler||=this}static \u0275fac=function(e){return new(e||r)(h($))};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function At(){let r=globalThis.\u0275AngularFireScheduler;if(!r)throw new Error(`Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using
1
+ import{e as Ke}from"./chunk-JHYIHRQH.js";import{a as Fe,b as ue,c as Le,d as He,e as de,f as $e,g as he,h as We,i as q,j as pe,k as E}from"./chunk-KCDL7SWP.js";import{b as le,c as z,d as Ue}from"./chunk-FTHTFVHH.js";import{$ as b,A as Pe,B as De,Ca as H,Fc as Oe,Gc as Me,Hc as Be,I as ie,N as _e,Q as se,Qa as $,T as _,U as ae,X as U,Yc as Ne,aa as F,b as g,ba as y,c as X,ca as h,ea as xe,ec as Re,fc as je,g as Ee,h as Te,ha as L,k as M,kc as ce,l as N,m as x,n as K,q as P,r as Ce}from"./chunk-ZIZWZZ4E.js";import{a as oe,i as I}from"./chunk-GNOSNGXM.js";var ze={production:!0,version:"3.20.1",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:omni&sort=sortOrder:asc"};var pt="firebase",ft="10.12.1";q(pt,ft,"app");var G=new Re("ANGULARFIRE2_VERSION");var gt=(r,i)=>{let t=i?[i]:We(),e=[];return t.forEach(n=>{n.container.getProvider(r).instances.forEach(s=>{e.includes(s)||e.push(s)})}),e},V=class{constructor(){return gt(mt)}},mt="app-check";function fe(){}var Y=class{zone;delegate;constructor(i,t=Te){this.zone=i,this.delegate=t}now(){return this.delegate.now()}schedule(i,t,e){let n=this.zone,o=function(s){n.runGuarded(()=>{i.apply(this,[s])})};return this.delegate.schedule(o,t,e)}},ge=class{zone;task=null;constructor(i){this.zone=i}call(i,t){let e=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",fe,{},fe,fe)),t.pipe(U({next:e,complete:e,error:e})).subscribe(i).add(e)}unscheduleTask(){setTimeout(()=>{this.task!=null&&this.task.state==="scheduled"&&(this.task.invoke(),this.task=null)},10)}},qe=(()=>{class r{ngZone;outsideAngular;insideAngular;constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new Y(Zone.current)),this.insideAngular=t.run(()=>new Y(Zone.current,Ee)),globalThis.\u0275AngularFireScheduler||=this}static \u0275fac=function(e){return new(e||r)(h($))};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function At(){let r=globalThis.\u0275AngularFireScheduler;if(!r)throw new Error(`Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using
2
2
  provideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).`);return r}function Ve(r){return wt(At())(r)}function wt(r){return function(t){return t=t.lift(new ge(r.ngZone)),t.pipe(N(r.outsideAngular),M(r.insideAngular))}}var Ge=(()=>{let i=class i{constructor(){}getParseToken(){let e=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(e.Token.access_token)}GetRoles(){let n=this.getParseToken()["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];return n||[]}ParseToken(e){try{let o=e.split(".")[0].replace("-","+").replace("_","/"),s=JSON.parse(window.atob(o)),c=e.split(".")[1].replace("-","+").replace("_","/"),l=JSON.parse(window.atob(c));return l.header=s,l}catch{return!1}}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var bt=new Map,St={activated:!1,tokenObservers:[]},It={initialized:!1,enabled:!1};function T(r){return bt.get(r)||Object.assign({},St)}function Qe(){return It}var yt="https://content-firebaseappcheck.googleapis.com/v1";var Et="exchangeDebugToken",Je={OFFSET_DURATION:5*60*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:16*60*1e3},Ao=24*60*60*1e3;var Ae=class{constructor(i,t,e,n,o){if(this.operation=i,this.retryPolicy=t,this.getWaitDuration=e,this.lowerBound=n,this.upperBound=o,this.pending=null,this.nextErrorWaitInterval=n,n>o)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(i){return I(this,null,function*(){this.stop();try{this.pending=new ue,this.pending.promise.catch(t=>{}),yield Tt(this.getNextRun(i)),this.pending.resolve(),yield this.pending.promise,this.pending=new ue,this.pending.promise.catch(t=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(t){this.retryPolicy(t)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(i){if(i)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t}}};function Tt(r){return new Promise(i=>{setTimeout(i,r)})}var Ct={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"},R=new He("appCheck","AppCheck",Ct);function et(r){if(!T(r).activated)throw R.create("use-before-activation",{appName:r.name})}function tt(e,n){return I(this,arguments,function*({url:r,body:i},t){let o={"Content-Type":"application/json"},s=t.getImmediate({optional:!0});if(s){let f=yield s.getHeartbeatsHeader();f&&(o["X-Firebase-Client"]=f)}let a={method:"POST",body:JSON.stringify(i),headers:o},c;try{c=yield fetch(r,a)}catch(f){throw R.create("fetch-network-error",{originalErrorMessage:f?.message})}if(c.status!==200)throw R.create("fetch-status-error",{httpStatus:c.status});let l;try{l=yield c.json()}catch(f){throw R.create("fetch-parse-error",{originalErrorMessage:f?.message})}let d=l.ttl.match(/^([\d.]+)(s)$/);if(!d||!d[2]||isNaN(Number(d[1])))throw R.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${l.ttl}`});let u=Number(d[1])*1e3,p=Date.now();return{token:l.token,expireTimeMillis:p+u,issuedAtTimeMillis:p}})}function nt(r,i){let{projectId:t,appId:e,apiKey:n}=r.options;return{url:`${yt}/projects/${t}/apps/${e}:${Et}?key=${n}`,body:{debug_token:i}}}var Pt="firebase-app-check-database",Dt=1,we="firebase-app-check-store";var Q=null;function _t(){return Q||(Q=new Promise((r,i)=>{try{let t=indexedDB.open(Pt,Dt);t.onsuccess=e=>{r(e.target.result)},t.onerror=e=>{var n;i(R.create("storage-open",{originalErrorMessage:(n=e.target.error)===null||n===void 0?void 0:n.message}))},t.onupgradeneeded=e=>{let n=e.target.result;switch(e.oldVersion){case 0:n.createObjectStore(we,{keyPath:"compositeKey"})}}}catch(t){i(R.create("storage-open",{originalErrorMessage:t?.message}))}}),Q)}function xt(r,i){return Rt(jt(r),i)}function Rt(r,i){return I(this,null,function*(){let e=(yield _t()).transaction(we,"readwrite"),o=e.objectStore(we).put({compositeKey:r,value:i});return new Promise((s,a)=>{o.onsuccess=c=>{s()},e.onerror=c=>{var l;a(R.create("storage-set",{originalErrorMessage:(l=c.target.error)===null||l===void 0?void 0:l.message}))}})})}function jt(r){return`${r.options.appId}-${r.name}`}var ke=new $e("@firebase/app-check");function me(r,i){return Le()?xt(r,i).catch(t=>{ke.warn(`Failed to write token to IndexedDB. Error: ${t}`)}):Promise.resolve()}function rt(){return Qe().enabled}function ot(){return I(this,null,function*(){let r=Qe();if(r.enabled&&r.token)return r.token.promise;throw Error(`
3
3
  Can't get debug token in production mode.
4
4
  `)})}var Ot={error:"UNKNOWN_ERROR"};function Mt(r){return Fe.encodeString(JSON.stringify(r),!1)}function ve(r,i=!1){return I(this,null,function*(){let t=r.app;et(t);let e=T(t),n=e.token,o;if(n&&!J(n)&&(e.token=void 0,n=void 0),!n){let c=yield e.cachedTokenPromise;c&&(J(c)?n=c:yield me(t,void 0))}if(!i&&n&&J(n))return{token:n.token};let s=!1;if(rt()){e.exchangeTokenPromise||(e.exchangeTokenPromise=tt(nt(t,yield ot()),r.heartbeatServiceProvider).finally(()=>{e.exchangeTokenPromise=void 0}),s=!0);let c=yield e.exchangeTokenPromise;return yield me(t,c),e.token=c,{token:c.token}}try{e.exchangeTokenPromise||(e.exchangeTokenPromise=e.provider.getToken().finally(()=>{e.exchangeTokenPromise=void 0}),s=!0),n=yield T(t).exchangeTokenPromise}catch(c){c.code==="appCheck/throttled"?ke.warn(c.message):ke.error(c),o=c}let a;return n?o?J(n)?a={token:n.token,internalError:o}:a=Xe(o):(a={token:n.token},e.token=n,yield me(t,n)):a=Xe(o),s&&Lt(t,a),a})}function Bt(r){return I(this,null,function*(){let i=r.app;et(i);let{provider:t}=T(i);if(rt()){let e=yield ot(),{token:n}=yield tt(nt(i,e),r.heartbeatServiceProvider);return{token:n}}else{let{token:e}=yield t.getToken();return{token:e}}})}function Nt(r,i,t,e){let{app:n}=r,o=T(n),s={next:t,error:e,type:i};if(o.tokenObservers=[...o.tokenObservers,s],o.token&&J(o.token)){let a=o.token;Promise.resolve().then(()=>{t({token:a.token}),Ze(r)}).catch(()=>{})}o.cachedTokenPromise.then(()=>Ze(r))}function it(r,i){let t=T(r),e=t.tokenObservers.filter(n=>n.next!==i);e.length===0&&t.tokenRefresher&&t.tokenRefresher.isRunning()&&t.tokenRefresher.stop(),t.tokenObservers=e}function Ze(r){let{app:i}=r,t=T(i),e=t.tokenRefresher;e||(e=Ft(r),t.tokenRefresher=e),!e.isRunning()&&t.isTokenAutoRefreshEnabled&&e.start()}function Ft(r){let{app:i}=r;return new Ae(()=>I(this,null,function*(){let t=T(i),e;if(t.token?e=yield ve(r,!0):e=yield ve(r),e.error)throw e.error;if(e.internalError)throw e.internalError}),()=>!0,()=>{let t=T(i);if(t.token){let e=t.token.issuedAtTimeMillis+(t.token.expireTimeMillis-t.token.issuedAtTimeMillis)*.5+3e5,n=t.token.expireTimeMillis-5*60*1e3;return e=Math.min(e,n),Math.max(0,e-Date.now())}else return 0},Je.RETRIAL_MIN_WAIT,Je.RETRIAL_MAX_WAIT)}function Lt(r,i){let t=T(r).tokenObservers;for(let e of t)try{e.type==="EXTERNAL"&&i.error!=null?e.error(i.error):e.next(i)}catch{}}function J(r){return r.expireTimeMillis-Date.now()>0}function Xe(r){return{token:Mt(Ot),error:r}}var be=class{constructor(i,t){this.app=i,this.heartbeatServiceProvider=t}_delete(){let{tokenObservers:i}=T(this.app);for(let t of i)it(this.app,t.next);return Promise.resolve()}};function Ht(r,i){return new be(r,i)}function $t(r){return{getToken:i=>ve(r,i),getLimitedUseToken:()=>Bt(r),addTokenListener:i=>Nt(r,"INTERNAL",i),removeTokenListener:i=>it(r.app,i)}}var Wt="@firebase/app-check",Kt="0.8.4";var Ut="app-check",Ye="app-check-internal";function zt(){he(new de(Ut,r=>{let i=r.getProvider("app").getImmediate(),t=r.getProvider("heartbeat");return Ht(i,t)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((r,i,t)=>{r.getProvider(Ye).initialize()})),he(new de(Ye,r=>{let i=r.getProvider("app-check").getImmediate();return $t(i)},"PUBLIC").setInstantiationMode("EXPLICIT")),q(Wt,Kt)}zt();var qt=["localhost","0.0.0.0","127.0.0.1"],Do=typeof window<"u"&&qt.includes(window.location.hostname);var Gt="firebase",Jt="10.12.1";E.registerVersion(Gt,Jt,"app-compat");var Zt=["ngOnDestroy"],at=(r,i,t,e={})=>new Proxy(r,{get:(n,o)=>t.runOutsideAngular(()=>{if(r[o])return e?.spy?.get&&e.spy.get(o,r[o]),r[o];if(Zt.indexOf(o)>-1)return()=>{};let s=i.toPromise().then(a=>{let c=a?.[o];return typeof c=="function"?c.bind(a):c?.then?c.then(l=>t.run(()=>l)):t.run(()=>c)});return new Proxy(()=>{},{get:(a,c)=>s[c],apply:(a,c,l)=>s.then(d=>{let u=d?.(...l);return e?.spy?.apply&&e.spy.apply(o,l,u),u})})})});var ee=class{constructor(i){return i}},te=new y("angularfire2.app.options"),ne=new y("angularfire2.app.name");function Se(r,i,t){let e=typeof t=="string"&&t||"[DEFAULT]",n=typeof t=="object"&&t||{};n.name=n.name||e;let s=E.apps.filter(a=>a&&a.name===n.name)[0]||i.runOutsideAngular(()=>E.initializeApp(r,n));try{if(JSON.stringify(r)!==JSON.stringify(s.options)){let a=!!module.hot;Xt("error",`${s.name} Firebase App already initialized with different options${a?", you may need to reload as Firebase is not HMR aware.":"."}`)}}catch{}return new ee(s)}var Xt=(r,...i)=>{ce()&&typeof console<"u"&&console[r](...i)},Yt={provide:ee,useFactory:Se,deps:[te,$,[new xe,ne]]},Ho=(()=>{class r{static initializeApp(t,e){return{ngModule:r,providers:[{provide:te,useValue:t},{provide:ne,useValue:e}]}}constructor(t){E.registerVersion("angularfire",G.full,"core"),E.registerVersion("angularfire",G.full,"app-compat"),E.registerVersion("angular",je.full,t.toString())}static \u0275fac=function(e){return new(e||r)(h(H))};static \u0275mod=L({type:r});static \u0275inj=F({providers:[Yt]})}return r})();function ct(r,i,t,e,n){let[,o,s]=globalThis.\u0275AngularfireInstanceCache.find(a=>a[0]===r)||[];if(o)return Qt(n,s)||(st("error",`${i} was already initialized on the ${t} Firebase App with different settings.${en?" You may need to reload as Firebase is not HMR aware.":""}`),st("warn",{is:n,was:s})),o;{let a=e();return globalThis.\u0275AngularfireInstanceCache.push([r,a,n]),a}}function Qt(r,i){try{return r.toString()===i.toString()}catch{return r===i}}var en=typeof module<"u"&&!!module.hot,st=(r,...i)=>{ce()&&typeof console<"u"&&console[r](...i)};globalThis.\u0275AngularfireInstanceCache||=[];var tn=new y("angularfire2.auth.use-emulator"),nn=new y("angularfire2.auth.settings"),rn=new y("angularfire2.auth.tenant-id"),on=new y("angularfire2.auth.langugage-code"),sn=new y("angularfire2.auth.use-device-language"),an=new y("angularfire.auth.persistence"),cn=(r,i,t,e,n,o,s,a)=>ct(`${r.name}.auth`,"AngularFireAuth",r.name,()=>{let c=i.runOutsideAngular(()=>r.auth());if(t&&c.useEmulator(...t),e&&(c.tenantId=e),c.languageCode=n,o&&c.useDeviceLanguage(),s)for(let[l,d]of Object.entries(s))c.settings[l]=d;return a&&c.setPersistence(a),c},[t,e,n,o,s,a]),Ie=(()=>{class r{authState;idToken;user;idTokenResult;credential;constructor(t,e,n,o,s,a,c,l,d,u,p,f){let W=new X,j=K(void 0).pipe(M(s.outsideAngular),_(()=>o.runOutsideAngular(()=>import("./chunk-F4WIW6HA.js"))),P(()=>Se(t,o,e)),P(C=>cn(C,o,a,l,d,u,c,p)),se({bufferSize:1,refCount:!1}));if(Be(n))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=K(null);else{j.pipe(_e()).subscribe();let C=j.pipe(_(A=>A.getRedirectResult().then(D=>D,()=>null)),Ve,se({bufferSize:1,refCount:!1})),Z=j.pipe(_(A=>new g(D=>({unsubscribe:o.runOutsideAngular(()=>A.onAuthStateChanged(O=>D.next(O),O=>D.error(O),()=>D.complete()))})))),re=j.pipe(_(A=>new g(D=>({unsubscribe:o.runOutsideAngular(()=>A.onIdTokenChanged(O=>D.next(O),O=>D.error(O),()=>D.complete()))}))));this.authState=C.pipe(ae(Z),N(s.outsideAngular),M(s.insideAngular)),this.user=C.pipe(ae(re),N(s.outsideAngular),M(s.insideAngular)),this.idToken=this.user.pipe(_(A=>A?x(A.getIdToken()):K(null))),this.idTokenResult=this.user.pipe(_(A=>A?x(A.getIdTokenResult()):K(null))),this.credential=Pe(C,W,this.authState.pipe(De(A=>!A))).pipe(P(A=>A?.user?A:null),N(s.outsideAngular),M(s.insideAngular))}return at(this,j,o,{spy:{apply:(C,Z,re)=>{(C.startsWith("signIn")||C.startsWith("createUser"))&&re.then(A=>W.next(A))}}})}static \u0275fac=function(e){return new(e||r)(h(te),h(ne,8),h(H),h($),h(qe),h(tn,8),h(nn,8),h(rn,8),h(on,8),h(sn,8),h(an,8),h(V,8))};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"any"})}return r})(),ti=(()=>{class r{constructor(){E.registerVersion("angularfire",G.full,"auth-compat")}static \u0275fac=function(e){return new(e||r)};static \u0275mod=L({type:r});static \u0275inj=F({providers:[Ie]})}return r})();function m(r,i,t,e){return new Promise((n,o)=>{r||o("IndexedDB not available");let s=r.open(i,t),a;s.onsuccess=c=>{a=s.result,n(a)},s.onerror=c=>{o(`IndexedDB error: ${s.error}`)},typeof e=="function"&&(s.onupgradeneeded=c=>{e(c,a)})})}function lt(r,i,t,e,n){if(!r)return;let o=r.open(i,t);o.onupgradeneeded=s=>{let a=s.target.result;e.forEach(l=>{if(!a.objectStoreNames.contains(l.store)){let d=a.createObjectStore(l.store,l.storeConfig);l.storeSchema.forEach(u=>{d.createIndex(u.name,u.keypath,u.options)})}});let c=n&&n();c&&Object.keys(c).map(l=>parseInt(l,10)).filter(l=>l>s.oldVersion).sort((l,d)=>l-d).forEach(l=>{c[l](a,o.transaction)}),a.close()},o.onsuccess=s=>{s.target.result.close()}}function un(r,i,t){if(!r||!i||!t)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new g(e=>{try{let n=i+1,o=indexedDB.open(r,n);o.onupgradeneeded=s=>{let a=s.target.result;a.deleteObjectStore(t),a.close(),console.log("onupgradeneeded"),e.next(!0),e.complete()},o.onerror=s=>e.error(s)}catch(n){e.error(n)}})}function dn(r,i){return r.objectStoreNames.contains(i)}function S(r,i,t){r||t("You need to use the openDatabase function to create a database before you query it!"),dn(r,i)||t(`objectStore does not exists: ${i}`)}function k(r,i){let t=r.transaction(i.storeName,i.dbMode);return t.onerror=i.error,t.onabort=i.abort,t}function v(r,i,t,e){return{storeName:i,dbMode:r,error:n=>{t(n)},abort:n=>{t(n)}}}var w=function(r){return r.readonly="readonly",r.readwrite="readwrite",r}(w||{}),ut=new y(null),ye=(()=>{class r{constructor(t,e){if(this.dbConfig=t,this.platformId=e,!t.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!t.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=Me(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,lt(this.indexedDB,t.name,t.version,t.objectStoresMeta,t.migrationFactory),m(this.indexedDB,t.name).then(n=>{n.version!==t.version&&(this.dbConfig.version=n.version)}))}createObjectStore(t,e){let n=[t];lt(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,n,e)}add(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{let c=k(s,v(w.readwrite,t,d=>o.error(d))).objectStore(t),l=n?c.add(e,n):c.add(e);l.onsuccess=d=>I(this,null,function*(){let u=d.target.result,p=c.get(u);p.onsuccess=f=>{o.next(f.target.result),o.complete()}})}).catch(s=>o.error(s))})}bulkAdd(t,e){let n=new Promise((o,s)=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{let l=k(a,v(w.readwrite,t,o,s)).objectStore(t),d=e.map(u=>new Promise((p,f)=>{let W=u.key;delete u.key;let j=W?l.add(u,W):l.add(u);j.onsuccess=C=>{let Z=C.target.result;p(Z)}}));o(Promise.all(d))}).catch(a=>s(a))});return x(n)}bulkDelete(t,e){let n=e.map(o=>new Promise((s,a)=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{let l=k(c,v(w.readwrite,t,a,s));l.objectStore(t).delete(o),l.oncomplete=()=>{this.getAll(t).pipe(ie(1)).subscribe(u=>{s(u)})}}).catch(c=>a(c))}));return x(Promise.all(n))}getByKey(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{let c=k(o,v(w.readonly,t,n.error)).objectStore(t).get(e);c.onsuccess=l=>{n.next(l.target.result),n.complete()},c.onerror=l=>{n.error(l)}}).catch(o=>n.error(o))})}bulkGet(t,e){let n=e.map(o=>this.getByKey(t,o));return new g(o=>{Ce(n).subscribe(s=>{o.next(s),o.complete()})})}getByID(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let c=k(o,v(w.readonly,t,n.error,n.next)).objectStore(t).get(e);c.onsuccess=l=>{n.next(l.target.result)}}).catch(o=>n.error(o))})}getByIndex(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{S(s,t,u=>o.error(u));let d=k(s,v(w.readonly,t,o.error)).objectStore(t).index(e).get(n);d.onsuccess=u=>{o.next(u.target.result),o.complete()}}).catch(s=>o.error(s))})}getAll(t){return new g(e=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{S(n,t,c=>e.error(c));let a=k(n,v(w.readonly,t,e.error,e.next)).objectStore(t).getAll();a.onerror=c=>{e.error(c)},a.onsuccess=({target:{result:c}})=>{e.next(c),e.complete()}}).catch(n=>e.error(n))})}update(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let a=k(o,v(w.readwrite,t,l=>n.error(l))).objectStore(t),c=a.put(e);c.onsuccess=l=>I(this,null,function*(){let d=l.target.result,u=a.get(d);u.onsuccess=p=>{n.next(p.target.result),n.complete()}})}).catch(o=>n.error(o))})}delete(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,c=>n.error(c));let s=k(o,v(w.readwrite,t,c=>n.error(c)));s.objectStore(t).delete(e),s.oncomplete=()=>{this.getAll(t).pipe(ie(1)).subscribe(c=>{n.next(c),n.complete()})}}).catch(o=>n.error(o))})}deleteByKey(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,c=>n.error(c));let s=k(o,v(w.readwrite,t,c=>n.error(c))),a=s.objectStore(t);s.oncomplete=()=>{n.next(!0),n.complete()},a.delete(e)}).catch(o=>n.error(o))})}clear(t){return new g(e=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{S(n,t,a=>e.error(a));let o=k(n,v(w.readwrite,t,a=>e.error(a)));o.objectStore(t).clear(),o.oncomplete=()=>{e.next(!0),e.complete()}}).catch(n=>e.error(n))})}deleteDatabase(){return new g(t=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(e=>I(this,null,function*(){yield e.close();let n=this.indexedDB.deleteDatabase(this.dbConfig.name);n.onsuccess=()=>{t.next(!0),t.complete()},n.onerror=o=>t.error(o),n.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}})).catch(e=>t.error(e))})}openCursor(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let a=k(o,v(w.readonly,t,n.error)).objectStore(t),c=e===void 0?a.openCursor():a.openCursor(e);c.onsuccess=l=>{n.next(l),n.complete()}}).catch(o=>n.error(o))})}openCursorByIndex(t,e,n,o=w.readonly){let s=new X;return m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>{s.error(p)});let u=k(a,v(o,t,p=>{s.error(p)},()=>{s.next()})).objectStore(t).index(e).openCursor(n);u.onsuccess=p=>{s.next(p)}}).catch(a=>s.error(a)),s}getAllByIndex(t,e,n){let o=[];return new g(s=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>s.error(p));let u=k(a,v(w.readonly,t,s.error)).objectStore(t).index(e).openCursor(n);u.onsuccess=p=>{let f=p.target.result;f?(o.push(f.value),f.continue()):(s.next(o),s.complete())}}).catch(a=>s.error(a))})}getAllKeysByIndex(t,e,n){let o=[];return new g(s=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>s.error(p));let u=k(a,v(w.readonly,t,s.error)).objectStore(t).index(e).openKeyCursor(n);u.onsuccess=p=>{let f=p.target.result;f?(o.push({primaryKey:f.primaryKey,key:f.key}),f.continue()):(s.next(o),s.complete())}}).catch(a=>s.error(a))})}count(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let c=k(o,v(w.readonly,t,n.error)).objectStore(t).count(e);c.onerror=l=>n.error(l),c.onsuccess=l=>{n.next(l.target.result),n.complete()}}).catch(o=>n.error(o))})}countByIndex(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{S(s,t,u=>o.error(u));let d=k(s,v(w.readonly,t,o.error)).objectStore(t).index(e).count(n);d.onerror=u=>o.error(u),d.onsuccess=u=>{o.next(u.target.result),o.complete()}}).catch(s=>o.error(s))})}deleteObjectStore(t){return un(this.dbConfig.name,++this.dbConfig.version,t)}}return r.\u0275fac=function(t){return new(t||r)(h(ut),h(H))},r.\u0275prov=b({token:r,factory:r.\u0275fac}),r})(),li=(()=>{class r{static forRoot(t){return{ngModule:r,providers:[ye,{provide:ut,useValue:t}]}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=L({type:r}),r.\u0275inj=F({imports:[[Oe]]}),r})();var dt=(()=>{let i=class i{constructor(e){this.db=e,this.DATABASE="Categories"}saveCategoriesByChannelType(e,n){let o=this.getKey(n);return this.db.add(this.DATABASE,e,o).pipe(P(s=>e))}getCategoriesByChannelType(e){let n=this.getKey(e);return this.db.getByKey(this.DATABASE,n)}getKey(e){let n="";switch(e){case le.Lazada:n="Lazada";break;case le.Tokopedia:n="Tokopedia";break}return n}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){let e=localStorage.getItem("Authorization");return this.hostName=JSON.parse(e)?.Host,this.hostName}};i.\u0275fac=function(n){return new(n||i)(h(ye))},i.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var ht=(()=>{let i=class i{constructor(){}inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&window.Intercom("boot",{app_id:"xv1oomgl",name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){let n={Enabled:!0};e&&(n=oe(oe({},n),e)),localStorage.setItem("Intercom",JSON.stringify(n))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!0}),e.hide_default_launcher=!0,this.updateLocalStorage(e))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!1}),e.hide_default_launcher=!1,this.updateLocalStorage(e))}isHideLauncher(){let e=this.getFromLocalStorage();return z.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var Si=(()=>{let i=class i{constructor(e,n,o,s,a,c,l){this.httpService=e,this.tokenDecodeService=n,this.afAuth=o,this.ngxPermission=s,this.localDataService=a,this.router=c,this.intercomService=l,this.channels=[]}login(e){return this.httpService.post("/api/token/Login",e).pipe(U(n=>{this.setLocalStorage(n,e.Host,e.Username),this.loadPermissions()}))}getNews(){return this.httpService.get(ze.news).pipe(P(e=>e?.items?.map(n=>n?.properties)))}loginWithGoogle(e,n){e.preventDefault();let o=new pe;return o.setCustomParameters({prompt:"select_account"}),x(this.afAuth.signInWithPopup(o)).pipe(P(s=>s.credential),P(s=>s.idToken),_(s=>this.httpService.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:s,Host:n}))),U(s=>{this.setLocalStorage(s,n,null),this.loadPermissions()}))}setLocalStorage(e,n,o){localStorage.setItem("user",JSON.stringify(e)),localStorage.setItem("Authorization",JSON.stringify({Host:n,username:o})),localStorage.setItem("channels",JSON.stringify(e.Channels)),this.intercomService.updateLocalStorage(e.IntercomWidget),this.intercomService.inititalizeIntercom()}loadPermissions(){this.ngxPermission.loadPermissions([]);let e=localStorage.getItem("user");if(z.IsNotEmpty(e)){let n=this.tokenDecodeService.GetRoles();this.ngxPermission.loadPermissions(n)}}getChannels(){let e=JSON.parse(JSON.stringify(this.channels));if(this.channels.length===0){let n=localStorage.getItem("channels");n?(this.channels=JSON.parse(n),e=JSON.parse(JSON.stringify(this.channels))):(this.channels=[],e=[])}return e=this.setChannelLogo(e),e}setChannelLogo(e){return e=e.map(n=>(n.Img=z.getChannelLogoByTypeId(n.TypeID),n)),e}logout(){this.clearLocalStorage(),this.ngxPermission.flushPermissions()}isActiveToken(){let e=JSON.parse(window.localStorage.getItem("user")),n=new Date;if(e!=null){let o=new Date(e.Token.expiredAt);return n<o?!0:(this.clearLocalStorage(),!1)}else return!1}getDomain(){if(!this.domain){let e=localStorage.getItem("Authorization");this.domain="https://"+JSON.parse(e).Host}return this.domain}clearLocalStorage(){this.domain=null,this.channels=[],localStorage.removeItem("channels"),localStorage.removeItem("user"),this.intercomService.shutdown(),this.localDataService.clearDatabase(),this.router.navigate([""])}};i.\u0275fac=function(n){return new(n||i)(h(Ke),h(Ge),h(Ie),h(Ue),h(dt),h(Ne),h(ht))},i.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();export{ze as a,Ge as b,Ho as c,ti as d,li as e,dt as f,Si as g};